/**
 * Academic Licenses Page Styles
 *
 * @package BIM_Works
 */

/* Container geral da página */
.la-page {
  background-color: #0a0a0b;
  color: #e5e5e5;
  min-height: 100vh; /* fallback */
  min-height: 100dvh;
  font-family: "Space Grotesk", sans-serif;
  /* Sem overflow-x: hidden. O recorte no wrapper escondia estouros em vez de
     corrigi-los — qualquer estouro futuro deve aparecer como scroll horizontal
     e ser pego em QA. O recorte intencional fica nos carrosséis e mídias. */
}

/* =============================================================
   SEÇÃO 1 — HERO
   ============================================================= */
.la-hero {
  background-color: #0a0a0b;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}

.la-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 40px;
}

.la-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-top: 60px;
  padding-bottom: 34px;
}

.la-hero__tag-wrapper {
  margin-bottom: 24px;
}

.la-hero__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #472876;
  padding: 8px 12px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
  letter-spacing: normal;
  text-transform: uppercase;
}

.la-hero__title {
  color: #e5e5e5;
  font-family: "Space Grotesk", sans-serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 66px;
  letter-spacing: -1.5px;
  margin-top: 0;
  margin-bottom: 24px;
}

.la-hero__description {
  color: #99a1af;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 26px;
  margin-top: 0;
  margin-bottom: 0;
  white-space: pre-wrap; /* Preserva as quebras de linha enviadas do textarea */
}

.la-hero__image-wrapper {
  width: 100%;
  max-width: 360.573px;
  height: 361.087px;
  display: flex;
  align-items: end;
  justify-content: center;
  flex-shrink: 0;
}

.la-hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =============================================================
   SEÇÃO 2 — BENEFÍCIOS
   ============================================================= */
.la-benefits {
  background-color: #0a0a0b;
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
}

.la-benefits__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.la-benefits__title {
  color: #e5e5e5;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
  margin-top: 0;
  margin-bottom: 48px;
}

.la-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 32px;
}

.la-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.la-benefit-item__icon {
  color: #7c3aed;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px; /* Pequeno ajuste de alinhamento vertical com a primeira linha do texto */
}

.la-benefit-item__text {
  color: #d1d5dc;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  margin: 0;
}

/* =============================================================
   RESPONSIVIDADE (MOBILE / TABLET)
   ============================================================= */
@media (max-width: 1023.98px) {
  .la-hero__title {
    font-size: 48px;
    line-height: 54px;
    letter-spacing: -1px;
  }

  .la-hero__image-wrapper {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 767.98px) {
  .la-hero {
    padding-top: 40px;
    padding-bottom: 0;
  }

  .la-hero__container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }

  .la-hero__content {
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
  }

  .la-hero__title {
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -0.5px;
  }

  .la-hero__image-wrapper {
    order: 2; /* Move a imagem para baixo no mobile se necessário */
    width: 240px;
    height: 240px;
  }

  .la-benefits {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .la-benefits__title {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 32px;
  }

  .la-benefits__grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
}

/* =============================================================
   SEÇÃO 3 — SOFTWARES
   ============================================================= */
.la-products {
  background-color: #0a0a0b;
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
}

.la-products__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.la-products__section-title {
  color: #e5e5e5;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 48px;
}

/* RESPONSIVIDADE SOFTWARES */
/* Grid e cards: assets/css/product-cards.css (mesmo componente da Home) */
@media (max-width: 767.98px) {
  .la-products {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .la-products__section-title {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 32px;
  }
}


/* =============================================================
   SEÇÃO 3.1 — GALERIA DE ESTUDANTES E PROFESSORES (Swiper)
   ============================================================= */

.la-students-gallery {
  background-color: #0a0a0b;
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
}

.la-students-gallery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.la-students-gallery__title {
  color: #e5e5e5;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 48px;
  overflow-wrap: break-word;
}

/* Grade: [seta] [carrossel] [seta] / bullets abaixo */
.la-students-gallery__slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1000px) auto;
  grid-template-areas:
    "prev slider next"
    ".    dots   .";
  justify-content: center;
  align-items: center;
  column-gap: 24px;
}

.la-students-gallery .la-students-gallery__swiper {
  grid-area: slider;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.la-students-gallery__slide {
  height: auto;
}

/* Arte quadrada 560x560, responsiva e sem distorção */
.la-students-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background-color: #1a1a1c;
}

