/* ============================================================
   SECÇÕES - uma regra por bloco, pela ordem do documento
   ============================================================ */

/* ------------------------------------------------------------
   01 - HERO
   Fundo em <img> real (nunca url() em custom property),
   com camada de overlay irmã por cima.
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 945px;
  padding: 184px var(--gutter) 60px;
  overflow: hidden;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(42, 37, 32, .80) 0%, rgba(42, 37, 32, .58) 52%, rgba(42, 37, 32, .84) 100%);
}

.hero__container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 128px;
  color: var(--c-white);
}

.hero__head { width: 100%; }

.hero__title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 630px;
}

.hero__title { color: var(--c-white); }

.hero__cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero__video {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 238px;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-white-20);
  background: var(--c-white-10);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  overflow: hidden;
}
.hero__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--c-white-10);
}
.hero__video-fallback,
.hero__video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video-fallback { z-index: 0; }
.hero__video-el { z-index: 1; background: transparent; }
.hero__video-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 4px 4px;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 350px;
}

/* ------------------------------------------------------------
   02 - SOBRE + estatísticas
   ------------------------------------------------------------ */
.about {
  padding: var(--section-y) var(--gutter);
  background: var(--c-sage);
  overflow: hidden;
}

.about__container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.about__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}
.about__title { flex: 1 1 0; max-width: 900px; }

.about__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.stat__divider {
  width: 3px;
  height: 86px;
  flex: 0 0 auto;
  background: var(--c-deep);
  transform-origin: top;
}

/* ------------------------------------------------------------
   03 - SOLUÇÕES
   ------------------------------------------------------------ */
.solutions {
  padding: var(--section-y) var(--gutter);
  background: var(--c-off);
  overflow: hidden;
}

.solutions__container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
  width: 100%;
}

.s-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  padding: 24px;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}
.s-card__media { position: absolute; inset: 0; z-index: -2; }
.s-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--e-out);
}
.s-card:hover .s-card__media img { transform: scale(1.06); }

.s-card__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(42, 37, 32, .82) 0%, rgba(42, 37, 32, 0) 62%,
                                       rgba(42, 37, 32, .10) 100%);
}

.s-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 120px;
  height: 100%;
  color: var(--c-white);
}
.s-card__text { display: flex; flex-direction: column; gap: 12px; max-width: 34ch; }
.s-card__tags { display: flex; flex-wrap: wrap; gap: 10px 13px; }

/* ------------------------------------------------------------
   04 - SERVIÇOS (pilha sticky)
   Altura total = nº painéis × 100vh; um wrapper sticky
   contém todos os painéis sobrepostos.
   ------------------------------------------------------------ */
.services {
  position: relative;
  background: var(--c-sage);
}

.services__sticky {
  position: sticky;
  top: 40px;
  z-index: 1;
  height: calc(100vh - 80px);
  min-height: 640px;
  width: 100%;
}

.services__stack {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.sv-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity .7s var(--e-out),
              transform .9s var(--e-out),
              visibility 0s linear .7s;
}
.sv-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity .7s var(--e-out),
              transform .9s var(--e-out),
              visibility 0s linear 0s;
}

.sv-panel__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sv-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.sv-panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 37, 32, .76) 0%, rgba(42, 37, 32, .52) 100%);
}

.sv-panel__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  width: 100%;
  max-width: var(--container);
  height: 100%;
}

.sv-panel__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.sv-panel__body {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.sv-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 655px;
  height: 100%;
  max-height: 566px;
  padding: 12px 12px 24px;
  border-radius: var(--r-lg);
  background: var(--c-sage);
  overflow: hidden;
}
.sv-card__media {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.sv-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sv-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline: 12px;
  text-align: center;
}

.sv-pager {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  color: var(--c-white);
}
.sv-pager__count {
  display: flex;
  align-items: center;
  font-size: var(--fs-h6);
}
.sv-pager__sep { opacity: .5; margin-inline: 2px; }
.sv-pager__total { opacity: .5; }
.sv-pager__hint {
  font-size: var(--fs-h6);
  white-space: nowrap;
  animation: pulse-hint 2.4s var(--e-inout) infinite;
}

.services__trigger { height: 100vh; width: 100%; }

/* ------------------------------------------------------------
   05 - DESTAQUES
   ------------------------------------------------------------ */
.features {
  padding: var(--section-y) var(--gutter);
  background: var(--c-sage);
  overflow: hidden;
}

.features__container {
  display: flex;
  align-items: stretch;
  gap: 48px;
}

/* coluna esquerda: texto + cartões */
.features__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 599px;
}

/* coluna direita: imagem que acompanha a altura da coluna esquerda.
   A <img> é absoluta para não ter altura intrínseca - de outro modo
   seria ela a ditar a altura da secção em vez de a acompanhar. */
.features__media {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  align-self: stretch;
  min-height: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.features__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1 1 0;
  min-width: 0;
}

