/* Dra. Beatriz Oliveira — estilos do site */

:root {
  --bg: #fbf8f6;
  --surface: #ffffff;
  --surface-2: #f4ede9;
  --ink: #2b2326;
  --muted: #65585c;
  --line: #e7ddd8;
  --brand: #7a5560;
  --brand-ink: #ffffff;
  --brand-dark: #5b3d47;
  --accent: #b88c7c;
  --ok: #1f7a55;
  --warn-bg: #fff3c4;
  --warn-ink: #5c4500;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 35, 38, .05), 0 8px 24px rgba(43, 35, 38, .06);
  --max: 1120px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1719;
    --surface: #251f21;
    --surface-2: #2e2629;
    --ink: #f3ece9;
    --muted: #c3b5b0;
    --line: #3d3336;
    --brand: #d3a6b2;
    --brand-ink: #1c1719;
    --brand-dark: #e6c2cb;
    --accent: #d8ae9e;
    --ok: #6fd3a6;
    --warn-bg: #4a3c0b;
    --warn-ink: #ffe9a3;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px; flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; padding: .5rem 0; }
.brand strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.brand span { font-size: .8rem; color: var(--muted); }

.nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  white-space: nowrap; text-decoration: none; color: var(--muted);
  font-size: .95rem; padding: .45rem .7rem; border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand-dark); background: var(--surface-2); font-weight: 600; }
@media (max-width: 719px) {
  .site-header .wrap { padding-bottom: .4rem; }
  .nav { width: 100%; margin: 0 -8px; }
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  border: 1.5px solid var(--brand); transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--surface-2); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.35fr 1fr; } }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .9rem;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.credentials { font-size: .92rem; color: var(--muted); margin-top: 1.25rem; }
.credentials strong { color: var(--ink); }

.portrait {
  aspect-ratio: 4 / 5; width: 100%; max-width: 380px; justify-self: center;
  border-radius: 200px 200px var(--radius) var(--radius);
  background: linear-gradient(160deg, var(--surface-2), color-mix(in srgb, var(--accent) 35%, var(--surface-2)));
  overflow: hidden; box-shadow: var(--shadow);
  display: grid; place-items: center; position: relative;
}
@media (max-width: 859px) { .portrait { max-width: 260px; } }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .monogram { font-family: var(--font-head); font-size: 5rem; color: var(--brand); opacity: .55; }
.portrait figcaption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  font-size: .78rem; text-align: center; color: var(--muted);
}

/* Seções */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 46em; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
.card-link:hover { transform: translateY(-2px); border-color: var(--accent); color: inherit; }
.card-link .more { margin-top: auto; color: var(--brand); font-weight: 600; }
.icon-dot {
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2);
  display: grid; place-items: center; color: var(--brand); margin-bottom: 1rem;
}
.icon-dot svg { width: 24px; height: 24px; }

/* Locais */
.place h3 { margin-bottom: .2rem; }
.place address { font-style: normal; color: var(--muted); margin: .5rem 0 1rem; }
.place dl { margin: 0 0 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; font-size: .95rem; }
.place dt { color: var(--muted); }
.place dd { margin: 0; }
.place .btn-row .btn { flex: 1 1 200px; }

/* Conteúdo de artigo */
.page-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }

.article { display: grid; gap: 2.5rem; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 960px) { .article { grid-template-columns: minmax(0, 1fr) 300px; } }
.prose { max-width: 44em; }
.prose h2 { margin-top: 2.2em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }

.answer {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: 12px; padding: 1.1rem 1.25rem; margin: 0 0 1.75rem;
}
.answer > strong:first-child { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: .35rem; }
.answer p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--surface); }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.aside-sticky { position: sticky; top: 90px; display: grid; gap: 1rem; align-self: start; }
.toc ol { padding-left: 1.1em; margin: 0; font-size: .95rem; }
.toc li { margin-bottom: .35em; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--brand); }
.aside-title { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .6rem; }

.author-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.5rem; }
.author-box .avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none; background: var(--surface-2);
  display: grid; place-items: center; font-family: var(--font-head); color: var(--brand); font-size: 1.4rem; overflow: hidden;
}
.author-box .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box p { margin: 0; font-size: .95rem; color: var(--muted); }
.author-box strong { color: var(--ink); }

.notice { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 1.25rem; margin-bottom: .75rem;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; padding: 1.05rem 2rem 1.05rem 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--brand); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.1rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Marcador de revisão (remover antes de publicar) */
.confirmar { background: var(--warn-bg); color: var(--warn-ink); padding: .05em .35em; border-radius: 4px; font-size: .92em; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 6rem; font-size: .93rem; color: var(--muted); }
@media (min-width: 720px) { .site-footer { padding-bottom: 2.5rem; } }
.site-footer .grid { gap: 2rem; }
@media (min-width: 720px) { .site-footer .grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.05rem; color: var(--ink); margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer address { font-style: normal; }
.legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; }

/* CTA fixo no celular */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
@media (min-width: 720px) { .mobile-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
