/* ===================================================================
   SOLAR SITE TEMPLATE — style.css
   Direção visual "Apple-style": muito respiro, fundos claros com 1-2
   seções de impacto em quase-preto, tipografia de sistema, materiais
   translúcidos, movimento contido e físico. Ver specs/design.md para
   o racional de cada decisão (skills apple-design / frontend-design /
   emil-design-eng / mobile-native).

   Sem framework, sem build step — CSS puro. Cor de acento é lida de
   --accent, que o script.js sobrescreve a partir de CONFIG.corDestaque
   em runtime (o valor abaixo é só o fallback antes do JS rodar).
   =================================================================== */

/* ---------- 0. RESET E BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; }
input, textarea, select { font-size: 16px; } /* nunca <16px — evita zoom automático no iOS */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Cor — fundos claros predominantes, 1-2 blocos de impacto quase-pretos.
     --accent é sobrescrita em runtime a partir de CONFIG.corDestaque. */
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --bg-dark: #1d1d1f;
  --bg-dark-alt: #000000;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-on-dark-secondary: rgba(245, 245, 247, 0.68);
  --white: #ffffff;
  --accent: #0071e3; /* fallback — contraste ~4.7:1 sobre branco, ver design.md */
  /* Variante escurecida pra texto pequeno sobre fundo claro — --accent puro
     fica em ~4.3:1 sobre --bg-alt (abaixo do 4.5:1 de texto normal, achado
     pelo Lighthouse 2026-09-29). color-mix referencia --accent ao vivo, então
     continua correto mesmo se CONFIG.corDestaque for trocado em runtime. */
  --accent-text: color-mix(in srgb, var(--accent) 78%, black);
  --border: rgba(0, 0, 0, 0.08);
  --border-on-dark: rgba(255, 255, 255, 0.14);

  /* Tipografia — pilha de sistema, sem fonte custom carregada (ver design.md) */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;

  --fs-hero: clamp(2.75rem, 2.1rem + 3.2vw, 5rem);
  --fs-h2: clamp(2rem, 1.6rem + 1.8vw, 3.125rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-number: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);

  /* Espaçamento — escala 8px */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --space-section: clamp(80px, 9vw, 160px);

  --radius-card: 22px;
  --radius-card-sm: 16px;
  --radius-btn: 980px; /* botão pílula — tratamento típico Apple */
  --radius-input: 12px;

  /* Curvas de easing — nunca a ease/ease-out padrão do browser (fraca demais) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --max-width: 1200px;
  --header-height: 52px;
}

/* Foco visível — acessibilidade, nunca removido */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 2. LAYOUT / UTILITÁRIOS ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.container--narrow { max-width: 700px; }

section { scroll-margin-top: var(--header-height); }
#inicio, #como-funciona, #projetos, #simulador, #sobre, #contato { scroll-margin-top: var(--header-height); }

.section-head {
  max-width: 680px;
  margin: 0 auto var(--space-6);
  text-align: center;
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
.section-title--light { color: var(--text-on-dark); }
.section-subtitle {
  color: var(--text-secondary);
  max-width: 52ch;
  margin: var(--space-2) auto 0;
  font-size: var(--fs-body);
}
.section-head .section-subtitle { margin-left: auto; margin-right: auto; }
.section-title--light + .section-subtitle,
.section-head .section-subtitle { color: var(--text-on-dark-secondary); }
.pain .section-subtitle, .how .section-subtitle, .projects .section-subtitle,
.testimonials .section-subtitle, .about .section-subtitle, .faq .section-subtitle { color: var(--text-secondary); }

/* ---------- 3. BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
  min-height: 44px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { filter: brightness(1.08); }
}
.btn--outline { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn--outline:hover { border-color: var(--white); }
}
.btn--full { width: 100%; }
.btn--small { padding: 9px 20px; font-size: 0.9rem; min-height: 38px; }

.link--subtle {
  display: block;
  margin-top: var(--space-3);
  color: var(--accent-text);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
  .link--subtle:hover { text-decoration: underline; }
}

.stars { color: var(--accent); letter-spacing: 2px; }

/* Reveal ao rolar — distância curta, curva forte, nunca a padrão do browser */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 4. HEADER / NAV — material translúcido ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-out);
}
/* O blur/fundo do header vivem num ::before, não no próprio .header (correção
   2026-09-29): backdrop-filter num ancestral vira containing block pra
   descendentes position:fixed — o #nav do menu mobile (fixed, top+bottom)
   ficava preso dentro dos 52px do .header em vez de esticar até o fim da
   tela. Isolando o blur num pseudo-elemento, .header não tem mais
   filter/backdrop-filter, e o #nav volta a se posicionar contra a viewport. */
