@charset "utf-8";
/* ==========================================================================
   David C. Steele, DDS — site styles
   Plain CSS, no build step, no external fonts or requests.
   1.  Design tokens
   2.  Reset & base
   3.  Accessibility helpers
   4.  Layout
   5.  Header & navigation
   6.  Buttons & links
   7.  Hero
   8.  Sections, headings, cards
   9.  Before/after gallery
   10. Steps, quick facts, callouts
   11. Accordion / questions
   12. Tables
   13. Article & glossary
   14. Forms
   15. Footer
   16. Responsive
   17. Print & motion
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --ink: #16242c;
  --ink-soft: #2f4750;
  --muted: #5d7379;
  --line: #dbe5e8;
  --line-soft: #eaf1f3;

  --teal-900: #0a3d4a;
  --teal-800: #0e5464;
  --teal-700: #105f70;
  --teal-600: #15778b;
  --teal-100: #e4f0f3;
  --teal-50: #f2f8f9;

  --sand-700: #a87c45;
  --sand-500: #c69a60;
  --sand-200: #f0e4d2;
  --sand-50: #fbf6ee;

  --paper: #ffffff;
  --paper-2: #f7fafb;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(12, 38, 46, .06), 0 2px 8px rgba(12, 38, 46, .05);
  --shadow: 0 2px 4px rgba(12, 38, 46, .05), 0 12px 28px rgba(12, 38, 46, .08);
  --shadow-lg: 0 24px 56px rgba(10, 46, 56, .16);

  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", "Noto Serif", serif;

  --wrap: 1140px;
  --wrap-narrow: 760px;
  --header-h: 76px;
}

/* 2. Reset & base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--teal-900);
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 2.1vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
li:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
strong, b { font-weight: 700; color: var(--ink); }
small { font-size: .875rem; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

:where(section, article) { scroll-margin-top: calc(var(--header-h) + 16px); }

/* 3. Accessibility helpers ----------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--teal-900);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 4. Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(2.2rem, 4vw, 3.2rem); }
.section--paper { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.section--teal { background: linear-gradient(180deg, var(--teal-900), var(--teal-800)); color: #eaf4f6; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--teal a { color: #cfe8ec; }
.section--sand { background: var(--sand-50); border-block: 1px solid var(--sand-200); }

.stack > * + * { margin-top: 1.1rem; }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.center { text-align: center; }
.measure { max-width: 68ch; }
.measure--narrow { max-width: 58ch; }

/* 5. Header & navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--teal-900);
}
.brand__mark {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(160deg, var(--teal-700), var(--teal-900));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.brand__text { display: block; line-height: 1.15; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand__tag {
  display: block;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  display: block;
  padding: .5rem .62rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav ul a:hover { background: var(--teal-50); color: var(--teal-800); }
.site-nav ul a[aria-current="page"] { color: var(--teal-800); background: var(--teal-100); }
.site-nav > .btn { flex: 0 0 auto; }

.header-phone {
  display: none;
  align-items: center;
  gap: .35rem;
  margin-right: .25rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--teal-800);
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--teal-900);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__bars { display: inline-block; width: 18px; height: 2px; position: relative; background: currentColor; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* 6. Buttons & links ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(160deg, var(--teal-700), var(--teal-900));
  color: #fff;
  box-shadow: 0 10px 22px rgba(10, 61, 74, .2);
}
.btn--primary:hover { color: #fff; box-shadow: 0 14px 28px rgba(10, 61, 74, .26); }
.btn--accent {
  background: var(--sand-500);
  color: #23180a;
  box-shadow: 0 10px 22px rgba(168, 124, 69, .24);
}
.btn--accent:hover { background: #d3a86c; color: #1d1408; }
.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--teal-800);
}
.btn--ghost:hover { border-color: var(--teal-600); color: var(--teal-900); }
.btn--on-dark {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn--sm { padding: .6rem 1rem; font-size: .86rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link {
  font-weight: 700;
  color: var(--teal-700);
  text-decoration: none;
  border-bottom: 2px solid var(--sand-500);
  padding-bottom: 1px;
}
.text-link:hover { color: var(--teal-900); border-bottom-color: var(--teal-900); }

/* 7. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(21, 119, 139, .16), transparent 65%),
    radial-gradient(700px 400px at 0% 110%, rgba(198, 154, 96, .14), transparent 60%),
    var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: center;
  padding-block: clamp(2.4rem, 5vw, 4.2rem);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero h1 { margin-bottom: .5em; }
.hero__lead {
  font-size: clamp(1.02rem, .96rem + .3vw, 1.14rem);
  color: var(--ink-soft);
  max-width: 54ch;
}
.hero__media { position: relative; }
.hero__portrait {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 12px 12px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .9);
}
.hero__portrait img {
  width: 240px;
  height: auto;
  border-radius: 6px;
}
.hero__portrait figcaption {
  padding: .85rem .2rem 1.05rem;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}
.hero__portrait figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: .98rem;
  color: var(--teal-900);
}
.hero__badge { display: none; }

/* Page header for inner pages */
.page-head {
  background:
    radial-gradient(700px 300px at 90% -30%, rgba(21, 119, 139, .14), transparent 70%),
    var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(1.8rem, 4vw, 3rem);
}
.page-head h1 { margin-bottom: .5em; }
.page-head__lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 66ch; }

