/* =========================================================
   Dra. Luisa Ramalho · Psiquiatra Online
   Cores: ajuste aqui quando a logo chegar
   ========================================================= */
:root {
  --bg: #F8F4EF;
  --bg-alt: #F0E8DF;
  --card: #FFFDFA;
  --ink: #23302F;
  --muted: #5C6866;
  --brand: #3F5E5A;
  --brand-dark: #2B4441;
  --brand-soft: #DDE6E2;
  --accent: #B9806C;
  --accent-soft: #F3DFD6;
  --line: #E3D9CD;
  --star: #D9A441;
  --wa: #25D366;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px;
  --sombra: 0 18px 40px -22px rgba(43, 68, 65, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--brand); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.estreito { max-width: 820px; }
.centro { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  background: var(--brand); color: #fff; text-decoration: none;
  font: 600 1rem/1.2 var(--sans);
  padding: 1rem 1.6rem; border-radius: 999px;
  box-shadow: var(--sombra);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 1.2em; height: 1.2em; }
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-lg { font-size: 1.08rem; padding: 1.15rem 1.9rem; }
.btn-sm { padding: .65rem 1.1rem; font-size: .92rem; box-shadow: none; }
.btn-claro { background: #fff; color: var(--brand-dark); }
.btn-claro:hover { background: var(--accent-soft); }

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 239, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .25s;
}
.topo.rolado { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0,0,0,.25); }
.topo-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marca-img { height: 48px; width: auto; }
.marca-img + .marca-txt { display: none; } /* com logo, some o texto */
.marca-txt { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; color: var(--brand-dark); }
.marca-txt small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.menu { display: flex; gap: 28px; }
.menu a { text-decoration: none; font-size: .95rem; color: var(--muted); font-weight: 500; }
.menu a:hover { color: var(--brand); }

/* ---------- Placeholders de foto ---------- */
.foto {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: var(--ratio, 4/5);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(63,94,90,.06) 14px 28px),
    var(--brand-soft);
  border-radius: var(--r);
}
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.foto-dica {
  position: absolute; inset: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em;
  border: 2px dashed rgba(63,94,90,.45); border-radius: inherit;
  text-align: center; font-size: .85rem; line-height: 1.5; color: var(--brand-dark); padding: 1.5rem;
}
.foto-dica b { font-size: .95rem; letter-spacing: .04em; margin-bottom: .3em; }
.arco { border-radius: 999px 999px var(--r) var(--r); }
.arco .foto-dica { border-radius: 999px 999px 12px 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -120px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  z-index: -1;
}
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 2rem; }
.prova { display: flex; align-items: center; flex-wrap: wrap; gap: .6em; margin-top: 1.4rem; font-size: .95rem; color: var(--muted); }
.prova strong { color: var(--ink); }
.prova-centro { justify-content: center; }
.estrelas { display: inline-flex; gap: 2px; color: var(--star); }
.estrelas svg { width: 1.05em; height: 1.05em; }
.selo { display: inline-flex; align-items: center; gap: .5em; margin: .9rem 0 0; font-size: .92rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: .45rem .9rem; border-radius: 999px; }
.selo svg { width: 1.15em; height: 1.15em; }
.credencial { margin: 1.4rem 0 0; font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.hero-foto { position: relative; }
.hero-badge {
  position: absolute; left: -28px; bottom: 36px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: var(--card); padding: 14px 18px; border-radius: 16px; box-shadow: var(--sombra);
  font-size: .85rem; line-height: 1.35; color: var(--muted);
}
.hero-badge b { display: block; color: var(--ink); font-size: .95rem; }
.hero-badge svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }

/* ---------- Seções ---------- */
.secao { padding: 104px 0; }
.secao-alt { background: var(--bg-alt); }
.sec-topo { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-topo p { color: var(--muted); }

/* Identificação */
#identificacao h2 { text-align: center; margin-bottom: 44px; }
.sinais { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 14px; }
.sinais li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; font-size: 1.05rem;
}
.sinal-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-top: 1px; }
.acolhe { text-align: center; background: var(--brand-soft); border-radius: var(--r); padding: 40px 32px; }
.acolhe p { font-size: 1.15rem; max-width: 36em; margin: 0 auto 1.6rem; }

