/* =============================================================================
   Caroline Silva — Fisioterapia Domiciliar
   Folha de estilo única · mobile-first · sem dependências
   Sumário:
     1. Fontes            5. Cabeçalho / navegação   9. FAQ
     2. Tokens (:root)    6. Hero                   10. CTA final
     3. Reset + base      7. Seções de conteúdo     11. Rodapé
     4. Botões            8. Cards / passos / etc.  12. WhatsApp flutuante
                                                    13. Animações + responsivo
   ========================================================================== */

/* ---------- 1. FONTES ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/playfair-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- 2. TOKENS ---------- */
:root {
  /* superfícies */
  --bg:          #F6F2ED;   /* creme — fundo principal */
  --bg-alt:      #EAD9D2;   /* blush — seções alternadas (mais saturado p/ contraste entre seções) */
  --bg-deep:     #3D5E5A;   /* verde petróleo — rodapé e faixa CTA */
  --surface:     #FCFAF7;   /* cards sobre o creme */
  --surface-alt: #F8F1EC;   /* cards sobre o blush */

  /* texto */
  --ink:      #2E4744;   /* corpo — petróleo escurecido (~9:1 sobre --bg) */
  --ink-soft: #4B615C;   /* texto secundário (~6:1 sobre --bg, mais forte que antes) */

  /* marca */
  --brand:        #3D5E5A;  /* headings, botão primário */
  --brand-strong: #33514D;  /* hover do primário */
  --accent:       #C97C7A;  /* rosa queimado — ícones, detalhes, accents grandes */
  --accent-ink:   #9E5451;  /* rosa escuro o suficiente p/ texto (~4.9:1 sobre --bg) */
  --sage:         #A7B5A6;  /* linhas, bordas, marcas discretas */
  --sage-line:    #C9D0C6;
  --blush:        #E1B7B3;  /* badges, tags, pills */

  /* traço / foco */
  --ring: #3D5E5A;

  /* tipografia */
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* espaçamento */
  --space-2xs: .5rem;
  --space-xs:  .75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* medidas */
  --wrap:        72rem;
  --wrap-narrow: 44rem;
  --pad-inline:  clamp(1.25rem, 5vw, 2.5rem);
  --radius-card: 20px;
  --radius-sm:   12px;
  --header-h:    68px;

  /* movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: .18s;
  --dur:      .25s;
  --dur-slow: .7s;
  --dur-reveal: .4s;

  /* movimento de entrada (intensidade "elegante") */
  --reveal-y:     24px;
  --reveal-x:     28px;
  --reveal-scale: .96;

  /* sombras */
  --shadow-sm: 0 2px 8px rgba(61, 94, 90, .07);
  --shadow-md: 0 10px 30px -10px rgba(61, 94, 90, .18);
  --shadow-lg: 0 22px 50px -18px rgba(61, 94, 90, .26);

  /* vidro (glassmorfismo) */
  --glass-blur:    26px;
  --glass-blur-sm: 18px;
  --glass-sat:     180%;
  --glass-surface:        rgba(252, 250, 247, .62);  /* --surface translúcido */
  --glass-surface-strong: rgba(252, 250, 247, .85);
  --glass-surface-alt:    rgba(248, 241, 236, .68);  /* --surface-alt translúcido */
  --glass-border:      rgba(167, 181, 166, .55);  /* sage translúcido — mais presença que branco puro */
  --glass-border-soft: rgba(167, 181, 166, .35);
  --glass-shadow:    0 24px 50px -20px rgba(46, 71, 68, .38), inset 0 1px 0 rgba(255, 255, 255, .55);
  --glass-shadow-sm: 0 12px 28px -14px rgba(46, 71, 68, .30), inset 0 1px 0 rgba(255, 255, 255, .45);
}

@media (min-width: 75em) {
  :root { --header-h: 88px; }
}

