/* Dra. Esdraia Coelho – Psicanalista
   Paleta tirada do logo e das publicações dela: ameixa (texto do logo), rosé antigo,
   blush, porcelana e verde-sálvia das artes do Instagram.
   Tipografia: Marcellus (títulos, ecoa as capitulares do logo), Figtree (texto). */
:root {
  --porcelain: #FBF8F6;
  --blush: #F4E9E4;
  --rose: #B08C80;
  --rose-deep: #8E6A5F;
  --plum: #4B2C2E;
  --plum-soft: #6E4B4C;
  --muted: #7A615E;
  --sage: #A8CBC1;
  --sage-soft: #E2EFEB;
  --line: #E6D7D1;
  --white: #FFFFFF;
  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--porcelain); color: var(--plum); font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(75, 44, 46, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-solid { background: var(--plum); color: var(--porcelain); }
.btn-solid:hover { background: var(--plum-soft); }
.btn-line { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn-line:hover { background: var(--plum); color: var(--porcelain); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 246, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-monogram { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rose); display: grid; place-items: center; font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.04em; color: var(--rose-deep); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.brand-text span { font-size: 0.85rem; color: var(--muted); }
.main-nav ul { display: flex; gap: 22px; list-style: none; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 0.96rem; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.main-nav a:hover { border-color: var(--rose); }
.nav-toggle { display: none; }
.header-cta { min-height: 42px; padding: 8px 20px; font-size: 0.95rem; }
@media (max-width: 1000px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; background: none; border: 1.5px solid var(--plum); border-radius: 999px; padding: 8px 16px; font: 600 0.95rem var(--body); color: var(--plum); cursor: pointer; }
  .main-nav ul { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--porcelain); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: 0 18px 30px rgba(75, 44, 46, 0.12); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .main-nav ul.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .main-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--porcelain) 0%, var(--blush) 100%); padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.hero-kicker { font-weight: 600; color: var(--rose-deep); font-size: 1rem; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); margin-top: 12px; max-width: 13ch; }
.lead { margin-top: 22px; font-size: 1.18rem; color: var(--muted); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-photo { margin: 0; position: relative; max-width: 440px; width: 100%; justify-self: end; }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--rose); border-radius: 999px 999px 28px 28px; }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 32% center; border-radius: 999px 999px 28px 28px; }
.hero-quote { position: absolute; left: -48px; bottom: 36px; width: 230px; margin: 0; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px rgba(75, 44, 46, 0.16); }
.hero-quote::before { content: "“"; display: block; font-family: var(--display); font-size: 2.6rem; line-height: 0.6; color: var(--sage); margin-bottom: 6px; }
.hero-quote p { font-family: var(--display); font-size: 1.08rem; line-height: 1.35; color: var(--plum); }
@media (max-width: 960px) {
  .hero-photo { max-width: 380px; margin-right: 18px; }
  .hero-quote { left: auto; right: -10px; bottom: -30px; width: 210px; }
}
@media (max-width: 600px) {
  .hero-photo { max-width: 300px; margin: 0 auto 40px; }
  .hero-quote { right: -14px; bottom: -36px; width: 190px; padding: 16px 18px; }
  .hero-quote p { font-size: 0.98rem; }
}

