/* ==========================================================================
   Dra. Gabriely Vieira · Fisioterapia domiciliar
   Ordem: tokens, base, layout, componentes, seções, utilitários
   ========================================================================== */

/* ===== Tokens ===== */

@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/GeneralSans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/GeneralSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
/* Onest (texto): local, sem Google Fonts. Fontsource 5.1.0, subconjunto latin, licença OFL */
@font-face {
  font-family: 'Onest';
  src: url('../assets/fonts/Onest-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('../assets/fonts/Onest-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Cores — fundos cinza neutro alternando claro/escuro; destaque único em verde */
  --bg: #E0E1DD;            /* fundo escuro: Em casa (problema), Como funciona, Blog, header sólido */
  --bg-alt: #F7F7F5;        /* fundo claro: hero, Atendimentos, FAQ, Sobre, casos, privacidade */
  --surface: #FFFFFF;
  --line: #C4C6C0;
  --ink: #1C1B19;
  --ink-2: #4A4640;
  --muted: #66615A;
  --accent: #2E4A3F;        /* verde de marca: único destaque (botões, foco, seleção) */
  --accent-hover: #233A31;
  --link: #3B6152;          /* links de texto: verde um pouco mais claro, para ler como verde */
  --sage: #2E4A3F;          /* casos e ênfases */
  --sage-tint: #BBD3C5;     /* verde-claro da mesma família: só o brilho atrás da foto do hero (não é destaque) */
  --on-accent: #FFFFFF;
  --on-dark: #FFFFFF;       /* base do texto no rodapé grafite (misturada ao --footer-bg) */
  --cta-bg: #2E4A3F;        /* faixa CTA = verde de marca */
  --cta-bg-hover: #233A31;
  --footer-bg: #0E0D0C;     /* rodapé grafite e véu do hero em camadas */

  /* Tipografia */
  --font-display: 'General Sans', system-ui, sans-serif; /* títulos e logotipo */
  --font-body: 'Onest', system-ui, sans-serif;

  /* ESCALA TIPOGRÁFICA (2026-11-14). Todo texto usa um destes níveis, em rem
     (respeita a letra que a pessoa escolheu no navegador). Cada nível cresce
     de forma contínua entre o celular e o desktop.        celular  desktop */
  --fs-hero:      clamp(1.95rem, .6rem + 4.4vw, 5.5rem);     /* 31  88  título do hero */
  --fs-display:   clamp(2.25rem, 1.15rem + 3.4vw, 4rem);     /* 36  64  h1 das páginas internas, manchete do Como funciona, CTA */
  --fs-titulo:    clamp(2.15rem, 1.3rem + 2.4vw, 3.25rem);   /* 34  52  h2 de seção (todos), título de artigo */
  --fs-item:      clamp(1.375rem, 1.3rem + .3vw, 1.5rem);    /* 22  24  títulos de item: casos, passos, cards do blog, h2 do artigo, nome no rodapé */
  --fs-subtitulo: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); /* 18  21  subtítulos de texto longo: privacidade, casos, h3 do artigo */
  --fs-apoio:     clamp(1.0625rem, .95rem + .55vw, 1.25rem); /* 17  20  texto de abertura: hero, Minha missão, Blog */
  --fs-corpo:     clamp(1.0625rem, 1rem + .2vw, 1.125rem);   /* 17  18  texto corrido */
  --fs-pequeno:   1rem;                                      /* 16  16  botões, frases de cards, FAQ, CTA */
  --fs-menu:      .9375rem;                                  /* 15  15  menu, botão pequeno, rótulos do rodapé */
  --fs-legenda:   .875rem;                                   /* 14  14  rodapé, datas, metadados (mínimo do site) */
  /* exceções (fora da escala, de propósito): logo (1.25rem e .75rem), links do menu
     aberto no celular (1.25rem), números do Como funciona e monograma. */
  --lh-display: .95;    /* h1 e título do hero */
  --lh-titulo: 1.05;    /* h2, manchetes, títulos de item */
  --lh-subtitulo: 1.2;  /* subtítulos */
  --lh-ui: 1.35;        /* perguntas do FAQ, listas curtas, metadados */
  --lh-compacto: 1.5;   /* textos curtos e de apoio */
  --lh-texto: 1.6;      /* texto corrido */

  /* Forma */
  --radius: 6px;
  --shadow-hover: 0 8px 24px -12px rgba(28, 27, 25, 0.18);

  /* Layout */
  --container: 1200px;
  --gutter: 16px;
  --edge: clamp(16px, 5vw, 96px); /* margem lateral do header e do hero */
  --header-h: 73px;
  /* ESCALA DE ESPAÇAMENTO (2026-11-14): margem, recuo e distância dentro das
     seções saem só daqui. Quanto mais ligadas duas coisas, menor o espaço.  celular  desktop */
  --esp-0: 4px;                              /*  4   4  detalhes: ícone e texto, pontos */
  --esp-1: 8px;                              /*  8   8  título e texto de um item */
  --esp-2: 12px;                             /* 12  12  itens pequenos, botões lado a lado */
  --esp-3: 16px;                             /* 16  16  parágrafos, itens de lista */
  --esp-4: 24px;                             /* 24  24  entre itens de um grupo */
  --esp-5: 32px;                             /* 32  32  texto e botão, blocos */
  --esp-6: clamp(32px, 26px + 1.5vw, 48px);  /* 32  48  título da seção e conteúdo, colunas */
  --esp-7: clamp(40px, 31px + 2.3vw, 64px);  /* 40  64  separações grandes */
  /* exceções (geometria de componente): recuos do botão com círculo, barras do
     botão de menu, espaço do logo e ajustes ópticos de 2px. */
  /* Espaço vertical das seções: três valores, um por função (2026-11-14) */
  --section-y: clamp(4rem, 8vw, 7rem);   /* seção de conteúdo (home e páginas internas) */
  --band-y: clamp(4rem, 9vw, 6rem);      /* faixa verde do CTA */
  --page-top: clamp(3rem, 7vw, 5rem);    /* topo da primeira seção das páginas internas, abaixo do header */
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

/* ===== Base ===== */

*,
*::before,
*::after { box-sizing: border-box; }

/* âncoras (#em-casa, #como-funciona) param abaixo do header fixo */
html { scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-corpo);
  line-height: var(--lh-texto);
  -webkit-font-smoothing: antialiased;
}


