/* =========================================================
   Ana Serafim — Psicopedagogia
   Fundo · componentes · tipografia
   ========================================================= */

:root {
  /* Paleta malva: rosa + lilás misturados, tons suaves */
  --rosa-50:  #fcf7f9;
  --rosa-100: #f6e9ef;
  --rosa-200: #ead2dd;
  --rosa-400: #d4a3ba;
  --rosa-600: #a8577f;   /* botões / destaque */
  --lilas-50:  #f8f6fb;
  --lilas-100: #eee8f4;
  --lilas-200: #ddd2ea;
  --lilas-400: #b5a2cf;
  --lilas-600: #7d6a9e;
  --ameixa-700: #4d3a58;  /* títulos */
  --ameixa-900: #2f2536;  /* texto / rodapé */

  /* Tokens semânticos */
  --bg:         #fdfbfc;
  --bg-alt:     var(--lilas-50);
  --bg-rosa:    var(--rosa-50);
  --text:       var(--ameixa-900);
  --heading:    var(--ameixa-700);
  --accent:     var(--rosa-600);
  --line:       rgba(125, 106, 158, .16);
  --card:       #ffffff;
  --muted:      #6b5b72;
  --accent-ink: #8e4268;   /* hover / texto de destaque */
  --shadow:     0 10px 30px -12px rgba(77, 58, 88, .25);

  /* Tipografia */
  --f-titulo: "Fraunces", Georgia, serif;
  --f-texto:  "Nunito", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #1e1820;
    --bg-alt:  #251e2a;
    --bg-rosa: #2a1f28;
    --text:    #f3eaf7;
    --heading: #ecdcef;
    --line:    rgba(217, 203, 245, .16);
    --card:    #2b2330;
    --muted:   #c9b8cf;
    --accent-ink: #e8a9c6;
  }
}
:root[data-theme="dark"] {
  --bg:      #1e1820;
  --bg-alt:  #251e2a;
  --bg-rosa: #2a1f28;
  --text:    #f3eaf7;
  --heading: #ecdcef;
  --line:    rgba(217, 203, 245, .16);
  --card:    #2b2330;
  --muted:   #c9b8cf;
  --accent-ink: #e8a9c6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ---------- Seções: superfícies alternadas ---------- */
.sec {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 10vw, 120px) 16px;
}
.sec--base  { background: var(--bg); }
.sec--lilas { background: var(--bg-alt); }
.sec--rosa  { background: var(--bg-rosa); }

