/*
  Seção Licenciamentos Microsoft:
  - layout premium inspirado na referência do usuário
  - fundo em largura/altura total da seção
  - dois blocos principais com grid de aplicativos
*/

.licensing-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    isolation: isolate;
    padding: clamp(3.4rem, 4vw, 4.7rem) 0;
    background: linear-gradient(142deg, rgb(255 255 255 / 0%), #43998600), url(../../assets/icons/bg_licenciamentos_Microsoft.jpg) center / cover no-repeat;
    filter: saturate(0.86) brightness(1.02);
}

.licensing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 72% at 24% 45%,
    rgba(45, 194, 166, 0.09) 0%,
    rgba(45, 194, 166, 0) 55%
  );
  mix-blend-mode: normal;
}

.licensing-container {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 2rem));
}

.licensing-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 380px);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 3rem);
}

.licensing-header__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.15rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 194, 166, 0.6);
  color: #1ca88e;
  background: rgba(223, 248, 242, 0.74);
  font-size: 1.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.licensing-header__title {
  margin: 0;
  color: #121f35;
  font-size: clamp(2.3rem, 4.7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 5px 16px rgba(18, 31, 53, 0.1);
}

.licensing-header__title span {
  color: #22bca1;
  text-shadow: 0 6px 18px rgba(45, 194, 166, 0.25);
}

.licensing-header__description {
    margin: 1.08rem 1px 20px !important;
    max-width: 46ch;
    color: #293347;
    font-size: clamp(1.12rem, 1.5vw, 1.72rem);
    line-height: 1.48;
}

.licensing-header__brand {
  margin: 0;
  justify-self: end;
}

.licensing-header__brand img {
  display: block;
  width: clamp(180px, 25vw, 420px);
  height: auto;
  transition: transform 0.34s ease, filter 0.34s ease;
}

.licensing-header__brand img:hover {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 0 14px rgba(45, 194, 166, 0.35));
}

.licensing-plans {
  margin-top: clamp(1.3rem, 2.2vw, 2.2rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.5rem);
}

.licensing-plan {
  position: relative;
  padding: clamp(1.35rem, 1.9vw, 1.95rem) clamp(1rem, 1.8vw, 1.6rem);
  border-radius: 20px;
  border: 1px solid rgba(45, 194, 166, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.45));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 34px rgba(14, 38, 34, 0.09);
  transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease;
}

.licensing-plan:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 194, 166, 0.75);
  box-shadow:
    0 0 0 1px rgba(45, 194, 166, 0.3),
    0 0 24px rgba(45, 194, 166, 0.2),
    0 20px 36px rgba(14, 38, 34, 0.14);
}

.licensing-plan__tag {
    position: absolute;
    top: -12px;
    right: clamp(0.8rem, 2vw, 2.2rem);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.95rem;
    border-radius: 9px;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(100deg, #1fae95, #32d0b5);
    box-shadow: 0 0 16px rgba(45, 194, 166, 0.38);
}

.licensing-plan__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.licensing-plan__head img {
  width: clamp(52px, 4.8vw, 72px);
  height: clamp(52px, 4.8vw, 72px);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.licensing-plan__head:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(45, 194, 166, 0.45));
}

.licensing-plan__head h3 {
  margin: 0;
  color: #1d273a;
  font-size: clamp(1.45rem, 2.1vw, 2.18rem);
  line-height: 1.06;
}

.licensing-plan__head strong {
  display: block;
  margin-top: 0.1rem;
  color: #22bca1;
  font-size: clamp(1.2rem, 1.8vw, 1.95rem);
  line-height: 1.1;
}

.licensing-plan__lead {
  margin: 1rem 0 0.75rem;
  color: #2f394c;
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.52;
}

.licensing-apps {
  margin: 0;
  padding: 0.95rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(120, 143, 150, 0.32);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 0.8rem;
}

.licensing-apps--extended {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.licensing-apps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.25rem;
  border-radius: 12px;
  transition: transform 0.32s ease, background-color 0.32s ease, box-shadow 0.32s ease;
}

.licensing-apps li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 0 14px rgba(45, 194, 166, 0.22);
}

.licensing-apps img {
  width: clamp(44px, 4.6vw, 72px);
  height: clamp(44px, 4.6vw, 72px);
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.licensing-apps li:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(45, 194, 166, 0.4));
}

.licensing-apps h4 {
  margin: 10px 0px 10px;
  color: #1d273a;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  font-weight: 700;
  text-align: center;
}

.licensing-footer {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(145, 165, 172, 0.34);
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 1.2fr 1.25fr auto;
  align-items: center;
  gap: 1rem;
}

.licensing-footer p {
  margin: 0;
  color: #26364c;
  font-size: clamp(0.98rem, 1.05vw, 1.12rem);
  line-height: 1.4;
}

.licensing-footer p i {
  color: #22bca1;
  margin-right: 0.4rem;
  text-shadow: 0 0 12px rgba(45, 194, 166, 0.4);
}

.licensing-footer__cta {
  white-space: nowrap;
  min-width: 232px;
  box-shadow:
    0 12px 28px rgba(4, 30, 26, 0.2),
    0 0 22px rgba(45, 194, 166, 0.34);
  transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}

.licensing-footer__cta:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.03);
  box-shadow:
    0 16px 34px rgba(4, 30, 26, 0.24),
    0 0 28px rgba(45, 194, 166, 0.46);
}

@media (max-width: 1180px) {
  .licensing-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .licensing-header__brand {
    justify-self: start;
  }

  .licensing-plans {
    grid-template-columns: 1fr;
  }

  .licensing-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .licensing-section {
    padding: 2.5rem 0;
  }

  .licensing-container {
    width: min(1480px, calc(100% - 1rem));
  }

  .licensing-header__badge {
    font-size: 1rem;
  }

  .licensing-header__description {
    max-width: 100%;
  }

  .licensing-apps,
  .licensing-apps--extended {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem 0.7rem;
  }

  .licensing-footer__cta {
    width: 100%;
    min-width: 0;
  }
}