img { max-width: 100%; display: block; }
a { color: inherit; }

/* Quebra de linha: títulos com linhas equilibradas e parágrafos sem palavra sozinha no fim */
/* palavra mais larga que a tela (letra do aparelho aumentada): hifeniza em vez de passar da borda */
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
p, li { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* ===== Layout ===== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header e hero: quase a largura toda, com margem lateral proporcional à tela */
.container--wide {
  max-width: none;
  padding: 0 var(--edge);
}

/* ===== Componentes ===== */

/* Header: em todos os tamanhos, transparente sobre o hero da home e sólido
   depois de ~40px de rolagem (.is-solid, via JS). Páginas internas: sólido
   desde o topo; Sobre e Blog (.header-fade): transparente até rolar. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.site-header.is-solid,
.site-header.is-menu-open {
  background: var(--bg);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(28, 27, 25, .35);
}

/* a home começa atrás do header (o hero ocupa o topo) */
body { padding-top: 0; }

/* Páginas internas: header sólido por padrão */
body.is-inner {
  padding-top: var(--header-h);
}
body.is-inner .site-header {
  background: var(--bg);
  border-bottom-color: var(--line);
}

/* Sobre e Blog: transparente (cor da página) até rolar */
body.is-inner.header-fade {
  padding-top: 0;
}
body.is-inner.header-fade .site-header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
body.is-inner.header-fade .site-header.is-solid,
body.is-inner.header-fade .site-header.is-menu-open {
  background: var(--bg);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(28, 27, 25, .35);
}
body.is-inner.header-fade .missao {
  padding-top: calc(var(--header-h) + var(--page-top));
}
body.is-inner.header-fade .blog-page {
  padding-top: calc(var(--header-h) + var(--page-top));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-3);
  min-height: 72px;
}

/* Logotipo de texto */
.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -.015em;
}
.brand__role {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .75rem;          /* exceção à regra dos 14px: só no logo (decisão de 2026-11-14) */
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: none;
  gap: var(--esp-5);
  font-size: var(--fs-menu);
}
.nav a:not(.btn) {
  text-decoration: none;
  padding: var(--esp-2) 0;
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--accent); }

/* Botão de menu (três linhas que viram ✕). Só no celular */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.is-menu-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-menu-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.is-menu-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  /* no celular o WhatsApp fica no botão fixo e no painel do menu;
     marca + pílula + menu não cabem juntos em 360px */
  .site-header__inner > .btn--cta { display: none; }

  /* painel que desce sob o header */
  .site-header.is-menu-open .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    padding: var(--esp-1) var(--gutter) var(--esp-4);
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -24px rgba(28, 27, 25, .45);
    font-size: 1.25rem;
  }
  .site-header.is-menu-open .nav a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-menu-open .nav a[aria-current="page"] { color: var(--accent); font-weight: 500; }
  .nav__cta { margin-top: 20px; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle,
  .nav .nav__cta { display: none; } /* .nav .nav__cta vence o display do .btn */
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bar { transition: none; }
}

/* Botão fixo de WhatsApp (só no celular). Ícone oficial: Simple Icons */
.wa-float {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 24px -10px rgba(28, 27, 25, .5);
  transition: background-color .2s, opacity .2s, transform .2s;
}
.wa-float:hover { background: var(--accent-hover); }
.wa-float.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
@media (min-width: 900px) {
  .wa-float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--esp-2);
  min-height: 52px;
  padding: 0 var(--esp-4);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-pequeno);
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.btn svg { flex: none; }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.btn--small {
  min-height: 44px;
  padding: 0 var(--esp-3);
  font-size: var(--fs-menu);
}
/* Botão claro sobre a faixa CTA (verde do wireframe) */
.btn--on-accent {
  background: var(--bg);
  color: var(--cta-bg);
}
.btn--on-accent:hover {
  background: var(--surface);
  color: var(--cta-bg-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

/* CTA principal: texto + círculo com seta que troca de lado no hover */
.btn--cta {
  position: relative;
  overflow: hidden;
  gap: 0;
  width: fit-content;
  min-height: 48px;
  height: 48px;
  padding: 4px 56px 4px 24px;
  border-radius: 999px;
  transition:
    background-color .5s,
    color .5s,
    box-shadow .5s,
    padding .5s;
}
.btn--cta.btn--primary:hover,
.btn--cta.btn--primary:focus-visible,
.btn--cta.btn--on-accent:hover,
.btn--cta.btn--on-accent:focus-visible {
  background: var(--ink);
  color: var(--on-accent);
  padding: 4px 24px 4px 56px;
  box-shadow: var(--shadow-hover);
  transform: none;
}
.btn__label {
  position: relative;
  z-index: 1;
}
.btn__icon {
  position: absolute;
  top: 50%;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: right .5s, transform .5s, background-color .5s, color .5s;
}
.btn--cta:hover .btn__icon,
.btn--cta:focus-visible .btn__icon {
  right: calc(100% - 44px);
  transform: translateY(-50%) rotate(45deg);
}
.btn--primary.btn--cta .btn__icon {
  background: var(--bg);
  color: var(--accent);
}
.btn--on-accent.btn--cta .btn__icon {
  background: var(--cta-bg);
  color: var(--on-accent);
}
/* No hover: círculo claro + seta grafite, legível no botão escuro */
.btn--cta.btn--primary:hover .btn__icon,
.btn--cta.btn--primary:focus-visible .btn__icon,
.btn--cta.btn--on-accent:hover .btn__icon,
.btn--cta.btn--on-accent:focus-visible .btn__icon {
  background: var(--bg);
  color: var(--ink);
}
/* Header / compacto: mesmo efeito, círculo menor */
.btn--cta.btn--small {
  min-height: 44px;
  height: 44px;
  padding: 4px 44px 4px 16px;
  font-size: var(--fs-menu);
}
.btn--cta.btn--small:hover,
.btn--cta.btn--small:focus-visible {
  padding: 4px 16px 4px 44px;
}
.btn--cta.btn--small .btn__icon {
  width: 32px;
  height: 32px;
}
.btn--cta.btn--small:hover .btn__icon,
.btn--cta.btn--small:focus-visible .btn__icon {
  right: calc(100% - 36px);
}
@media (prefers-reduced-motion: reduce) {
  .btn--cta,
  .btn__icon {
    transition: background-color .2s, color .2s, box-shadow .2s;
  }
  .btn--cta:hover,
  .btn--cta:focus-visible {
    padding: 4px 56px 4px 24px;
  }
  .btn--cta.btn--small:hover,
  .btn--cta.btn--small:focus-visible {
    padding: 4px 44px 4px 16px;
  }
  .btn--cta:hover .btn__icon,
  .btn--cta:focus-visible .btn__icon {
    right: 4px;
    transform: translateY(-50%);
  }
}

/* Link de texto: verde da marca (verde = clicável), com sublinhado e seta */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-1);
  min-height: 44px;
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color .2s;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateY(2px); }
.link-arrow--right:hover svg { transform: translateX(3px); }