/* HERO — gradiente rosa→lilás com formas orgânicas desfocadas */
.sec--hero {
  padding-top: 128px;
  padding-bottom: clamp(120px, 14vw, 180px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(181,162,207,.45), transparent 70%),
    radial-gradient(55% 60% at 10% 90%, rgba(212,163,186,.40), transparent 70%),
    linear-gradient(160deg, var(--rosa-50) 0%, var(--rosa-100) 45%, var(--lilas-100) 100%);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sec--hero {
    background:
      radial-gradient(60% 70% at 85% 30%, rgba(125,106,158,.35), transparent 70%),
      radial-gradient(55% 60% at 10% 90%, rgba(168,87,127,.28), transparent 70%),
      linear-gradient(160deg, #241b24 0%, #2a1f2d 50%, #241f30 100%);
  }
}

/* Linhas onduladas (eco das bordas dos materiais) */
.ondas {
  position: absolute;
  left: -10%;
  bottom: -2px;
  width: 120%;
  height: 46%;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
}
.ondas path { fill: none; stroke-width: 2; stroke-linecap: round; }
.ondas .o1 { stroke: var(--rosa-400); }
.ondas .o2 { stroke: var(--lilas-400); }
.ondas .o3 { stroke: var(--rosa-200); }

/* Bolhas decorativas */
.bolha {
  position: absolute;
  z-index: -1;
  border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%;
  filter: blur(2px);
  pointer-events: none;
}
.bolha--a { width: 220px; height: 220px; top: 12%; left: -60px;
  background: radial-gradient(circle at 30% 30%, var(--rosa-200), transparent 70%); }
.bolha--b { width: 160px; height: 160px; top: 18%; right: 8%;
  background: radial-gradient(circle at 40% 40%, var(--lilas-200), transparent 70%); }

/* Seção "melhor idade" — lilás mais profundo, acolhedor */
.sec--idosos {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(212,163,186,.30), transparent 70%),
    linear-gradient(135deg, var(--lilas-100), var(--lilas-200));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sec--idosos {
    background: linear-gradient(135deg, #2a2233, #33263a);
  }
}

/* Textura sutil de pontinhos (seção materiais) */
.sec--pontos {
  background-color: var(--bg-rosa);
  background-image: radial-gradient(var(--line) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
}

/* CTA final — ameixa → rosa */
.sec--cta {
  color: #fff;
  background:
    radial-gradient(40% 70% at 90% 10%, rgba(212,163,186,.40), transparent 70%),
    linear-gradient(135deg, var(--ameixa-700) 0%, var(--lilas-600) 55%, var(--rosa-600) 100%);
  overflow: hidden;
}

/* Rodapé */
.rodape {
  background: var(--ameixa-900);
  color: #e9dcf3;
  padding: 32px 16px;
}

/* ---------- Divisores ondulados entre seções ---------- */
.divisor {
  display: block;
  width: 100%;
  height: clamp(32px, 6vw, 72px);
  margin-bottom: -1px;
}
.divisor--topo { position: absolute; top: -1px; left: 0; transform: rotate(180deg); }
.divisor--base { position: absolute; bottom: -1px; left: 0; }

/* =========================================================
   Tipografia
   ========================================================= */
body {
  font-family: var(--f-texto);
  font-size: clamp(17px, 1.1vw + 12px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; color: var(--heading); text-wrap: balance; }
h1, h2 { font-family: var(--f-titulo); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4vw + 14px, 52px); line-height: 1.12; }
h2 { font-size: clamp(26px, 2vw + 16px, 36px); line-height: 1.2; }
h3 { font-family: var(--f-texto); font-size: clamp(18px, .4vw + 16px, 20px); font-weight: 700; line-height: 1.3; }
p  { margin: 0; }
img { max-width: 100%; height: auto; }
.sobretitulo {
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink);
}
.lead { font-size: clamp(18px, .5vw + 16px, 20px); color: var(--muted); }
.centro { text-align: center; }

/* =========================================================
   Layout
   ========================================================= */
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; }
.cabeca { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); display: grid; gap: 12px; }
.cabeca.centro { margin-inline: auto; }
a { color: var(--accent-ink); }

/* =========================================================
   Botões
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1.2 var(--f-texto); text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:focus-visible { outline: 3px solid var(--lilas-400); outline-offset: 3px; }
.btn--wa { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn--wa:hover { background: var(--accent-ink); transform: translateY(-2px); }
.btn--sec { border-color: var(--accent); color: var(--accent-ink); background: transparent; }
.btn--sec:hover { background: color-mix(in srgb, var(--rosa-200) 35%, transparent); }
.btn--claro { background: #fff; color: var(--ameixa-700); }
.btn--claro:hover { background: var(--rosa-100); transform: translateY(-2px); }
.btn .ico { width: 22px; height: 22px; flex: none; }
.btn--contorno { border-color: rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn--contorno:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* =========================================================
   Header
   ========================================================= */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.marca__foto {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none;
  padding: 2px; background: linear-gradient(135deg, var(--rosa-400), var(--lilas-400));
}
.marca__nome { font: 600 19px/1.1 var(--f-titulo); }
.marca__nome small { display: block; font: 600 12px/1.3 var(--f-texto); color: var(--muted); letter-spacing: .04em; }
.menu { display: none; gap: 28px; }
.menu a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; }
.menu a:hover { color: var(--accent-ink); }
.topo__acoes { display: flex; align-items: center; gap: 8px; }
.btn-ig {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--accent-ink); border: 2px solid var(--line); text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.btn-ig:hover { background: color-mix(in srgb, var(--rosa-200) 35%, transparent); transform: translateY(-2px); }
.btn-ig:focus-visible { outline: 3px solid var(--lilas-400); outline-offset: 3px; }
.btn-ig .ico { width: 22px; height: 22px; }
.topo .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }
@media (min-width: 960px) { .menu { display: flex; } }
@media (max-width: 440px) { .topo .btn span { display: none; } .topo .btn { padding: 8px 12px; } }