/* ---------- 3. RESET + BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--brand); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus-visible { top: var(--space-sm); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

/* ---------- 4. BOTÕES ---------- */
.btn {
  --_bg: var(--brand);
  --_fg: #fff;
  --_bd: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .85rem 1.6rem;
  border: 1.5px solid var(--_bd);
  border-radius: 999px;
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
/* brilho que atravessa o botão no hover (fica sob o texto: z-index -1 + isolation) */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.34) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}
.btn--ghost::before { background: linear-gradient(110deg, transparent 30%, rgba(201,124,122,.20) 50%, transparent 70%); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:hover::before { transform: translateX(130%); }
.btn:active { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: .6rem 1.15rem; font-size: .9rem; }

.btn--primary { --_bg: var(--brand); --_fg: #fff; --_bd: var(--brand); }
.btn--primary:hover { --_bg: var(--brand-strong); --_bd: var(--brand-strong); color: #fff; }

.btn--ghost { --_bg: transparent; --_fg: var(--brand); --_bd: var(--sage); }
.btn--ghost:hover { --_fg: var(--accent-ink); --_bd: var(--accent); color: var(--accent-ink); background: rgba(201,124,122,.06); }

.btn--on-dark { --_bg: var(--bg); --_fg: var(--brand); --_bd: var(--bg); }
.btn--on-dark:hover { --_bg: #fff; --_bd: #fff; color: var(--brand); }

.btn--ghost-on-dark { --_bg: transparent; --_fg: #F6F2ED; --_bd: rgba(246,242,237,.65); }
.btn--ghost-on-dark:hover { --_bd: #F6F2ED; background: rgba(246,242,237,.12); color: #fff; }

/* ---------- 5. CABEÇALHO / NAVEGAÇÃO ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-surface);
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  background: var(--glass-surface-strong);
  box-shadow: var(--glass-shadow-sm);
  border-bottom-color: var(--glass-border-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
}
.site-header__logo { display: block; flex: 0 0 auto; }
.site-header__logo img { height: 40px; width: auto; aspect-ratio: 720 / 192; }
@media (min-width: 75em) {
  .site-header__logo img { height: 50px; }
}

.site-nav { display: contents; }
.site-nav__list {
  list-style: none;
  display: flex;
  gap: clamp(.75rem, 1.8vw, 1.6rem);
  padding: 0;
}
.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: .35rem .1rem;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav__list a:hover,
.site-nav__list a:focus-visible { color: var(--accent-ink); }
.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after { transform: scaleX(1); }
.site-nav__list a.is-active { color: var(--brand); font-weight: 600; }
.site-nav__list a.is-active::after { transform: scaleX(1); }

.site-nav__cta { flex: 0 0 auto; }
@media (min-width: 56.25em) {
  .site-nav__drawer-only { display: none; }   /* "Contato" fica só no menu mobile; o rodapé/desktop usam os mesmos 6 links */
}
/* 900–1199px: cabe inline, mas precisa de fonte/espaçamento mais compactos */
@media (min-width: 56.25em) and (max-width: 74.99em) {
  .site-header__inner { gap: var(--space-sm); }
  .site-nav__list { gap: clamp(.5rem, 1.1vw, .9rem); }
  .site-nav__list a { font-size: .84rem; }
  .site-nav__cta { padding-inline: .95rem; font-size: .84rem; }
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex: 0 0 auto;
}
.menu-toggle__bar {
  display: block;
  width: 100%; height: 2px;
  margin: 5px 0;
  background: var(--brand);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

/* --- navegação mobile --- */
@media (max-width: 56.24em) {
  .menu-toggle { display: block; }
  .site-nav {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--glass-surface-strong);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: var(--space-md) var(--pad-inline) var(--space-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out),
                visibility var(--dur);
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--sage-line); }
  .site-nav__list li:last-child { border-bottom: 0; }
  .site-nav__list a { display: block; padding: .95rem .2rem; font-size: 1.02rem; }
  .site-nav__list a::after { display: none; }
  .site-nav__cta { display: flex; width: 100%; margin-top: var(--space-md); }

  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(1.75rem, 5vw, 3.5rem) var(--section-y);
  background: var(--bg);
}
/* camada de fundo: foto + véu creme; sobe/desce levemente com o scroll (parallax via JS) */
.hero__bg {
  position: absolute;
  inset: -60px 0;
  z-index: -1;
  /* véu creme em degradê: mais forte atrás do texto (topo), mais leve embaixo, onde a foto da Caroline
     já tem o próprio fundo. Valores validados pelo pior pixel da imagem sob o texto (ver eyebrow abaixo) —
     mínimo 4,5:1 em todos os textos do hero. */
  background:
    linear-gradient(180deg, rgba(246,242,237,.55) 0%, rgba(246,242,237,.44) 62%, rgba(246,242,237,.20) 100%),
    url('/assets/img/hero-bg-mobile.webp') center / cover no-repeat;
  will-change: transform;
}
@media (min-width: 64em) {
  .hero__bg {
    /* texto à esquerda: véu um pouco mais forte; à direita (foto da Caroline): véu leve, a sala aparece bem */
    background:
      linear-gradient(90deg, rgba(246,242,237,.55) 0%, rgba(246,242,237,.45) 45%, rgba(246,242,237,.28) 70%, rgba(246,242,237,.20) 100%),
      url('/assets/img/hero-bg-desktop.webp') center / cover no-repeat;
  }
}
/* blobs de cor flutuando devagar (só transform → composto na GPU) */
.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__bg::before {
  width: 72rem; height: 48rem;
  right: -30rem; top: -14rem;
  background: radial-gradient(closest-side, rgba(225,183,179,.30), transparent);
  animation: blob-drift-a 26s ease-in-out infinite alternate;
}
.hero__bg::after {
  width: 60rem; height: 48rem;
  left: -26rem; top: 22%;
  background: radial-gradient(closest-side, rgba(167,181,166,.26), transparent);
  animation: blob-drift-b 32s ease-in-out infinite alternate;
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 64em) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
}
.hero__title { margin-bottom: var(--space-md); }
/* eyebrow no mesmo padrão dos .kicker das demais seções */
.hero__title-kicker {
  display: block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.55;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-ink) 75%, var(--ink));   /* >= 4,7:1 no pior pixel do fundo (--accent-ink puro: 4,1:1) */
  margin-bottom: var(--space-xs);
  max-width: 44ch;
}
.hero__em {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--accent-ink);
}
.hero__title-main {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.01em;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--space-lg);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__actions--center { justify-content: center; }
@media (max-width: 30em) {
  .hero__actions:not(.hero__actions--center) { flex-direction: column; align-items: stretch; }
  .hero__actions:not(.hero__actions--center) .btn { width: 100%; }
}
.hero__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin-top: var(--space-md);
}
.hero__chips li {
  background: var(--surface);
  border: 1px solid var(--sage-line);
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .4rem .95rem;
  border-radius: 999px;
}
/* foto do hero: recorte de fundo transparente sobre a moldura-casa (.hero__house) */
.hero__media {
  position: relative;
  max-width: 30rem;
  margin-inline: auto;
}
.hero__illus {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 32px rgba(46, 71, 68, .22));
}
/* moldura em forma de casa atrás dela (eco do "a sua casa" do título): corpo em degradê creme→blush→rosa,
   telhado acima da cabeça e base alinhada ao corte da foto na cintura — ela fica "dentro de casa".
   Fio fino petróleo deslocado p/ cima/direita dá profundidade; fio branco interno arremata. */