/* Título de seção (h2): o mesmo tamanho em todas as seções.
   Só o alinhamento muda: à esquerda em seção de duas colunas, centralizado em galeria */
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  /* abaixo da manchete do how (4rem) e do CTA */
  font-size: var(--fs-titulo);
  line-height: var(--lh-titulo);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.section-title em { font-style: italic; }

/* Título de página (h1 de Sobre, Blog, etc.): um tamanho só entre páginas internas */
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

/* ===== Seções ===== */

/* --- Hero --- */
/* Fundo claro de ponta a ponta. A foto da Gabriely (recorte sem fundo) fica à direita,
   assentada na base, com um brilho verde-claro atrás que funciona como moldura.
   Texto à esquerda; uma linha fina separa o título do subtítulo. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  /* celular: tela inteira, texto em cima e foto embaixo */
  min-height: max(720px, 100svh);
  background:
    radial-gradient(circle at 50% 86%, var(--sage-tint) 0%, var(--sage-tint) 18%, transparent 50%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.hero > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  padding-top: calc(var(--header-h) + var(--esp-3));
}
.hero__photo {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.hero__photo img {
  display: block;
  width: auto;
  max-width: none;
  height: min(48svh, 104vw);
}
.hero__content {
  position: relative;
  text-align: left;
  max-width: 48rem;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  /* pico da página: acima da manchete do how (4rem) */
  font-size: var(--fs-hero);
  line-height: var(--lh-display);
  letter-spacing: -.015em;
}
/* duas linhas fixas ("em casa" sempre na primeira). No computador a linha nunca quebra;
   no celular ela pode quebrar, para não ser cortada se a letra do aparelho for maior */
.hero__line {
  display: block;
}
@media (min-width: 900px) {
  .hero__line { white-space: nowrap; }
}
.hero__destaque {
  color: var(--cta-bg);
  font-style: italic;
}
.hero__text {
  margin: var(--esp-4) 0 0;
  padding-top: var(--esp-4);
  border-top: 1px solid var(--line);
  max-width: 34rem;
  color: var(--ink-2);
  font-size: var(--fs-apoio);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--esp-2) var(--esp-5);
  margin-top: var(--esp-6);
}

/* celular: a foto entra depois do texto (no fluxo), assentada na base. Com a letra
   do aparelho aumentada, o hero cresce em vez de o texto passar por cima da foto */
@media (max-width: 899px) {
  .hero { flex-direction: column; }
  .hero__photo { position: relative; order: 1; margin-top: auto; }
}

@media (min-width: 900px) {
  .hero {
    min-height: 100svh;
    /* brilho concentrado atrás da foto; some antes de chegar ao título */
    background:
      radial-gradient(circle at 72% 60%, var(--sage-tint) 0%, var(--sage-tint) 15%, transparent 38%),
      radial-gradient(ellipse 42% 85% at 90% 55%, color-mix(in srgb, var(--sage-tint) 55%, var(--bg-alt)) 0%, transparent 100%),
      var(--bg-alt);
  }
  .hero > .container {
    justify-content: center;
    padding-top: var(--header-h);
  }
  .hero__content {
    max-width: 46rem;
    padding: var(--esp-7) 0;
  }
  .hero__text {
    margin-top: var(--esp-5);
    padding-top: var(--esp-5);
  }
  .hero__photo {
    left: auto;
    right: clamp(16px, 5vw, 96px);
  }
  .hero__photo img { height: min(calc(100svh - 110px), 58vw, 880px); }
}

/* Entrada do hero.
   Título: reveal por palavra, preset "fade-in-blur" do componente TextReveal
   (cada palavra: 0,3 s; intervalo entre palavras: 0,05 s / 1,2 = ~0,042 s) */
.reveal-word { display: inline-block; }
.hero.is-playing .reveal-word {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px);
  animation: word-in .3s cubic-bezier(0, 0, .58, 1) forwards;
  animation-delay: calc(.1s + var(--i) * .042s);
}