/* =========================================================
   Hero
   ========================================================= */
.hero { display: grid; gap: 40px; align-items: center; }
.hero__texto { display: grid; gap: 20px; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__selos { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 4px 0 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--muted); }
.hero__selos li::before { content: "✓ "; color: var(--accent); }
.hero__foto { position: relative; justify-self: center; width: min(100%, 420px); }
.hero__foto img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%;
  border: 8px solid color-mix(in srgb, var(--card) 80%, transparent);
  box-shadow: var(--shadow);
}
.hero__etiqueta {
  position: absolute; left: -4px; bottom: 8%;
  background: var(--card); border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.3; color: var(--muted);
}
.hero__etiqueta strong { display: block; font: 600 22px/1.1 var(--f-titulo); color: var(--heading); }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr .85fr; } }

/* =========================================================
   Sobre
   ========================================================= */
.sobre { display: grid; gap: 40px; align-items: center; }
.sobre__foto img {
  display: block; width: min(100%, 360px); margin-inline: auto; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow);
  object-position: 50% 25%;
}
.sobre__texto { display: grid; gap: 18px; }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.numero {
  background: var(--bg-alt); border-radius: 18px; padding: 16px 10px; text-align: center;
  font-size: 14px; line-height: 1.35; color: var(--muted);
}
.numero strong { display: block; font: 600 24px/1.1 var(--f-titulo); color: var(--accent-ink); margin-bottom: 4px; }
@media (min-width: 900px) { .sobre { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* =========================================================
   Cards (serviços / materiais)
   ========================================================= */
.grade { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border-radius: 24px; padding: 28px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start;
  transition: transform .25s;
}
.card:hover { transform: translateY(-4px); }
.card p { color: var(--muted); font-size: 16px; }
.card__ico {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rosa-100), var(--lilas-100));
  color: var(--ameixa-700); font: 600 22px/1 var(--f-titulo);
}
.card__ico svg { width: 28px; height: 28px; }

/* =========================================================
   Público (condições)
   ========================================================= */