/* Facts band */
.facts { background: var(--plum); color: var(--porcelain); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-grid div { padding: 26px 20px; display: flex; flex-direction: column; border-left: 1px solid rgba(251, 248, 246, 0.16); }
.facts-grid div:first-child { border-left: 0; padding-left: 0; }
.facts-grid strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.facts-grid span { font-size: 0.95rem; color: #D9C6C1; }

/* Section heads */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2, .analysis h2, .about h2, .faq h2, .contact h2, .where h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }

/* Topics (signature interactive) */
.topics { padding: 96px 0; }
.topics-box { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 36px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.topic-chips button { font: 500 1rem var(--body); color: var(--plum); background: var(--blush); border: 1.5px solid transparent; border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.topic-chips button:hover { border-color: var(--rose); }
.topic-chips button[aria-selected="true"] { background: var(--plum); color: var(--porcelain); }
.topic-panels { padding-top: 32px; }
.topic-panels article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px 48px; }
.topic-panels article[hidden] { display: none; }
.topic-panels h3 { font-size: 2.2rem; grid-row: span 2; color: var(--rose-deep); }
.topic-panels p { max-width: 62ch; font-size: 1.1rem; }
.topic-how { margin-top: 8px; padding: 18px 22px; background: var(--sage-soft); border-radius: 12px; color: var(--plum); }
.topic-panels article.is-entering { animation: soft-in .3s ease-out; }
@keyframes soft-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Psychoanalysis */
.analysis { padding: 96px 0; background: var(--blush); }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.analysis-lead { margin-top: 20px; font-size: 1.15rem; max-width: 52ch; }
.pillars { margin: 0; display: grid; gap: 0; }
.pillars div { padding: 24px 0; border-top: 1px solid #DCC6BE; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
.pillars div:last-child { border-bottom: 1px solid #DCC6BE; }
.pillars dt { font-family: var(--display); font-size: 1.45rem; color: var(--rose-deep); }
.pillars dd { margin: 0; color: var(--plum-soft); }

/* Process */
.process { padding: 96px 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 70px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); border: 1.5px solid var(--sage); font-family: var(--display); font-size: 1.4rem; color: var(--plum); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 64px; right: -20px; height: 1.5px; background: var(--line); }
.steps h3 { font-size: 1.5rem; }
.steps p { margin-top: 10px; color: var(--muted); }
.process-cta { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: 18px; background: var(--rose); color: var(--white); }
.process-cta p { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); max-width: 34ch; }
.process-cta .btn-solid { background: var(--white); color: var(--plum); }
.process-cta .btn-solid:hover { background: var(--blush); }

/* About */
.about { padding: 96px 0; background: var(--sage-soft); }
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.about-photos { position: relative; padding-bottom: 14%; max-width: 560px; }
.about-photos img { object-fit: cover; border-radius: 16px; box-shadow: 0 14px 34px rgba(75, 44, 46, 0.16); }
.photo-a { width: 74%; aspect-ratio: 4 / 5; object-position: 61% center; }
.photo-b { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; object-position: center 72%; border: 6px solid var(--sage-soft); }
.about-copy p { margin-top: 16px; max-width: 54ch; }
.about-copy h2 + p { margin-top: 20px; }
.text-link { display: inline-block; margin-top: 24px; font-weight: 600; color: var(--rose-deep); text-underline-offset: 4px; }

/* FAQ */
.faq { padding: 96px 0; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--rose-deep); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* Contact */
.contact { padding: 96px 0; background: var(--blush); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact-info > p { margin-top: 14px; color: var(--muted); max-width: 44ch; }
.contact-data { margin: 30px 0 0; display: grid; gap: 18px; }
.contact-data dt { font-weight: 700; font-size: 0.9rem; color: var(--rose-deep); }
.contact-data dd { margin: 2px 0 0; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--plum); background: var(--porcelain); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose-deep); box-shadow: 0 0 0 3px rgba(176, 140, 128, 0.3); }
.field textarea { resize: vertical; }
.form-error { color: #9C2B3A; font-weight: 600; font-size: 0.95rem; }
.form-privacy { font-size: 0.85rem; color: var(--muted); }

/* Where */
.where { padding: 80px 0 0; }
.where-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.map-wrap { height: 460px; }
.map-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--plum); color: #E3D3CE; padding: 56px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; align-items: start; }
.footer-brand img { width: 260px; max-width: 100%; }
.footer-title { font-family: var(--display); font-size: 1.2rem; color: var(--porcelain); margin-bottom: 10px; }
.site-footer p + p { margin-top: 8px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sage); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(251, 248, 246, 0.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: #C9B3AD; }

/* WhatsApp floating button */
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #1F8F5A; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(75, 44, 46, 0.3); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #18784B; }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid, .analysis-grid, .about-grid, .faq-wrap, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { justify-self: center; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-grid div:nth-child(n+3) { border-top: 1px solid rgba(251, 248, 246, 0.16); }
  .topic-panels article { grid-template-columns: 1fr; }
  .topic-panels h3 { grid-row: auto; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .topics, .analysis, .process, .about, .faq, .contact { padding-top: 64px; padding-bottom: 64px; }
  .where { padding-top: 56px; }
  .topics-box { padding: 22px; border-radius: 18px; }
  .topic-chips button { padding: 8px 14px; font-size: 0.95rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid div, .facts-grid div:nth-child(3) { border-left: 0; padding: 18px 0; }
  .facts-grid div + div { border-top: 1px solid rgba(251, 248, 246, 0.16); }
  .pillars div { grid-template-columns: 1fr; gap: 6px; }
  .contact-form { padding: 22px; }
  .hero-actions .btn { width: 100%; }
  .process-cta { padding: 24px; }
  .process-cta .btn { width: 100%; }
  .map-wrap { height: 340px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
}
/* ===== Movimento =====
   Ritmo calmo, como o atendimento: entradas suaves, nada pulando na tela.
   Quem pede "reduzir movimento" no aparelho vê tudo parado (regra no topo do arquivo). */

/* Cabeçalho ganha sombra ao rolar */
.site-header { transition: box-shadow .3s var(--ease), background-color .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(75, 44, 46, 0.10); background: rgba(251, 248, 246, 0.98); }
.main-nav a { transition: border-color .25s, color .25s; }
.brand-monogram { transition: transform .5s var(--ease), background-color .3s, color .3s; }
.brand:hover .brand-monogram { transform: rotate(-8deg); background: var(--plum); color: var(--porcelain); }

/* Hero: entrada em sequência no carregamento */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: scale(.94); clip-path: inset(18% 0 0 0 round 999px 999px 28px 28px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); } }
@keyframes frame-in { from { opacity: 0; transform: translate(-14px, -14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-kicker, .hero h1, .lead, .hero-actions { animation: rise .9s var(--ease) both; }
.hero h1 { animation-delay: .12s; }
.lead { animation-delay: .26s; }
.hero-actions { animation-delay: .4s; }
.hero-photo img { animation: photo-in 1.2s var(--ease) .15s both; }
.hero-photo::before { animation: frame-in 1.2s var(--ease) .5s both; }
.hero-quote { animation: rise .9s var(--ease) .9s both, float 6s ease-in-out 2s infinite; }

/* Revelar ao rolar (o script só esconde quando está rodando; sem script, tudo aparece) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { opacity: 0; transform: scale(.96) translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 160ms); }
.js .reveal-img.is-in { opacity: 1; transform: none; }

/* Linha entre os passos se desenha depois do número */
.steps li:not(:last-child)::after { transform-origin: left; transition: transform 1s var(--ease) .5s; }
.js .steps li.reveal:not(.is-in)::after { transform: scaleX(0); }
.steps li::before { transition: background-color .3s, transform .4s var(--ease); }
.steps li:hover::before { background: var(--sage); transform: scale(1.08); }

/* Fotos e cartões respondem ao passar o mouse */
.about-photos img { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.about-photos img:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(75, 44, 46, 0.22); }
.pillars dt { transition: transform .4s var(--ease); }
.pillars div:hover dt { transform: translateX(6px); }
.topic-chips button { transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.topic-chips button:hover { transform: translateY(-2px); }
.topic-how { transition: background-color .3s; }
.text-link { transition: color .25s, text-underline-offset .25s; }
.text-link:hover { color: var(--plum); text-underline-offset: 7px; }

/* Painel do tema: entrada um pouco mais macia, com o texto em sequência */
.topic-panels article.is-entering { animation: none; }
.topic-panels article.is-entering > * { animation: rise .5s var(--ease) both; }
.topic-panels article.is-entering > :nth-child(2) { animation-delay: .07s; }
.topic-panels article.is-entering > :nth-child(3) { animation-delay: .14s; }

/* FAQ: resposta desliza ao abrir */
.faq-list summary { transition: color .25s, padding-left .3s var(--ease); }
.faq-list summary:hover { color: var(--rose-deep); padding-left: 6px; }
.faq-list details[open] p { animation: rise .45s var(--ease) both; }

/* Formulário */
.field input, .field select, .field textarea { transition: border-color .25s, box-shadow .25s, background-color .25s; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--white); }
.form-error:not([hidden]) { animation: shake .4s var(--ease); }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Botão do WhatsApp: chega depois do hero e respira de leve */
@keyframes wa-in { from { opacity: 0; transform: scale(.4) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgba(31, 143, 90, .45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(31, 143, 90, 0); } }
.wa-float { animation: wa-in .6s var(--ease) 1.4s both; transition: transform .3s var(--ease), background-color .25s; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: wa-ring 2.6s ease-out 2.4s 3; }
.wa-float:hover { transform: scale(1.08); }

/* Rodapé */
.site-footer a { transition: color .25s; }