/* Subtítulo e botões sobem em sequência logo depois do título */
.hero.is-playing .hero__content > :not(.hero__title) {
  opacity: 0;
  transform: translateY(16px);
  animation: rise .6s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero.is-playing .hero__content > :nth-child(2) { animation-delay: .5s; }
.hero.is-playing .hero__content > :nth-child(3) { animation-delay: .6s; }
/* a foto sobe logo depois do título */
.hero.is-playing .hero__photo {
  opacity: 0;
  animation: rise .9s cubic-bezier(.22, 1, .36, 1) .35s forwards;
}

@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  /* o círculo do botão CTA é centralizado com transform: não zerar */
  .hero .btn__icon { transform: translateY(-50%) !important; }
}

/* --- Página Sobre --- */
/* --- Minha missão: brasão + título + parágrafo centralizados (página Sobre) --- */
.missao {
  background: var(--bg-alt);
  padding: var(--page-top) 0 var(--section-y);
}
.missao__inner {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.missao__brasao {
  display: block;
  /* versão com a palavra FISIOTERAPIA: precisa de um pouco mais de largura */
  width: clamp(96px, 16vw, 128px);
  height: auto;
  margin: 0 auto var(--esp-4);
}
.missao__title {
  margin: 0 0 var(--esp-4);
  text-align: center;
}
.missao__text {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--ink-2);
  font-size: var(--fs-apoio);
  line-height: var(--lh-compacto);
  text-wrap: pretty;
}

/* --- Sobre mim: foto à esquerda, texto à direita --- */
.sobre {
  background: var(--bg-alt);
  border-top: 1px solid var(--line); /* página interna: um tom só, linha fina entre seções */
  padding: var(--section-y) 0;
}
.sobre__grid {
  display: grid;
  gap: var(--esp-7);
}
.sobre__content { min-width: 0; }
.sobre__title {
  margin: 0 0 var(--esp-4);
  text-align: left;
}
.sobre__prose p {
  margin: 0 0 var(--esp-3);
  max-width: 58ch;
  color: var(--ink-2);
  line-height: var(--lh-texto);
  text-wrap: pretty;
}
.sobre__prose p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .sobre__grid {
    grid-template-columns: 4fr 6fr;
    align-items: start;
  }
  .sobre__photo {
    max-width: none;
    /* sobe em relação ao texto da lateral */
    margin-top: clamp(-5rem, -6vw, -2.5rem);
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
  .sobre__content {
    padding-top: var(--esp-6);
  }
}

/* --- CTA final da Sobre: duas colunas sem card (mesmo fundo claro da página) --- */
.conversa {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: var(--section-y) 0;
}
.conversa__card {
  display: grid;
  gap: var(--esp-6);
}
.conversa__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--esp-3);
  max-width: 36rem;
}
.conversa__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-titulo);
  line-height: var(--lh-titulo);
  letter-spacing: -.015em;
  text-wrap: balance;
  color: var(--ink);
}
.conversa__text {
  margin: 0;
  max-width: 36ch;
  color: var(--ink-2);
  line-height: var(--lh-texto);
  text-wrap: pretty;
}
.conversa__main .btn {
  margin-top: var(--esp-1);
}
.conversa__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--esp-3);
  justify-content: center;
}
.conversa__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--esp-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-pequeno);
  line-height: var(--lh-ui);
}
.conversa__check {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}
@media (min-width: 900px) {
  .conversa__card {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--esp-7);
  }
}

/* --- Quem é --- */
/* Seção do problema (classe .about mantida): sem foto, centralizada; título em cima,
   texto embaixo numa coluna de leitura */
.about {
  /* escuro, depois do hero claro; Atendimentos (claro) vem logo depois */
  background: var(--bg);
  padding: var(--section-y) 0;
}
.about .about__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}
.about .about__text { margin-top: clamp(24px, 3vw, 32px); }
.about .about__text p { margin-left: auto; margin-right: auto; }
.about__grid {
  display: grid;
  gap: var(--esp-7);
}

/* Foto da página Sobre (.sobre__photo) */
/* Foto: retrato 4:5. A moldura não tem fundo nem recorte (o IntersectionObserver
   precisa enxergá-la); quem aparece e anima é o conteúdo: a foto ou, sem foto
   ainda, o monograma sobre fundo neutro (classe is-empty) */
.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  border-radius: var(--radius);
}
.about__photo > * {
  display: block;
  width: 100%;
  height: 100%;
}
.about__photo img { object-fit: cover; }
.about__monogram {
  display: grid;
  place-items: center;
  background: var(--line);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 3rem + 4vw, 6rem);
  letter-spacing: -.02em;
  color: var(--ink-2);
}

.about__text { margin-top: 24px; }
.about__text p {
  margin: 0 0 var(--esp-3);
  max-width: 58ch;
  color: var(--ink-2);
  text-wrap: pretty;
}
.about__text p:last-child { margin-bottom: 0; }

.about__link { margin-top: 32px; }

@media (min-width: 900px) {
  .about__photo { max-width: none; }
}

/* Entrada da foto: mesma linguagem do conteúdo que acompanha o título (sobe 24px e
   aparece em 0,9 s). No desktop dispara junto com o título da seção e entra logo
   depois dele (--photo-delay); no celular, quando a própria foto chega à tela.
   O JS só adiciona is-waiting se puder animar; sem JS a foto aparece pronta.
   O efeito fica no conteúdo, nunca na moldura observada. */
.about__photo.is-waiting > * {
  opacity: 0;
  transform: translateY(24px);
}
.about__photo.is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--mx-ease), transform .9s var(--mx-ease);
  transition-delay: var(--photo-delay, 0s);
}

/* --- Para quem é --- */
.cases {
  /* claro: o .about (escuro) vem antes, e Como funciona (escuro) depois */
  background: var(--bg-alt);
  padding: var(--section-y) 0;
}
/* título curto e centralizado: abre a galeria sem competir com os casos */
.cases__title {
  margin-bottom: var(--esp-7);
  text-align: center;
}
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--esp-4) var(--esp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Caso: ilustração direto no fundo da página, título centralizado embaixo
   (como parte da imagem) e uma frase curta. O item todo leva à página do caso */
.case-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
}