.condicoes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.condicoes { align-items: start; }
.dica { margin: -8px 0 18px; font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.cond {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.cond summary {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px;
  cursor: pointer; list-style: none; border-radius: 18px;
}
.cond summary::-webkit-details-marker { display: none; }
.cond summary:focus-visible { outline: 3px solid var(--lilas-400); outline-offset: 2px; }
.cond:hover, .cond[open] { border-color: var(--rosa-400); box-shadow: var(--shadow); }
.cond__seta { width: 20px; height: 20px; flex: none; margin-left: auto; color: var(--accent-ink); transition: transform .25s; }
.cond[open] .cond__seta { transform: rotate(180deg); }
.cond > p { margin: 0; padding: 0 18px 18px; font-size: 15px; line-height: 1.55; color: var(--text); }
.cond b {
  flex: none; min-width: 58px; padding: 8px 10px; border-radius: 12px; text-align: center;
  background: var(--rosa-100); color: var(--ameixa-700); font-size: 15px;
}
.cond:nth-child(even) b { background: var(--lilas-100); }
.cond span { font-size: 15px; line-height: 1.4; color: var(--muted); }
.nota { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* =========================================================
   Melhor idade
   ========================================================= */
.idosos { display: grid; gap: 32px; align-items: center; }
.idosos__texto { display: grid; gap: 18px; justify-items: start; }
.idosos__lista { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.idosos__lista li {
  display: flex; gap: 14px; align-items: flex-start;
  background: color-mix(in srgb, var(--card) 70%, transparent); border-radius: 18px; padding: 16px 18px;
}
.idosos__lista li::before {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: 8px; border-radius: 50%;
  background: var(--accent);
}
@media (min-width: 900px) { .idosos { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* =========================================================
   Materiais
   ========================================================= */
.mat { padding: 0; overflow: hidden; gap: 0; }
.mat img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.mat__corpo { padding: 20px 22px 24px; display: grid; gap: 6px; }

/* =========================================================
   Processo
   ========================================================= */
.passos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: passo; padding: 0; margin: 0; list-style: none; }
.passo { padding: 24px; border-radius: 24px; background: var(--bg-alt); display: grid; gap: 8px; align-content: start; }
.passo::before {
  counter-increment: passo; content: counter(passo);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 600 20px/1 var(--f-titulo); margin-bottom: 6px;
}
.passo p { color: var(--muted); font-size: 16px; }

/* =========================================================
   CTA final + rodapé
   ========================================================= */
.sec--cta h2 { color: #fff; }
.sec--cta .lead { color: #fff; opacity: .9; }
.cta { display: grid; gap: 20px; justify-items: center; text-align: center; max-width: 640px; margin-inline: auto; }
.cta__tel { font: 600 clamp(26px, 3vw + 12px, 36px)/1.1 var(--f-titulo); color: #fff; text-decoration: none; }
.rodape .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; }
.rodape p { opacity: .85; }
.cta__endereco {
  display: inline-flex; align-items: center; gap: 10px; text-align: left;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.35;
  padding: 10px 18px; border-radius: 16px; background: rgba(255,255,255,.12);
  transition: background .2s;
}
.cta__endereco:hover { background: rgba(255,255,255,.2); }
.cta__endereco .ico { width: 24px; height: 24px; flex: none; }
.cta__endereco small { display: block; font-size: 14px; font-weight: 700; text-decoration: underline; opacity: .9; }
.cta__botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rodape__ig { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.rodape__ig .ico { width: 16px; height: 16px; }

/* Botão flutuante WhatsApp */
.wa-flutuante {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
  transition: transform .2s;
}
.wa-flutuante:hover { transform: scale(1.06); }
.wa-flutuante svg { width: 32px; height: 32px; }

/* Botão flutuante Instagram (acima do WhatsApp) */
.ig-flutuante {
  position: fixed; right: 22px; bottom: 88px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
  transition: transform .2s;
}
.ig-flutuante:hover { transform: scale(1.06); }
.ig-flutuante .ico { width: 26px; height: 26px; }

/* Âncoras não ficam escondidas atrás do header fixo */
section[id] { scroll-margin-top: 72px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Revisão final
   ========================================================= */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bolha { opacity: .18; }
}
:root[data-theme="dark"] .bolha { opacity: .18; }

/* Contraste do texto sobre o lilás da seção melhor idade */
.sec--idosos .lead { color: var(--text); }

/* Foco visível em todos os links (navegação por teclado) */
a:focus-visible { outline: 3px solid var(--lilas-400); outline-offset: 3px; border-radius: 6px; }

/* Link "pular para o conteúdo" */
.pular {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--card); color: var(--heading); padding: 10px 16px; border-radius: 12px;
  font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
}
.pular:focus { top: 12px; }

/* Rodapé não fica escondido atrás do botão flutuante */
.rodape { padding-bottom: 156px; }
@media (min-width: 900px) { .rodape { padding-bottom: 32px; } }

/* =========================================================
   Animações (desligadas para quem prefere menos movimento)
   ========================================================= */
.topo { transition: box-shadow .3s, background .3s; }
.topo.rolou { box-shadow: 0 8px 24px -16px rgba(77, 58, 88, .45); }

@media (prefers-reduced-motion: no-preference) {

  /* Entrada do hero */
  @keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes surgir { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
  .hero__texto > * { animation: subir .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__texto > :nth-child(1) { animation-delay: .05s; }
  .hero__texto > :nth-child(2) { animation-delay: .15s; }
  .hero__texto > :nth-child(3) { animation-delay: .28s; }
  .hero__texto > :nth-child(4) { animation-delay: .4s; }
  .hero__texto > :nth-child(5) { animation-delay: .52s; }
  .hero__foto { animation: surgir 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__etiqueta { animation: subir .7s .9s cubic-bezier(.2, .7, .2, 1) both, flutuar 6s 1.6s ease-in-out infinite; }

  /* Moldura da foto respira (forma orgânica) */
  @keyframes morfar {
    0%, 100% { border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%; }
    33%      { border-radius: 54% 46% 55% 45% / 45% 55% 47% 53%; }
    66%      { border-radius: 49% 51% 44% 56% / 56% 48% 52% 44%; }
  }
  .hero__foto img { animation: morfar 14s ease-in-out infinite; }

  /* Bolhas flutuam */
  @keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
  @keyframes vagar {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(24px, -18px) rotate(12deg); }
  }
  .bolha--a { animation: vagar 16s ease-in-out infinite; }
  .bolha--b { animation: vagar 12s -4s ease-in-out infinite reverse; }

  /* Ondas balançam devagar */
  @keyframes balancar { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-40px); } }
  .ondas .o1 { animation: balancar 11s ease-in-out infinite; }
  .ondas .o2 { animation: balancar 14s -3s ease-in-out infinite reverse; }
  .ondas .o3 { animation: balancar 17s -6s ease-in-out infinite; }

  /* Revelar ao rolar (classe aplicada pelo JS) */
  .revelar {
    opacity: 0; transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--atraso, 0ms);
  }
  .revelar.visivel { opacity: 1; transform: none; }
  .card.revelar.visivel:hover { transform: translateY(-6px); transition-delay: 0ms; }

  /* Ícones dos serviços dão um "pulinho" no hover */
  @keyframes pulinho { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-5px) rotate(-6deg); } 70% { transform: translateY(0) rotate(4deg); } }
  .card:hover .card__ico { animation: pulinho .6s ease; }

  /* Imagens dos materiais aproximam no hover */
  .mat img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .mat:hover img { transform: scale(1.05); }

  /* Números dos passos acendem no hover */
  .passo::before { transition: transform .3s, box-shadow .3s; }
  .passo:hover::before { transform: scale(1.12); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 18%, transparent); }

  /* Botões: brilho passando */
  .btn--wa, .btn--claro { position: relative; overflow: hidden; }
  .btn--wa::after, .btn--claro::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-120%);
  }
  .btn--wa:hover::after, .btn--claro:hover::after { transform: translateX(120%); transition: transform .8s ease; }

  /* WhatsApp flutuante: pulso suave */
  @keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }
  @keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
  .wa-flutuante { animation: aparecer .6s 1.2s both, pulso 2.4s 2s ease-out infinite; }
  .ig-flutuante { animation: aparecer .6s 1.4s both; }

  /* Fundo do CTA se move devagar */
  @keyframes deslizar { 0%, 100% { background-position: 0% 50%, 0% 50%; } 50% { background-position: 100% 50%, 100% 50%; } }
  .sec--cta { background-size: 160% 160%, 200% 200%; animation: deslizar 18s ease-in-out infinite; }
}