.hero__house {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
}
.hero__house-body {
  fill: url(#hero-house-fill);
  stroke: url(#hero-house-fill);
  stroke-width: 28;
  stroke-linejoin: round;
  opacity: .8;
}
.hero__house-line,
.hero__house-inner {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.hero__house-line  { stroke: var(--brand); stroke-width: 1.5px; opacity: .55; }
.hero__house-inner { stroke: rgba(255, 255, 255, .7); stroke-width: 1.25px; }

.about__photo {
  position: relative;
  padding: clamp(.75rem, 2vw, 1.25rem);
  border-radius: calc(var(--radius-card) + 10px);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}
.photo-zoom {
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}
.about__photo img {
  width: 100%;
  height: auto;
  transition: transform 1.1s var(--ease-out);
}

/* ---------- 7. SEÇÕES ---------- */
.section {
  position: relative;
  padding-block: var(--section-y);
  background:
    radial-gradient(36rem 24rem at 92% 0%,  rgba(201,124,122,.16), transparent 62%),
    radial-gradient(32rem 24rem at 0% 100%, rgba(167,181,166,.18), transparent 58%);
}
.section--alt {
  background:
    radial-gradient(36rem 24rem at 92% 0%,  rgba(201,124,122,.18), transparent 62%),
    radial-gradient(32rem 24rem at 0% 100%, rgba(167,181,166,.20), transparent 58%),
    var(--bg-alt);
}
/* seção "de peso" no meio da página: fundo verde --bg-deep, texto claro (contraste AA validado) */
.section--deep {
  background:
    radial-gradient(36rem 24rem at 92% 30%, rgba(201,124,122,.20), transparent 62%),
    radial-gradient(32rem 24rem at 0% 70%,  rgba(167,181,166,.16), transparent 58%),
    var(--bg-deep);
  color: var(--surface);
}
/* divisórias curvas entre seções (SVG inline, aria-hidden). Cada uma se sobrepõe metade ao fim da seção
   anterior e metade ao início da próxima (margem negativa, altura líquida 0); a máscara suaviza as bordas
   para não aparecer degrau contra os gradientes radiais de fundo. As cores vêm dos tokens das seções vizinhas. */
.section-divider {
  --dh: clamp(28px, 4vw, 48px);
  position: relative;
  z-index: 1;
  height: var(--dh);
  margin-block: calc(var(--dh) / -2);
  line-height: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 28%, #000 72%, transparent 100%);
}
.section-divider svg { display: block; width: 100%; height: 100%; }
.section-divider .dv-next { fill: var(--dv-to); }
.section-divider .dv-prev { fill: var(--dv-from); }
.section-divider--flip svg { transform: scaleX(-1); }
.dv--bg-alt   { --dv-from: var(--bg);      --dv-to: var(--bg-alt); }
.dv--alt-bg   { --dv-from: var(--bg-alt);  --dv-to: var(--bg); }
.dv--alt-deep { --dv-from: var(--bg-alt);  --dv-to: var(--bg-deep); }
.dv--deep-alt { --dv-from: var(--bg-deep); --dv-to: var(--bg-alt); }
.dv--bg-deep  { --dv-from: var(--bg);      --dv-to: var(--bg-deep); }

.section--deep, .site-footer { --ring: var(--surface); }   /* anel de foco claro sobre o verde */
/* --accent-ink sobre o --bg-alt (mais saturado) dá 4,0:1; misturar 20% de --ink leva a 4,6:1 sem alterar nenhum token */
.section--alt .kicker { color: color-mix(in srgb, var(--accent-ink) 80%, var(--ink)); }
.section--deep .kicker { color: var(--surface); }     /* --blush como texto pequeno sobre o verde dá só 3,9:1 */
.section--deep .section__title { color: var(--surface); }
/* coluna estreita: limita a medida do texto, mas mantém a mesma margem
   esquerda das seções largas (não centraliza o bloco) */
.section__narrow > * { max-width: var(--wrap-narrow); }
.section--center { text-align: center; margin-inline: auto; }
.section--center.section__narrow > * { margin-inline: auto; }
.section--center .hero__actions,
.section--center .pills { justify-content: center; }

.kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--space-xs);
}
.section__title {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  margin-bottom: var(--space-md);
  max-width: 24ch;
}
.section--center .section__title { max-width: none; }
.section__intro {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: var(--space-lg);
}
.section--center .section__intro { margin-inline: auto; }
.section__closing {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  max-width: 60ch;
  margin-top: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--accent);
}
.section__cta { margin-top: var(--space-lg); }