/* Ilustração sobre um círculo verde bem claro, que unifica formatos diferentes */
.case-card__media {
  position: relative;
  width: 100%;
  max-width: 178px;
  aspect-ratio: 3 / 2;
}
.case-card__media::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sage) 14%, var(--bg-alt));
  transform: translate(-50%, -50%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
/* a imagem ocupa uma área fixa: ilustrações altas ou largas não mudam a altura */
.case-card__media img {
  position: absolute;
  inset: 4% 8%;
  width: 84%;
  height: 92%;
  object-fit: contain;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.case-card:hover .case-card__media img { transform: translateY(-4px); }
.case-card:hover .case-card__media::before { transform: translate(-50%, -50%) scale(1.06); }

.case-card__body { margin-top: 16px; }
.case-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-item);
  line-height: var(--lh-titulo);
  letter-spacing: -.01em;
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s;
}
.case-card:hover .case-card__title { text-decoration-color: currentColor; }
.case-card__text {
  margin: var(--esp-1) auto 0;
  max-width: 30ch;
  font-size: var(--fs-pequeno);
  line-height: var(--lh-compacto);
  color: var(--muted);
  text-wrap: balance;
}

/* no celular, lista: ilustração à esquerda e texto à direita, para a frase
   não quebrar palavra por palavra numa coluna estreita */
@media (max-width: 599px) {
  .cases__grid {
    grid-template-columns: 1fr;
    gap: var(--esp-4);
    max-width: 28rem;
    margin-inline: auto;
  }
  .case-card {
    flex-direction: row;
    align-items: center;
    gap: var(--esp-3);
    text-align: left;
  }
  .case-card__media {
    flex: 0 0 112px;
    max-width: 112px;
  }
  .case-card__body { margin-top: 0; }
  .case-card__text {
    margin: var(--esp-0) 0 0;
    max-width: none;
    text-wrap: pretty;
  }
}

@media (min-width: 600px) {
  .cases__grid { gap: 40px 20px; }
  .case-card__media { max-width: 180px; }
}

@media (min-width: 900px) {
  .cases__grid { gap: 48px 28px; }
  .case-card__media { max-width: 200px; }
}

/* texto de apoio abaixo dos casos, com link para o WhatsApp */
.cases__more {
  max-width: 34rem;
  margin: var(--esp-7) auto 0;
  font-size: var(--fs-pequeno);
  line-height: var(--lh-compacto);
  color: var(--ink-2);
  text-align: center;
  text-wrap: pretty;
}
.cases__more a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cases__more a:hover { color: var(--accent-hover); }

/* --- Como funciona --- */
/* Título marcante à esquerda; à direita, lista vertical: número grande
   ao lado do título + texto (referência Zumba, na paleta e tipografia do site). */
.how {
  /* escuro, depois dos Atendimentos (claro) */
  background: var(--bg);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.how__grid {
  display: grid;
  gap: var(--esp-6);
  align-items: center;
}
.how__intro {
  justify-self: start;
}
.how__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  /* manchete grande; hero fica acima (4.75rem), seções abaixo (3.25rem) */
  font-size: var(--fs-display);
  line-height: var(--lh-titulo);
  letter-spacing: -.02em;
  color: var(--ink);
}
.how__title-line {
  display: block;
  white-space: nowrap;
}
@media (max-width: 399px) {
  .how__title-line { white-space: normal; }
}
.how__steps {
  display: flex;
  flex-direction: column;
  gap: var(--esp-4);
  margin: 0;
  padding: 0;
  list-style: none;
  justify-self: end;
  width: 100%;
  max-width: 34rem;
}
.how__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--esp-2) var(--esp-3);
  align-items: start;
  margin: 0;
}
.how__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem);
  line-height: .85;
  letter-spacing: -.03em;
  color: var(--cta-bg);
  font-variant-numeric: tabular-nums;
  /* largura fixa no em do próprio número: "1" não encolhe a coluna */
  width: 0.7em;
}
.how__step-body { min-width: 0; padding-top: 4px; }
.how__step-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  /* mesma faixa do .case-card__title (h3 de lista) */
  font-size: var(--fs-item);
  line-height: var(--lh-titulo);
  letter-spacing: -.01em;
  color: var(--ink);
}
.how__step-text {
  margin: var(--esp-1) 0 0;
  max-width: 38ch;
  font-size: var(--fs-pequeno);
  line-height: var(--lh-compacto);
  color: var(--ink-2);
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .how__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--esp-7);
    /* empurra título à borda esquerda e passos à direita do container */
    padding-inline: 0;
  }
  .how__intro {
    justify-self: start;
    margin-left: 25%;
  }
  .how__steps {
    justify-self: end;
    max-width: 32rem;
    margin-right: 20%;
  }
  .how__step { gap: 14px 22px; }
  .how__step-body { padding-top: 6px; }
}

/* --- CTA estratégico --- */
.cta {
  background: var(--cta-bg);
  color: var(--on-accent);
  padding: var(--band-y) 0;
  text-align: center;
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--esp-5);
  /* sem max-width aqui: o título precisa de mais que 40rem em uma linha */
  width: 100%;
}
.cta__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--esp-3);
  width: 100%;
}
.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  /* entre section-title (3.25rem) e hero (4.75rem); no patamar da manchete do how */
  font-size: var(--fs-display);
  line-height: var(--lh-titulo);
  letter-spacing: -.015em;
  color: var(--on-accent);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .cta__title {
    white-space: normal;
    max-width: 16ch;
    text-wrap: balance;
  }
}
.cta__text {
  margin: 0;
  max-width: 38ch;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-pequeno);
  line-height: var(--lh-compacto);
  /* mais apagado que o título branco (~5,2:1 no verde do CTA; AA ok) */
  color: color-mix(in srgb, var(--on-accent) 65%, var(--cta-bg));
  text-wrap: pretty;
}
.cta .btn--on-accent:focus-visible {
  outline-color: var(--on-accent);
}