/* Diferencial */
.dif-topo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.dif-topo p { color: var(--muted); font-size: 1.07rem; }
.dif-topo .destaque { color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.35rem; margin: 1.4rem 0 0; }
.pilares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pilar { background: var(--card); border-radius: var(--r); padding: 32px 26px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.pilar:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.pilar .num { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1; margin-bottom: 18px; }
.pilar p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Faixa reavaliação */
.faixa { background: var(--brand-dark); color: #EEF3F1; padding: 88px 0; position: relative; overflow: hidden; }
.faixa::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); right: -120px; top: -160px; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.02); }
.faixa-in { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; position: relative; z-index: 1; }
.faixa h2 { color: #fff; }
.faixa p { color: rgba(238, 243, 241, .82); max-width: 40em; }

/* Sobre */
.sobre-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.sobre-txt p { color: var(--muted); }
.sobre-txt blockquote {
  margin: 1.8rem 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--ink);
}
.sobre-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sobre-tags li { display: inline-flex; align-items: center; gap: .45em; font-size: .88rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: .45rem .9rem; border-radius: 999px; }

/* Depoimentos */
.depoimentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 48px; }
.depo { margin: 0; background: var(--card); border-radius: var(--r); padding: 30px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.depo blockquote { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; flex: 1; }
.depo figcaption { font-size: .88rem; color: var(--muted); }
.depo figcaption b { color: var(--ink); }
.link-google { display: block; margin-top: 1.2rem; font-size: .92rem; color: var(--brand); font-weight: 600; text-decoration: none; }
.link-google:hover { text-decoration: underline; }

/* Como funciona */
.passos { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: p; }
.passo { position: relative; padding: 36px 30px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.passo-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 22px; }
.passo-ico svg { width: 26px; height: 26px; }
.passo-n { position: absolute; top: 18px; right: 26px; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--bg-alt); }
.passo p { color: var(--muted); margin: 0; font-size: .98rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--sombra); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; color: var(--accent); transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* CTA final */
.final { background: var(--brand); color: #fff; padding: 104px 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(ellipse at center, rgba(255,255,255,.08), transparent 60%); }
.final > .wrap { position: relative; }
.final-lua { width: 44px; height: 44px; color: var(--accent-soft); margin: 0 auto 20px; display: block; }
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 36em; margin: 0 auto 2rem; }
.final .credencial { color: rgba(255,255,255,.65); margin-top: 2rem; }

/* Rodapé */
.rodape { background: #1E2F2D; color: rgba(255,255,255,.7); padding: 56px 0 120px; font-size: .9rem; }
.rodape-in { display: grid; gap: 14px; justify-items: center; text-align: center; }
.rodape .marca-txt { color: #fff; }
.rodape .marca-txt small { color: rgba(255,255,255,.55); }
.rodape a { color: #fff; }
.rodape .mini { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.8; margin: 0; }

/* Botão flutuante */
.wa-flutuante {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55);
  transition: transform .2s;
}
.wa-flutuante svg { width: 28px; height: 28px; }
.wa-flutuante:hover { transform: scale(1.05); }
.wa-flutuante::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--wa);
  z-index: -1; animation: pulso 2.4s ease-out infinite;
}
@keyframes pulso { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.35); opacity: 0; } }

/* Campos pendentes (config.js) */
.pendente { background: #FFE98A; color: #5A4500; border-radius: 4px; padding: 0 .25em; box-shadow: 0 0 0 1px #E6C84A inset; cursor: help; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visivel { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .pilares { grid-template-columns: repeat(2, 1fr); }
  .menu { display: none; }
}
@media (max-width: 860px) {
  .hero { padding: 28px 0 72px; }
  .hero-in, .dif-topo, .sobre-in, .faixa-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-foto { max-width: 420px; width: 100%; margin: 0 auto; order: -1; }
  .hero-badge { left: 8px; bottom: 20px; }
  .depoimentos, .passos { grid-template-columns: 1fr; }
  .sobre-in .foto { max-width: 420px; width: 100%; margin: 0 auto; }
  .secao { padding: 76px 0; }
  .faixa-in .btn { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero-foto, .sobre-in .foto { max-width: 320px; }
  .topo-in { height: 66px; }
  .marca-img { height: 40px; }
  .marca-txt { font-size: 1.1rem; }
  .btn-lg { width: 100%; padding: 1.05rem 1.2rem; font-size: 1rem; }
  .pilares { grid-template-columns: 1fr; }
  .acolhe { padding: 32px 20px; }
  .sinais li { padding: 16px; font-size: 1rem; }
  .wa-flutuante span { display: none; }
  .wa-flutuante { padding: 14px; right: 16px; bottom: 16px; }
  .topo .btn-sm span, .topo .btn-sm { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-flutuante::before { animation: none; }
}