/* Breadcrumbs */
.crumbs { margin: 0 0 1rem; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .82rem;
  color: var(--muted);
}
.crumbs li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-800); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--teal-800); font-weight: 600; }

/* 8. Sections, headings, cards ------------------------------------------ */
.kicker {
  display: block;
  margin-bottom: .7rem;
  color: var(--sand-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.section__head { max-width: 62ch; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-soft); margin-bottom: 0; }
.section--teal .section__head p { color: #cfe3e7; }

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h2, .card h3 { margin-bottom: .45rem; font-size: 1.18rem; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card p:last-of-type { margin-bottom: 0; }
.card__link {
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--teal-700);
  text-decoration: none;
}
.card__link::after { content: " →"; }
a.card { text-decoration: none; color: inherit; }
a.card:hover,
a.card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #bfd5db;
}
a.card:hover h2, a.card:hover h3 { color: var(--teal-700); }

.card__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .8rem;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 1.1rem; height: .62rem;
  border-left: 2.5px solid var(--sand-500);
  border-bottom: 2.5px solid var(--sand-500);
  transform: rotate(-45deg);
}
.section--teal .feature-list li { color: #d6e7ea; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stat {
  text-align: center;
  padding-inline: .4rem;
}
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--teal-800);
  line-height: 1.2;
}
.stat__label {
  display: block;
  margin-top: .25rem;
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .02em;
}

.quote {
  margin: 0;
  padding: 1.5rem 1.6rem;
  border-left: 4px solid var(--sand-500);
  background: var(--sand-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal-900);
}
.quote footer {
  margin-top: .7rem;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--muted);
}

/* 9. Before / after gallery --------------------------------------------- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.ba-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ba-card__body { padding: 1.15rem 1.25rem 1.3rem; }
.ba-card__body h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.ba-card__body p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 0; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line-soft); }
.ba-pair figure { position: relative; background: #0c2a33; margin: 0; }
.ba-pair figcaption {
  position: absolute;
  left: 0; bottom: 0;
  padding: .2rem .5rem;
  background: rgba(10, 43, 53, .82);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}
.ba-pair img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.media-frame img { width: 100%; }
/* The portrait is only 173 px wide natively — never upscale it into mush. */
.media-frame--portrait,
.media-frame:has(img[src$="dr-david-steele-dds.jpg"]) {
  max-width: 240px;
  margin-inline: auto;
  border: 0;
  background: none;
  box-shadow: none;
}
.media-frame--portrait figcaption,
.media-frame:has(img[src$="dr-david-steele-dds.jpg"]) figcaption {
  border-top: 0;
  background: none;
  padding-inline: 0;
}
.media-frame img[src$="dr-david-steele-dds.jpg"] {
  width: 173px;
  max-width: 100%;
  margin-inline: auto;
  height: auto;
}
.media-frame figcaption,
figcaption.caption {
  padding: .7rem .9rem;
  font-size: .82rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

/* 10. Steps, quick facts, callouts -------------------------------------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding: 1.2rem 1.3rem 1.2rem 3.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.15rem; top: 1.1rem;
  width: 1.9rem; height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-800);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
}
.steps h3 { font-size: 1.02rem; font-family: var(--font-body); margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.fact-box {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.fact-box h2, .fact-box h3 { font-size: 1.05rem; font-family: var(--font-body); }
.fact-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem .9rem; font-size: .92rem; }
.fact-box dt { color: var(--muted); }
.fact-box dd { margin: 0; font-weight: 600; color: var(--ink); }

.callout {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--sand-200);
  background: var(--sand-50);
  font-size: .95rem;
}
.callout__icon {
  flex: 0 0 auto;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sand-500);
  color: #fff;
  font-weight: 700;
}
.callout p { margin: 0; }
.callout--info { border-color: #cfe2e7; background: var(--teal-50); }
.callout--info .callout__icon { background: var(--teal-600); }

/* 11. Accordion / questions --------------------------------------------- */
.qa-list { display: grid; gap: .8rem; }
.qa {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.qa > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--teal-900);
  list-style: none;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-800);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1;
}
.qa[open] > summary::after { content: "−"; }
.qa[open] > summary { border-bottom: 1px solid var(--line-soft); }
.qa__body { padding: 1.1rem 1.25rem 1.3rem; color: var(--ink-soft); }
.qa__body > :last-child { margin-bottom: 0; }
.qa > summary:hover { background: var(--teal-50); }