/* --- FAQ --- */
/* Split (ref. accordion FAQ): título à esquerda, perguntas à direita no desktop.
   Vanilla — sem React/shadcn. Depois do CTA verde; bloco mais denso. */
.faq {
  background: var(--bg-alt); /* claro: entre o CTA verde e o rodapé escuro, um bloco escuro pesaria demais */
  padding: var(--section-y) 0;
}
.faq__inner {
  display: grid;
  gap: var(--esp-6);
  align-items: start;
}
.faq__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--esp-2);
  max-width: 24rem;
}
.faq__title {
  /* menor que o .section-title das seções principais: FAQ é referência, não manchete */
  font-size: var(--fs-titulo);
  line-height: var(--lh-titulo);
  margin: 0;
  text-align: left;
  text-wrap: balance;
}
.faq__desc {
  margin: var(--esp-0) 0 0;
  color: var(--ink-2);
  font-size: var(--fs-pequeno);
  line-height: var(--lh-compacto);
  text-wrap: pretty;
}
.faq__list {
  margin: 0;
  padding: 0;
  min-width: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .faq__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--esp-7);
  }
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-2);
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: var(--esp-2) 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-pequeno);
  line-height: var(--lh-ui);
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.faq__trigger:hover { color: var(--accent); }
.faq__question { flex: 1; min-width: 0; text-wrap: pretty; }
.faq__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.faq__icon::before {
  width: 12px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq__icon::after {
  width: 1.5px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.faq__trigger[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq__panel {
  padding: 0 0 var(--esp-2);
}
.faq__panel[hidden] { display: none; }
.faq__panel p {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-2);
  font-size: var(--fs-pequeno);
  line-height: var(--lh-compacto);
  text-wrap: pretty;
}
.faq__panel a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq__panel a:hover { color: var(--accent-hover); }

@media (prefers-reduced-motion: reduce) {
  .faq__icon::before,
  .faq__icon::after { transition: none; }
}

/* --- Rodapé --- */
/* Layout em colunas (ref. footer-section): marca + nav + contato + redes com ícones.
   Sem newsletter/dark mode. Ícones no nosso tom, sem verde oficial do WhatsApp. */
.site-footer {
  background: var(--footer-bg);
  color: color-mix(in srgb, var(--on-dark) 70%, var(--footer-bg));
  padding: var(--esp-7) 0 0;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 8%, var(--footer-bg));
}
.site-footer__grid {
  display: grid;
  gap: var(--esp-6);
  padding-bottom: var(--esp-7);
}
.site-footer__col {
  min-width: 0;
}
.site-footer__heading {
  margin: 0 0 var(--esp-2);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-item);
  letter-spacing: -.015em;
  line-height: var(--lh-subtitulo);
}
.site-footer__label {
  margin: 0 0 var(--esp-3);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-menu);
}
.site-footer__text {
  margin: 0 0 var(--esp-1);
  max-width: 32ch;
  font-size: var(--fs-legenda);
  line-height: var(--lh-compacto);
}
.site-footer__col .btn { margin-top: 16px; }
/* Botão claro no rodapé grafite (mesmo papel do btn no CTA verde) */
.btn--on-footer {
  background: var(--bg);
  color: var(--footer-bg);
}
.btn--on-footer:hover {
  background: var(--on-dark);
  color: var(--footer-bg);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
/* No rodapé, o botão segue o padrão pílula com círculo; como o fundo já é grafite,
   no hover ele clareia em vez de escurecer */
.btn--on-footer.btn--cta .btn__icon {
  background: var(--footer-bg);
  color: var(--on-dark);
}
.btn--cta.btn--on-footer:hover,
.btn--cta.btn--on-footer:focus-visible {
  background: var(--on-dark);
  color: var(--footer-bg);
  box-shadow: var(--shadow-hover);
  transform: none;
}
.btn--cta.btn--on-footer:focus-visible { outline-color: var(--on-dark); }
.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--esp-1);
}
.site-footer__nav a,
.site-footer__address a,
.site-footer__legal a {
  color: color-mix(in srgb, var(--on-dark) 75%, var(--footer-bg));
  text-decoration: none;
  font-size: var(--fs-legenda);
  line-height: var(--lh-ui);
  transition: color .2s;
}
.site-footer__nav a:hover,
.site-footer__address a:hover,
.site-footer__legal a:hover {
  color: var(--on-dark);
}
.site-footer__address {
  margin: 0;
  font-style: normal;
  font-size: var(--fs-legenda);
  line-height: var(--lh-compacto);
}
.site-footer__address p { margin: 0 0 6px; }
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2);
  margin-top: var(--esp-3);
}
.site-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--on-dark) 22%, var(--footer-bg));
  border-radius: 999px;
  color: color-mix(in srgb, var(--on-dark) 85%, var(--footer-bg));
  background: transparent;
  transition: color .2s, border-color .2s, background-color .2s;
}
.site-footer__social-btn:hover {
  color: var(--on-dark);
  border-color: color-mix(in srgb, var(--on-dark) 45%, var(--footer-bg));
  background: color-mix(in srgb, var(--on-dark) 8%, var(--footer-bg));
}
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--esp-2);
  padding-top: var(--esp-4);
  padding-bottom: var(--esp-4);   /* só em cima e embaixo: o recuo lateral vem do .container */
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 12%, var(--footer-bg));
}
.site-footer__copy {
  margin: 0;
  font-size: var(--fs-legenda);
  color: color-mix(in srgb, var(--on-dark) 48%, var(--footer-bg));
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2) var(--esp-4);
}
.site-footer__legal a {
  font-size: var(--fs-legenda);
  color: color-mix(in srgb, var(--on-dark) 55%, var(--footer-bg));
}
.site-footer__credit {
  margin: 0;
  font-size: var(--fs-legenda);
  color: color-mix(in srgb, var(--on-dark) 55%, var(--footer-bg)); /* 6,3:1; com 42% eram 4,1:1 */
}
.site-footer__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer__credit a:hover {
  color: color-mix(in srgb, var(--on-dark) 70%, var(--footer-bg));
}