/* ---------- 8. CARDS / QUOTES / STEPS / ETC ---------- */
.cards { display: grid; gap: var(--space-md); }
.cards--3 { grid-template-columns: 1fr; }
@media (min-width: 40em)  { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em)  { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--glass-surface-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  box-shadow: var(--glass-shadow-sm);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  transition: transform var(--hover-dur, var(--dur)) var(--ease-out), box-shadow var(--hover-dur, var(--dur)) var(--ease-out),
              border-color var(--hover-dur, var(--dur)) var(--ease-out), background var(--hover-dur, var(--dur)) var(--ease-out);
}
.section--alt .card { background: var(--glass-surface-alt); }
.card:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow); border-color: var(--accent); }

/* tratamentos: 3 colunas no desktop, 2 no tablet (o 3º card ocupa a linha toda, nunca sozinho), 1 no mobile */
@media (min-width: 40em) and (max-width: 63.99em) {
  .cards--treatments .card:last-child { grid-column: 1 / -1; }
}
.card--treatment { --hover-dur: .2s; display: flex; flex-direction: column; }
.card--treatment:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -18px rgba(46, 71, 68, .34), inset 0 1px 0 rgba(255, 255, 255, .5);
  border-color: var(--glass-border);
}
.card--treatment .card__desc { margin-bottom: var(--space-sm); }
.card--treatment .card__for { margin-top: auto; }

.card__icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(225, 183, 179, .3);   /* --blush a 30% */
  margin-bottom: var(--space-sm);
}
.card__icon img { width: 44px; height: 44px; object-fit: contain; }
.card__title {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: .6rem;
  color: var(--brand);
}
.card__title--sm { font-family: var(--font-body); font-size: 1.06rem; letter-spacing: -.01em; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card__for {
  margin-top: var(--space-sm);
  padding: .9rem 1.05rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  font-size: .9rem !important;
  color: var(--ink) !important;
}
.card__for span { font-weight: 600; color: var(--accent-ink); }

/* "Ver mais / Ver menos" (só no mobile e só se o texto for cortado — o botão nasce [hidden] e o JS o libera) */
.card__more {
  align-self: flex-start;
  min-height: 44px;
  margin: 0 0 var(--space-2xs);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.card__more[hidden] { display: none; }
@media (max-width: 47.99em) {
  .js .card__desc:not(.is-expanded) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
  }
}

/* link secundário para o WhatsApp, no rodapé do card */
.card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  margin-top: var(--space-2xs);
  font-size: .92rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), gap var(--dur) var(--ease-out);
}
.card__link::after {
  content: "→";
  content: "→" / "";
  color: var(--accent-ink);
}
.card__link:hover { color: var(--accent-ink); gap: .75rem; }

