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

/* Container geral da página */
.la-page {
  background-color: #0a0a0b;
  color: #e5e5e5;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

/* =============================================================
   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: 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: 1024px) {
  .la-hero__title {
    font-size: 48px;
    line-height: 54px;
    letter-spacing: -1px;
  }

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

@media (max-width: 768px) {
  .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;
}

/* Grid Estático (até 4 produtos) */
.la-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 289.074px);
  justify-content: center;
  gap: 24px;
}

/* Slider Carrossel (mais de 4 produtos) - igual ao padrão dos cases */
.la-products-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.la-products-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  gap: 24px;
}

.la-products-carousel__slide {
  flex: 0 0 calc((100% - (3 * 24px)) / 4);
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

/* Controles do Carrossel */
.la-products-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 33px;
  width: 100%;
}

.la-products-carousel__btn {
  display: flex;
  width: 50px;
  height: 50px;
  padding: 13px 13px 1px 13px;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #7c3aed;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.la-products-carousel__btn img {
  width: auto;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

.la-products-carousel__btn:hover {
  background: #7c3aed;
}

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

.la-products-carousel__btn:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.la-products-carousel__pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.la-products-carousel__dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #4a5565;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.la-products-carousel__dot--active {
  height: 12px;
  flex: 1 0 0;
  width: 32px;
  max-width: 32px;
  border-radius: 999px;
  background: #7c3aed;
}

/* Card Individual de Produto */
.la-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  width: 289.074px;
  transition: transform 300ms ease;
}

.la-product-card:hover {
  transform: translateY(-4px);
}

.la-product-card__image-wrapper {
  width: 289.074px;
  height: 138.472px;
  border-radius: 5.971px 5.971px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.la-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.la-product-card__content {
  background: #1a1a1c;
  border-radius: 0 0 5.971px 5.971px; /* Remove arredondamento superior para junção perfeita com a imagem */
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex-grow: 1;
  box-sizing: border-box;
  width: 289.074px;
}

.la-product-card__tag {
  background: #7c3aed;
  border-radius: 8.956px;
  padding: 4px 10px;
  margin-bottom: 15px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 8.956px;
  font-style: normal;
  font-weight: 300;
  line-height: 11.941px;
  display: inline-block;
  text-transform: uppercase;
}

.la-product-card__title {
  color: #99a1af;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.941px;
  font-weight: 300;
  line-height: 19.404px;
  margin-top: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.la-product-card__description {
  color: #6a7282;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 300;
  line-height: 11.941px;
  margin: 0;
}

/* RESPONSIVIDADE SOFTWARES */
@media (max-width: 1024px) {
  .la-products-grid {
    grid-template-columns: repeat(2, 289.074px);
    gap: 20px;
  }

  .la-products-carousel__slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px) {
  .la-products {
    padding-top: 48px;
    padding-bottom: 48px;
  }

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

  .la-products-grid {
    grid-template-columns: 289.074px;
    row-gap: 24px;
  }

  .la-products-carousel__slide {
    flex: 0 0 100%;
  }
}

/* =============================================================
   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, 400px);
  gap: 24px 40px;
  justify-content: center;
  max-width: 100%;
}

.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: 400px;
  max-width: 100%;
  height: 44px;
  border-radius: 6px;
  border: 0.5px solid #7c3aed;
  background: #1a1a1a;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  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: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  margin-bottom: 34px;
  max-width: 100%;
}

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

.la-form__product-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 101.019px;
  height: 29.712px;
  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: 8.913px;
  font-weight: 300;
  line-height: 11.885px;
  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: 529.22px;
  max-width: 100%;
  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(3, 286px);
  justify-content: center;
  gap: 21px;
}

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

.la-gallery__img {
  width: 286px;
  height: 160px;
  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: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 16px;
  margin: 0;
}

/* RESPONSIVIDADE ADICIONAL */
@media (max-width: 900px) {
  .la-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .la-gallery__img {
    width: 100%;
    height: auto;
    aspect-ratio: 286 / 160;
  }

  .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-gallery__grid {
    grid-template-columns: 1fr;
  }

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