.header::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background-color 300ms var(--ease-out);
}
/* sobre o hero escuro, o header começa translúcido-escuro até o scroll edge aparecer */
.header:not(.header--solid)::before {
  background: rgba(29, 29, 31, 0.35);
}
.header--solid::before {
  background: rgba(251, 251, 253, 0.8);
}
.header--solid {
  border-bottom-color: var(--border);
}
.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.header:not(.header--solid) .logo { color: var(--white); }
.logo__mark { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.logo__mark svg { width: 100%; height: 100%; }

.nav { display: flex; align-items: center; gap: var(--space-4); }
.nav__list { display: flex; gap: var(--space-3); }
.nav__link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 8px 2px;
  touch-action: manipulation;
}
.header:not(.header--solid) .nav__link { color: rgba(255, 255, 255, 0.92); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--accent); }
  .header:not(.header--solid) .nav__link:hover { color: var(--white); }
}
.nav__cta { white-space: nowrap; }

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}
.header__toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out); }
.header:not(.header--solid) .header__toggle span { background: var(--white); }

/* ---------- 5. HERO — seção de impacto, quase-preta ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-6)) 0 var(--space-7);
  overflow: hidden;
  background: var(--bg-dark);
}
.hero__content { position: relative; z-index: 2; color: var(--text-on-dark); max-width: 760px; }

/* ---------- VÍDEO DE FUNDO EM LOOP — hero, simulador, contato (2026-09-29)
   ver specs/design.md, seção "Vídeo de fundo em loop". Reutilizável: cada
   seção só precisa de um .section-video com dois <video id="prefixoA/B">
   dentro — initSectionVideo(prefixo) em script.js cuida do crossfade. ---------- */
.section-video {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background: var(--bg-dark);
}
.section-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 900ms linear;
}
.section-video video.is-hidden { opacity: 0; }
/* scrim uniforme — garante legibilidade do texto branco independente do
   que a cena do vídeo tiver de mais claro (céu, reflexo no painel) */
.section-video::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.58) 0%, rgba(10, 14, 20, 0.72) 100%);
}

/* Entrada orquestrada: título, subtítulo, ações e selo entram em cascata
   curta quando .hero ganha .is-loaded (ver initHeroEntrance em script.js).
   Um único momento de motion não-solicitado nesta página inteira. */
.hero__title, .hero__subtitle, .hero__actions, .hero__badge {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.hero.is-loaded .hero__title { opacity: 1; transform: translateY(0); transition-delay: 60ms; }
.hero.is-loaded .hero__subtitle { opacity: 1; transform: translateY(0); transition-delay: 160ms; }
.hero.is-loaded .hero__actions { opacity: 1; transform: translateY(0); transition-delay: 260ms; }
.hero.is-loaded .hero__badge { opacity: 1; transform: translateY(0); transition-delay: 340ms; }

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: var(--space-3);
}
.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-on-dark-secondary);
  margin-bottom: var(--space-4);
  max-width: 560px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.hero__badge {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-small);
  color: var(--text-on-dark-secondary);
}