/* =========================================================
   Animações extras
   ========================================================= */

/* Barra de progresso da leitura */
.progresso {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70;
  background: linear-gradient(90deg, var(--rosa-400), var(--lilas-400), var(--accent));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  pointer-events: none;
}

/* Letras e números flutuando (tema aprendizagem) */
.sec--pontos { overflow: hidden; }
.simbolos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.simbolos span {
  position: absolute; left: var(--x); top: var(--y);
  font: 600 clamp(28px, 4vw, 54px)/1 var(--f-titulo);
  color: var(--lilas-400); opacity: .28;
  rotate: var(--r);
}
.simbolos span:nth-child(even) { color: var(--rosa-400); }

/* Brilhos ao redor da foto */
.brilho {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  font-size: 22px; line-height: 1; color: var(--rosa-400); pointer-events: none;
}
.brilho:nth-of-type(2) { color: var(--lilas-400); font-size: 16px; }

/* Grifo em "do seu jeito" */
.marca-texto { position: relative; white-space: nowrap; }
.marca-texto::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; z-index: -1;
  background: linear-gradient(90deg, var(--rosa-200), var(--lilas-200));
  border-radius: 8px;
}
h1 { position: relative; isolation: isolate; }

/* Rabisco sob os títulos centralizados */
.cabeca.centro h2::after {
  content: ""; display: block; width: 96px; height: 14px; margin: 14px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 14'%3E%3Cpath d='M2 8c10-6 18 6 28 0s18-6 28 0 18 6 28 0 8-4 8-4' fill='none' stroke='%23d4a3ba' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (prefers-reduced-motion: no-preference) {

  .simbolos span { animation: boiar var(--d, 10s) ease-in-out infinite; translate: var(--px, 0) var(--py, 0); }
  .simbolos span:nth-child(2n) { animation-direction: reverse; animation-delay: -3s; }
  @keyframes boiar {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-22px) rotate(8deg); }
  }

  @keyframes piscar { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(90deg); } }
  .brilho { animation: piscar 2.6s var(--a) ease-in-out infinite; }

  /* Grifo se desenha */
  @keyframes grifar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .marca-texto::after { transform-origin: 0 50%; animation: grifar .9s 1s cubic-bezier(.6, 0, .2, 1) both; }

  /* Ondas se desenham ao abrir a página e depois balançam */
  @keyframes desenhar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .ondas path { stroke-dasharray: 1; }
  .ondas .o1 { animation: desenhar 2.4s .2s ease-out both, balancar 11s 2.6s ease-in-out infinite; }
  .ondas .o2 { animation: desenhar 2.4s .45s ease-out both, balancar 14s 2.6s ease-in-out infinite reverse; }
  .ondas .o3 { animation: desenhar 2.4s .7s ease-out both, balancar 17s 2.6s ease-in-out infinite; }

  /* Paralaxe com o mouse (variáveis vindas do JS) */
  .hero__foto img { translate: calc(var(--mx, 0) * -12px) calc(var(--my, 0) * -12px); transition: translate .4s ease-out; }
  .bolha { translate: calc(var(--mx, 0) * 26px) calc(var(--my, 0) * 26px); transition: translate .6s ease-out; }
  .sec--hero .simbolos span { --px: calc(var(--mx, 0) * 18px); --py: calc(var(--my, 0) * 18px); transition: translate .5s ease-out; }

  /* Rabisco se desenha quando o título aparece */
  .cabeca.centro.revelar h2::after { clip-path: inset(0 100% 0 0); transition: clip-path 1s .35s cubic-bezier(.6, 0, .2, 1); }
  .cabeca.centro.revelar.visivel h2::after { clip-path: inset(0 0 0 0); }

  /* Chips de condições "estalam" ao entrar */
  .cond.revelar { transform: scale(.88) translateY(14px); }
  .cond.revelar.visivel { transform: none; }
  .cond b { transition: transform .3s; }
  .cond:hover b { transform: scale(1.1) rotate(-4deg); }

  /* Números dos passos quicam ao aparecer */
  @keyframes quicar {
    0% { transform: scale(0); } 60% { transform: scale(1.18); } 80% { transform: scale(.94); } 100% { transform: scale(1); }
  }
  .passo.revelar::before { transform: scale(0); }
  .passo.revelar.visivel::before { animation: quicar .7s calc(var(--atraso, 0ms) + .25s) both; }

  /* Lista da melhor idade: bolinha pulsa */
  @keyframes bolinha { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
  .idosos__lista li.visivel::before { animation: bolinha 2.4s calc(var(--atraso, 0ms) + .6s) ease-in-out infinite; }

  /* Fotos entram com leve zoom */
  .sobre__foto.revelar img { scale: 1.06; transition: scale 1.2s cubic-bezier(.2, .7, .2, 1); }
  .sobre__foto.revelar.visivel img { scale: 1; }

  /* Cards: inclinação 3D com o mouse (JS) */
  .card { transform-style: preserve-3d; will-change: transform; }
}
@media (prefers-reduced-motion: no-preference) {
  .passo.revelar.visivel::before { transform: none; animation-fill-mode: backwards; }
  .passo.revelar.visivel:hover::before { transform: scale(1.12); }
}

