/* Clínica Vieira: stone, ink, walnut, mirror light. Jost (OFL), served from /fonts. */
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-wght-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --stone: #e9e5de; --stone-2: #dfdad1; --paper: #f6f4f0; --ink: #171615; --ink-2: #47433e; --ink-3: #6b665f;
  --line: rgba(23, 22, 21, .14); --walnut: #3c2619; --walnut-2: #5a3a27; --walnut-ink: #f1e9df; --walnut-dim: #c9b8a6;
  --glow: #f7e2b9; --rim: #141312;
  --pad: clamp(20px, 5vw, 72px); --max: 1360px; --head: 68px;
  --f: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 17px/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 350; letter-spacing: -.015em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: 0 1.5em; border-radius: 999px;
  font: 500 15px/1 var(--f); letter-spacing: .02em; text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--walnut-2); border-color: var(--walnut-2); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn { background: var(--walnut-ink); color: var(--walnut); border-color: var(--walnut-ink); }
.on-dark .btn.ghost { background: transparent; color: var(--walnut-ink); border-color: rgba(241,233,223,.5); }
.on-dark .btn.ghost:hover { background: var(--walnut-ink); color: var(--walnut); }
.arrow::after { content: "→"; font-weight: 300; }

/* header */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head); display: flex; align-items: center; transition: background .35s, box-shadow .35s, transform .35s; }
.hd .wrap { display: flex; align-items: center; gap: 28px; max-width: none; }
.hd .logo img { height: 40px; width: auto; }
.hd nav { display: flex; gap: 26px; margin-left: auto; }
.hd nav a { font: 450 15px/1 var(--f); text-decoration: none; color: var(--ink-2); padding: 10px 0; white-space: nowrap; }
.hd nav a:hover, .hd nav a[aria-current] { color: var(--ink); }
.hd .tel { font: 450 15px/1 var(--f); text-decoration: none; white-space: nowrap; }
.hd .btn { min-height: 42px; padding: 0 1.2em; font-size: 14px; }
.hd.solid { background: rgba(233, 229, 222, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .3s; }
.menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 45; background: var(--stone); padding: calc(var(--head) + 18px) var(--pad) 28px; display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu-open .drawer { opacity: 1; visibility: visible; }
.drawer a.big { font: 350 32px/1.25 var(--f); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.drawer .meta { margin-top: auto; padding-top: 22px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.drawer .meta a { text-decoration: none; }
@media (max-width: 1100px) { .hd nav { display: none; } .hd .tel { margin-left: auto; } }
@media (max-width: 720px) {
  :root { --head: 60px; }
  .hd .logo img { height: 34px; }
  .hd .tel { display: none; }
  .hd .btn { margin-left: auto; min-height: 40px; padding: 0 1em; }
  .menu-btn { display: block; margin-left: 4px; }
}
@media (min-width: 721px) { .drawer { display: none; } }
@media (min-width: 721px) and (max-width: 1100px) { .menu-btn { display: block; margin-left: 0; } .drawer { display: flex; } }

/* section heads */
.kick { font: 500 14px/1.3 var(--f); letter-spacing: .04em; color: var(--ink-3); margin: 0 0 18px; }
.on-dark .kick { color: var(--walnut-dim); }
.h-xl { font-size: clamp(44px, 7.4vw, 124px); font-weight: 300; letter-spacing: -.035em; line-height: .98; }
.h-l { font-size: clamp(36px, 5vw, 76px); font-weight: 300; letter-spacing: -.03em; line-height: 1.02; }
.h-m { font-size: clamp(28px, 3.2vw, 46px); font-weight: 330; letter-spacing: -.02em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.on-dark { color: var(--walnut-ink); }
.on-dark .lede { color: var(--walnut-dim); }

/* ---------- the mirror ---------- */
.mirror { --d: 420px; position: relative; width: var(--d); height: calc(var(--d) * 1.3); perspective: calc(var(--d) * 3.2); }
.mirror .stand { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mirror .disc { position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); transform-style: preserve-3d; will-change: transform; }
.mirror .edge { display: none; position: absolute; left: 0; top: 50%; width: 100%; height: calc(var(--d) * .034); margin-top: calc(var(--d) * -.017); border-radius: 99px;
  background: linear-gradient(180deg, #3b3835, #0d0c0c 45%, #26231f); transform: rotateX(90deg); opacity: var(--edge, 0); }
.mirror .face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  background: #cfc9bf; border: calc(var(--d) * .03) solid var(--rim); }
.mirror .face.b { transform: rotateX(180deg); }
.mirror .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mirror .face .after { -webkit-mask-image: linear-gradient(115deg, #000 calc(var(--p, 0) * 160% - 30%), transparent calc(var(--p, 0) * 160% - 8%)); mask-image: linear-gradient(115deg, #000 calc(var(--p, 0) * 160% - 30%), transparent calc(var(--p, 0) * 160% - 8%)); }
.mirror .face .glint { position: absolute; inset: -10%; pointer-events: none; mix-blend-mode: screen; opacity: .0;
  background: linear-gradient(115deg, transparent calc(var(--p, 0) * 160% - 40%), rgba(255,250,240,.75) calc(var(--p, 0) * 160% - 20%), transparent calc(var(--p, 0) * 160% - 4%)); }
.mirror .face .sheen { position: absolute; inset: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.28), rgba(255,255,255,0) 45%), radial-gradient(100% 100% at 50% 50%, transparent 62%, rgba(0,0,0,.22) 100%); }
.mirror .face .rimlight { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 0 3px 2px rgba(0,0,0,.25); }
.mirror .face.reflect img { transform: scaleX(-1); filter: saturate(.85) brightness(1.04); }
.mirror .tag { position: absolute; left: 50%; bottom: calc(var(--d) * .07); transform: translateX(-50%); z-index: 3; font: 500 12px/1 var(--f); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: rgba(246,244,240,.86); padding: 7px 12px; border-radius: 99px; white-space: nowrap; }

/* ---------- footer ---------- */
.ft { background: var(--ink); color: #cfc9c0; padding: 72px 0 28px; font-size: 15px; }
.ft a { text-decoration: none; }
.ft a:hover { color: #fff; }
.ft .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ft .logo img { height: 46px; width: auto; filter: invert(1) brightness(1.6); opacity: .92; }
.ft h4 { font: 500 14px/1.3 var(--f); letter-spacing: .04em; color: #8f887f; margin: 0 0 14px; }
.ft ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.ft .base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; color: #8f887f; font-size: 14px; }
.ft .social { display: flex; gap: 10px; margin-top: 18px; }
.ft .social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.ft .social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 900px) { .ft .grid { grid-template-columns: 1fr 1fr; } .ft .grid > :first-child { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.page-hero { padding: calc(var(--head) + clamp(40px, 8vw, 110px)) 0 clamp(40px, 6vw, 80px); }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prose { max-width: 720px; font-size: 18px; line-height: 1.72; color: var(--ink-2); }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.8em 0 .6em; font-weight: 400; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); }
.prose h3 { font-size: clamp(22px, 2vw, 26px); }
.prose h4 { font-size: 20px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { border-radius: 4px; margin: 1.6em 0; height: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose blockquote { margin: 1.4em 0; padding-left: 1.2em; border-left: 2px solid var(--ink); }

/* form */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: inherit; }
.form input, .form select, .form textarea { font: 400 16px/1.4 var(--f); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.form .check input { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form .note { display: none; background: var(--paper); color: var(--ink); border-radius: 12px; padding: 16px 18px; font-size: 15px; line-height: 1.55; }
.form.sent .note { display: block; }

/* whatsapp float (phone + desktop) */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .3s var(--ease), opacity .3s; }
.wa svg { width: 26px; height: 26px; fill: currentColor; }
.wa.hide { opacity: 0; transform: translateY(20px); pointer-events: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