/* ---------- 6. BARRA DE PROVA ---------- */
.proof { background: var(--bg-alt); padding: var(--space-6) 0; }
.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.proof__item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.proof__number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-number);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.proof__number--pending { font-size: 1.4rem; font-weight: 500; opacity: 0.9; }
.proof__label { color: var(--text-secondary); font-size: var(--fs-small); }
@media (min-width: 1024px) {
  .proof__grid { grid-template-columns: repeat(4, 1fr); }
  .proof__item:not(:first-child) { padding-left: var(--space-4); border-left: 1px solid var(--border); }
}

/* ---------- 7. DOR — lista tipográfica, sem card ---------- */
.pain { padding: var(--space-section) 0; background: var(--bg); }
.pain-list { display: flex; flex-direction: column; }
.pain-list__item {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}
.pain-list__item:last-child { border-bottom: 1px solid var(--border); }
.pain-list__item h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.pain-list__item p { color: var(--text-secondary); margin: 0; }

/* ---------- 8. COMO FUNCIONA — cards escuros ---------- */
.how { padding: var(--space-section) 0; background: var(--bg-alt); }
.how-steps { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
.how-card {
  background: var(--bg-dark);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* opacity incluída aqui de propósito (correção 2026-09-29): esta regra
     define "transition" (shorthand) de novo, depois de [data-reveal] no
     arquivo — com a mesma especificidade, ela vence por completo e
     descartava a transição de opacity do reveal (o card aparecia com um
     "pulo" seco em vez de esmaecer). */
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .how-card:hover { transform: translateY(-4px); }
}
.how-card__icon {
  width: 40px; height: 40px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  flex: 0 0 auto;
}
.how-card__icon svg { width: 100%; height: 100%; }
.how-card__step {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-on-dark-secondary);
}
.how-card h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }
.how-card p { color: var(--text-on-dark-secondary); margin: 0; font-size: 0.95rem; line-height: 1.55; }
@media (min-width: 768px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .how-steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 9. PROJETOS — placeholders (sem fotos reais neste template) ---------- */
.projects { padding: var(--space-section) 0; background: var(--bg); }
.projects__filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-4); }
.filter__btn {
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  padding: 9px 18px;
  font-family: var(--font-text);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  min-height: 40px;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
  touch-action: manipulation;
}
.filter__btn.is-active { background: var(--text); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .filter__btn:not(.is-active):hover { border-color: var(--accent); }
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
.project__card {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: var(--radius-card-sm);
  overflow: hidden;
  cursor: pointer;
  /* opacity incluída de propósito — mesma correção do .how-card acima:
     sem isso a transição de opacity do [data-reveal] era descartada. */
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .project__card:hover { transform: translateY(-4px); }
}
.project__card:active { transform: scale(0.98); }
.project__card[hidden] { display: none; }
.project__card--featured { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 767px) {
  .project__card--featured { grid-row: span 1; aspect-ratio: 16 / 9; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .project__card--featured { grid-row: span 1; aspect-ratio: 2 / 1; }
}

/* Placeholder de foto — gradiente suave na cor de acento + ícone + rótulo.
   Troque por <picture><img></picture> quando o cliente trouxer fotos reais
   (mantém a mesma classe .project__card ao redor). */
.project__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-2);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 22%, var(--bg-alt)) 0%, var(--bg-alt) 65%);
  color: var(--text-secondary);
}
.project__placeholder svg { width: 34px; height: 34px; color: var(--accent); opacity: 0.85; }
.project__placeholder span { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.01em; }

.project__tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-btn);
}
.project__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 34px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.project__caption-text { color: var(--white); font-size: 0.82rem; font-weight: 600; line-height: 1.25; }
.project__cta { color: rgba(255, 255, 255, 0.75); font-size: 0.72rem; font-weight: 500; }
@media (min-width: 768px) { .projects__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .projects__grid { grid-template-columns: repeat(5, 1fr); } }