/* dores — balões de fala */
.quotes { list-style: none; display: grid; gap: var(--space-sm); padding: 0; }
@media (min-width: 48em) { .quotes { gap: var(--space-md); } }
.quotes--grid { align-items: start; }
@media (min-width: 40em) { .quotes--grid { grid-template-columns: repeat(2, 1fr); } }
.quote {
  position: relative;
  background: var(--glass-surface-alt);
  border: 1px solid var(--glass-border);
  border-radius: 18px 18px 18px 6px;
  padding: var(--space-md) var(--space-md) var(--space-md) 3.1rem;
  font-size: 1.02rem;
  color: var(--ink);
  box-shadow: var(--glass-shadow-sm);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}
.quote::before {
  content: "\201C";
  position: absolute;
  left: 1rem; top: .35rem;
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}
/* primeiro depoimento em destaque: fundo --brand, texto claro, aspas em --blush */
.quote.quote--featured {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--surface);
}
.quote.quote--featured::before { color: var(--blush); }
.quote.quote--featured::after {
  background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 65%);
}

/* frase ponte + CTA logo depois dos depoimentos */
.dores__bridge { margin-top: var(--space-lg); text-align: center; }
.dores__bridge-text {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
/* menos ar no fim da seção (o padding padrão de 7rem deixava um vazio grande) */
#dores { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

/* sobre */
.about__top {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
}
@media (min-width: 56em) {
  .about__top { grid-template-columns: 1.15fr .85fr; }
}
.about__bio { max-width: 65ch; }
.about__bio p { color: var(--ink-soft); line-height: 1.7; }
.about__bio p + p { margin-top: var(--space-sm); }
/* frase de destaque: Playfair itálico com barra lateral --accent (texto original, sem frase nova) */
.about__bio .about__highlight {
  margin-top: var(--space-md);
  padding-left: var(--space-md);
  border-left: 3px solid var(--accent);
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--brand);
}
.about__diff { margin-bottom: var(--space-lg); }
.pull-quote {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--brand);
  text-align: center;
  max-width: 30ch;
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 2px solid var(--sage);
}

/* como funciona — passos */
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(1.375rem - 1px);
  top: 2.9rem; bottom: 0;
  width: 2px;
  background: var(--sage);
}
.step:last-child { padding-bottom: 0; }
/* a linha da timeline se desenha e o número "pula" quando o passo entra na tela */
.js .step:not(:last-child)::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .6s var(--ease-out) .15s;
}
.js .step.is-visible:not(:last-child)::before { transform: scaleY(1); }
.js .step__num {
  scale: .5;
  transition: scale .45s cubic-bezier(.34, 1.56, .64, 1) .08s;
}
.js .step.is-visible .step__num { scale: 1; }
.step__num {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  z-index: 1;
}
.step__title { font-size: 1.12rem; font-weight: 600; margin-bottom: .3rem; }
.step p { color: var(--ink-soft); font-size: .97rem; }

/* passos sobre o verde: círculo --blush com número --brand (bold ≥18,7px = texto grande, 3,9:1 ≥ 3:1),
   título --surface e texto secundário --sage-line (4,5:1) */
.section--deep .step__num {
  background: var(--blush);
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 700;
}
.section--deep .step:not(:last-child)::before { background: rgba(201, 208, 198, .38); }
.section--deep .step__title { color: var(--surface); }
.section--deep .step p { color: var(--sage-line); }