/* no celular, links do rodapé com área de toque de 44px */
@media (max-width: 767px) {
  .site-footer__nav { gap: 0; }
  .site-footer__nav a,
  .site-footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .site-footer__legal { row-gap: 0; }
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__bottom {
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: var(--esp-4);
    row-gap: var(--esp-2);
  }
  .site-footer__copy { margin-right: auto; }
}
@media (min-width: 1000px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--esp-6);
  }
}

/* --- Blog (lista: fundo claro do site; diferenciação por tipo + grade) --- */
.blog-page {
  background: var(--bg);
  padding: var(--page-top) 0 var(--section-y);
  position: relative;
  /* blog vazio: sem faixa cinza abaixo do rodapé em telas altas */
  min-height: 100svh; /* o blog usa header-fade: o recuo do header já está no padding */
}
.blog-page__inner {
  position: relative;
}
.blog-page__intro {
  margin-bottom: var(--esp-6);
  text-align: center;
}
.blog-page__title {
  margin: 0 auto var(--esp-2);
  max-width: 18ch;
}
.blog-page__lead {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--ink-2);
  font-size: var(--fs-apoio);
  line-height: var(--lh-compacto);
}
.blog-page__rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0 auto var(--esp-4);
}
.blog-empty {
  max-width: 36rem;
  padding: var(--esp-5) 0;
}
.blog-empty__title {
  margin: 0 0 var(--esp-1);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-item);
  color: var(--ink);
}
.blog-empty__text {
  margin: 0 0 var(--esp-4);
  color: var(--ink-2);
  font-size: var(--fs-corpo);
  line-height: var(--lh-compacto);
}
/* lista estática, escrita pelo gerador (ferramentas/gerar-blog.mjs) */
.blog-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--esp-4);
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--esp-2);
  padding: var(--esp-2);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease;
}
.blog-card:hover {
  background: var(--bg-alt);
}
.blog-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.blog-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.blog-card:hover .blog-card__media img {
  transform: scale(1.03);
}
/* capa ainda não salva: moldura visível no fundo do blog (--bg) */
.blog-card__media--empty {
  background: color-mix(in srgb, var(--sage) 16%, var(--bg));
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--esp-1);
  padding: 0 2px;
}
.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--esp-1) var(--esp-1);
  color: var(--muted);
  font-size: var(--fs-legenda);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: var(--lh-ui);
}
.blog-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.blog-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-item);
  line-height: var(--lh-subtitulo);
  letter-spacing: -.015em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card:hover .blog-card__title {
  color: var(--accent);
}
.blog-card__excerpt {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-pequeno);
  line-height: var(--lh-compacto);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 700px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card__media img {
    transition: none;
  }
  .blog-card:hover .blog-card__media img {
    transform: none;
  }
}

/* --- Artigo do blog --- */
.article {
  background: var(--bg);
  padding-bottom: var(--section-y);
}
.article-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--page-top) var(--gutter) 0;
}
.article-hero__head {
  max-width: 40rem;
  margin: 0 auto var(--esp-5);
  text-align: center;
}
.article__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-titulo);
  line-height: var(--lh-titulo);
  letter-spacing: -.015em;
  color: var(--ink);
}
.article__meta {
  margin: var(--esp-3) 0 0;
  font-size: var(--fs-legenda);
  color: var(--muted);
}
.article__author {
  color: var(--ink-2);
}
.article-hero__cover {
  position: relative;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.article-hero__cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 36rem);
  margin: 0 auto;
  object-fit: contain;
}
.article-wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--esp-6) var(--gutter) 0;
}
.article-prose {
  color: var(--ink-2);
  font-size: var(--fs-corpo);
  line-height: var(--lh-texto);
}
.article-prose p {
  margin: 0 0 var(--esp-3);
}
.article-prose strong {
  color: var(--ink);
  font-weight: 500;
}
.article-prose a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.article__h2,
.article-prose h2 {
  margin: var(--esp-5) 0 var(--esp-2);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-item);
  line-height: var(--lh-subtitulo);
  letter-spacing: -.015em;
  color: var(--ink);
  scroll-margin-top: 96px;
}
.article-prose h3 {
  margin: var(--esp-4) 0 var(--esp-1);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-subtitulo);
  line-height: var(--lh-subtitulo);
  color: var(--ink);
  scroll-margin-top: 96px;
}
.article-prose ul,
.article-prose ol {
  margin: 0 0 var(--esp-3);
  padding-left: var(--esp-4);
}
.article-prose li {
  margin-bottom: var(--esp-1);
}
.article-prose li::marker {
  color: var(--sage);
}
.article-prose img {
  display: block;
  width: 100%;
  margin: var(--esp-4) 0;
  border-radius: var(--radius);
}
.article__back {
  max-width: 40rem;
  margin: var(--esp-6) auto 0;
  padding: 0 var(--gutter);
}
.article__back a {
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}
.article__back a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* --- Política de privacidade / páginas legais --- */
.legal {
  background: var(--bg-alt);
  padding: var(--page-top) 0 var(--section-y);
}
.legal__inner {
  max-width: 42rem;
}
.legal__title {
  margin: 0 0 var(--esp-1);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -.015em;
  color: var(--ink);
}
.legal__updated {
  margin: 0 0 var(--esp-5);
  color: var(--muted);
  font-size: var(--fs-legenda);
}
.legal__heading {
  margin: var(--esp-5) 0 var(--esp-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-subtitulo);
  line-height: var(--lh-subtitulo);
  color: var(--ink);
}
.legal__inner > p,
.legal__list {
  margin: 0 0 var(--esp-3);
  color: var(--ink-2);
  font-size: var(--fs-corpo);
  line-height: var(--lh-texto);
}
.legal__list {
  padding-left: var(--esp-4);
}
.legal__list li {
  margin-bottom: var(--esp-1);
}
.legal__list li:last-child {
  margin-bottom: 0;
}
.legal__inner a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal__inner a:hover {
  color: var(--accent-hover);
}
.legal__closing {
  margin-top: var(--esp-5);
}