/* 12. Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
caption { padding: .8rem 1rem; text-align: left; font-size: .85rem; color: var(--muted); }
th, td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
thead th { background: var(--teal-50); color: var(--teal-900); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 13. Article & glossary ------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose > :first-child { margin-top: 0; }
.prose blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.3rem;
  border-left: 4px solid var(--sand-500);
  background: var(--sand-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}
.prose ul, .prose ol { color: var(--ink-soft); }

.toc {
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.toc h2, .toc h3 { font-size: .95rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .6rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .93rem; }
.toc li { margin: 0; }

.az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 5;
  box-shadow: var(--shadow-sm);
}
.az-nav a {
  display: grid;
  place-items: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--teal-800);
  background: var(--teal-50);
}
.az-nav a:hover { background: var(--teal-700); color: #fff; }

.terms { margin: 0; display: grid; gap: 0 2.6rem; }
.terms > div { break-inside: avoid; }
.terms dt {
  font-weight: 700;
  color: var(--teal-900);
  margin-top: 1.1rem;
  font-size: 1rem;
}
.terms dd {
  margin: .15rem 0 0;
  color: var(--ink-soft);
  font-size: .96rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 860px) {
  .terms { grid-template-columns: 1fr 1fr; }
}
.glossary { max-width: none; }
.terms dt + dd { margin-top: .2rem; }
.letter-heading {
  margin-top: 2.4rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--sand-200);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--teal-800);
}
.letter-heading:first-of-type { margin-top: 0; }

/* 14. Forms -------------------------------------------------------------- */
.form-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
.field .hint { font-size: .78rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .68rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-600);
  outline: 2px solid rgba(21, 119, 139, .18);
  outline-offset: 1px;
}
.field input:user-invalid { border-color: #b4413a; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.2rem; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cfe2e7;
  background: var(--teal-50);
  font-size: .9rem;
  color: var(--teal-900);
}
.form-status[hidden] { display: none; }

/* 15. Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: 0;
  background: var(--teal-900);
  color: #c9dde2;
  padding-block: clamp(2.4rem, 5vw, 3.6rem) 1.4rem;
  font-size: .93rem;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(1.6rem, 3vw, 2.6rem);
}
.site-footer a { color: #d7e7ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .42rem; }
.site-footer p { color: #b6cfd5; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand .brand__name { color: #fff; font-size: 1.1rem; }
.footer-brand .brand__tag { color: #9dbcc3; }
.footer-cta { margin-top: 1.1rem; }
.footer-hours { display: grid; gap: .25rem; font-size: .89rem; color: #b6cfd5; }
.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  font-size: .82rem;
  color: #9dbcc3;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1rem; }

/* 16. Responsive --------------------------------------------------------- */
@media (min-width: 1240px) {
  .header-phone { display: inline-flex; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    padding: 1rem 22px 1.4rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .site-nav ul a { padding: .7rem .6rem; font-size: 1rem; }
  .header-phone { display: inline-flex; margin-right: 0; }
  .site-header__inner { position: relative; flex-wrap: wrap; }
  .site-nav .btn { margin-top: .5rem; width: 100%; }
  .site-header .brand__tag { display: none; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { padding-block: .3rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .az-nav { position: static; }
  .stat-strip { grid-template-columns: 1fr; gap: .8rem; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-soft); padding-top: .8rem; }
  .quote { font-size: 1rem; }
  .hero__badge { position: static; margin-top: 1rem; max-width: none; }
  .table-wrap { border-radius: var(--radius-sm); }
  th, td { padding: .6rem .75rem; }
}

/* 17. Print & motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .btn-row, .skip-link, .az-nav { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .card, .qa, .fact-box { box-shadow: none; border-color: #999; break-inside: avoid; }
  .section { padding-block: 1rem; }
  .hero { background: none; }
}