/* desktop (≥1024px): 5 passos na horizontal, ligados por uma linha fina que passa pelos círculos */
@media (min-width: 64em) {
  .steps {
    max-width: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-md);
  }
  .step { display: block; padding-bottom: 0; }
  .step__num { margin-bottom: var(--space-sm); }
  .step:not(:last-child)::before {
    left: calc(2.75rem + .5rem);
    right: calc(.5rem - var(--space-md));
    top: calc(1.375rem - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .js .step:not(:last-child)::before { transform: scaleX(0); transform-origin: left; }
  .js .step.is-visible:not(:last-child)::before { transform: scaleX(1); }
}

/* galeria (placeholders) — carrossel */
.gallery-carousel { position: relative; }
.gallery-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-carousel__viewport::-webkit-scrollbar { display: none; }

.gallery { display: flex; gap: var(--space-md); list-style: none; padding: 0; margin: 0; }
.gallery__tile {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;   /* fotos reais são 4:5 (retrato) — corta menos que o antigo 4:3 */
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.gallery__tile img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 48em) {
  .gallery__tile { flex: 0 0 calc((100% - 2 * var(--space-md)) / 3); }
}
/* slides fora de vista ficam esmaecidos e o conteúdo menor; os visíveis "crescem" (classe via IntersectionObserver).
   O scale vai no filho, não no slide: scale direto no slide fazia o Chrome deixar de reportar o LCP da página. */
.js .gallery__tile {
  opacity: .5;
  transition: opacity .8s var(--ease-out);
}
.js .gallery__tile > * {
  scale: .9;
  transition: scale .8s var(--ease-out);
}
.js .gallery__tile.is-active { opacity: 1; }
.js .gallery__tile.is-active > * { scale: 1; }

.gallery-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass-surface-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-sm);
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
  color: var(--brand);
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.gallery-carousel__btn:hover { background: var(--glass-surface); box-shadow: var(--glass-shadow); transform: translateY(-50%) scale(1.06); }
.gallery-carousel__btn--prev { left: .6rem; }
.gallery-carousel__btn--next { right: .6rem; }
@media (min-width: 48em) {
  .gallery-carousel__btn--prev { left: 1rem; }
  .gallery-carousel__btn--next { right: 1rem; }
}
/* qualificações */
.creds { list-style: none; padding: 0; display: grid; gap: var(--space-xs); }
@media (min-width: 40em) {
  .creds { display: block; column-count: 2; column-gap: var(--space-sm); }
}
.cred {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .6rem;
  background: var(--glass-surface-strong);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: .65rem var(--space-sm);
  box-shadow: var(--glass-shadow-sm);
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
}
@media (min-width: 40em) {
  .cred { margin-bottom: var(--space-xs); break-inside: avoid; }
}
.cred__year {
  flex: 0 0 auto;
  color: var(--accent-ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cred p { flex: 1 1 14rem; min-width: 0; color: var(--ink); font-size: .92rem; }

/* pills */
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin-bottom: var(--space-md); }
.pill {
  background: rgba(225, 183, 179, .55);
  color: var(--brand-strong);
  font-size: .9rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
}
.pill--muted { background: rgba(255, 255, 255, .25); border: 1.5px solid var(--sage); color: var(--ink-soft); }

/* ---------- 9. FAQ ---------- */
.faq { display: grid; gap: var(--space-xs); }
.faq__item {
  background: var(--glass-surface-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}
.section--alt .faq__item { background: var(--glass-surface-alt); }
.faq__item:has(.faq__q[aria-expanded="true"]) { border-color: var(--accent); box-shadow: var(--glass-shadow-sm); }
.faq h3 { margin: 0; font-family: var(--font-body); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1.15rem var(--space-md);
  min-height: 56px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.4;
}
.faq__q:hover { color: var(--accent-ink); }
/* o card tem overflow:hidden (abre/fecha em altura), que cortava o anel de foco padrão: desenha o anel para dentro */
.faq__q:focus-visible {
  outline-offset: -3px;
  border-radius: var(--radius-sm);
}
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px; height: 20px;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
/* abertura animada em altura (0fr → 1fr); visibility tira o conteúdo fechado da árvore de acessibilidade */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  color: var(--ink-soft);
  font-size: .97rem;
  transition: grid-template-rows .45s var(--ease-out), visibility 0s linear .45s;
}
.faq__a-inner {
  min-height: 0;
  overflow: hidden;
  padding-inline: var(--space-md);
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.faq__a p { max-width: 62ch; padding-bottom: 1.2rem; }
.faq__item:has(.faq__q[aria-expanded="true"]) .faq__a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}
.faq__item:has(.faq__q[aria-expanded="true"]) .faq__a-inner { opacity: 1; transition-delay: .12s; }
/* sem JS o accordion não abre: então as respostas ficam todas visíveis (conteúdo/SEO não dependem de script) */
html:not(.js) .faq__a { grid-template-rows: 1fr; visibility: visible; }
html:not(.js) .faq__a-inner { opacity: 1; }

/* ---------- 10. CTA FINAL ---------- */
.cta-final {
  background: var(--bg-deep);
  padding-block: var(--section-y);
  text-align: center;
}
.cta-final__panel {
  display: inline-block;
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 3rem);
  border-radius: calc(var(--radius-card) + 6px);
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}
.cta-final__panel h2 {
  color: var(--brand);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  max-width: 22ch;
  margin: 0 auto var(--space-sm);
}
.cta-final__panel p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 auto var(--space-lg);
}