.la-students-gallery__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #7c3aed;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.la-students-gallery__nav--prev {
  grid-area: prev;
}

.la-students-gallery__nav--next {
  grid-area: next;
}

.la-students-gallery__nav img {
  display: block;
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.la-students-gallery__nav:hover {
  background: #7c3aed;
}

.la-students-gallery__nav:hover img {
  filter: brightness(0) invert(1);
}

.la-students-gallery__nav:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Início/fim do carrossel */
.la-students-gallery__nav.is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* Imagens insuficientes para navegar */
.la-students-gallery__nav.is-locked,
.la-students-gallery
  .la-students-gallery__pagination.swiper-pagination-lock {
  display: none;
}

.la-students-gallery .la-students-gallery__pagination {
  grid-area: dots;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  min-width: 0;
}

.la-students-gallery
  .la-students-gallery__pagination
  .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  opacity: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.la-students-gallery
  .la-students-gallery__pagination
  .swiper-pagination-bullet-active {
  width: 22px;
  background: #7c3aed;
}

.la-students-gallery
  .la-students-gallery__pagination
  .swiper-pagination-bullet:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* MOBILE */
@media (max-width: 767.98px) {
  .la-students-gallery {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .la-students-gallery__title {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 32px;
  }

  .la-students-gallery__slider {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "slider slider slider"
      "prev   dots   next";
    column-gap: 16px;
    row-gap: 24px;
  }

  .la-students-gallery .la-students-gallery__pagination {
    margin-top: 0;
  }

  .la-students-gallery__nav {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .la-students-gallery__nav,
  .la-students-gallery__nav img,
  .la-students-gallery
    .la-students-gallery__pagination
    .swiper-pagination-bullet {
    transition: none;
  }
}




/* =============================================================
   SEÇÃO 4 — FORMULÁRIO DE INTERESSE
   ============================================================= */
.la-interest-form {
  background-color: #0a0a0b;
  padding-top: 64px;
  padding-bottom: 90px;
  position: relative;
}

.la-interest-form__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.la-interest-form__title {
  color: #e5e5e5;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px;
  margin-top: 0;
  margin-bottom: 48px;
}

.la-form {
  position: relative;
  width: 900px;
  max-width: 100%;
  min-height: 420px;
  border-radius: 12px;
  background: #000;
  padding: 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.la-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.9) 0%,
    rgba(71, 40, 118, 0.5) 40%,
    rgba(30, 41, 57, 0.15) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.la-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  justify-content: center;
  width: 100%;
  max-width: 840px;
  margin-inline: auto;
}

.la-form__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.la-form__label {
  color: #e5e5e5;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 6px;
  display: block;
}

.la-form__asterisk {
  color: #fff;
}

.la-form__input {
  width: 100%;
  height: 44px;
  border-radius: 6px;
  border: 0.5px solid #7c3aed;
  background: #1a1a1a;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  /* font-size fica em main.css: 16px na base (anti-zoom iOS), 14px em ≥1024px. */
  font-weight: 300;
  padding: 0 16px;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.la-form__input:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.la-form__products-title {
  margin-top: 34px;
  margin-bottom: 16px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
  text-align: center;
}

.la-form__products-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  justify-content: center;
  margin-bottom: 34px;
  max-width: 100%;
}

.la-form__product-option {
  position: relative;
  display: block;
  cursor: pointer;
}

/* Checkbox visualmente oculto, mas focável e operável por teclado (Espaço).
   O estado aparece no .la-form__product-btn logo após o input. */
.la-form__product-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
}

.la-form__product-checkbox:focus-visible + .la-form__product-btn {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}

.la-form__product-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 120px;
  min-height: 44px; /* alvo de toque mínimo */
  padding: 8px 12px;
  border-radius: 5.942px;
  border: 0.5px solid #7c3aed;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0) 0%,
    rgba(124, 58, 237, 0) 65%,
    rgba(124, 58, 237, 0.18) 100%
  );
  color: #fff;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 18px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  user-select: none;
}

.la-form__product-checkbox:checked + .la-form__product-btn {
  background: #7c3aed;
  border-color: #7c3aed;
}

