/* ============================================================
   Valley Family Dental — design system
   Extracted from the Claude Design mockup
   "Valley Family Dental.dc.html" (Aug 2026).
   Fraunces headlines + Inter body, cream paper, deep teal ink,
   blue gradient pills, rose-gold metallic numerals.
   ============================================================ */

:root {
  /* ink & paper */
  --ink:        #0F2A2E;
  --ink-card:   #1A383C;
  --ink-soft:   #5F7D94;
  --paper:      #FAF6EE;
  --paper-alt:  #E9F1EC;
  --white:      #FFFFFF;
  --cream-text: #F1EADC;

  /* primary blue */
  --blue:       #35688A;
  --blue-dark:  #27506C;
  --blue-light: #4A7DA0;
  --blue-grad:      linear-gradient(135deg,#4A7DA0 0%,#35688A 48%,#27506C 100%);
  --blue-grad-hover:linear-gradient(135deg,#5A8DB0 0%,#3C7196 48%,#2C5877 100%);
  --blue-inset: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 20px rgba(39,80,108,.22);

  /* rose gold */
  --rose:        #B0685C;
  --rose-paper:  #9E574C;   /* rose text on light backgrounds */
  --rose-dark:   #E9B7AA;   /* rose text on dark backgrounds */
  --rose-metal:      linear-gradient(120deg,#C98A7B 0%,#9A574E 24%,#F0CDBE 50%,#A85F55 72%,#8A4A42 100%);
  --rose-metal-dark: linear-gradient(120deg,#F7E0D4 0%,#D69B8B 24%,#FFF1E9 50%,#DCA695 72%,#B0685C 100%);

  /* sage & tints */
  --sage:       #9DBFAE;
  --sage-light: #E4EEE7;
  --sage-line:  #D6E5DB;
  --blue-tint:  #DCEAF5;

  /* sleep & airway program ONLY */
  --orange:       #E4572E;
  --orange-hover: #C74521;

  --hair:      rgba(15,42,46,.09);
  --hair-card: rgba(15,42,46,.07);
  --maxw: 1240px;
  --r-card: 22px;
  --r-lg:   24px;
  --focus:  0 0 0 3px rgba(53,104,138,.38);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--rose-dark); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: .98;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: pretty;
}
h1 { font-size: clamp(38px, 6.2vw, 78px); line-height: .96; margin-bottom: 26px; }
h2 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.0; }
h3 { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.14; letter-spacing: -.02em; }
h4 { font-size: 19px; letter-spacing: -.015em; }

/* the signature: one italic accent word per headline */
h1 em, h2 em, h3 em { font-style: italic; color: var(--blue); }
.dark h1 em, .dark h2 em, .dark h3 em { color: var(--rose-dark); }

p { margin: 0 0 18px; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

*:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: 14px 20px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: Inter, sans-serif; font-size: 15px; font-weight: 600;
  white-space: nowrap; text-decoration: none; transition: background .18s, transform .18s;
}
.btn-primary { background: var(--blue-grad); box-shadow: var(--blue-inset); color: #fff; }
.btn-primary:hover { background: var(--blue-grad-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(15,42,46,.22); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.dark .btn-ghost { border-color: rgba(250,246,238,.32); color: var(--paper); }
.dark .btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hover); color: #fff; }
.btn-lg { padding: 17px 32px; font-size: 16px; }

/* ---------------------------------------------------- eyebrow / metal */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--rose-paper); margin-bottom: 24px;
}
.dark .eyebrow { color: var(--rose-dark); }

.metal {
  font-family: Fraunces, Georgia, serif; font-style: italic;
  display: inline-block;
  background-image: var(--rose-metal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dark .metal { background-image: var(--rose-metal-dark); }

.stars { color: var(--rose); font-size: 16px; letter-spacing: .12em; }

/* ---------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 0; padding: 0; list-style: none; }
.chip {
  background: var(--sage-light); color: var(--ink);
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
}
.chip:nth-child(2n) { background: var(--blue-tint); }
.dark .chip { background: rgba(250,246,238,.1); color: var(--paper); }

/* ---------------------------------------------------- top bar + header */
.topbar { background: var(--ink); color: var(--cream-text); font-size: 13px; }
.topbar .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 11px 40px;
}
.topbar .tb { display: flex; align-items: center; gap: 7px; }
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rose-dark); }
.topbar a { color: var(--paper); border-bottom: 1px solid rgba(250,246,238,.35); }
.topbar a:hover { color: #fff; border-color: #fff; }
.topbar .hrs { opacity: .62; }
.topbar .flag { margin-left: auto; color: var(--rose-dark); }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,246,238,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 14px 22px; padding: 10px 40px;
}
.site-header .logo { flex: 0 0 auto; display: flex; align-items: center; }
.site-header .logo img { height: 60px; width: auto; display: block; }

.primary-nav { flex: 1 1 auto; min-width: 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 2px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav-links > li > a:hover,
.nav-links > li > a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--rose); }
.nav-links .cv { width: 13px; height: 13px; opacity: .5; }

