/* Site Dra. Thais Valente — usa apenas os tokens de tokens.css */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 28px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--cta-bg); color: var(--cta-ink); padding: 12px 20px; z-index: 30; }
.skip:focus { left: 0; }

.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
section, .band { background: var(--surface); color: var(--ink); }
.sec { padding: var(--space-8) 0; }
.band { padding: var(--space-7) 0; }
.alt { background: var(--surface-alt); }
.muted { color: var(--ink-muted); }
.measure { max-width: var(--text-max); }

/* Cabeçalho */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--caramel); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: var(--header-height); }
.hdr .logo { display: block; flex: none; }
.hdr .logo img { height: 64px; width: auto; display: block; }
.hdr .logo .mono { display: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font: 400 15px/20px var(--font-sans); color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current] { border-bottom-color: var(--accent-line); }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; background: transparent; color: var(--ink); border: 1px solid var(--control-border); border-radius: 0; font: 500 13px/20px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 32px; font: 500 14px/20px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius-none); cursor: pointer; text-align: center; }
.btn.pri { background: var(--cta-bg); color: var(--cta-ink); }
.btn.pri:hover { background: var(--cta-hover); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--control-border); }
.nav .btn { padding: 0 24px; font-size: 13px; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; }

/* Título de seção + divisor com ponto */
.eyebrow { color: var(--eyebrow-ink); }
h1, h2, h3, h4 { color: var(--heading); }
.title { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: var(--space-6); }
.title .lead { color: var(--ink-muted); max-width: var(--text-max); }
.dv { display: flex; align-items: center; gap: 12px; width: 240px; }
.dv .l { flex: 1; height: 1px; background: var(--accent-line); }
.dv .p { width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--accent-line); }

/* Marcador de dado pendente */
.pend { font: 500 13px/20px ui-monospace, Menlo, Consolas, monospace; background: var(--caramel); color: var(--cafe); padding: 1px 6px; white-space: nowrap; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-6); align-items: center; }
.hero .txt { display: flex; flex-direction: column; gap: 24px; }
.hero .lead { color: var(--ink-muted); max-width: 560px; }
.portrait { position: relative; aspect-ratio: 4 / 5; background: var(--surface-alt); display: flex; align-items: flex-end; padding: 24px; margin: 0 16px 16px 0; }
.portrait::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--accent-line); pointer-events: none; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Sobre */
.about { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-6); }
.about .txt { display: flex; flex-direction: column; gap: 20px; }
.facts { list-style: none; padding: 0 0 0 var(--space-4); border-left: 1px solid var(--accent-line); display: flex; flex-direction: column; gap: 24px; align-self: start; }
.edu { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 24px; }
.facts b { display: block; font: 500 12px/20px var(--font-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--eyebrow-ink); margin-bottom: 4px; }

/* Procedimentos */
.proc-intro { padding-bottom: var(--space-6); }
.proc-intro .title { margin-bottom: 0; }
.group-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-5); max-width: var(--text-max); }
.group-head p:last-child { color: var(--ink-muted); }
.proc { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-5); align-items: center; padding: var(--space-5) 0; border-top: 1px solid var(--caramel); }
.proc .txt { display: flex; flex-direction: column; gap: 12px; }
.proc .txt p { color: var(--ink-muted); }
.proc .ind { font-size: 15px; line-height: 24px; }
.proc .ind b { font-weight: 500; color: var(--ink); }
.steps { list-style: none; margin: 0 -16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { padding: 0 16px; border-left: 1px solid var(--accent-line); }
.steps li:first-child { border-left: 0; }
.steps svg { display: block; width: 100%; height: auto; max-width: 220px; margin-bottom: 12px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.steps .n { display: block; font: 500 12px/20px var(--font-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--eyebrow-ink); }
.steps p { font-size: 15px; line-height: 22px; color: var(--ink); }
.a { stroke: var(--ink); stroke-width: 1.5; }
.a2 { stroke: var(--ink); stroke-width: 2.6; }
.f { stroke: var(--ink); stroke-width: 1.1; stroke-dasharray: 2 4; }
.d { stroke: var(--accent-line); stroke-width: 1.8; }
.dot { fill: var(--accent-line); stroke: none; }
.idot { fill: var(--ink); stroke: none; }
.t { font: 500 9px var(--font-sans); letter-spacing: .08em; fill: var(--ink-muted); stroke: none; }

/* Para médicos */
.docs { position: relative; overflow: hidden; }
.docs .arc { position: absolute; right: -180px; top: 50%; width: 620px; height: 620px; transform: translateY(-50%); opacity: .2; pointer-events: none; }
.docs .wrap { position: relative; }
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-bottom: var(--space-6); max-width: 960px; }
.flow li { border-top: 1px solid var(--accent-line); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.flow .n { font: 500 12px/20px var(--font-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--eyebrow-ink); }
.flow p { color: var(--ink-muted); font-size: 16px; line-height: 26px; }

/* Conteúdo científico */
.posts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-5); }
.posts li { border-top: 1px solid var(--caramel); padding: 24px 0; display: flex; flex-direction: column; gap: 8px; }
.posts a { color: var(--ink); text-decoration: none; }
.posts a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.posts p { color: var(--ink-muted); font-size: 16px; line-height: 26px; }
.more { margin-top: var(--space-5); }