.la-form__product-btn:hover {
  border-color: #a78bfa;
  background: rgba(124, 58, 237, 0.1);
}

.la-form__submit-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.la-form__submit {
  width: 100%;
  max-width: 529px;
  height: 52px;
  border-radius: 8px;
  border: 0.5px solid #472187;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0) 0%,
    rgba(124, 58, 237, 0) 65%,
    rgba(124, 58, 237, 0.18) 100%
  );
  color: #fff;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.la-form__submit:hover {
  background: #7c3aed;
  border-color: #7c3aed;
}

/* RESPONSIVIDADE DO FORMULÁRIO */
@media (max-width: 900px) {
  .la-interest-form {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .la-interest-form__title {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 32px;
  }

  .la-form {
    width: 100%;
    padding: 32px 20px;
    min-height: auto;
  }

  .la-form__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }

  .la-form__input {
    width: 100%;
  }

  .la-form__submit {
    width: 100%;
  }
}

/* =============================================================
   SEÇÃO 5 — GALERIA DE IMAGENS
   ============================================================= */
.la-gallery {
  background-color: #0a0a0b;
  margin-bottom: 90px;
  position: relative;
}

.la-gallery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.la-gallery__title {
  color: #e5e5e5;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  margin-top: 0;
  margin-bottom: 30px;
}

.la-gallery__grid {
  max-width: 900px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 286px));
  justify-content: center;
  gap: 21px;
}

.la-gallery__item {
  width: 100%;
  display: flex;
  justify-content: center;
}

.la-gallery__img {
  width: 100%;
  height: auto;
  aspect-ratio: 286 / 160;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background-color: #1a1a1c;
}

/* =============================================================
   SEÇÃO 6 — FAQ ACORDION
   ============================================================= */
.la-faq {
  background-color: #0a0a0b;
  padding-bottom: 120px;
  position: relative;
}

.la-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.la-faq__title {
  color: #e5e5e5;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  margin-top: 0;
  margin-bottom: 40px;
}

.la-accordion {
  max-width: 900px;
  margin-inline: auto;
  border-top: 1px solid #2a2a2a;
}

.la-accordion__item:not(:last-child) {
  border-bottom: 1px solid #2a2a2a;
}

.la-accordion__header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  color: #d1d5dc;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  padding: 24px 0;
  transition: color 0.2s ease;
  box-sizing: border-box;
}

.la-accordion__header:focus,
.la-accordion__header:active {
  outline: none;
  border: none;
  box-shadow: none;
}

.la-accordion__header:hover {
  color: #fff;
}

.la-accordion__item:first-child .la-accordion__header {
  padding-top: 10px; /* da borda de cima até a primeira pergunta: 10px */
}

.la-accordion__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.la-accordion__icon::before,
.la-accordion__icon::after {
  content: "";
  position: absolute;
  background-color: #d1d5dc;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.2s ease;
}

/* Linha Horizontal (+) */
.la-accordion__icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

/* Linha Vertical (+) */
.la-accordion__icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.la-accordion__header:hover .la-accordion__icon::before,
.la-accordion__header:hover .la-accordion__icon::after {
  background-color: #fff;
}

/* Estado Ativo (Aberta) - Transforma o + em - */
.la-accordion__item--active .la-accordion__icon::after {
  transform: rotate(90deg) scaleY(0);
}

.la-accordion__item--active .la-accordion__icon::before {
  transform: rotate(180deg);
}

.la-accordion__item--active .la-accordion__header {
  color: #fff;
}

.la-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.la-accordion__inner {
  padding-left: 10px; /* resposta com padding-left: 10px */
  padding-bottom: 34px; /* após resposta aberta, 34px até a próxima linha */
  box-sizing: border-box;
}

.la-accordion__inner p {
  color: #6a7282;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  margin: 0;
}

/* RESPONSIVIDADE ADICIONAL */
@media (max-width: 900px) {
  .la-gallery__grid {
    gap: 16px;
  }

  .la-accordion__header {
    font-size: 15px;
    line-height: 22px;
    padding: 20px 0;
  }

  .la-accordion__item:first-child .la-accordion__header {
    padding-top: 10px;
  }
}

@media (max-width: 600px) {
  .la-gallery {
    margin-bottom: 64px;
  }

  .la-faq {
    padding-bottom: 80px;
  }
}