/* Dr. Henrique Moura — folha de estilos única.
   Layout: coluna de leitura + cartão lateral de agendamento; cabeçalho fixo; barra de WhatsApp no celular. */
:root {
  /* Paleta do kit oficial: verde-petróleo #005C50, verde-esmeralda #0B7C50, verde-claro #56BA3A, grafite #1F2927 */
  --bg: #f5f9f8;
  --surface: #ffffff;
  --ink: #1f2927;
  --muted: #4f5f5b;
  --line: #d2dfdb;
  --green: #005c50;
  --link: #0b7c50;
  --accent: #56ba3a;
  --on-green: #ffffff;
  --tint: #e1efeb;
  --warn: #7a4300;
  --warn-bg: #fdf1da;
  --display: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1614; --surface: #13201d; --ink: #e4eeeb; --muted: #9cb0aa;
    --line: #24352f; --green: #56ba3a; --link: #7fd16a; --accent: #56ba3a; --on-green: #0c1a0a; --tint: #152b26;
    --warn: #f2c078; --warn-bg: #2b2312; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1614; --surface: #13201d; --ink: #e4eeeb; --muted: #9cb0aa;
  --line: #24352f; --green: #56ba3a; --link: #7fd16a; --accent: #56ba3a; --on-green: #0c1a0a; --tint: #152b26;
  --warn: #f2c078; --warn-bg: #2b2312; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.62;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.14; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 1.95rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1100px; margin-inline: auto; padding-inline: 20px; }
.reg { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.lede { color: var(--muted); font-size: 1.13rem; max-width: 62ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 20; }

/* botões */
.btn {
  display: inline-block; background: var(--green); color: var(--on-green);
  font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 999px;
  font-size: 1rem; line-height: 1.2; border: 0; cursor: pointer; font-family: inherit; text-align: center;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* cabeçalho */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.chip { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #ffffff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.chip img { width: 38px; height: 38px; }
.brand strong { font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; white-space: nowrap; }
.brand span { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.nav { display: flex; gap: 16px; font-size: 0.92rem; white-space: nowrap; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.top .btn { padding: 10px 18px; font-size: 0.94rem; white-space: nowrap; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 0.94rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; min-width: 230px; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.menu-list a { padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.menu-list a:hover { background: var(--tint); }
@media (max-width: 1140px) {
  .nav { display: none; }
  .menu { display: block; }
  .top .btn { display: none; }
}

/* abertura da home */
.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; padding-block: 52px 48px; }
.hero-in > .slot { max-width: 380px; justify-self: end; }
@media (max-width: 820px) { .hero-in > .slot { justify-self: start; max-width: 300px; } }
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 820px) { .hero-in { grid-template-columns: 1fr; padding-block: 32px 28px; gap: 28px; } }

/* espaço reservado para foto */
.slot {
  width: 100%; max-width: 100%; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--tint);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: 0.88rem; padding: 16px;
}
.slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.conf { box-shadow: inset 0 -0.5em 0 var(--warn-bg); }
.conf::after { content: " (a confirmar)"; font-size: 0.75em; color: var(--warn); font-weight: 600; }
.pend { display: block; background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 8px; font-size: 0.93rem; }
.pend::before { content: "Pendente: "; font-weight: 700; }

/* seções da home */
.sec { border-top: 1px solid var(--line); }
.sec-in { padding-block: 52px; display: flex; flex-direction: column; gap: 28px; }
.sec-head { display: flex; flex-direction: column; gap: 10px; }
.band { background: var(--tint); }
@media (max-width: 820px) { .sec-in { padding-block: 38px; } }

.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.feature > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; align-items: flex-start; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 24px; } }
.ticks { list-style: none; margin: 0; padding: 0; width: 100%; }
.ticks li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks small { display: block; color: var(--muted); font-size: 0.92rem; }

.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.links a { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.links a strong { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--green); }
.links a span { color: var(--muted); font-size: 0.95rem; }
.links a:hover strong { text-decoration: underline; }
@media (max-width: 820px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .links { grid-template-columns: 1fr; } }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.steps li::before { content: counter(s); font-weight: 700; font-size: 0.9rem; color: var(--green); border-bottom: 2px solid var(--green); padding-bottom: 6px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 66ch; }

.alert { background: var(--warn-bg); color: var(--warn); padding: 14px 18px; border-radius: 10px; font-size: 0.97rem; max-width: 72ch; }
.addr { font-style: normal; font-size: 1.08rem; }

/* páginas internas */
.page-head { border-bottom: 1px solid var(--line); }
.page-head-in { padding-block: 36px 34px; display: flex; flex-direction: column; gap: 14px; }
.crumb { font-size: 0.88rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-block: 40px 64px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 28px 48px; } }
.prose { min-width: 0; max-width: 70ch; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { margin-top: 22px; }
.prose h3 { margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 7px; }
.prose .faq { margin-top: 4px; }
.prose .meta { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.table { overflow-x: auto; }
.table table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.97rem; }
.table th, .table td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--display); font-weight: 600; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (max-width: 960px) { .side { position: static; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card h2 { font-size: 1.2rem; }
.card p { font-size: 0.96rem; color: var(--muted); }
.card .btn { width: 100%; }
.card .tel { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rel { display: flex; flex-direction: column; gap: 8px; font-size: 0.96rem; }
.rel h2 { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-family: var(--body); font-weight: 600; }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.posts a { font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts span { color: var(--muted); font-size: 0.96rem; }

/* rodapé */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { padding-block: 40px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; font-size: 0.94rem; }
.foot-in > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.foot h2 { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-family: var(--body); font-weight: 600; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--green); text-decoration: underline; }
.foot p { color: var(--muted); }
.foot strong { color: var(--ink); }
.legal { border-top: 1px solid var(--line); padding-block: 18px 24px; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 820px) { .foot-in { grid-template-columns: 1fr; gap: 26px; } }

/* barra fixa de WhatsApp no celular */
.wa-bar { display: none; }
@media (max-width: 960px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .wa-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .wa-bar .btn { display: block; width: 100%; }
}

/* aviso de cookies (só aparece se o Analytics estiver configurado) */
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 12; max-width: 520px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 12px; font-size: 0.93rem; }
.consent div { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { padding: 9px 16px; font-size: 0.92rem; }
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 14px; }

a[href^="tel:"], a[data-cta="contato"], a[data-cta="rodape"] { white-space: nowrap; }

.foto { margin: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.foto img { width: 100%; height: auto; border-radius: 12px; background: var(--tint); }
.foto figcaption { font-size: 0.88rem; color: var(--muted); }
.hero-in > .foto { max-width: 380px; justify-self: end; }
@media (max-width: 820px) { .hero-in > .foto { justify-self: start; max-width: 320px; } }
.prose .foto.vertical { max-width: 380px; }
.feature-foto { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: center; }
.feature-foto > .foto { max-width: 340px; }
@media (max-width: 820px) { .feature-foto { grid-template-columns: 1fr; } .feature-foto > .foto { max-width: 300px; } }

/* agenda do Doctoralia */
.agenda { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.agenda p { color: var(--muted); font-size: 0.96rem; }
.agenda iframe { width: 100% !important; max-width: 100%; border: 0; }