/* Contato */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-6); align-items: start; }
.contact .title { margin-bottom: 24px; }
.card { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; border-left: 1px solid var(--accent-line); padding-left: var(--space-5); list-style: none; margin: 0; }
.card b { display: block; font: 500 12px/20px var(--font-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--eyebrow-ink); margin-bottom: 4px; }

/* Rodapé */
.ftr { background: var(--surface); color: var(--ink); padding: 56px 0 32px; }
.ftr .wrap { display: flex; flex-direction: column; gap: 32px; }
.ftr .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.ftr .top img { height: 48px; width: auto; display: block; }
.ftr .cols { display: flex; gap: 56px; flex-wrap: wrap; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.ftr .cols b { display: block; font: 500 12px/20px var(--font-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--eyebrow-ink); margin-bottom: 8px; }
.ftr .dv { width: auto; }
.ftr .dv .l { opacity: .6; }
.ftr .legal { font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* Página de conteúdo científico */
.page-head { padding: var(--space-7) 0 var(--space-6); }
.page-head .title { margin-bottom: 0; }
.toc { list-style: none; padding: 0; margin-top: var(--space-5); display: flex; flex-direction: column; gap: 8px; }
.article { padding: var(--space-7) 0; }
.article .wrap > * { max-width: var(--text-max); }
.article .head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.draft { display: inline-block; align-self: flex-start; border: 1px solid var(--terracotta); color: var(--terracotta-ink); font: 500 12px/20px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; padding: 4px 12px; }
.article .body-txt { display: flex; flex-direction: column; gap: 20px; }
.article .body-txt h3 { margin-top: 12px; }
.article .body-txt ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.refs { margin-top: 40px; border-top: 1px solid var(--caramel); padding-top: 20px; }
.refs b { display: block; font: 500 12px/20px var(--font-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--eyebrow-ink); margin-bottom: 8px; }
.refs ol { padding-left: 20px; font-size: 15px; line-height: 24px; color: var(--ink-muted); display: flex; flex-direction: column; gap: 8px; }
.disclaimer { font-size: 15px; line-height: 24px; color: var(--ink-muted); }

/* Responsivo */
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--caramel); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--space-4) 24px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--caramel); font-size: 17px; }
  .nav .btn { margin-top: 20px; }
  .hdr .wrap { position: static; }
  .hdr { position: sticky; }
}
@media (max-width: 900px) {
  .hero .wrap, .about, .contact, .proc { grid-template-columns: 1fr; }
  .proc { gap: var(--space-4); }
  .flow, .posts { grid-template-columns: 1fr; gap: 0; }
  .flow li { margin-bottom: 32px; }
  .portrait { max-width: 420px; }
  .docs .arc { right: -360px; }
}
@media (max-width: 767px) {
  .wrap { padding: 0 var(--space-4); }
  .sec { padding: var(--space-7) 0; }
  .band, .article { padding: var(--space-6) 0; }
  .page-head { padding: var(--space-6) 0 var(--space-5); }
  .title { margin-bottom: var(--space-5); }
  .hdr .logo .full { display: none; }
  .hdr .logo .mono { display: block; height: 48px; }
  .hero .wrap { gap: var(--space-5); }
  .btns .btn { width: 100%; }
  .steps { margin: 0 -10px; }
  .steps li { padding: 0 10px; }
  .steps p { font-size: 14px; line-height: 20px; }
  .card { grid-template-columns: 1fr; padding-left: var(--space-4); }
  .facts { padding-left: var(--space-4); }
}

/* Tema verde (herdado da V1): verde profundo + dourado, só em seções de destaque.
   Dourado é permitido como texto apenas sobre o verde (6,3:1). */
.green {
  --surface: #0c2519;
  --surface-alt: #1f2b22;
  --ink: var(--ivory);
  --heading: var(--ivory);
  --ink-muted: #c9c2b5;
  --accent-line: #cf982c;
  --eyebrow-ink: #cf982c;
  --link: #cf982c;
  --cta-bg: #cf982c;
  --cta-ink: #0c2519;
  --cta-hover: #e0b150;
  --control-border: #8a9484;
  --focus-ring: #cf982c;
}