/* ---------- 10. LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-3);
  opacity: 0;
  transition: opacity 250ms var(--ease-out), background-color 250ms var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; background: rgba(0, 0, 0, 0.85); }
.lightbox__figure {
  max-width: 640px; width: 100%; margin: 0;
  transform: scale(0.95);
  transition: transform 250ms var(--ease-out);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__figure img { width: 100%; border-radius: var(--radius-card); }
.lightbox__body { aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; position: relative; }
.lightbox__body .project__placeholder { position: absolute; }
.lightbox__figure figcaption { color: var(--white); text-align: center; margin-top: var(--space-3); font-size: var(--fs-body); }
.lightbox__close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  color: var(--white);
  font-size: 2rem; line-height: 1; min-width: 44px; min-height: 44px;
  touch-action: manipulation;
}

/* ---------- 11. SIMULADOR ---------- */
.simulator { position: relative; background: var(--bg-dark); padding: var(--space-section) 0; overflow: hidden; }
.simulator__content { position: relative; z-index: 1; }
.simulator__content .section-title { text-align: center; margin-bottom: var(--space-6); }
.simulator__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }

.simulator__input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  display: flex; flex-direction: column; justify-content: center;
}
.simulator__label { display: block; color: var(--text-on-dark); font-weight: 500; margin-bottom: var(--space-3); }
.simulator__range {
  width: 100%;
  accent-color: var(--accent);
  height: 4px;
  margin-bottom: var(--space-2);
  touch-action: manipulation;
}
.simulator__value-row { display: flex; align-items: center; justify-content: space-between; color: var(--text-on-dark-secondary); font-size: var(--fs-small); }
.simulator__value {
  display: flex; align-items: center; gap: 4px;
  background: var(--white); color: var(--text);
  border-radius: var(--radius-input); padding: 8px 14px;
  font-weight: 600; font-size: 1.1rem;
}
.simulator__value input {
  border: none; width: 90px; font: inherit; font-weight: 600; color: inherit;
  background: transparent; font-variant-numeric: tabular-nums;
}
.simulator__value input:focus { outline: none; }

.simulator__result {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}
.result__row { padding: var(--space-2) 0; border-bottom: 1px solid var(--border-on-dark); }
.result__row:last-of-type { border-bottom: none; }
.result__label { display: block; color: var(--text-on-dark-secondary); font-size: var(--fs-small); margin-bottom: 2px; }
.result__number {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.75rem, 2rem + 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.result__row:not(:first-child) .result__number { font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.5rem); }
.simulator__disclaimer { color: var(--text-on-dark-secondary); font-size: var(--fs-small); margin: var(--space-2) 0; }

@media (min-width: 768px) {
  .simulator__grid { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- 12. DEPOIMENTOS — citação tipográfica ---------- */
.testimonials { padding: var(--space-section) 0; background: var(--bg-alt); }
.quote-stack { display: flex; flex-direction: column; gap: var(--space-6); max-width: 700px; margin: 0 auto var(--space-3); }
.testimonials .link--subtle { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }
.quote { margin: 0; border-left: 2px solid var(--accent); padding-left: var(--space-4); }
.quote__mark { display: block; font-family: var(--font-display); font-size: 2.75rem; color: var(--accent); line-height: 0.6; margin-bottom: 8px; opacity: 0.4; }
.quote p { font-size: var(--fs-h3); font-weight: 400; color: var(--text); margin: 0 0 10px; letter-spacing: -0.01em; }
.quote footer { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--text-secondary); font-weight: 500; }

/* ---------- 13. SOBRE — sangria assimétrica, placeholder de foto ---------- */
.about { background: var(--bg); }
.about__grid { display: grid; grid-template-columns: 1fr; }
.about__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 20%, var(--bg-alt)) 0%, var(--bg-alt) 70%);
}
.about__photo .project__placeholder { position: absolute; background: none; }
.about__text {
  padding: var(--space-section) var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.about__text .section-title { margin-bottom: var(--space-3); text-align: left; }
.about__text p { color: var(--text-secondary); max-width: 56ch; }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 1.15fr 0.85fr; min-height: 600px; }
  .about__photo { aspect-ratio: auto; }
  .about__text { padding: var(--space-6) var(--space-6) var(--space-6) var(--space-4); max-width: 600px; justify-content: center; }
}