/* ---------- 11. RODAPÉ ---------- */
.site-footer {
  background: var(--bg-deep);
  color: rgba(246,242,237,.82);
  padding-top: var(--section-y);
  padding-bottom: 5.5rem;   /* espaço para o botão flutuante do WhatsApp */
  font-size: .93rem;
}
.site-footer__grid {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}
@media (min-width: 48em) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr; gap: var(--space-xl); }
}
.site-footer__brand img { height: 92px; width: auto; aspect-ratio: 760 / 355; margin-bottom: var(--space-sm); }
.site-footer__brand p { max-width: 34ch; color: rgba(246,242,237,.80); }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(246,242,237,.82);
  margin-bottom: var(--space-sm);
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.site-footer a {
  color: rgba(246,242,237,.82);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.site-footer__legal {
  border-top: 1px solid rgba(246,242,237,.16);
  padding-block: var(--space-md);
  font-size: .84rem;
  color: rgba(246,242,237,.82);
}

/* ---------- 12. WHATSAPP FLUTUANTE ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass-surface-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-sm);
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.wa-float__icon { width: 34px; height: auto; }
.wa-float__label { display: none; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: wa-pulse 2.6s var(--ease-out) infinite;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); background: var(--glass-surface); box-shadow: var(--glass-shadow); }
@media (min-width: 64em) {
  .wa-float { width: 62px; height: 62px; }
  .wa-float__icon { width: 38px; }
}

/* mobile: pílula "Agendar avaliação" (fundo --brand, texto --surface, ícone à esquerda) */
@media (max-width: 47.99em) {
  .wa-float {
    width: auto; height: 52px;
    grid-auto-flow: column;
    gap: .55rem;
    padding: 0 1.15rem 0 .8rem;
    border-radius: 999px;
    background: var(--brand);
    border-color: rgba(255, 255, 255, .28);
    color: var(--surface);
    box-shadow: 0 10px 24px -8px rgba(46, 71, 68, .55);
  }
  .wa-float, .wa-float:hover { color: var(--surface); text-decoration: none; }
  .wa-float:hover { background: var(--brand-strong); }
  .wa-float::after { display: none; }
  .wa-float__icon { width: 30px; }
  .wa-float__label {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
  }
}

/* ---------- 13. ANIMAÇÕES + RESPONSIVO ---------- */
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes blob-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4rem, 3rem, 0) scale(1.14); }
}
@keyframes blob-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(5rem, -2.5rem, 0) scale(.92); }
}
@keyframes wa-wiggle {
  0%, 84%, 100% { rotate: 0deg; }
  87% { rotate: -14deg; }
  90% { rotate: 12deg; }
  93% { rotate: -8deg; }
  96% { rotate: 4deg; }
}
.wa-float__icon { transform-origin: 50% 60%; animation: wa-wiggle 7s ease-in-out 3s infinite; }

/* barra de progresso de leitura (largura via JS: scaleX) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- 14. MOVIMENTO: ENTRADAS (reveal on scroll) ----------
   Só entra em cena quando há JS (classe .js definida no <head>); sem JS tudo aparece.
   Usa as propriedades individuais translate/scale (e não transform), para que o
   hover dos componentes continue livre para usar transform. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 var(--reveal-y);
  transition:
    opacity   var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
    translate var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
    scale     var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}

/* variantes por contexto: texto do hero entra pela esquerda, foto pela direita, etc. */
.js .hero__body [data-reveal],
.js .about__bio[data-reveal] { translate: calc(var(--reveal-x) * -1) 0; }
.js .hero__media[data-reveal],
.js .about__photo[data-reveal] { translate: var(--reveal-x) 0; scale: .97; }
.js .step[data-reveal] { translate: -20px 0; }
@media (min-width: 64em) { .js .step[data-reveal] { translate: 0 var(--reveal-y); } }   /* passos na horizontal: sobem em vez de entrar de lado */
.js .gallery-carousel[data-reveal] { scale: .97; }
.js .card[data-reveal],
.js .quote[data-reveal],
.js .cred[data-reveal],
.js .faq__item[data-reveal] { scale: var(--reveal-scale); }

/* componentes com hover próprio: junta as transições de entrada + hover (só a entrada usa o delay em cascata) */
.js .card[data-reveal],
.js .quote[data-reveal],
.js .cred[data-reveal],
.js .faq__item[data-reveal] {
  transition:
    opacity   var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
    translate var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
    scale     var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--hover-dur, var(--dur)) var(--ease-out),
    box-shadow var(--hover-dur, var(--dur)) var(--ease-out),
    border-color var(--hover-dur, var(--dur)) var(--ease-out),
    background var(--hover-dur, var(--dur)) var(--ease-out);
}

.js [data-reveal].is-visible { opacity: 1; translate: none; scale: none; will-change: auto; }

/* conteúdo que já está na tela no carregamento (hero) NUNCA começa escondido: fica opaco desde o 1º frame
   e faz só um deslize curto por animação (opacity 1), o que também protege o LCP */
