/* ============================================================
   style.css — psifabianosousa.com.br
   Redesign editorial: paleta off-white/azul acinzentado/azul profundo,
   ocre como accent pontual. Serif (Fraunces) nos títulos, sans (Work Sans)
   no corpo. Tema claro é o padrão da marca; tema escuro segue o sistema do
   visitante (prefers-color-scheme) ou a escolha manual salva no navegador
   (ver main.js), sem nunca depender de JS pra pintar a cor certa primeiro
   (os tokens do tema escuro também respondem à media query sozinhos).
   ============================================================ */

:root {
  --bg: #F7F5F0;
  --bg-alt: #EFEDE6;
  --surface: #E8E7E2;
  --line: #C7CDD6;
  --line-strong: #AAB7C8;
  --muted: #687B91;
  --ink: #243244;
  --ink-soft: #3A4A5C;
  --accent: #B89A6A;
  --accent-ink: #8C7350;
  --on-ink: #F3EFE6;
  --on-ink-muted: #B9C3D1;

  --container: 1180px;
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Work Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Tema escuro pelo sistema do visitante — só entra se não houver escolha
   manual explícita salva (ver [data-theme] abaixo, que sempre vence). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B232E;
    --bg-alt: #212B37;
    --surface: #26313F;
    --line: #3B4756;
    --line-strong: #4C5A6B;
    --muted: #AEBBCB;
    --ink: #F2EFE8;
    --ink-soft: #DCE2EA;
    --accent: #C9AD82;
    --accent-ink: #E4CDA5;
    --on-ink: #1B232E;
    --on-ink-muted: #8C97A6;
  }
}
/* Alternância manual (botão no cabeçalho, main.js) — sempre vence, nos dois
   sentidos, independente do sistema operacional do visitante. */