/* no original os dois cartões ficam lado a lado sob o texto */
.features__cards {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-card);
  width: 100%;
}

.f-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 0;
  min-width: 0;
}
.f-card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 30px;
  background: var(--c-accent);
  color: var(--c-deep);
  transition: transform var(--t-base) var(--e-out);
}
.f-card:hover .f-card__icon { transform: rotate(-8deg) scale(1.06); }
.f-card__text { display: flex; flex-direction: column; gap: 8px; }

/* ------------------------------------------------------------
   06 - COMO FUNCIONA
   ------------------------------------------------------------ */
.how {
  padding: var(--section-y) var(--gutter);
  background: var(--c-off);
  overflow: hidden;
}

.how__container {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
  width: 100%;
}

/* cartão compacto: o número encosta ao painel em vez de ficarem
   afastados pelas pontas de um cartão alto */
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--c-sage);
  overflow: hidden;
  isolation: isolate;
}
.step__media { position: absolute; inset: 0; z-index: -1; }
.step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  transition: transform .8s var(--e-out);
}
.step:hover .step__media img { transform: scale(1.05); }

.step__num { color: var(--c-deep); }

.step__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;          /* encosta ao fundo quando o cartão é esticado pela grelha */
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--c-white);
}

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

/* ------------------------------------------------------------
   07 - GALERIA (4 colunas com parallax)
   ------------------------------------------------------------ */
.gallery {
  padding: var(--section-y) 0 60px;
  background: var(--c-sage);
  overflow: hidden;
}

.gallery__head {
  padding-inline: var(--gutter);
  margin-bottom: 52px;
}

.gallery__strip {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 993px;
  overflow: hidden;
}

.gallery__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 30%;
  height: 100%;
  will-change: transform;
}

.g-item {
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--e-out), filter var(--t-base) var(--e-out);
}
.g-item:hover img { transform: scale(1.06); }

.gallery__col:not(.gallery__col--tall) .g-item:nth-child(1) { aspect-ratio: 1.125 / 1; }
.gallery__col:not(.gallery__col--tall) .g-item:nth-child(2) { aspect-ratio: .835 / 1; }
.g-item--full { height: 100%; }

/* ------------------------------------------------------------
   08 - EQUIPA
   ------------------------------------------------------------ */
.team {
  padding: 60px var(--gutter) var(--section-y);
  background: var(--c-sage);
  overflow: hidden;
}

.team__container {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
  width: 100%;
}

.t-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: .797 / 1;
  padding: 14px;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}
.t-card__media { position: absolute; inset: 0; z-index: -1; }
.t-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--e-out);
}
.t-card:hover .t-card__media img { transform: scale(1.06); }

.t-card__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 20px;
  border-radius: var(--r-xs);
  background: var(--c-white);
  transform: translate3d(0, 0, 0);
  transition: transform var(--t-base) var(--e-out);
}
.t-card:hover .t-card__label { transform: translate3d(0, -6px, 0); }

/* ------------------------------------------------------------
   09 - TESTEMUNHOS
   ------------------------------------------------------------ */
.testimonials {
  padding: var(--section-y) var(--gutter) 160px;
  background: var(--c-off);
}

.testimonials__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

/* ------------------------------------------------------------
   10 - FAQ
   ------------------------------------------------------------ */
.faq {
  padding: var(--section-y) var(--gutter);
  background: var(--c-white);
  overflow: hidden;
}

.faq__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

.faq__content {
  display: flex;
  align-items: stretch;
  gap: var(--gap-card);
  width: 100%;
}

.faq__media {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 648px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   PÁGINA LEGAL (política de privacidade e cookies)
   ------------------------------------------------------------ */
.legal {
  padding: 200px var(--gutter) var(--section-y);
  background: var(--c-off);
}

.legal__container {
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 820px;   /* medida de leitura confortável */
}

.legal__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.legal__index {
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: var(--c-sage);
}
.legal__index ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  counter-reset: none;
}
.legal__index a { font-size: var(--fs-16); }

.legal__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 140px;
}
.legal__section p { line-height: 1.7; }
.legal__section strong { font-weight: 600; }
.legal__section code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--c-sage);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
}

.legal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
  list-style: disc;
}
.legal__list li { line-height: 1.7; }

/* a tabela rola dentro do próprio contentor, nunca na página */
.legal__table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r-sm);
}
.legal__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--fs-14);
  background: var(--c-white);
}
.legal__table th,
.legal__table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-hairline);
}
.legal__table th {
  font-weight: 600;
  background: var(--c-sage);
}
.legal__table tr:last-child td { border-bottom: 0; }

.legal__back { margin-top: 8px; }

@media (max-width: 767.98px) {
  .legal { padding-top: 130px; }
  .legal__container { gap: 34px; }
  .legal__index { padding: 22px 20px; }
}