/* No celular, menos símbolos atrás do texto do topo */
@media (max-width: 700px) {
  .sec--hero .simbolos span:nth-child(-n+3) { display: none; }
}

/* =========================================================
   "Como posso ajudar" — entrada animada ao rolar
   ========================================================= */
[data-entrada] { overflow: hidden; }
.serv-bolha {
  position: absolute; z-index: -1; pointer-events: none;
  border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%;
}
.serv-bolha--a { width: 340px; height: 340px; top: -80px; right: -90px;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--rosa-200) 70%, transparent), transparent 70%); }
.serv-bolha--b { width: 280px; height: 280px; bottom: -70px; left: -80px;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--lilas-200) 80%, transparent), transparent 70%); }
.palavra { display: inline-block; }
[data-entrada] .card:nth-child(1) { --c: 0; }
[data-entrada] .card:nth-child(2) { --c: 1; }
[data-entrada] .card:nth-child(3) { --c: 2; }
[data-entrada] .card:nth-child(4) { --c: 3; }
[data-entrada] .card:nth-child(5) { --c: 4; }
[data-entrada] .card:nth-child(6) { --c: 5; }
[data-entrada] .card:nth-child(7) { --c: 6; }
.grade--neuro { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
#neuro .card h3 { font-size: 20px; }
#neuro .serv-bolha--a { top: auto; bottom: -90px; right: -70px; }
#neuro .serv-bolha--b { bottom: auto; top: -60px; left: -90px; }

@media (prefers-reduced-motion: no-preference) {

  /* Cards não usam o "revelar" genérico aqui: entrada própria */
  .serv-anim .card.revelar { opacity: 1; transform: none; transition: transform .25s; }
  .serv-anim:not(.serv-on) .card,
  .serv-anim:not(.serv-on) .palavra,
  .serv-anim:not(.serv-on) .serv-bolha { opacity: 0; }
  .serv-anim:not(.serv-on) .card__ico svg * { stroke-dashoffset: 1; }
  .serv-anim .card__ico svg * { stroke-dasharray: 1; }

  /* 1. Bolhas crescem e passam a flutuar */
  @keyframes bolhaCresce { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
  .serv-on .serv-bolha--a { animation: bolhaCresce 1.4s cubic-bezier(.2, .7, .2, 1) backwards, vagar 16s 1.4s ease-in-out infinite; }
  .serv-on .serv-bolha--b { animation: bolhaCresce 1.4s .2s cubic-bezier(.2, .7, .2, 1) backwards, vagar 13s 1.6s ease-in-out infinite reverse; }

  /* 2. Título entra palavra por palavra */
  @keyframes palavraEntra {
    from { opacity: 0; transform: translateY(.7em) rotate(6deg) scale(.9); }
    to   { opacity: 1; transform: none; }
  }
  .serv-on .palavra { animation: palavraEntra .75s calc(.1s + var(--i) * .13s) cubic-bezier(.34, 1.5, .64, 1) backwards; }

  /* 3. Cards "levantam" em 3D, um de cada vez */
  @keyframes cartaEntra {
    from { opacity: 0; transform: perspective(900px) translateY(90px) rotateX(-38deg) scale(.86); }
    to   { opacity: 1; transform: perspective(900px) translateY(0) rotateX(0) scale(1); }
  }
  .serv-on .card { animation: cartaEntra 1s calc(.5s + var(--c) * .17s) cubic-bezier(.34, 1.35, .64, 1) backwards; }

  /* 4. Ícone salta e o desenho dele se traça */
  @keyframes iconeEntra {
    0%   { transform: scale(0) rotate(-120deg); }
    70%  { transform: scale(1.18) rotate(8deg); }
    100% { transform: scale(1) rotate(0); }
  }
  @keyframes traco { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .serv-on .card__ico { animation: iconeEntra .75s calc(.95s + var(--c) * .17s) cubic-bezier(.34, 1.5, .64, 1) backwards; }
  .serv-on .card__ico svg * { animation: traco 1.2s calc(1.15s + var(--c) * .17s) ease-out backwards; }

  /* 5. Título e texto do card deslizam */
  @keyframes textoEntra { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
  .serv-on .card h3 { animation: textoEntra .6s calc(1.05s + var(--c) * .17s) ease-out backwards; }
  .serv-on .card p  { animation: textoEntra .6s calc(1.18s + var(--c) * .17s) ease-out backwards; }

  /* 6. Um brilho passa por cada card no final */
  [data-entrada] .card { position: relative; overflow: hidden; }
  [data-entrada] .card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    transform: translateX(-130%);
  }
  @keyframes varrer { to { transform: translateX(130%); } }
  .serv-on .card::after { animation: varrer 1.1s calc(1.7s + var(--c) * .17s) ease-in-out forwards; }
}
@media (prefers-color-scheme: dark) {
  [data-entrada] .card::after { background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%); }
}

/* Depois da entrada, libera os efeitos de hover (pulinho, inclinação) */
.serv-fim .card, .serv-fim .card__ico, .serv-fim .card__ico svg *, .serv-fim .card h3,
.serv-fim .card p, .serv-fim .card::after, .serv-fim .palavra { animation: none; }

/* Quadrados de condições: texto entra suave ao abrir */
@media (prefers-reduced-motion: no-preference) {
  @keyframes abrirCond { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .cond[open] > p { animation: abrirCond .3s ease both; }
}

/* =========================================================
   Marca Aprimor + seção da clínica
   ========================================================= */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:root { --marca-estrela: #a8577f; --marca-onda: #d4a3ba; --marca-sub: var(--lilas-600); }

.clinica { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .clinica { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Cena: parede clara com placa de acrílico */
.clinica__placa-cena {
  position: relative; border-radius: 28px; padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 48px);
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(180deg, #f4ece9 0%, #ebe0dc 100%);
}
.clinica__placa-cena::after { /* rodapé da parede */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background: linear-gradient(180deg, #ddd0cb, #d3c4bf);
}
.placa {
  position: relative; width: min(100%, 400px); padding: 30px 28px 22px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(252,247,249,.9));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 24px 40px -18px rgba(77,58,88,.45), 0 6px 12px -6px rgba(77,58,88,.25);
  text-align: center; color: var(--ameixa-700);
}
.placa__parafuso {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #c9bcc4 60%, #a99aa3);
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.placa__parafuso:nth-child(1) { top: 12px; left: 12px; }
.placa__parafuso:nth-child(2) { top: 12px; right: 12px; }
.placa__parafuso:nth-child(3) { bottom: 12px; left: 12px; }
.placa__parafuso:nth-child(4) { bottom: 12px; right: 12px; }
.placa__marca { display: flex; align-items: center; justify-content: center; gap: 6px; }
.placa__icone { width: 76px; height: 76px; flex: none; }
.placa__nome { width: 210px; height: 84px; color: var(--ameixa-700); }
.placa__end { margin: 10px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.clinica__ana {
  position: absolute; right: 18px; bottom: 30px; width: 76px; height: 76px; border-radius: 50%;
  border: 4px solid #fff; box-shadow: var(--shadow); object-fit: cover;
}

.clinica__texto { display: grid; gap: 18px; justify-items: start; }
.clinica__lista { display: grid; gap: 14px; padding: 0; margin: 4px 0 8px; list-style: none; }
.clinica__lista li { display: flex; gap: 14px; align-items: center; }
.clinica__lista b { display: block; color: var(--heading); font-size: 17px; }
.clinica__lista span:not(.clinica__ico) { color: var(--muted); font-size: 15px; line-height: 1.4; }
.clinica__ico {
  width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--card); color: var(--accent-ink); box-shadow: 0 6px 14px -8px rgba(77,58,88,.35);
}
.clinica__ico svg { width: 22px; height: 22px; }

/* Rodapé com a marca */
.rodape .wrap { align-items: center; }
.rodape__marca { display: flex; align-items: center; gap: 4px; flex-basis: 100%;
  color: #fff; --marca-estrela: #ead2dd; --marca-onda: #ead2dd; --marca-sub: #f6e9ef; }
.rodape__icone { width: 52px; height: 52px; }
.rodape__nome { width: 150px; height: 60px; }