:root[data-theme="dark"] {
  --bg: #1B232E;
  --bg-alt: #212B37;
  --surface: #26313F;
  --line: #3B4756;
  --line-strong: #4C5A6B;
  --muted: #AEBBCB;
  --ink: #F2EFE8;
  --ink-soft: #DCE2EA;
  --accent: #C9AD82;
  --accent-ink: #E4CDA5;
  --on-ink: #1B232E;
  --on-ink-muted: #8C97A6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 22px; } }

.section { padding: 112px 0; }
.section--alt { background: var(--bg-alt); }
@media (max-width: 900px) { .section { padding: 80px 0; } }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

.section-title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -.01em; max-width: 20ch; }
.section-lede { font-family: var(--font-body); color: var(--muted); font-size: 17px; max-width: 52ch; margin-top: 18px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  padding: 15px 28px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none;
  transition: transform .45s var(--ease), background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.btn-accent { background: var(--accent); color: #20160B; }
.btn-accent:hover { transform: translateY(-2px); background: var(--accent-ink); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-line:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn-on-ink { background: var(--accent); color: #20160B; }
.btn-on-ink:hover { transform: translateY(-2px); background: #D0B489; }
.btn-quiet { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); padding: 10px 22px; font-size: 13.5px; font-weight: 500; }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }

/* ---------- Revelação leve ao rolar (main.js, IntersectionObserver nativo) ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; padding: 26px 0;
  transition: padding .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s var(--ease);
}
.site-header.is-scrolled {
  padding: 14px 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 41px; height: 41px; flex: none; }
.footer-logo { width: 34px; height: 34px; flex: none; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.brand-type { display: flex; flex-direction: column; line-height: 1.2; }
.brand-type strong { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: .01em; }
.brand-type span { font-size: 11px; color: var(--muted); letter-spacing: .05em; }

.nav-menu { display: flex; align-items: center; gap: 36px; font-size: 14.5px; font-weight: 500; }
.nav-menu a { text-decoration: none; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-menu a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle, .theme-toggle {
  background: none; border: 1px solid var(--line-strong); color: var(--ink);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); height: 100vh;
    background: var(--bg); flex-direction: column; align-items: flex-start;
    padding: 100px 32px 32px; gap: 26px; font-size: 18px;
    transform: translateX(100%); transition: transform .5s var(--ease);
    box-shadow: -8px 0 30px rgba(0, 0, 0, .08);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .header-actions .btn-quiet { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 120px; overflow: hidden; }
@media (max-width: 900px) { .hero { padding: 32px 0 72px; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.08; letter-spacing: -.015em; font-weight: 400; }
.hero-sub { font-family: var(--font-body); font-size: 18px; color: var(--muted); max-width: 46ch; margin-top: 26px; }
.hero-cta { margin-top: 38px; }
.badges-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.badge-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 500; letter-spacing: .01em; }
.badge-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-photo-wrap { position: relative; }
.hero-photo {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 6% 32% 8% 26% / 22% 8% 30% 10%;
  overflow: hidden; box-shadow: 0 30px 60px -20px rgba(36, 50, 68, .28);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-photo-ring { position: absolute; inset: -18px; border: 1px solid var(--line-strong); border-radius: 10% 36% 12% 30% / 26% 12% 34% 14%; z-index: -1; }
.hero-caption {
  position: absolute; left: 4%; bottom: -9%;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 22px 26px; max-width: 76%;
  border-radius: 30px 8px 30px 8px;
  box-shadow: 0 20px 40px -18px rgba(36, 50, 68, .3);
}
@media (max-width: 640px) {
  .hero-caption { position: static; margin-top: 18px; padding: 0; box-shadow: none; max-width: none; background: transparent; backdrop-filter: none; border-radius: 0; }
  .hero-photo-ring { display: none; }
}
.hero-caption .name { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.hero-caption .bio { font-family: var(--font-body); font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.hero-caption .bio p { margin: 0 0 8px; }
.hero-caption .bio p:last-child { margin-bottom: 0; }

/* ---------- Sobre ---------- */
.about-head { max-width: 820px; }
.about-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.18; font-weight: 400; }
.about-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; margin-top: 64px; align-items: start; }
@media (max-width: 900px) { .about-body { grid-template-columns: 1fr; gap: 40px; } }
.about-lede { font-family: var(--font-body); font-size: 17px; color: var(--ink-soft); }
.stat-row { display: flex; gap: 56px; margin-top: 52px; flex-wrap: wrap; }
.stat .n { font-family: var(--font-display); font-size: 28px; font-weight: 400; }
.stat .l { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.about-photo-wrap { max-width: 440px; }
@media (max-width: 900px) { .about-photo-wrap { max-width: 340px; margin: 0 auto; } }

/* ---------- Abordagem Clínica ---------- */
.approach-list { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .approach-list { grid-template-columns: 1fr; } }
.approach-item { padding: 64px 34px 48px 34px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.approach-item:first-child { padding-left: 0; }
.approach-item:nth-child(3n) { border-right: none; padding-right: 0; }
@media (max-width: 900px) { .approach-item { border-right: none !important; padding: 44px 0 34px !important; } }
.approach-item .glyph { display: block; margin-top: 16px; }
.approach-item .glyph img { width: 30px; height: 30px; object-fit: contain; }
.approach-item .glyph-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .approach-item .glyph-light { display: none; }
  :root:not([data-theme="light"]) .approach-item .glyph-dark { display: block; }
}
:root[data-theme="dark"] .approach-item .glyph-light { display: none; }
:root[data-theme="dark"] .approach-item .glyph-dark { display: block; }
.approach-item .glyph-img { width: 30px; height: 30px; object-fit: contain; margin-top: 16px; }
.approach-item .tag { display: block; margin-top: 18px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.approach-item h4 { font-size: 21px; font-weight: 500; margin-top: 8px; line-height: 1.25; }
.approach-item p { font-family: var(--font-body); color: var(--muted); font-size: 14.5px; margin-top: 14px; }

/* ---------- Áreas de Atuação ---------- */
.areas-list { margin-top: 56px; border-top: 1px solid var(--line); }
.area-row { padding: 30px 0; border-bottom: 1px solid var(--line); }
.area-row h3 { font-size: clamp(21px, 2.6vw, 30px); font-weight: 400; }
.area-row .area-text { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 62ch; margin-top: 10px; }
@media (max-width: 640px) { .area-row { padding: 22px 0; } }

/* ---------- Depoimentos ---------- */
.testimonial-list { margin-top: 56px; display: flex; flex-direction: column; }
.testimonial-item { padding: 40px 0; border-top: 1px solid var(--line); }
.testimonial-item:last-child { border-bottom: 1px solid var(--line); }
.testimonial-text { font-family: var(--font-display); font-style: italic; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; color: #F2EFE8; max-width: 68ch; }
.testimonial-who { margin-top: 18px; display: flex; align-items: baseline; gap: 12px; font-family: var(--font-body); }
.testimonial-who .name { font-weight: 600; font-size: 14.5px; color: #C9AD82; }
.testimonial-who .time { font-size: 13px; color: #687B91; }

/* ---------- Como Funciona ---------- */
.timeline { margin-top: 72px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 0; bottom: 0; left: 9px; right: auto; width: 1px; height: auto; }
}
.timeline-step { padding: 0 22px 0 0; position: relative; }
@media (max-width: 900px) { .timeline-step { padding: 0 0 44px 40px; } }
.timeline-step::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); position: absolute; top: 5px; left: 0; }
@media (max-width: 900px) { .timeline-step::before { top: 2px; } }
.timeline-step .num { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--accent-ink); display: block; margin-top: 26px; }
@media (max-width: 900px) { .timeline-step .num { margin-top: 0; } }
.timeline-step h4 { font-size: 18px; font-weight: 500; margin-top: 10px; }
.timeline-step p { font-family: var(--font-body); font-size: 13.5px; color: var(--muted); margin-top: 10px; }

.note-callout { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--font-body); font-size: 13.5px; display: flex; gap: 10px; align-items: baseline; }
.note-callout .mark { color: var(--accent-ink); font-family: var(--font-display); font-style: italic; }
.note-callout.note-color-gold { color: #C9AD82; }
.note-callout.note-color-white { color: #F2EFE8; }
.note-callout.note-color-blue { color: #687B91; }
.steps-cta { margin-top: 40px; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 56px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; font-family: var(--font-display); font-size: 19px; font-weight: 400;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { font-family: var(--font-body); font-weight: 400; font-size: 22px; color: var(--muted); flex: none; width: 22px; text-align: center; transition: transform .5s var(--ease), color .4s var(--ease); }
.faq-item[open] .plus { transform: rotate(135deg); color: var(--accent-ink); }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-body { font-family: var(--font-body); font-size: 15px; color: var(--muted); padding: 0 0 30px; max-width: 64ch; }
.faq-body ol { padding-left: 20px; margin: 0; }
.faq-body li { margin-bottom: 8px; }
.faq-body .warn { margin-top: 16px; font-size: 13px; }
.faq-body .warn.warn-color-gold { color: #C9AD82; }
.faq-body .warn.warn-color-white { color: #F2EFE8; }
.faq-body .warn.warn-color-blue { color: #687B91; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--ink); color: var(--on-ink); padding: 140px 0; position: relative; overflow: hidden; }
@media (max-width: 640px) { .cta-final { padding: 88px 0; } }
.cta-final::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--on-ink) 14%, transparent); top: -280px; right: -200px; }
.cta-grid { display: grid; grid-template-columns: 1fr .92fr; gap: 72px; align-items: center; position: relative; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: 48px; } }
.cta-final .eyebrow { color: var(--accent); }
.cta-final h2 { color: var(--on-ink); font-size: clamp(30px, 4.2vw, 48px); font-weight: 400; line-height: 1.2; max-width: 15ch; margin: 22px 0 0; }
.cta-final p { font-family: var(--font-body); color: var(--on-ink-muted); font-size: 16px; max-width: 42ch; margin: 22px 0 0; }

.cta-form { background: color-mix(in srgb, var(--on-ink) 5%, transparent); border: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent); border-radius: 28px 8px 28px 8px; padding: 38px; position: relative; }
.cta-form .field { display: flex; flex-direction: column; gap: 8px; }
.cta-form .field + .field { margin-top: 22px; }
.cta-form label { font-family: var(--font-body); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted); font-weight: 600; }
.cta-form input, .cta-form textarea {
  background: transparent; border: none; border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent);
  color: var(--on-ink); font-family: var(--font-body); font-size: 15px; padding: 9px 2px; width: 100%;
  transition: border-color .4s var(--ease);
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: color-mix(in srgb, var(--on-ink-muted) 80%, transparent); }
.cta-form input:focus, .cta-form textarea:focus { outline: none; border-color: var(--accent); }
.cta-form textarea { resize: vertical; min-height: 84px; font-family: var(--font-body); }
.cta-form button[type="submit"] { margin-top: 28px; width: 100%; justify-content: center; }
/* Honeypot anti-spam: campo real no DOM (bots preenchem), invisível e fora
   da ordem de tabulação pra quem usa teclado/leitor de tela. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-feedback { font-family: var(--font-body); font-size: 13.5px; margin-top: 16px; min-height: 0; }
.form-feedback.is-success { color: var(--accent); }
.form-feedback.is-error { color: #E39B9B; }

/* ---------- Rodapé ---------- */
.site-footer { padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-about .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-name { font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.footer-about p { font-size: 14px; color: var(--muted); max-width: 38ch; }
.site-footer h5 { font-family: var(--font-body); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer a { text-decoration: none; font-size: 14.5px; color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent-ink); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.footer-legal { max-width: 640px; }

/* ---------- Agenda Cheia (landing page) ---------- */
.landing-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--bg); }
.landing-card { max-width: 520px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px 8px 28px 8px; padding: 48px 40px; }
.landing-logo { width: 48px; height: 48px; margin: 0 auto 22px; }
.landing-card h1 { font-size: clamp(24px, 3.2vw, 30px); font-weight: 500; margin-bottom: 16px; }
.landing-card p { color: var(--muted); font-size: 16px; margin-bottom: 28px; font-family: var(--font-body); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: var(--on-ink);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .35);
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-3px); background: var(--accent-ink); color: #20160B; }
.whatsapp-fab svg { width: 24px; height: 24px; }