.js .hero [data-reveal] { opacity: 1; translate: none; scale: none; will-change: auto; transition: none; }
@keyframes hero-in   { from { translate: 0 14px; } to { translate: 0 0; } }
@keyframes hero-in-r { from { translate: 18px 0; } to { translate: 0 0; } }
.js .hero__body > * { animation: hero-in .4s var(--ease-out) both; }
.js .hero__body > :nth-child(2) { animation-delay: 60ms; }
.js .hero__body > :nth-child(3) { animation-delay: 120ms; }
.js .hero__body > :nth-child(4) { animation-delay: 180ms; }
.js .hero__media { animation: hero-in-r .4s var(--ease-out) 80ms both; }

/* elementos que já estavam na tela quando o JS iniciou: aparecem sem transição (classe .reveal-now, removida em seguida) */
.js .reveal-now,
.js .reveal-now .w__i,
.js .reveal-now .step__num,
.js .reveal-now.step::before { transition: none !important; }

/* títulos (h2): cada palavra sobe de dentro de uma máscara; o h2 em si não anima (JS injeta .w/.w__i) */
.js [data-split][data-reveal] { opacity: 1; translate: none; }
.js .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .16em;
  margin-bottom: -.16em;
}
.js .w__i {
  display: inline-block;
  translate: 0 115%;
  transition: translate .5s var(--ease-out) calc(min(var(--i, 0), 6) * 45ms + var(--reveal-delay, 0ms));
}
.js .is-visible .w__i { translate: 0 0; }

/* ---------- 15. MOVIMENTO: HOVER (só em dispositivos com mouse) ---------- */
.quote, .cred {
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.card__icon img { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.gallery__tile img { transition: transform .5s var(--ease-out); }
.site-footer ul a { display: inline-block; transition: color var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out); }

/* "luz" que segue o cursor nos cards de vidro (posição via JS: --mx / --my) */
.card, .cred, .faq__item { position: relative; }
.card::after, .cred::after, .faq__item::after, .quote::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 50%), rgba(225,183,179,.36), transparent 65%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover::after, .cred:hover::after, .faq__item:hover::after, .quote:hover::after { opacity: 1; }
  .card:hover .card__icon img { transform: translateY(-3px) scale(1.12) rotate(-5deg); }
  .quote:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow); border-color: var(--accent); }
  .cred:hover { transform: translateX(5px); box-shadow: var(--glass-shadow); border-left-color: var(--accent-ink); }
  .faq__item:hover { transform: translateY(-2px); border-color: var(--sage); }
  .hero__media:hover .hero__illus,
  .about__photo:hover img { transform: scale(1.05); }
  .gallery__tile:hover img { transform: scale(1.06); }
  .site-footer ul a:hover { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; translate: none !important; scale: none !important; }
  .js .w__i, .js .step__num, .js .gallery__tile, .js .gallery__tile > * { translate: none !important; scale: none !important; opacity: 1 !important; }
  .js .step:not(:last-child)::before { transform: none !important; }
  .hero__bg { transform: none !important; }
  .js .hero__body > *, .js .hero__media { animation: none !important; }
  .hero__bg::before, .hero__bg::after, .wa-float__icon { animation: none !important; }
  .scroll-progress, .btn::before { display: none; }
  .wa-float::after { display: none; }
  .btn:hover, .card:hover, .quote:hover, .cred:hover, .faq__item:hover, .wa-float:hover,
  .hero__media:hover .hero__illus, .about__photo:hover img,
  .card:hover .card__icon img, .gallery__tile:hover img, .site-footer ul a:hover { transform: none; }
  .gallery-carousel__viewport { scroll-behavior: auto; }
}

@media print {
  .site-header, .wa-float, .site-nav, .scroll-progress, .cta-final .hero__actions { display: none; }
  .js [data-reveal] { opacity: 1; translate: none; scale: none; }
  .js .w__i, .js .step__num, .js .gallery__tile, .js .gallery__tile > * { translate: none; scale: none; opacity: 1; }
  .hero__bg { transform: none; }
}

/* Navegadores sem suporte a backdrop-filter: volta às superfícies sólidas
   já validadas em contraste (Lighthouse a11y 100), sem perder legibilidade. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .site-header.is-scrolled { background: var(--bg); }
  .site-nav { background: var(--bg); }
  .card, .cred, .faq__item, .gallery-carousel__btn { background: var(--surface); }
  .section--alt .card, .section--alt .faq__item, .quote { background: var(--surface-alt); }
  .cta-final__panel { background: #fff; }
  .pill { background: var(--blush); }
  .pill--muted { background: transparent; }
  .wa-float { background: var(--surface); }
  @media (max-width: 47.99em) { .wa-float { background: var(--brand); } }
}
