/* LetsDentalSmile — "Warm Editorial Sanctuary" (Option B) */
:root {
  --bg: #f7f9ff;
  --surface: #ffffff;
  --surface-low: #eef4ff;
  --surface-mid: #e4effe;
  --ink: #121c27;
  --ink-soft: #42484b;
  --line: #c2c7cb;
  --line-soft: #dfe5ec;
  --primary: #375361;
  --primary-2: #4f6b7a;
  --gold: #825509;
  --gold-soft: #fec16f;
  --gold-tint: #fff4e3;
  --stone: #e5e2db;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(18, 28, 39, .04), 0 8px 24px rgba(18, 28, 39, .06);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.015em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.eyebrow {
  display: inline-block;
  font: 600 .72rem/1.2 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 14px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section--tint { background: var(--surface-low); }
.section--stone { background: #f3f1ec; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
@media (min-width: 900px) { .section { padding: 96px 0; } :root { --gutter: 40px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #6b4507; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { font-weight: 600; text-decoration: none; font-size: .95rem; }
.link-arrow::after { content: " →"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 249, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.brand__name { font: 500 1.45rem/1 var(--serif); letter-spacing: -.02em; }
.brand__name b { font-weight: 500; color: var(--gold); }
.brand__sub { font: 600 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px; }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.header-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 1180px) {
  .nav { display: flex; gap: 28px; }
  .nav a { white-space: nowrap; }
  .header-cta { display: inline-flex; min-height: 42px; padding: 10px 18px; }
  .menu-btn { display: none; }
}

.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 20px var(--gutter) 40px; overflow-y: auto; display: none; }
.mobile-nav.is-open { display: block; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; height: 48px; margin-bottom: 24px; }
.mobile-nav ul { list-style: none; margin: 0 0 28px; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line-soft); }
.mobile-nav li a { display: block; padding: 16px 0; font: 400 1.6rem/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.mobile-nav .sub a { font: 500 1rem/1.3 var(--sans); padding: 10px 0 10px 16px; color: var(--ink-soft); }
.mobile-nav .sub { border: 0; }
body.nav-open { overflow: hidden; }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--stone); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__caption { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 6px 10px; font-size: .78rem; color: var(--ink-soft); }
@media (min-width: 900px) { .hero { padding: 72px 0 88px; } .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

.trust { display: grid; gap: 12px; margin-top: 8px; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; }
.trust__item svg { width: 24px; height: 24px; flex: none; color: var(--primary-2); margin-top: 2px; }
.trust__item strong { display: block; font: 500 1.05rem/1.3 var(--serif); }
.trust__item span { font-size: .875rem; color: var(--ink-soft); }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(3, 1fr); } }

/* Cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { aspect-ratio: 16 / 10; background: var(--stone); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card__body .link-arrow { margin-top: auto; padding-top: 10px; }
.card--feature { border-color: var(--gold-soft); }
.tag { display: inline-block; align-self: flex-start; font: 600 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--gold-tint); color: var(--gold); padding: 6px 8px; border-radius: 6px; }
@media (min-width: 1000px) { .card--wide { grid-column: span 2; } .card--wide { flex-direction: row; } .card--wide .card__media { aspect-ratio: auto; flex: 1.1; } .card--wide .card__body { flex: 1; padding: 32px; } }

/* Team */
.person { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 24px; }
.person__mono { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-mid); color: var(--primary); font: 400 2rem/1 var(--serif); }
.person__photo { width: 120px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.card__media--portrait { aspect-ratio: 4 / 5; }
.card__media--portrait img { object-position: 50% 20%; }
@media (min-width: 640px) { .grid--3 .card__media--portrait { max-height: 420px; } }
.person__role { font: 600 .75rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.person h3 { font-size: 1.6rem; margin-bottom: 8px; }
.facts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.facts li { font-size: .92rem; color: var(--ink-soft); padding-left: 18px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-2); }
@media (min-width: 700px) { .person { grid-template-columns: 140px 1fr; padding: 32px; } .person__photo { width: 140px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 20px 20px 72px; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font: 400 1.6rem/1 var(--serif); color: var(--gold); }
.steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 1000px) { .steps--row { grid-template-columns: repeat(5, 1fr); } .steps--row li { padding: 64px 20px 22px; } }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #111; aspect-ratio: 3 / 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:first-child { grid-column: span 2; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }

.gallery--clinic, .gallery--clinic-page { grid-template-columns: 1fr 1fr; }
.gallery--clinic figure, .gallery--clinic-page figure { background: var(--stone); aspect-ratio: 4 / 5; }
.gallery--clinic figure:first-child, .gallery--clinic-page figure:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .gallery--clinic { grid-template-columns: 1fr 1fr; }
  .gallery--clinic figure:first-child { grid-row: auto; aspect-ratio: 16 / 9; }
  .gallery--clinic-page { grid-template-columns: 2fr 1fr 1fr; }
  .gallery--clinic-page figure:first-child { grid-column: span 3; aspect-ratio: 21 / 8; grid-row: auto; }
  .gallery--clinic-page figure { aspect-ratio: 4 / 5; }
}
.cert { margin: 0; }
.cert img { border-radius: var(--radius); border: 1px solid var(--line-soft); box-shadow: var(--shadow); background: #fff; }
.mb-0 { margin-bottom: 0; }
a.trust__item:hover { border-color: var(--gold-soft); }

/* Notice */
.notice { display: flex; gap: 14px; background: var(--gold-tint); border: 1px solid #f3d9ad; border-radius: var(--radius); padding: 16px 18px; font-size: .92rem; color: #4a3410; }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.notice p { margin: 0; }

/* Two columns content */
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--aside { grid-template-columns: 1.6fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 24px; }
@media (min-width: 900px) { .panel { padding: 32px; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-mid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23375361' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Page header */
.page-head { padding: 36px 0 40px; border-bottom: 1px solid var(--line-soft); }
.page-head h1 { margin-bottom: 14px; }
@media (min-width: 900px) { .page-head { padding: 64px 0 56px; } }
.crumbs { font-size: .82rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Treatment page */
.t-hero { display: grid; gap: 28px; align-items: center; }
.t-hero__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--stone); aspect-ratio: 16 / 10; }
.t-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .t-hero { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; font-size: .85rem; font-weight: 500; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line-soft); padding: 8px 14px; border-radius: 999px; }
.chips a:hover { border-color: var(--gold); color: var(--gold); }
.chips-bar { position: sticky; top: 68px; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 0; scroll-margin-top: 140px; }
.prose section { padding: 40px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 130px; }
.prose section:last-child { border-bottom: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.two-col { display: grid; gap: 16px; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col > div { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; }
.two-col h3 { font-size: 1.1rem; }
.two-col ul { margin: 0; }

details { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 10px; }
summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 500; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.4rem/1 var(--sans); color: var(--primary-2); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 20px 18px; color: var(--ink-soft); }
details > div p:last-child { margin: 0; }

/* Form */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; }
.field .hint { font-size: .8rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary-2); outline-offset: 0; border-color: var(--primary-2); }
.field--row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field--row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.field-error { font-size: .82rem; color: #ba1a1a; display: none; }
.is-invalid .field-error { display: block; }
.is-invalid input, .is-invalid select { border-color: #ba1a1a; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--primary-2); margin-top: 3px; }
.contact-list a { color: var(--ink); }

/* CTA band */
.cta-band { background: var(--primary); color: #e9f1ff; border-radius: var(--radius-lg); padding: 36px 24px; display: grid; gap: 20px; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0; color: #cdebfd; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-band .btn--ghost:hover { border-color: #fff; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 48px; } .cta-band .actions { justify-content: flex-end; } }

/* Footer */
.site-footer { background: #121c27; color: #b9c4cf; padding: 56px 0 120px; font-size: .9rem; }
.site-footer a { color: #e9f1ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
.footer-grid h4 { font: 600 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #8d9aa7; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand__sub { color: #8d9aa7; }
.footer-bottom { border-top: 1px solid #27313d; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: #8d9aa7; font-size: .8rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .site-footer { padding-bottom: 56px; } }

/* Mobile sticky bar */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 249, 255, .96); border-top: 1px solid var(--line-soft); backdrop-filter: blur(10px); }
.sticky-bar .btn { min-height: 46px; padding: 10px 12px; font-size: .9rem; white-space: nowrap; }
@media (min-width: 900px) { .split--aside > aside > :first-child { position: sticky; top: 140px; } }
@media (min-width: 1000px) { .sticky-bar { display: none; } }
.wa-float { display: none; }
@media (min-width: 1000px) {
  .wa-float { display: inline-flex; position: fixed; right: 24px; bottom: 24px; z-index: 40; align-items: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 18px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }
  .wa-float:hover { color: #fff; background: var(--primary); }
  .wa-float svg { width: 20px; height: 20px; }
}

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.stack > * + * { margin-top: 16px; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 40px; }

/* Patient guides (/guides/): guides.py + build.py guide_page() */
.g-draft { background: var(--gold-tint); border-bottom: 1px solid #f3d9ad; color: #4a3410; font-size: .9rem; padding: 10px 0; }
.g-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .85rem; color: var(--ink-soft); margin: 12px 0 0; }
.g-body { padding: 8px 0 40px; }
.g-body > h2 { margin: 40px 0 12px; scroll-margin-top: 130px; }
.g-body > h3 { margin: 28px 0 10px; scroll-margin-top: 130px; }
.g-body > ul, .g-body > ol { padding-left: 22px; }
.g-body li + li { margin-top: 6px; }
.g-body > section { padding: 24px 0 0; border-bottom: 0; }
.g-note { margin: 20px 0; background: var(--surface-low); border-left: 3px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; font-size: .95rem; }
.g-note p { margin: 0; }
.g-note p + p { margin-top: 8px; }
.g-table { margin: 20px 0 24px; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.g-table:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.g-table table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.g-table th { text-align: left; background: var(--surface-low); }
.g-table th, .g-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.g-table tr:last-child td { border-bottom: 0; }
.g-toc ol { margin: 8px 0 0; padding-left: 18px; font-size: .92rem; }
.g-toc li + li { margin-top: 6px; }
.g-card { padding: 22px; text-decoration: none; color: inherit; gap: 8px; }
.g-card h3 { margin: 0; }
.g-card p { margin: 0; }
.g-tag { align-self: flex-start; font-size: .75rem; font-weight: 600; background: var(--gold-tint); color: var(--gold); border-radius: 999px; padding: 2px 10px; }
