/* =========================================================
   Site — Ana Paula Ramos de Oliveira · Psicóloga Clínica
   Paleta e tipografia conforme projeto (seção 4)
   ========================================================= */

:root {
  --bg: #F8F7F3;          /* Fundo principal — off-white */
  --sand: #EFE8DE;        /* Fundo secundário — areia clara */
  --sage: #A8B4A0;        /* Cor institucional — verde sálvia */
  --sage-dark: #96A38C;
  --ink: #3B3B3B;         /* Texto principal — grafite */
  --muted: #6F6B66;       /* Texto secundário — cinza quente */
  --gold: #B89A6A;        /* Detalhes discretos — dourado fosco */
  --card: #FFFFFF;
  --line: rgba(59, 59, 59, .10);
  --footer-bg: #31342C;
  --footer-ink: #E9E5DC;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sage-dark); outline-offset: 3px; border-radius: 2px; }

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }

.eyebrow {
  display: block;
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.accent-line {
  width: 46px; height: 2px;
  background: var(--gold);
  border: 0; margin: 1.4rem 0;
}

/* ---------- Layout ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.4rem; }
.section { padding: 4.8rem 0; }
.section--alt { background: var(--sand); }
.section--narrow .container { max-width: 820px; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.center { text-align: center; }
.center .section-head, .center .accent-line { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font: 500 .95rem/1.2 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--sage); color: #262B22; }
.btn-primary:hover { background: var(--sage-dark); }
.btn-ghost { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--sand); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

.text-link {
  font: 500 .95rem var(--sans);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--gold); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 243, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { text-decoration: none; line-height: 1.25; }
.brand-name { display: block; font: 600 1.25rem var(--serif); }
.brand-sub { display: block; font: 500 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) {
  font: 500 .92rem var(--sans);
  text-decoration: none;
  color: var(--muted);
  transition: color .2s ease;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.site-nav .btn { padding: .6rem 1.2rem; font-size: .88rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: .4rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero (página inicial) ---------- */
.hero { padding: 5.5rem 0 5rem; }
.hero .grid-2 { gap: 3.5rem; }
.hero .credencial { font: 500 .85rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 1.15rem; }
.hero-note { font-size: .95rem; color: var(--muted); }

/* Retrato — espaço reservado para a foto profissional */
.portrait { margin: 0; }
.portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: 190px 190px 18px 18px;
  background: linear-gradient(160deg, var(--sand) 0%, var(--sage) 100%);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.portrait-frame span {
  font: 500 4.2rem var(--serif);
  color: rgba(59, 59, 59, .35);
  letter-spacing: .06em;
}
.portrait-img {
  width: 100%;
  height: auto;
  border-radius: 190px 190px 18px 18px;
  border: 1px solid var(--line);
}
.portrait figcaption {
  font: 400 .78rem var(--sans);
  color: var(--muted);
  text-align: center;
  margin-top: .7rem;
}

/* ---------- Cabeçalho de páginas internas ---------- */
.page-hero { background: var(--sand); padding: 4.2rem 0 3.6rem; }
.page-hero .lead { max-width: 700px; }
.page-hero .credencial {
  margin-top: 1.6rem;
  font: 500 .9rem/1.7 var(--sans);
  color: var(--muted);
}
.page-hero .credencial strong { color: var(--ink); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.7rem 1.6rem;
}
.card h3 { margin-bottom: .5em; }
.card p { margin-bottom: 0; color: var(--muted); font-size: .97rem; }
.card .card-kicker {
  display: block;
  font: 600 .72rem var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}

/* ---------- Passos numerados ---------- */
.steps { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li {
  counter-increment: passo;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem 1.4rem 4.6rem;
  position: relative;
}
.steps li::before {
  content: counter(passo);
  position: absolute; left: 1.4rem; top: 1.35rem;
  font: 600 1.6rem var(--serif);
  color: var(--gold);
}
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Lista de princípios ---------- */
.pillars { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 2rem; }
.pillars li { padding-left: 1.5rem; position: relative; color: var(--muted); }
.pillars li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 2.6rem; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: .8rem; }
details.faq {
  border-bottom: 1px solid var(--line);
  padding: .35rem 0;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .8rem 0;
  font: 500 1.02rem var(--sans);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 500 1.5rem var(--serif); color: var(--gold); flex-shrink: 0; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 0 1.1rem; color: var(--muted); max-width: 60ch; }
details.faq .faq-body p { margin-bottom: 0; }

/* ---------- Prosa (páginas de texto) ---------- */
.prose h2 { margin-top: 2.4em; font-size: 1.65rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; color: var(--muted); }
.prose ul li { margin-bottom: .4em; }

/* ---------- Aviso / notas ---------- */
.notice {
  background: var(--sand);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.3rem;
  font-size: .92rem;
  color: var(--muted);
}

/* ---------- Formulário ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.form-field label { display: block; font: 500 .88rem var(--sans); margin-bottom: .4rem; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #D9D2C7;
  border-radius: 10px;
  background: var(--card);
  font: 400 .97rem var(--sans);
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--sage); outline-offset: 0; border-color: var(--sage); }
.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- Faixa de chamada final ---------- */
.cta-band { background: var(--sand); }
.cta-band .container { max-width: 780px; text-align: center; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 3.6rem 0 0; font-size: .93rem; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.6rem; }
.footer-brand .brand-name { font: 600 1.3rem var(--serif); display: block; margin-bottom: .3rem; }
.footer-brand p { color: rgba(233, 229, 220, .75); margin-bottom: 0; }
.site-footer h4 {
  font: 600 .75rem var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.footer-bottom {
  border-top: 1px solid rgba(233, 229, 220, .15);
  padding: 1.4rem 0;
  font-size: .82rem;
  color: rgba(233, 229, 220, .65);
  text-align: center;
}
.footer-bottom p { margin: 0; }

/* ---------- Botão flutuante WhatsApp (discreto) ---------- */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 60;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sage);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(59, 59, 59, .18);
  transition: background .2s ease;
}
.wa-float:hover { background: var(--sage-dark); }
.wa-float svg { width: 26px; height: 26px; fill: #262B22; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    gap: 0;
    padding: .6rem 1.4rem 1.2rem;
    display: none;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: .65rem 0; font-size: 1rem; width: 100%; }
  .site-nav a.active { border-bottom: 0; color: var(--gold); }
  .site-nav .btn { margin-top: .8rem; }
  .nav-toggle { display: block; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 3.2rem 0; }
  .hero .grid-2 { gap: 2.4rem; }
  .hero-media { order: -1; max-width: 320px; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.4rem 0; }
}

@media (max-width: 560px) {
  .btn-row .btn { width: 100%; text-align: center; }
}