/* --- Página de caso (ex.: idosos) --- */
.case-page__body {
  background: var(--bg-alt);
  padding: var(--page-top) 0 var(--section-y);
}
.case-page__split {
  display: grid;
  gap: var(--esp-6);
  align-items: start;
}
.case-page__media {
  min-width: 0;
}
.case-page__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  /* arquivo já é 4:5 em alta resolução; evita crop ao vivo no navegador */
  aspect-ratio: 4 / 5;
}
.case-page__prose {
  max-width: 42rem;
  text-align: left;
  min-width: 0;
}
.case-page__title {
  margin: 0 0 var(--esp-6);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -.015em;
  text-wrap: balance;
  text-align: left;
  color: var(--ink);
}
.case-page__item-title {
  margin: var(--esp-5) 0 var(--esp-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-subtitulo);
  line-height: var(--lh-subtitulo);
  letter-spacing: -.01em;
  color: var(--sage);
}
.case-page__prose > .case-page__item-title:first-of-type {
  margin-top: 0;
}
.case-page__prose p {
  margin: 0 0 var(--esp-3);
  max-width: 58ch;
  color: var(--ink-2);
  font-size: var(--fs-corpo);
  line-height: var(--lh-texto);
  text-wrap: pretty;
}
.case-page__prose p:last-child {
  margin-bottom: 0;
}
.case-page__cta {
  margin-top: var(--esp-5);
}
@media (min-width: 900px) {
  .case-page__split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--esp-7);
    align-items: start;
  }
  .case-page__media {
    /* 10% à esquerda / 10% para baixo */
    transform: translate(-10%, 10%);
  }
}

/* --- Movimento ao rolar (js/motion.js) ---
   Rolagem suave (Lenis), hero em camadas, títulos com TextReveal e conteúdo
   entrando junto. Só vale com html.motion-on, que o JS põe quando pode animar;
   sem JS ou com movimento reduzido, nada fica escondido. */

/* CSS do Lenis 1.3.26 */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

:root { --mx-ease: cubic-bezier(.19, 1, .22, 1); }

/* --- 2. Hero sai em camadas: a foto fica presa, encolhe e escurece;
        o "Quem é" sobe por cima como uma folha --- */
.motion-on .hero {
  position: sticky;
  top: 0;
  z-index: 0;
}
.motion-on .hero .hero__content {
  will-change: transform;
}
.motion-on .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--footer-bg);
  opacity: var(--hero-dim, 0);
  pointer-events: none;
}
.motion-on main > section:not(.hero) {
  position: relative;
  z-index: 1;
}
.motion-on .about {
  box-shadow: 0 -24px 48px -24px rgba(14, 13, 12, .35);
}

/* --- Rodapé revelado: fica preso no fundo da tela, atrás do conteúdo,
   e a última seção sobe descobrindo-o. Só com .footer-reveal, que o JS põe
   quando o rodapé cabe na tela (até 85% da altura) --- */
.footer-marker { height: 1px; margin-top: -1px; }
.motion-on.footer-reveal main {
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 48px -24px rgba(14, 13, 12, .45);
}
.motion-on.footer-reveal main > section:last-child { position: relative; z-index: 1; }
.motion-on.footer-reveal .site-footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
}

/* --- 3. Títulos: TextReveal, preset "fade-in-blur", uma palavra por vez ---
   valores do componente: blur(12px) + opacidade 0 + 20px abaixo, 0,3 s por
   palavra, ~0,042 s entre palavras; o título (contêiner) vai de 0 a 1 junto */
.tr-word {
  display: inline-block;
  white-space: pre;
}
.motion-on .tr-title {
  opacity: 0;
  transition: opacity .3s ease-out;
}
.motion-on .tr-title .tr-word {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px);
  transition: opacity .3s ease-out, filter .3s ease-out, transform .3s ease-out;
  transition-delay: var(--d, 0s);
}
.motion-on .tr-title.is-in { opacity: 1; }
.motion-on .tr-title.is-in .tr-word {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* conteúdo que acompanha o título: entra junto, simples */
.motion-on .mx-follow {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--mx-ease), transform .9s var(--mx-ease);
  transition-delay: var(--d, .2s);
}
.motion-on .mx-follow.is-in { opacity: 1; transform: none; }

/* leitores de tela leem o título inteiro (as linhas animadas são aria-hidden) */
.mx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Página 404 --- */
/* Tela inteira no fundo claro, com o brilho verde-claro do hero atrás do número.
   O número é a única exceção à escala tipográfica. */
.pg-404 {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--esp-4);
  padding: var(--esp-6) var(--esp-4);
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, var(--sage-tint) 0%, transparent 34%),
    var(--bg-alt);
}
.pg-404 h1 { margin: 0; }
.pg-404__numero {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(8rem, 28vw, 18rem);
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--accent);
}
.pg-404 p {
  margin: 0;
  font-size: var(--fs-apoio);
  color: var(--ink-2);
}

/* ===== Utilitários ===== */

.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;
}

/* "Pular para o conteúdo": escondido até receber foco pelo teclado */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: var(--esp-2) var(--esp-3);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-pequeno);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

/* impede quebra de linha dentro de códigos como o CREFITO */
.nowrap { white-space: nowrap; }
