/* ---- Fontes self-hosted ---- */
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/assets/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('/assets/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('/assets/fonts/poppins-700.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
  --color-orange: #fcac23;
  --color-orange-deep: #f38027;
  --color-cream: #f1e9dc;
  --color-salmon: #f39885;
  --color-ink: #000000;
  --color-gray: #7a7a7a;
  --color-white: #ffffff;
  --grad-cta: linear-gradient(90deg, #fcac23 0%, #f38027 100%);
  --grad-counter: linear-gradient(90deg, #f7c1c9 0%, #f39ab0 100%);
  --font-base: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1200px;
  --radius: 12px;
}

/* ---- Reset enxuto ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { margin: 0; font-family: var(--font-base); color: var(--color-ink); line-height: 1.5; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0 0 .5em; }

/* ---- Utilitários ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.btn-cta {
  display: inline-block; background: var(--grad-cta); color: #fff;
  font-weight: 700; text-transform: uppercase; text-decoration: none;
  padding: 16px 28px; border: 0; border-radius: var(--radius); cursor: pointer;
  text-align: center;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Hero ---- */
.hero {
  position: relative; height: 100vh; box-sizing: border-box;
  display: flex; align-items: center;
  padding: 24px clamp(20px, 6vw, 96px);
  background: #ece6dd url('/assets/img/bg-desk-5.jpg') center center / cover no-repeat;
}
.hero__photo { display: none; }
.hero__form-wrap { width: 100%; max-width: 460px; max-height: 100%; }
.lead-form, .lead-success {
  width: 100%; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .15); padding: 28px 30px;
}
.hero__title { font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.5rem); text-align: center; line-height: 1.08; margin-bottom: .3em; }
.hero__title span { color: var(--color-orange); display: block; }
.hero__subtitle { text-align: center; color: var(--color-ink); font-size: .95rem; margin-bottom: 1rem; }
.field, .field-row { margin-bottom: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form input, .lead-form select {
  width: 100%; padding: 11px 16px; border: 1px solid #e0e0e0; border-radius: 8px;
  font: inherit; background: #f7f7f7;
}
.lead-form input:focus, .lead-form select:focus { outline: 2px solid var(--color-orange); }
.lead-form input[aria-invalid="true"], .lead-form select[aria-invalid="true"] { border-color: #d9534f; }
.lead-form__submit { display: block; width: 100%; margin-top: 8px; }
.lead-form__error { color: #d9534f; margin-top: 10px; }
.lead-success { text-align: center; }
@media (max-width: 860px) {
  /* Hero empilhado: foto no topo + formulário abaixo (como no original) */
  .hero {
    height: auto; min-height: 0; flex-direction: column;
    padding: 0; background: none;
  }
  .hero__photo { display: block; width: 100%; height: 54vh; min-height: 340px; max-height: 470px; object-fit: cover; object-position: 58% center; }
  .hero__form-wrap {
    width: 100%; max-width: 100%; max-height: none;
    margin-top: -28px; padding: 0 14px 32px;
  }
  .lead-form, .lead-success { border-radius: 20px 20px 16px 16px; padding: 26px 22px; }
}

/* ---- Seção genérica ---- */
.section { padding: 64px 0; }
.section--cream { background: var(--color-cream); }
/* Transição arredondada entre a seção creme (missão) e a branca (perfil) */
#perfil { position: relative; z-index: 1; background: #fff; margin-top: -44px; padding-top: 96px; border-radius: 44px 44px 0 0; }
.section__title { text-align: center; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 32px; }
.section__title::before { content: ""; display: block; width: 120px; height: 3px; background: var(--color-salmon); border-radius: 2px; margin: 0 auto 24px; }
.section__title--left { text-align: left; }
.section__title--left::before { margin-left: 0; width: 90px; }
.section__title .accent, .section__title span { color: var(--color-orange); }
.divider { display: block; width: 90px; height: 3px; background: var(--color-salmon); border-radius: 2px; margin-bottom: 18px; }

/* ---- Video Facade ---- */
.video-facade { position: relative; max-width: 840px; margin: 0 auto; cursor: pointer; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade__play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; display: grid; place-items: center; background: rgba(255,255,255,.85); border-radius: 50%; font-size: 28px; color: var(--color-orange-deep); }
.video-facade iframe { width: 100%; height: 100%; border: 0; }

/* ---- Persona Cards Section ---- */
.section__intro { max-width: 820px; margin: 0 auto 40px; text-align: center; color: var(--color-gray); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.persona-card { background: var(--color-cream); border-radius: var(--radius); padding: 28px; }
.persona-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; background: var(--color-salmon); border-radius: 12px; font-size: 26px; margin-bottom: 16px; }
.persona-card__icon img { width: 32px; height: 32px; object-fit: contain; }
.persona-card h3 { font-weight: 700; }
.persona-card p { color: var(--color-gray); margin: 0; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---- Seção Diferenciais ---- */
.diferenciais { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.diferenciais__title { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; }
.pill-card { display: flex; align-items: center; justify-content: center; min-height: 140px; border: 2px solid var(--color-orange); border-radius: 10px; padding: 20px 28px; text-align: center; font-weight: 700; margin-bottom: 22px; background: #ededed; box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.pill-card:last-child { margin-bottom: 0; }
/* ---- Counters Band ---- */
.counters-band { position: relative; z-index: 2; padding: 48px 20px 0; background: transparent; }
.counters {
  max-width: 760px; margin: 0 auto -64px; position: relative; z-index: 2;
  display: flex; justify-content: center; gap: clamp(40px, 9vw, 96px);
  padding: 36px 30px; text-align: center;
  border-radius: 18px; overflow: hidden;
  background: transparent;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .11);
}
/* Efeito de vidro: camada de gradiente a 50% deixa ver a galeria desfocada atrás */
.counters::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(45deg, #f1e9dc 0%, #f2295b 100%);
  opacity: .5;
}
.counter__num { display: block; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; }
.counter__label { font-weight: 600; }

/* ---- Seção Passos (Timeline) ---- */
.passos { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
/* Coluna esquerda acompanha o scroll (sticky) enquanto a timeline rola ao lado */
.passos__intro { position: sticky; top: 120px; align-self: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 52px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 16px; top: 18px; bottom: 18px; width: 3px; background: #e2d7c4; }
.timeline__progress { position: absolute; left: 16px; top: 18px; width: 3px; height: 0; background: var(--color-orange); transition: height .15s linear; }
.timeline__item { position: relative; background: #fbf6ef; border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.timeline__item::before { content: "\2713"; position: absolute; left: -52px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: #d8cab2; color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700; box-shadow: 0 0 0 4px var(--color-cream); transition: background .2s ease; z-index: 1; }
.timeline__item.is-active::before { background: var(--color-orange); }
.timeline__step { color: var(--color-salmon); text-transform: uppercase; font-weight: 700; font-size: .85rem; letter-spacing: .03em; }
.timeline__item h3 { font-weight: 700; text-transform: uppercase; }
.timeline__item p { color: var(--color-gray); margin: 0; }

/* ---- Galerias ---- */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 3; }

/* ---- Carousel (Depoimentos) ---- */
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel img { flex: 0 0 auto; width: auto; height: 520px; max-height: 70vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); scroll-snap-align: center; background: #fff; }
@media (max-width: 860px) { .carousel img { height: 420px; } }

/* ---- Seção Fechamento ---- */
.closing { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: flex-end; padding: 48px clamp(20px, 6vw, 96px); background: #eceef2 url('/assets/img/bg-cta.jpg') center center / cover no-repeat; overflow: hidden; }
.closing__cta { position: relative; width: 100%; max-width: 460px; background: rgba(255, 255, 255, .96); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.2); padding: 48px 40px; text-align: center; }
.closing__cta h2 { font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.closing__cta h2 span { color: var(--color-orange); display: block; }

/* ---- FAQ Accordion ---- */
.faq { max-width: 960px; margin: 0 auto; }
.faq__item { background: var(--color-cream); border-radius: var(--radius); margin-bottom: 16px; padding: 4px 24px; }
.faq__item summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__body { padding-bottom: 18px; color: var(--color-gray); }

/* ---- Footer ---- */
.footer { background: #f4f4f4; padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__ig { color: var(--color-ink); text-decoration: none; font-weight: 600; }

@media (max-width: 860px) {
  .diferenciais { grid-template-columns: 1fr; }
  .counters { gap: 40px; }
  .passos { grid-template-columns: 1fr; }
  .passos__intro { position: static; }
  /* No mobile o original centraliza o título/texto dos passos */
  .passos__intro { text-align: center; }
  .section__title--left { text-align: center; }
  .section__title--left::before { margin-left: auto; margin-right: auto; }
  .passos__intro .divider { margin-left: auto; margin-right: auto; }
  /* Galeria: a 5ª foto (órfã na grade de 2 colunas) ocupa a linha inteira */
  .gallery img:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 4 / 3; object-position: center 22%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .closing { justify-content: center; min-height: 70vh; padding: 40px 20px; background-position: top center; }
  .closing__cta { max-width: 520px; }
  .footer__inner { justify-content: center; text-align: center; }
}