/* ---------- 14. FAQ — accordion fluido (grid-rows, interruptível) ---------- */
.faq { padding: var(--space-section) 0; background: var(--bg-alt); }
.faq__inner { max-width: 700px; margin: 0 auto; }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%;
  text-align: left;
  padding: var(--space-3) 0;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  touch-action: manipulation;
}
.accordion__trigger::after {
  content: '';
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 300ms var(--ease-in-out);
}
.accordion__trigger[aria-expanded="true"]::after { transform: rotate(-135deg); }
/* grid-template-rows 0fr→1fr: anima a altura sem medir scrollHeight em JS,
   funciona com conteúdo de tamanho variável e é interruptível (CSS
   transition, não keyframe) — ver emil-design-eng. */
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms var(--ease-in-out);
}
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; min-height: 0; }
.accordion__panel p { color: var(--text-secondary); padding-bottom: var(--space-3); margin: 0; }

/* ---------- 15. CONTATO ---------- */
.contact { position: relative; background: var(--bg-dark); padding: var(--space-section) 0; overflow: hidden; }
.contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.contact .section-title { margin-bottom: var(--space-4); text-align: left; }
.contact__form { display: flex; flex-direction: column; gap: var(--space-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { color: var(--text-on-dark); font-size: 0.9rem; font-weight: 500; }
.field input {
  padding: 12px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-on-dark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  min-height: 44px;
}
.field input::placeholder { color: var(--text-on-dark-secondary); }
.contact__info-col { color: var(--text-on-dark); }
.contact__info-item { margin-bottom: var(--space-3); }
/* --text-on-dark, não --accent: nesse tamanho pequeno (0.9rem) o azul de
   acento sobre --bg-dark fica ~3.6:1 — passa componente de UI/texto grande,
   mas não o 4.5:1 de texto normal. Acento fica reservado pra elementos
   grandes sobre fundo escuro (números do resultado, marca de citação). */
.contact__info-item h3 { font-size: 0.9rem; font-weight: 600; color: var(--text-on-dark); margin-bottom: 4px; }
.contact__info-item p { color: var(--text-on-dark-secondary); margin: 0; }
.contact__info-item a { color: var(--text-on-dark); text-decoration: underline; }
.contact__map { border-radius: var(--radius-card); overflow: hidden; margin-top: var(--space-3); aspect-ratio: 16 / 9; }
.contact__map iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 768px) {
  .contact__grid { grid-template-columns: 1.2fr 1fr; }
}

/* ---------- 16. RODAPÉ ---------- */
.footer { background: var(--bg-dark-alt); padding: var(--space-5) 0; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer .logo { color: var(--text-on-dark); margin-bottom: var(--space-2); }
.footer p { color: var(--text-on-dark-secondary); font-size: var(--fs-small); margin: 0; }
.footer a { color: rgba(255, 255, 255, 0.85); }
.footer__credit { margin-top: var(--space-2) !important; }

/* ---------- 17. BOTÃO FLUTUANTE WHATSAPP ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  z-index: 90;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--white);
  opacity: 0; transform: scale(0.9);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
  pointer-events: none;
  touch-action: manipulation;
}
.floating-whatsapp.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.floating-whatsapp:active { transform: scale(0.92); }
.floating-whatsapp svg { width: 28px; height: 28px; }

/* ===================================================================
   RESPONSIVO — mobile-first, breakpoints: 768 / 900 / 1024 / 1200
   =================================================================== */

@media (min-width: 900px) {
  .header__toggle { display: none; }
}

@media (max-width: 899px) {
  .header__toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-height); left: 0; right: 0;
    bottom: 0;
    background: rgba(251, 251, 253, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
    gap: var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; gap: var(--space-2); }
  .nav__link { color: var(--text) !important; font-size: 1.1rem; }
  .nav__cta { align-self: flex-start; }
}

@media (min-width: 1024px) {
  .proof__grid { grid-template-columns: repeat(4, 1fr); }
}
