/* Théa Murta · identidade derivada do logo (rosewood sobre blush) + verde-murta para sobriedade.
   Layout: coluna editorial estreita para leitura; seções em faixas alternadas papel/blush. */
:root {
  --paper: #fbf7f4;
  --blush: #f5e4db;
  --blush-deep: #ecd2c5;
  --rosewood: #84463e;
  --rosewood-dark: #6a352f;
  --myrtle: #2f4f44;
  --myrtle-soft: #e3ebe6;
  --ink: #2a1f1d;
  --muted: #6b5a55;
  --line: #e6d6ce;
  --focus: #2f4f44;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 5.2vw, 3.6rem);

  --radius: 14px;
  --max: 1120px;
  --read: 68ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Links internos (#temas, #sobre…) param abaixo do cabeçalho fixo. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (max-width: 900px) { html { scroll-padding-top: 136px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rosewood-dark); text-underline-offset: 3px; }
a:hover { color: var(--myrtle); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; text-wrap: balance; color: var(--ink); margin: 0; }
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: var(--read); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--rosewood); font-weight: 600; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 48px; width: auto; }
.brand small { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .04em; line-height: 1.3; }
.nav { display: flex; gap: 6px 20px; flex-wrap: wrap; align-items: center; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink); padding-block: 6px; }
.nav a[aria-current="page"] { color: var(--rosewood); border-bottom: 2px solid var(--rosewood); }
.nav .btn { padding: .55em 1.1em; }
@media (max-width: 760px) {
  .nav a:not(.btn) { font-size: .9rem; }
  .brand img { height: 40px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--rosewood); color: #fff; text-decoration: none; font-weight: 600;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--rosewood);
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--rosewood-dark); border-color: var(--rosewood-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--rosewood-dark); }
.btn.ghost:hover { background: var(--blush); color: var(--rosewood-dark); }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 96px); }
.band-blush { background: var(--blush); }
.band-myrtle { background: var(--myrtle); color: #f1f5f2; }
.band-myrtle h2, .band-myrtle h3 { color: #fff; }
.band-myrtle a { color: #fff; }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 62ch; }

/* Hero */
.hero { background: var(--blush); padding-block: clamp(40px, 6vw, 80px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: end; }
.hero-copy { display: grid; gap: 22px; padding-bottom: clamp(40px, 6vw, 80px); min-width: 0; }
.hero-photo { align-self: end; }
.hero-photo img { width: 100%; max-width: 420px; margin-inline: auto; }
.creds { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--step--1); color: var(--muted); }
.creds span { display: inline-flex; align-items: center; gap: 6px; }
.creds span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--myrtle); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo img { max-width: 300px; }
  .hero-copy { padding-bottom: 0; }
}

/* Especialidades */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .specs { grid-template-columns: 1fr; } }
.spec {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px;
  padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); min-width: 0;
  transition: border-color .2s, transform .2s;
}
.spec:hover { border-color: var(--rosewood); transform: translateY(-2px); color: var(--ink); }
.spec .tag { font-size: var(--step--1); color: var(--myrtle); font-weight: 600; letter-spacing: .04em; }
.spec p { color: var(--muted); }
.spec .more { color: var(--rosewood-dark); font-weight: 600; }

/* Passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--rosewood); }
.steps strong { font-size: var(--step-1); }
.steps p { color: var(--muted); }

/* Sobre */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.about img { border-radius: var(--radius); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about img { max-width: 320px; } }
.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cred-list li { padding: 12px 16px; background: var(--myrtle-soft); border-radius: 10px; }
.cred-list b { color: var(--myrtle); }

/* Páginas de especialidade */
.page-hero { background: var(--blush); padding-block: clamp(36px, 6vw, 72px); }
.page-hero .wrap { display: grid; gap: 18px; }
.crumbs { font-size: var(--step--1); color: var(--muted); }
.crumbs a { color: var(--muted); }
.answer { font-size: var(--step-1); max-width: 62ch; background: #fff; border-left: 4px solid var(--rosewood); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.two-col { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.two-col > * { min-width: 0; }
.aside-card { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.aside-card .btn { justify-content: center; }
.topics { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics li { background: var(--myrtle-soft); color: var(--myrtle); padding: 6px 14px; border-radius: 999px; font-size: .95rem; }
.content h2 { margin-top: 2.2em; margin-bottom: .5em; font-size: var(--step-2); }
.content h2:first-child { margin-top: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding-block: 14px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--rosewood); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 16px; color: var(--muted); }

/* Notas e crise */
.note { background: var(--myrtle-soft); border-radius: var(--radius); padding: 20px 24px; display: grid; gap: 8px; }
.note h2, .note h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; color: var(--myrtle); }
.crisis ul { margin: 0; padding-left: 1.2em; }
.content-warning { background: #fff; border: 1px dashed var(--rosewood); border-radius: 12px; padding: 14px 18px; font-size: .95rem; color: var(--muted); }

/* Sair rápido (página de trauma) */
.quick-exit {
  position: fixed; z-index: 50;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--myrtle); color: #fff; border: 0; border-radius: 999px;
  padding: .8em 1.3em; font: 600 .95rem var(--font-body); cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.quick-exit:hover { background: #1f3830; color: #fff; }

/* CTA final */
.cta { text-align: left; display: grid; gap: 18px; max-width: 760px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid a { display: grid; gap: 4px; padding: 18px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); text-decoration: none; }
.contact-grid a small { opacity: .8; }

/* Footer */
.site-footer { background: var(--ink); color: #d9cdc8; font-size: .92rem; padding-block: 48px; }
.site-footer a { color: #f2e6e0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.legal { border-top: 1px solid #4a3a37; margin-top: 32px; padding-top: 20px; color: #b3a39d; font-size: .85rem; }
.nav a.btn, .nav a.btn:hover { color: #fff; border-bottom: 0; }
@media (max-width: 560px) {
  html { scroll-padding-top: 172px; }
  .nav { gap: 4px 14px; }
  .nav a[href="/#sobre"] { display: none; }
  .nav a.btn { padding: .45em 1em; font-size: .9rem; }
}

/* Na imprensa */
.press { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 760px) { .press { grid-template-columns: 1fr; } }
.press a { display: grid; gap: 4px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }
.press a:hover { border-color: var(--rosewood); color: var(--ink); }
.press small { font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rosewood); font-weight: 600; }