.nav-links .sub {
  position: absolute; top: 100%; left: -14px; min-width: 264px; z-index: 30;
  background: var(--white); border: 1px solid var(--hair-card);
  border-radius: 18px; box-shadow: 0 22px 48px -18px rgba(15,42,46,.28);
  padding: 10px; list-style: none; margin: 10px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .sub a {
  display: block; padding: 9px 13px; border-radius: 11px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.nav-links .sub a:hover { background: var(--sage-light); color: var(--ink); }

.nav-cta { margin-left: auto; flex: 0 0 auto; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 11px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav { display: none; background: var(--paper); border-top: 1px solid var(--hair); padding: 10px 22px 24px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block; padding: 13px 2px; border-bottom: 1px solid var(--hair);
  color: var(--ink); font-weight: 500; font-size: 16px;
}

/* ---------------------------------------------------- breadcrumbs */
.crumbs { border-bottom: 1px solid var(--hair); background: var(--paper); }
.crumbs .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 12px 40px; font-size: 13px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.crumbs .sep { width: 12px; height: 12px; color: var(--ink-soft); opacity: .5; flex: none; }

/* ---------------------------------------------------- hero */
.hero { padding: 74px 0 66px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-sub { font-size: 19px; line-height: 1.62; color: #3A5257; max-width: 54ch; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-media {
  border-radius: 24px 24px 24px 96px; overflow: hidden;
  background: var(--blue-tint); aspect-ratio: 4/5; position: relative;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .media-note { position: absolute; inset: 0; }
.media-note {
  display: flex; align-items: center; justify-content: center;
  padding: 28px; text-align: center; font-size: 14px; line-height: 1.55;
  color: #56727C; font-style: italic;
}

.tel-strong { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }

/* ---------------------------------------------------- sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); }
.section-white { background: var(--white); }
.dark { background: var(--ink); color: var(--paper); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--paper); }
.dark p { color: rgba(250,246,238,.8); }
.dark a { color: var(--rose-dark); }

.sec-head { max-width: 760px; margin: 0 0 46px; }
.sec-head p { font-size: 18px; color: #3A5257; margin: 0; }
.dark .sec-head p { color: rgba(250,246,238,.76); }

/* ---------------------------------------------------- steps strip */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 34px; }
.step .num { font-size: 34px; line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { font-size: 15.5px; line-height: 1.62; margin: 0; }

/* ---------------------------------------------------- cards */
.card {
  background: var(--white); border: 1px solid var(--hair-card);
  border-radius: var(--r-card); padding: 32px 30px 34px;
}
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.dark .card { background: var(--ink-card); border-color: rgba(250,246,238,.1); }

/* ---------------------------------------------------- smile gallery */
.gal-group { margin-bottom: 56px; }
.gal-group:last-of-type { margin-bottom: 34px; }
.gal-group-title {
  font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 23px;
  letter-spacing: -.02em; margin: 0 0 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.gal-case {
  margin: 0; background: var(--white); border: 1px solid var(--hair-card);
  border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column;
}
/* The before/after pairs vary in height, so the image keeps its own ratio
   rather than being cropped into a fixed box. */
.gal-shot { background: var(--blue-tint); line-height: 0; }
.gal-shot picture { display: block; }
.gal-shot img { width: 100%; height: auto; display: block; }
.gal-case figcaption { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gal-case figcaption p { margin: 0; font-size: 15.5px; line-height: 1.58; color: #3A5257; }
.gal-case figcaption a { margin-top: auto; font-size: 14.5px; font-weight: 500; }
.gal-note { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 15.5px; font-style: italic; }

@media (max-width: 700px) {
  .gal-grid { grid-template-columns: 1fr; gap: 20px; }
  .gal-group { margin-bottom: 42px; }
}

.cat-card { display: block; color: var(--ink); }
.cat-card:hover { color: var(--ink); border-color: rgba(53,104,138,.4); }
.cat-card .cat-eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rose-paper); padding-bottom: 12px;
  border-bottom: 1px solid rgba(176,104,92,.3); margin-bottom: 14px;
}
.cat-card ul { list-style: none; margin: 0; padding: 0; }
.cat-card li a { display: block; padding: 5px 0; font-size: 15.5px; color: var(--ink); }
.cat-card li a:hover { color: var(--blue); }

/* ---------------------------------------------------- cost block */
.cost-block {
  background: var(--sage-light); border-radius: var(--r-lg);
  padding: 38px 36px; border: 1px solid var(--sage-line);
}
.cost-block h2 { margin-bottom: 14px; }
.cost-lead { font-size: 18px; line-height: 1.62; margin-bottom: 22px; }
.cost-list { list-style: none; margin: 0; padding: 0; }
.cost-list li {
  position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 16.5px; line-height: 1.58;
}
.cost-list li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--rose);
}
.price-metal { font-family: Fraunces, Georgia, serif; font-size: 40px; font-style: italic; }

/* ---------------------------------------------------- prose */
.prose { max-width: 780px; }
.hero .narrow .prose, .narrow > .prose { margin: 0; }
.prose h2 { margin: 52px 0 18px; scroll-margin-top: 110px; }
.prose > :first-child { margin-top: 0; }
.prose h3 { margin: 34px 0 12px; }
.prose p { font-size: 17.5px; line-height: 1.72; }
.prose p strong { font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }

.body-list { list-style: none; margin: 0 0 22px; padding: 0; }
.body-list li { position: relative; padding-left: 30px; margin-bottom: 11px; font-size: 17.5px; line-height: 1.65; }
.body-list li::before {
  content: ""; position: absolute; left: 5px; top: 11px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--rose);
}
ol.body-list { counter-reset: n; }
ol.body-list li::before {
  counter-increment: n; content: counter(n) ".";
  width: auto; height: auto; background: none; left: 0; top: 0;
  font-family: Fraunces, Georgia, serif; font-style: italic; color: var(--rose-paper); font-size: 17px;
}

.table-wrap { overflow-x: auto; margin: 0 0 26px; border-radius: 16px; border: 1px solid var(--hair-card); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 460px; background: var(--white); }
.table-wrap th {
  background: var(--ink); color: var(--paper); text-align: left; padding: 14px 16px;
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.table-wrap td { padding: 14px 16px; border-bottom: 1px solid var(--hair-card); vertical-align: top; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------- reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.review .stars { margin-bottom: 12px; display: block; }
.review p { font-size: 16.5px; line-height: 1.66; }
.review .who { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.review-placeholder {
  border: 1.5px dashed var(--rose); background: rgba(176,104,92,.05);
  font-style: italic; color: var(--rose-paper);
}

/* ---------------------------------------------------- FAQ */
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 22px;
  padding: 22px 2px; cursor: pointer; list-style: none;
  font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 20px;
  line-height: 1.28; letter-spacing: -.02em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-item .fx { width: 20px; height: 20px; flex: none; color: var(--rose); margin-top: 4px; transition: transform .2s; }
.faq-item[open] .fx { transform: rotate(45deg); }
.faq-a { padding: 0 2px 24px; }
.faq-a p { font-size: 16.5px; line-height: 1.7; color: #3A5257; margin: 0; }

/* ---------------------------------------------------- related */
.related { margin: 56px 0 0; padding: 30px 32px; background: var(--paper-alt); border-radius: var(--r-lg); }
.related h2 { font-size: 13px; font-family: Inter, sans-serif; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rose-paper); margin: 0 0 16px; }
.related-list { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 28px; }
.related-list a { font-size: 16.5px; font-weight: 500; color: var(--ink); }
.related-list a::before { content: "→ "; color: var(--rose); }
.related-list a:hover { color: var(--blue); }

/* ---------------------------------------------------- A–Z index */
.az { columns: 4 190px; column-gap: 30px; list-style: none; margin: 0; padding: 0; }
.az li { break-inside: avoid; padding: 5px 0; }
.az a { font-size: 15.5px; color: var(--ink); }
.az a:hover { color: var(--blue); }

/* ---------------------------------------------------- form */
.form-card { background: var(--white); border: 1px solid var(--hair-card); border-radius: var(--r-lg); padding: 38px 36px; }
.fld { margin-bottom: 16px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--rose-paper); }
.fld label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); }
.field {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid rgba(15,42,46,.14); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
textarea.field { resize: vertical; min-height: 86px; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-status { margin-top: 14px; padding: 13px 15px; border-radius: 12px; font-size: 15px; }
.form-status.err { background: #FBEAE6; color: #8A3323; border: 1px solid #EEC6BB; }
.form-secure { display: flex; gap: 9px; margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.form-secure svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* ---------------------------------------------------- CTA band */
.cta-band { background: var(--ink); color: var(--paper); padding: 78px 0; }
.cta-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(250,246,238,.8); font-size: 18px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }
.cta-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-phone {
  display: flex; align-items: center; gap: 11px; padding: 14px 16px;
  background: var(--ink-card); border: 1px solid rgba(250,246,238,.14);
  border-radius: 16px; color: var(--paper);
}
.cta-phone:hover { background: #22474C; color: var(--paper); }
.cta-phone svg { width: 19px; height: 19px; color: var(--rose-dark); flex: none; }
.cta-phone .loc { display: block; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: rgba(250,246,238,.6); }
.cta-phone .num { display: block; font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 17px; }

/* ---------------------------------------------------- sleep band (orange only here) */
.sleep-band { background: var(--ink); color: var(--paper); padding: 76px 0; }
.sleep-band .eyebrow { color: var(--orange); }
.sleep-band .btn-orange { box-shadow: 0 8px 20px rgba(228,87,46,.28); }

/* ---------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(250,246,238,.74); padding: 66px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 42px; }
.f-brand img { height: 58px; width: auto; }
.f-brand p { margin: 18px 0 0; max-width: 34ch; line-height: 1.62; }
.site-footer h4 {
  font-family: Inter, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--rose-dark); margin: 0 0 15px;
}
.f-loc .addr { line-height: 1.6; margin-bottom: 10px; }
.f-loc .ph { display: inline-block; font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 18px; color: var(--paper); margin-bottom: 8px; }
.f-loc .ph:hover { color: var(--rose-dark); }
.f-loc .hrs { font-size: 14px; color: rgba(250,246,238,.55); margin-bottom: 10px; }
.f-loc .floc-link { font-size: 14.5px; color: var(--rose-dark); }
.f-links ul { list-style: none; margin: 0; padding: 0; }
.f-links a { display: block; padding: 5px 0; color: rgba(250,246,238,.74); }
.f-links a:hover, .f-loc .floc-link:hover { color: var(--paper); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(250,246,238,.13);
  font-size: 13px; color: rgba(250,246,238,.5);
}
.footer-bottom a { color: rgba(250,246,238,.68); }
.footer-bottom a:hover { color: var(--paper); }

/* ---------------------------------------------------- sticky tap-to-call (mobile) */
.tapbar { display: none; }

/* ---------------------------------------------------- responsive */
@media (max-width: 1120px) {
  .primary-nav { display: none; }
  .nav-cta { margin-left: 0; }
  .nav-toggle { display: flex; }
  body.nav-open .mobile-nav { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  /*
   * Every hero photo is generated at 4:5, so the collapsed layout keeps that
   * ratio and crops nothing. The old 16/11 box showed only the middle 55% of
   * each hero — 22% off the top — which cut the heads off anyone standing in
   * frame on every phone, tablet and sub-1120px browser window.
   */
  .hero-media { aspect-ratio: 4/5; max-width: 440px; margin-inline: auto;
    border-radius: 24px 24px 24px 72px; }
}
@media (max-width: 860px) {
  .wrap, .site-header .wrap, .topbar .wrap, .crumbs .wrap { padding-left: 22px; padding-right: 22px; }
  .section { padding: 62px 0; }
  .hero { padding: 46px 0 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .cta-inner { grid-template-columns: 1fr; gap: 30px; }
  .cta-phones { grid-template-columns: 1fr; }
  .fld-row { grid-template-columns: 1fr; gap: 0; }
  .form-card, .cost-block { padding: 26px 22px; }
  .az { columns: 2 150px; }
  .topbar .flag { display: none; }

  /* sticky tap-to-call at every scroll depth */
  .tapbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
    background: var(--ink); border-top: 1px solid rgba(250,246,238,.16);
    padding: 8px; gap: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .tapbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 44px; padding: 7px 6px; border-radius: 999px;
    background: var(--blue-grad); box-shadow: var(--blue-inset); color: #fff;
    font-size: 12.5px; font-weight: 600; line-height: 1.25; text-align: center;
  }
  .tapbar a .lbl { font-size: 10.5px; opacity: .8; letter-spacing: .06em; text-transform: uppercase; }
  body { padding-bottom: 78px; }
}

@media print {
  .site-header, .topbar, .crumbs, .cta-band, .site-footer, .tapbar, .nav-toggle { display: none; }
  body { padding-bottom: 0; background: #fff; }
  .prose { max-width: none; }
}

/* ---------------------------------------------------- mobile tap targets
   WCAG 2.5.8: interactive targets ≥44px. Inline links inside a sentence are
   exempt, but standalone links, phone numbers and controls are not. */
.nav-toggle { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
@media (max-width: 860px) {
  .topbar .wrap { gap: 4px 18px; }
  .topbar a { display: inline-block; padding: 10px 0; min-height: 44px; line-height: 24px; }
  .related-list a, .az a, .cat-card li a, .f-links a, .mobile-nav a { display: block; padding: 11px 0; min-height: 44px; }
  .footer-bottom a { display: inline-block; padding: 10px 0; min-height: 44px; }
  .f-loc .ph, .f-loc .floc-link { display: inline-block; padding: 10px 0; min-height: 44px; }
  .faq-item summary { padding: 24px 2px; }
  .cost-block p a { display: inline-block; padding: 8px 0; }
}

/* ---------------------------------------------------- review trust bar
   Rating + count on every page. No competitor in the market shows theirs. */
.trustbar { background: var(--sage-light); border-bottom: 1px solid var(--sage-line); }
.trustbar .wrap { display: flex; justify-content: center; padding: 9px 40px; }
.trustbar a, .trustbar span { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  font-size: 14px; color: var(--ink); text-decoration: none; }
.trustbar a:hover { color: var(--blue); }
.trustbar .tb-stars { color: var(--rose); letter-spacing: .1em; font-size: 15px; }
.trustbar .tb-rating strong { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 16px; }
.trustbar .tb-count { color: #4A6168; }
@media (max-width: 860px) {
  .trustbar .wrap { padding: 9px 22px; text-align: center; }
  .trustbar a, .trustbar span { justify-content: center; font-size: 13px; }
}

/* ---------------------------------------------------- portrait / map / article media */
.portrait { display: grid; grid-template-columns: 320px 1fr; gap: 34px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 56px 40px 0; }
.portrait-frame { aspect-ratio: 4/5; border-radius: 24px 24px 24px 72px; overflow: hidden;
  background: var(--blue-tint); display: flex; align-items: center; justify-content: center; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-name { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 28px;
  letter-spacing: -.02em; margin: 0 0 6px; }
.portrait-alma { color: var(--ink-soft); margin: 0; }

.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.map-card h3 { margin-bottom: 14px; }
.map-frame { aspect-ratio: 16/10; border-radius: var(--r-card); overflow: hidden;
  background: var(--blue-tint); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; border: 1px solid var(--hair-card); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.article-media { aspect-ratio: 16/9; border-radius: var(--r-card); overflow: hidden;
  background: var(--blue-tint); display: flex; align-items: center; justify-content: center;
  margin: 0 0 8px; }
.media-note code { font-family: ui-monospace, Menlo, monospace; font-size: 12px;
  background: rgba(15,42,46,.06); padding: 2px 6px; border-radius: 4px; }

/*
 * Real photography renders as <picture>, which is display:inline by default —
 * that would leave the img's height:100% with nothing to resolve against. Make
 * it fill its frame so the existing object-fit: cover rules keep working, in
 * both the flex frames (.portrait-frame, .article-media) and .hero-media.
 */
.hero-media picture, .portrait-frame picture, .article-media picture {
  display: block; width: 100%; height: 100%; flex: 1 1 auto; align-self: stretch;
}
.article-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .portrait { grid-template-columns: 1fr; gap: 24px; padding: 36px 22px 0; }
  .portrait-frame { aspect-ratio: 4/3; border-radius: 24px 24px 24px 56px; }
}

/* Review summary — shown until real verbatim quotes land in REVIEW_QUOTES. */
.review-summary { text-align: center; max-width: 640px; margin: 0 auto; }
.review-summary .stars { font-size: 26px; display: block; margin-bottom: 14px; }
.review-score { font-size: 20px; line-height: 1.55; margin: 0 0 26px; }
.review-score strong { font-weight: 600; }
.review-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ==========================================================================
   /orb-smart-mouthguard/ — paid-traffic landing page.
   Scoped entirely under .orb-* so it cannot leak into the rest of the site.
   Built without photography on purpose: the practice's shoot has not happened,
   and a sports-tech page full of stock athletes would read as a stock page.
   ========================================================================== */

.orb-hero { position: relative; background: var(--ink); color: var(--cream-text);
  padding: 68px 0 76px; overflow: hidden; }
.orb-hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 78% 12%, rgba(74,125,160,.36), transparent 62%),
    radial-gradient(620px 360px at 8% 92%, rgba(176,104,92,.20), transparent 66%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px); }
.orb-hero .wrap { position: relative; }
.orb-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.orb-eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rose-dark); font-weight: 600; margin-bottom: 18px; }
.orb-hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.03; margin: 0 0 20px;
  color: var(--paper); letter-spacing: -.02em; }
.orb-hero h1 em { font-style: italic; background: var(--rose-metal-dark);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.orb-sub { font-size: 18px; line-height: 1.6; color: rgba(241,234,220,.84); max-width: 34em; margin: 0 0 28px; }

.orb-price-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.orb-price { border: 1px solid rgba(250,246,238,.20); border-radius: 14px;
  padding: 12px 18px; background: rgba(255,255,255,.045); }
.orb-price-hero { border-color: rgba(233,183,170,.46); background: rgba(176,104,92,.14); }
.orb-price-num { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 27px;
  font-weight: 600; color: var(--paper); font-variant-numeric: tabular-nums; }
.orb-price-lab { display: block; font-size: 12.5px; letter-spacing: .05em;
  text-transform: uppercase; color: rgba(241,234,220,.62); margin-top: 3px; }

.orb-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost-dark { background: transparent; border: 1.5px solid rgba(250,246,238,.36); color: var(--paper); }
.btn-ghost-dark:hover { border-color: var(--paper); background: rgba(255,255,255,.06); color: var(--paper); }
.orb-microcopy { margin: 18px 0 0; font-size: 14px; color: rgba(241,234,220,.6); }

/* --- the readout: a device, drawn rather than photographed --- */
.orb-readout { background: linear-gradient(160deg,#143136 0%,#0C2226 100%);
  border: 1px solid rgba(250,246,238,.13); border-radius: 26px; padding: 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,.42); max-width: 420px; margin-left: auto; }
.orb-readout-top { display: flex; align-items: center; gap: 9px; font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase; color: rgba(241,234,220,.58); }
.orb-dot { width: 8px; height: 8px; border-radius: 50%; background: #7FD1A4;
  box-shadow: 0 0 0 0 rgba(127,209,164,.6); animation: orbPulse 2.1s infinite; }
@keyframes orbPulse { 70% { box-shadow: 0 0 0 9px rgba(127,209,164,0); } 100% { box-shadow: 0 0 0 0 rgba(127,209,164,0); } }
.orb-readout-time { margin-left: auto; font-variant-numeric: tabular-nums; color: rgba(241,234,220,.72); }
.orb-bpm { margin: 20px 0 6px; }
.orb-bpm-num { font-family: 'Fraunces', Georgia, serif; font-size: 62px; line-height: 1;
  font-weight: 600; color: var(--paper); font-variant-numeric: tabular-nums; }
.orb-bpm-lab { font-size: 11px; letter-spacing: .2em; color: rgba(241,234,220,.55); margin-top: 2px; }
.orb-ecg { width: 100%; height: 46px; margin-top: 12px; }
.orb-ecg path { fill: none; stroke: #7FD1A4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 420; stroke-dashoffset: 420; animation: orbTrace 3.4s linear infinite; }
@keyframes orbTrace { to { stroke-dashoffset: -420; } }
.orb-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 18px 0 16px; }
.orb-tile { background: rgba(255,255,255,.05); border-radius: 12px; padding: 11px 10px; text-align: center; }
.orb-tile-num { display: block; font-size: 19px; font-weight: 600; color: var(--paper);
  font-variant-numeric: tabular-nums; }
.orb-tile-num i { font-style: normal; font-size: 11px; color: rgba(241,234,220,.55); margin-left: 2px; }
.orb-tile-lab { display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(241,234,220,.5); margin-top: 3px; }
.orb-bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.orb-bars span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg,#5A8DB0,#27506C); }
.orb-readout-foot { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(241,234,220,.45); margin-top: 9px; }

@media (prefers-reduced-motion: reduce) {
  .orb-dot, .orb-ecg path { animation: none; }
  .orb-ecg path { stroke-dashoffset: 0; }
}

/* --- shared section furniture --- */
.orb-kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--rose-paper); margin-bottom: 12px; }
.orb-kicker-light { color: var(--rose-dark); }
.orb-sec-head { max-width: 40rem; margin-bottom: 40px; }
.orb-sec-head h2, .orb-two h2, .orb-teams-inner h2, .orb-book-copy h2 {
  font-size: clamp(28px,3.4vw,42px); line-height: 1.12; margin: 0; letter-spacing: -.015em; }
.orb-sec-head h2 em, .orb-two h2 em, .orb-book-copy h2 em { font-style: italic; color: var(--rose-paper); }
.orb-teams-inner h2 em { font-style: italic; background: var(--rose-metal-dark);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

.orb-hook { background: var(--paper-alt); padding: 40px 0; }
.orb-hook p { font-size: 19px; line-height: 1.6; margin: 0; max-width: 52rem; }

.orb-metrics { padding: 76px 0; }
.orb-metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.orb-metric { border: 1px solid var(--hair); border-radius: var(--r-card); padding: 26px 24px;
  background: var(--white); }
.orb-metric-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue-dark); margin-bottom: 15px; }
.orb-metric-ic svg { width: 21px; height: 21px; }
.orb-metric h3 { font-size: 18px; margin: 0 0 7px; }
.orb-metric p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.orb-note { margin: 26px 0 0; font-size: 14px; color: var(--ink-soft); }

.orb-compare { background: var(--paper-alt); padding: 76px 0; }
.orb-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.orb-table { width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--r-card); overflow: hidden; min-width: 560px; }
.orb-table th, .orb-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--hair-card); }
.orb-table thead th { background: var(--ink); color: var(--paper); vertical-align: bottom; }
.orb-table thead th.orb-th-hero { background: var(--blue-grad); }
.orb-th-lab { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.orb-th-name { display: block; font-size: 15px; font-weight: 600; }
.orb-th-price { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 25px;
  font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.orb-table tbody th { font-weight: 500; font-size: 15px; color: var(--ink); }
.orb-table td { text-align: center; width: 26%; }
.orb-td-hero { background: rgba(53,104,138,.05); }
.orb-yes { color: #2E7D5B; font-size: 19px; font-weight: 700; }
.orb-no  { color: var(--ink-soft); opacity: .45; font-size: 19px; }
.orb-val { font-size: 13.5px; color: var(--ink-soft); }

.orb-steps { padding: 76px 0; }
.orb-step-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; list-style: none;
  padding: 0; margin: 0; counter-reset: none; }
.orb-step { border-top: 2px solid var(--blue); padding-top: 20px; }
.orb-step-n { font-family: 'Fraunces', Georgia, serif; font-size: 34px; font-weight: 600;
  background: var(--rose-metal); -webkit-background-clip: text; background-clip: text;
  color: transparent; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.orb-step h3 { font-size: 19px; margin: 0 0 7px; }
.orb-step p { margin: 0; color: var(--ink-soft); line-height: 1.55; }

.orb-parents { background: var(--paper-alt); padding: 76px 0; }
.orb-two { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: start; }
.orb-two h2 { margin-bottom: 20px; }
.orb-two p { line-height: 1.65; }
.orb-punch { border-left: 3px solid var(--rose); padding-left: 18px; font-size: 17px; color: var(--ink); }
.orb-callout { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 28px; }
.orb-callout h3 { margin: 0 0 16px; font-size: 19px; }
.orb-callout ul { margin: 0; padding-left: 18px; }
.orb-callout li { margin-bottom: 14px; line-height: 1.55; font-size: 15px; color: var(--ink-soft); }
.orb-callout li strong { color: var(--ink); }

.orb-teams { background: var(--ink); color: var(--cream-text); padding: 74px 0; }
.orb-teams-inner { max-width: 46rem; }
.orb-teams h2 { color: var(--paper); margin-bottom: 18px; }
.orb-teams p { color: rgba(241,234,220,.82); line-height: 1.65; font-size: 17px; margin-bottom: 28px; }

.orb-honest { padding: 76px 0; }
.orb-honest-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.orb-honest-card { border: 1px solid var(--hair); border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-card) var(--r-card) 0; padding: 26px 26px 26px 24px; background: var(--white); }
.orb-honest-card h3 { margin: 0 0 9px; font-size: 18px; }
.orb-honest-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: 15px; }

.orb-faq { background: var(--paper-alt); padding: 76px 0; }
.orb-faq-item { border-bottom: 1px solid var(--sage-line); }
.orb-faq-item summary { cursor: pointer; padding: 20px 0; font-size: 17px; font-weight: 500;
  list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.orb-faq-item summary::-webkit-details-marker { display: none; }
.orb-faq-item summary::after { content: '+'; font-size: 22px; color: var(--rose-paper); flex: none; }
.orb-faq-item[open] summary::after { content: '\2013'; }
.orb-faq-a { padding: 0 0 20px; color: var(--ink-soft); line-height: 1.65; max-width: 46rem; }
.orb-faq-a p { margin: 0; }

.orb-book { padding: 76px 0; }
.orb-book-card { background: var(--blue-grad); color: var(--white); border-radius: var(--r-lg);
  padding: 52px 46px; }
.orb-book-card h2 { color: var(--white); margin-bottom: 16px; }
.orb-book-card h2 em { font-style: italic; background: var(--rose-metal-dark);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.orb-book-copy p { color: rgba(255,255,255,.9); line-height: 1.65; max-width: 44rem; }
.orb-offices { display: flex; gap: 46px; flex-wrap: wrap; margin-top: 26px; font-size: 15px;
  line-height: 1.6; color: rgba(255,255,255,.9); }
.orb-offices a { color: var(--white); }

@media (max-width: 980px) {
  .orb-hero-grid, .orb-two { grid-template-columns: 1fr; gap: 38px; }
  .orb-readout { margin: 0 auto; }
  .orb-metric-grid, .orb-step-grid, .orb-honest-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .orb-hero { padding: 46px 0 54px; }
  .orb-metric-grid, .orb-step-grid, .orb-honest-grid { grid-template-columns: 1fr; }
  .orb-book-card { padding: 34px 24px; }
  .orb-price-row { gap: 10px; }
  .orb-price { flex: 1 1 44%; }
}

/* Ad-landing discipline for the ORB page on phones. Paid mobile traffic was
   burning the whole first screen on topbar + trust bar + breadcrumb before it
   reached the headline, so the price and CTA sat below the fold. Scoped with
   :has() so no template change is needed; where :has() is unsupported the page
   simply keeps its chrome, which is a safe fallback. The sticky call bar still
   carries both phone numbers, so nothing is lost by hiding the topbar. */
@media (max-width: 680px) {
  body:has(.orb-hero) .topbar,
  body:has(.orb-hero) .crumbs,
  body:has(.orb-hero) .breadcrumbs { display: none; }
  body:has(.orb-hero) .trustbar { padding: 8px 0; font-size: 13px; }
  .orb-hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .orb-sub { font-size: 16.5px; margin-bottom: 22px; }
  .orb-eyebrow { font-size: 11px; margin-bottom: 14px; }
  .orb-actions .btn { width: 100%; justify-content: center; }
  .orb-readout { padding: 20px; }
  .orb-bpm-num { font-size: 52px; }
}

/* Call-first conversion path on the ORB landing page. Social traffic converts
   on a tap, not a form: the phone number is the primary action everywhere and
   the request form is positioned as the after-hours fallback. Each button
   carries data-call-source so calls from this page can be told apart from
   sitewide call taps in analytics. */
.orb-call { display: inline-flex; flex-direction: column; align-items: center;
  line-height: 1.15; gap: 2px; }
.orb-call small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; opacity: .72; }
.orb-microcopy a { color: var(--rose-dark); }

.orb-callband { background: var(--blue-grad); color: var(--white); padding: 54px 0; }
.orb-callband-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.orb-callband h2 { font-size: clamp(26px,3vw,38px); line-height: 1.14; margin: 0 0 12px; color: var(--white); }
.orb-callband h2 em { font-style: italic; background: var(--rose-metal-dark);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.orb-callband p { margin: 0; color: rgba(255,255,255,.9); line-height: 1.6; max-width: 40rem; }
.orb-callband-actions { display: flex; flex-direction: column; gap: 12px; }
.orb-callband-actions .btn-primary { background: var(--white); color: var(--blue-dark);
  box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.orb-callband-actions .btn-primary:hover { background: var(--paper); color: var(--blue-dark); }
.orb-callband-actions .btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.orb-callband-actions .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }

.orb-book-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.orb-book-btn { background: var(--white); color: var(--blue-dark); }
.orb-book-btn:hover { background: var(--paper); color: var(--blue-dark); }
.orb-book-hours { margin: 18px 0 0; font-size: 14px; color: rgba(255,255,255,.78); }

@media (max-width: 980px) { .orb-callband-inner { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 680px) {
  .orb-callband-actions .btn, .orb-book-actions .btn { width: 100%; }
  .orb-book-actions { flex-direction: column; }
}
