/* =========================================================================
   Cisco Dental — site.css
   Design language: warm rural Texas + sophisticated preventive practice.
   Palette is anchored to the Cisco Dental gold wordmark on a limestone-cream
   base, with live-oak green and red-clay accents and a mineral-blue secondary.
   Restrained motion. Generous whitespace. No portrait above the fold.
   ========================================================================= */

/* ---------- Design tokens -------------------------------------------------- */
:root {
  /* Color — remapped 2026-05-29 to a DARK STRESSED-LEATHER theme.
     The former light "limestone" fills are now deep leather tones, and the
     former dark "ink" text is now warm cream. Because the whole site is
     token-driven (including inline color:var(--color-ink-*) styles in the
     HTML), this single remap flips everything to a cohesive dark-leather
     look — no beige/khaki, all text legible — without any HTML changes. */
  --color-limestone-50:  #241509;                    /* deep leather: page base / form inputs */
  --color-limestone-100: #2E1C0E;                    /* leather-glass band / hover surface */
  --color-limestone-200: rgba(216, 183, 119, 0.22);  /* brass hairline border */
  --color-sand-300:      #3A2614;
  --color-brass-700:     #8A6A28;
  --color-brass-500:     #C29A45;                     /* slightly brighter gold for dark bg */
  --color-brass-300:     #E7C887;                     /* bright gold for links/accents on dark */
  --color-liveoak-900:   #0F2A23;
  --color-liveoak-800:   #1F4D3F;
  --color-liveoak-600:   #3B7361;
  --color-mineral-700:   #7FA8C4;                     /* lightened so journal/role labels read on dark */
  --color-mineral-500:   #3A6E8F;
  --color-redclay-700:   #7C3A1E;
  --color-redclay-500:   #CC6A36;                     /* lightened Texas clay: labels + primary CTA on dark */
  --color-ink-900:       #F4EFE2;                     /* headings (was dark ink) */
  --color-ink-700:       #DCD3BE;                     /* body copy (was dark ink) */
  --color-ink-500:       #C2B9A2;                     /* muted (was dark ink) */
  --color-ink-400:       #A89F8A;                     /* faint (was dark ink) */

  /* Deep live-oak ambient treatment — used for background washes */
  --color-forest-900:    #11271F;
  --color-forest-800:    #1B3A2E;
  --color-forest-700:    #285244;
  --color-sage-veil-1:   #E9EDE4;
  --color-sage-veil-2:   #DCE3D6;
  /* Subtle tanned-hide grain (grayscale fractal noise) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  --bg-page:             var(--color-limestone-50);   /* dark leather (form inputs) */
  --bg-surface:          rgba(38, 24, 13, 0.62);       /* leather-glass cards */
  --bg-band:             transparent;                  /* bands let the body leather show through */
  --bg-deep:             var(--color-liveoak-900);

  /* ---- Stressed-leather background canvas (2026-05-29) ----
     A single optimized texture used as the site-wide backdrop. It sits under
     the dark architecture (page base, hero, deep/ambient-deep bands, footer,
     top bar) so light text stays legible; light reading panels remain light.
     Warm-dark scrims tame the copper highlights and tie it to the brass/green
     palette. */
  --leather:      url("/assets/img/stressed-leather.jpg");
  --leather-ink:  #221409;   /* deep leather brown — fallback + edges */

  --text-on-light:       var(--color-ink-900);
  --text-on-light-mute:  var(--color-ink-500);
  --text-on-deep:        #F1ECDD;
  --text-on-deep-muted:  #C9C0A8;

  /* Type */
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --sp-20: 80px; --sp-24: 96px; --sp-32: 128px;

  --radius-sm: 6px;  --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(20, 24, 22, 0.06), 0 1px 4px rgba(20, 24, 22, 0.04);
  --shadow-md: 0 6px 16px rgba(20, 24, 22, 0.08), 0 2px 4px rgba(20, 24, 22, 0.05);
  --shadow-lg: 0 16px 40px rgba(20, 24, 22, 0.12);

  --container: 1200px;
  --container-narrow: 760px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset & base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-light);
  /* Leather canvas: fixed, cover, with a warm-dark scrim baked in. */
  background-color: var(--leather-ink);
  background-image:
    linear-gradient(180deg, rgba(20,12,6,0.34) 0%, rgba(20,12,6,0.46) 100%),
    var(--leather);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Mobile browsers handle fixed+cover poorly; scroll avoids jank/jumping. */
@media (max-width: 820px) { body { background-attachment: scroll; } }
/* Plain sections are transparent so the body leather shows through (text is
   light cream via the dark-theme tokens). Modifiers below add scrims/photos. */
.section { background: transparent; }
img, svg, picture { max-width: 100%; display: block; }
a { color: var(--color-liveoak-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-redclay-500); }
button { font: inherit; cursor: pointer; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-brass-500);
  outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-6); }
.text-center { text-align: center; }

/* ---------- Type system --------------------------------------------------- */
.h1, .hero__headline, .h2, .h3 { font-family: var(--font-serif); font-weight: 500; color: var(--text-on-light); letter-spacing: -0.005em; }
.h1, .hero__headline { font-size: clamp(2.4rem, 4.5vw, 4.0rem); line-height: 1.08; }
.h2 { font-size: clamp(1.9rem, 3.0vw, 2.7rem); line-height: 1.15; margin: 0 0 var(--sp-4); }
.h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 var(--sp-3); }
.hero__headline em { font-style: italic; color: var(--color-brass-700); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-redclay-500);
  margin: 0 0 var(--sp-4);
}
.lede {
  font-size: 1.15rem; line-height: 1.55;
  color: var(--text-on-light-mute);
  max-width: 60ch;
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 12px 22px;
  font-weight: 600; font-size: 0.96rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn--lg { padding: 14px 26px; font-size: 1.02rem; }
.btn--primary { background: var(--color-redclay-500); color: #FFF; }
.btn--primary:hover { background: var(--color-redclay-700); color: #FFF; transform: translateY(-1px); }
.btn--secondary { background: var(--color-liveoak-800); color: #FFF; }
.btn--secondary:hover { background: var(--color-liveoak-900); color: #FFF; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--color-liveoak-900); border-color: var(--color-liveoak-800); }
.btn--ghost:hover { background: var(--color-liveoak-800); color: #FFF; }
.btn--on-deep { background: var(--color-brass-500); color: var(--color-liveoak-900); }
.btn--on-deep:hover { background: var(--color-brass-300); color: var(--color-liveoak-900); }

/* ---------- Topbar -------------------------------------------------------- */
.topbar {
  background-color: var(--color-liveoak-900);
  background-image: linear-gradient(rgba(20,12,6,0.56), rgba(20,12,6,0.64)), var(--leather);
  background-size: cover; background-position: center;
  color: var(--text-on-deep-muted); font-size: 0.85rem;
}
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: 8px var(--sp-6); justify-content: center; }
.topbar__phone { color: var(--color-brass-300); font-weight: 600; text-decoration: none; }
.topbar__phone:hover { color: var(--color-brass-300); text-decoration: underline; }
.topbar__divider { color: var(--color-ink-400); opacity: 0.7; }

/* ---------- Header & nav -------------------------------------------------- */
.brand__logo { height: 48px; width: auto; display: block; }
@media (max-width: 600px) { .brand__logo { height: 40px; } }
.header { background: var(--bg-surface); border-bottom: 1px solid var(--color-limestone-200); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); padding: var(--sp-4) var(--sp-6); }
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: inherit; }
.brand__wordmark { height: 56px; width: auto; display: block; }
.brand__wordmark--small { height: 44px; }
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-liveoak-800);
  color: #FFF;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0;
  flex: 0 0 auto;
}
.brand__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--color-ink-900);
}
.brand__tag {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--text-on-light-mute);
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-on-deep);
  margin-bottom: var(--sp-3);
}
@media (max-width: 768px) { .brand__wordmark { height: 44px; } }

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav__list { display: flex; align-items: center; gap: var(--sp-5); list-style: none; padding: 0; margin: 0; }
.nav__link { color: var(--color-ink-900); text-decoration: none; font-weight: 500; font-size: 0.96rem; padding: 8px 4px; position: relative; }
.nav__link:hover { color: var(--color-liveoak-800); }
.nav__link--has-menu::after { content: " ▾"; font-size: 0.7em; color: var(--color-ink-400); }
.nav__link--ext { color: var(--color-brass-700); }
.nav__link--ext::after { content: " ↗"; font-size: 0.78em; color: var(--color-brass-500); margin-left: 2px; }
.header__cta { white-space: nowrap; }

.megamenu { position: relative; }
.megamenu__panel {
  position: absolute; left: 0; top: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--color-limestone-200);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  width: 380px;
  opacity: 0; visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
  z-index: 30;
}
.megamenu:hover .megamenu__panel,
.megamenu:focus-within .megamenu__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.megamenu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.megamenu__link { display: block; padding: var(--sp-3); border-radius: var(--radius-sm); text-decoration: none; color: var(--color-ink-900); transition: background .12s var(--ease); }
.megamenu__link:hover { background: var(--color-limestone-100); color: var(--color-ink-900); }
.megamenu__link strong { display: block; font-size: 0.98rem; }
.megamenu__link span { display: block; font-size: 0.86rem; color: var(--text-on-light-mute); margin-top: 2px; }

.megamenu__panel--wide { width: min(720px, calc(100vw - 2rem)); }
.megamenu__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.megamenu__heading { margin: 0 0 var(--sp-2); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; }
.megamenu__heading a { color: var(--color-liveoak-800); font-weight: 700; text-decoration: none; }
.megamenu__heading a:hover { text-decoration: underline; }
.nav__toggle { display: none; background: none; border: 1px solid var(--color-limestone-200); border-radius: var(--radius-sm); padding: 8px 12px; }
.nav__toggle::before { content: "☰"; font-size: 1.2rem; color: var(--color-ink-900); }
@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__list { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-surface); border-bottom: 1px solid var(--color-limestone-200); padding: var(--sp-4); gap: 0; }
  .nav__list.is-open { display: flex; }
  .nav__list > li { border-bottom: 1px solid var(--color-limestone-100); }
  .nav__list > li:last-child { border-bottom: 0; }
  .nav__link { padding: var(--sp-3) 0; display: block; }
  .megamenu__panel { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 var(--sp-3) var(--sp-3); opacity: 1; visibility: visible; transform: none; display: none; }
  .megamenu.is-open .megamenu__panel { display: block; }
  .megamenu__panel--wide { width: auto; }
  .megamenu__cols { grid-template-columns: 1fr; gap: 0; }
  .megamenu__heading { margin-top: var(--sp-3); }
  .header__cta { display: none; }
}

/* ---------- Sections ------------------------------------------------------ */
.section { padding: var(--sp-20) 0; }
.section--tight { padding: var(--sp-12) 0; }
.section--band { background: var(--bg-band); }
.section--deep {
  background-color: var(--bg-deep);
  background-image: linear-gradient(180deg, rgba(20,12,6,0.56) 0%, rgba(20,12,6,0.74) 100%), var(--leather);
  background-size: cover; background-position: center;
  color: var(--text-on-deep);
}
.section--deep .h2, .section--deep h2, .section--deep h3 { color: var(--text-on-deep); }
.section--deep .lede { color: var(--text-on-deep-muted); }

/* ---------- HERO (place-led, no portrait) -------------------------------- */
.hero {
  position: relative;
  background-color: var(--color-liveoak-900);
  background-image: linear-gradient(rgba(20,12,6,0.50), rgba(20,12,6,0.66)), var(--leather);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero__plate {
  position: relative;
  min-height: 620px;
  display: flex; align-items: flex-end;
  isolation: isolate;
}

/* Cinematic watermark cycle: stacked images with slow Ken-Burns + cross-fade. */
.hero__cycle {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  animation: heroCycle 64s var(--ease, cubic-bezier(.22,.61,.36,1)) infinite;
  will-change: opacity, transform;
  /* Watermark photos shown brighter/crisper (was brightness 0.95). */
  filter: saturate(1.34) contrast(1.10) brightness(1.02);
}
/* 8 slides — staggered so each shows for ~8s with a 2s cross-fade.
   Each slide gets a unique delay = (index-1) * 8s. */
.hero__slide:nth-child(1) { animation-delay:  0s; }
.hero__slide:nth-child(2) { animation-delay:  8s; }
.hero__slide:nth-child(3) { animation-delay: 16s; }
.hero__slide:nth-child(4) { animation-delay: 24s; }
.hero__slide:nth-child(5) { animation-delay: 32s; }
.hero__slide:nth-child(6) { animation-delay: 40s; }
.hero__slide:nth-child(7) { animation-delay: 48s; }
.hero__slide:nth-child(8) { animation-delay: 56s; }

@keyframes heroCycle {
  0%      { opacity: 0;    transform: scale(1.04); }
  3.125%  { opacity: 1;    transform: scale(1.05); }    /* fully in by 2s */
  12.5%   { opacity: 1;    transform: scale(1.085); }   /* hold + slow ken burns through 8s */
  15.625% { opacity: 0;    transform: scale(1.09); }    /* fade out by 10s */
  100%    { opacity: 0;    transform: scale(1.04); }
}

/* Dark gradient + brass vignette overlay so text stays readable and warm. */
.hero__plate::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  /* Lighter through the upper/middle so the watermark photo reads clearly,
     while the bottom stays dark and warm to keep the headline legible. */
  background:
    radial-gradient(120% 80% at 20% 100%, rgba(184, 146, 60, 0.24) 0%, rgba(184, 146, 60, 0) 60%),
    linear-gradient(180deg, rgba(17, 39, 31, 0.28) 0%, rgba(20, 12, 6, 0.44) 50%, rgba(20, 12, 6, 0.88) 100%),
    linear-gradient(90deg, rgba(20, 12, 6, 0.55) 0%, rgba(17, 39, 31, 0.10) 55%, rgba(17, 39, 31, 0.08) 100%);
  pointer-events: none;
}

.hero__plate > .container {
  position: relative; z-index: 2;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; opacity: 0; }
  .hero__slide:first-child { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .hero__plate { min-height: 560px; }
  .hero__copy { padding: var(--sp-16) 0 var(--sp-12); }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
/* Mobile performance: on phones, serve the lightweight 800x450 hero thumbnails
   instead of the 1672x941 originals (~75% smaller, ~938KB saved). The hero sits
   behind a 50-66% dark gradient + vignette with continuous Ken-Burns scaling, so
   the resolution drop is imperceptible at phone widths. Phones only (<=600px);
   tablets and desktop are untouched. Existing assets, fully reversible. */
@media (max-width: 600px) {
  .hero__slide:nth-child(1) { background-image: url('/assets/img/backgrounds/dam-spillway-hero-thumb.webp') !important; }
  .hero__slide:nth-child(2) { background-image: url('/assets/img/backgrounds/pasture-dusk-thumb.webp') !important; }
  .hero__slide:nth-child(3) { background-image: url('/assets/img/backgrounds/wildflowers-wide-thumb.webp') !important; }
  .hero__slide:nth-child(4) { background-image: url('/assets/img/backgrounds/oak-grove-thumb.webp') !important; }
  .hero__slide:nth-child(5) { background-image: url('/assets/img/backgrounds/aerial-sunset-thumb.webp') !important; }
  .hero__slide:nth-child(6) { background-image: url('/assets/img/backgrounds/river-shoals-thumb.webp') !important; }
  .hero__slide:nth-child(7) { background-image: url('/assets/img/backgrounds/windmill-thumb.webp') !important; }
  .hero__slide:nth-child(8) { background-image: url('/assets/img/backgrounds/lake-blue-hour-thumb.webp') !important; }
}
.hero__copy {
  color: #FFF;
  padding: var(--sp-20) 0 var(--sp-16);
  max-width: 720px;
}
.hero__copy .eyebrow { color: var(--color-brass-300); }
.hero__copy .hero__headline { color: #FFF; font-weight: 500; }
.hero__copy .hero__headline em { color: var(--color-brass-300); font-style: italic; }
.hero__lede { color: rgba(255,255,255,0.92); font-size: 1.18rem; line-height: 1.55; max-width: 60ch; margin: var(--sp-5) 0 var(--sp-8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__proofs { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-top: var(--sp-8); border-top: 1px solid rgba(255,255,255,0.20); padding-top: var(--sp-5); }
.hero__proof { display: flex; flex-direction: column; gap: 2px; color: #FFF; }
.hero__proof strong { font-weight: 600; font-size: 0.95rem; }
.hero__proof span { font-size: 0.85rem; color: rgba(255,255,255,0.78); }
.hero__placeholder-note {
  position: absolute; bottom: 8px; right: 12px;
  font-size: 0.7rem; color: rgba(255,255,255,0.55);
  font-family: var(--font-sans);
}

/* ---------- Quick actions ------------------------------------------------- */
.qactions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); }
.qaction {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--color-limestone-200);
  border-radius: var(--radius-md);
  text-decoration: none; color: var(--color-ink-900);
  transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.qaction:hover { border-color: var(--color-brass-500); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--color-ink-900); }
.qaction__icon { width: 28px; height: 28px; color: var(--color-liveoak-800); }
.qaction__title { font-weight: 600; font-size: 1rem; }
.qaction__sub { font-size: 0.86rem; color: var(--text-on-light-mute); }

/* ---------- Dental Fitness ecosystem grid -------------------------------- */
.eco { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-6); }
.eco__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(216, 183, 119, 0.20);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}
.eco__num { font-family: var(--font-serif); font-size: 1.6rem; color: var(--color-brass-300); display: block; margin-bottom: var(--sp-2); }
.eco__card h3 { color: var(--text-on-deep); }
.eco__card p { color: var(--text-on-deep-muted); margin: 0; }

/* ---------- DFI Badges --------------------------------------------------- */
.dfi-badges { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); align-items: center; }
@media (min-width: 860px) { .dfi-badges { grid-template-columns: 1fr 1fr; } }
.dfi-badges__media { background: var(--color-liveoak-900); border-radius: var(--radius-lg); padding: var(--sp-6); }
.dfi-badges__media img { border-radius: var(--radius-sm); }

/* ---------- Why Water First --------------------------------------------- */
.water-first { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); align-items: center; }
@media (min-width: 860px) { .water-first { grid-template-columns: 1fr 1.1fr; } }
.water-first__media { background: var(--color-liveoak-900); border-radius: var(--radius-lg); padding: var(--sp-6); }

/* ---------- Trust stripe ------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-8); text-align: center; }
.trust__num { font-family: var(--font-serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--color-brass-300); line-height: 1; }
.trust__lbl { color: var(--text-on-deep-muted); margin-top: var(--sp-2); font-size: 0.95rem; }

/* ---------- Pathfinder --------------------------------------------------- */
.pathfinder { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-5); }
.path {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--color-limestone-200);
  border-radius: var(--radius-md);
  text-decoration: none; color: var(--color-ink-900);
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.path:hover { border-color: var(--color-brass-500); transform: translateY(-2px); color: var(--color-ink-900); }
.path__num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; color: var(--color-redclay-500); }
.path__title { font-family: var(--font-serif); font-size: 1.35rem; margin: 0; line-height: 1.2; color: var(--color-ink-900); }
.path__sub { color: var(--text-on-light-mute); font-size: 0.96rem; margin: 0; }
.path__cta { font-size: 0.9rem; font-weight: 600; color: var(--color-liveoak-800); margin-top: auto; }

/* ---------- BeverageIQ widget -------------------------------------------- */
.biq {
  background: var(--bg-surface); border: 1px solid var(--color-limestone-200);
  border-radius: var(--radius-lg); padding: var(--sp-8); max-width: 720px; margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.biq__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-redclay-500); }
.biq__title { font-family: var(--font-serif); font-size: 1.6rem; margin: var(--sp-2) 0 var(--sp-2); }
.biq__intro { color: var(--text-on-light-mute); margin: 0 0 var(--sp-4); }
.biq__disclaimer { background: var(--color-limestone-100); border-left: 3px solid var(--color-brass-500); padding: var(--sp-3) var(--sp-4); font-size: 0.88rem; color: var(--color-ink-700); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: var(--sp-5); }
.biq__q { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.biq__q legend { font-weight: 600; padding: 0; margin-bottom: var(--sp-2); }
.biq__opts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.biq__opt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--color-limestone-200); border-radius: 999px; cursor: pointer; font-size: 0.92rem; }
.biq__opt input { accent-color: var(--color-liveoak-800); }
.biq__opt:has(input:checked) { background: var(--color-liveoak-800); color: #FFF; border-color: var(--color-liveoak-800); }
.biq__result { display: none; margin-top: var(--sp-5); padding: var(--sp-5); background: var(--color-limestone-100); border-radius: var(--radius-md); }
.biq__result.is-visible { display: block; }
.biq__result h4 { font-family: var(--font-serif); font-size: 1.25rem; margin: 0 0 var(--sp-2); }
.biq__result__cite { font-size: 0.82rem; color: var(--text-on-light-mute); margin: var(--sp-3) 0 0; }

/* ---------- Citations / authors strips ----------------------------------- */
.cites { background: var(--color-limestone-100); padding: var(--sp-12) 0; border-top: 1px solid var(--color-limestone-200); }
.cites__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-redclay-500); margin: 0 0 var(--sp-6); }
.cites__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-5); }
.cite { background: var(--bg-surface); border: 1px solid var(--color-limestone-200); border-radius: var(--radius-md); padding: var(--sp-5); }
.cite__journal { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-mineral-700); margin: 0 0 var(--sp-2); }
.cite__title { font-family: var(--font-serif); font-size: 1.1rem; margin: 0 0 var(--sp-2); line-height: 1.25; }
.cite__authors { font-size: 0.88rem; color: var(--text-on-light-mute); margin: 0 0 var(--sp-3); }

.authors { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
@media (min-width: 860px) { .authors { grid-template-columns: 1fr 1fr; } }
.author { background: var(--bg-surface); border: 1px solid var(--color-limestone-200); border-radius: var(--radius-md); padding: var(--sp-6); }
.author__role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-mineral-700); margin: 0 0 var(--sp-2); }
.author__name { font-family: var(--font-serif); font-size: 1.45rem; margin: 0 0 var(--sp-2); }
.author__title { font-size: 0.95rem; color: var(--text-on-light-mute); margin: 0 0 var(--sp-3); }
.author__bio { color: var(--color-ink-700); margin: 0 0 var(--sp-4); }
.author__refs { padding-left: 1.1em; margin: 0; }
.author__refs li { margin-bottom: 4px; font-size: 0.92rem; }

/* ---------- Testimonials ------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-5); }
.testimonial {
  background: var(--bg-surface); border: 1px solid var(--color-limestone-200);
  border-radius: var(--radius-md); padding: var(--sp-6); position: relative;
}
.testimonial__stars { color: var(--color-brass-500); letter-spacing: 0.05em; margin: 0 0 var(--sp-3); }
.testimonial__quote { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.45; color: var(--color-ink-900); margin: 0 0 var(--sp-4); }
.testimonial__attr { font-size: 0.88rem; color: var(--text-on-light-mute); }
.testimonial__attr strong { color: var(--color-ink-900); font-weight: 600; }
.testimonials__source { font-size: 0.82rem; color: var(--text-on-light-mute); text-align: center; margin-top: var(--sp-5); }

/* ---------- Responsive split layouts ------------------------------------ */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: start;
}
.split-grid > * { min-width: 0; }
@media (min-width: 860px) {
  .split-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-12); }
}

/* ---------- Forms -------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); background: var(--bg-surface); padding: var(--sp-6); border-radius: var(--radius-md); border: 1px solid var(--color-limestone-200); }
.form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 10px 12px; font: inherit;
  border: 1px solid var(--color-limestone-200); border-radius: var(--radius-sm);
  background: var(--bg-page);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--color-liveoak-800); outline-offset: 1px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ------------------------------------------------------- */
.footer {
  background-color: var(--color-liveoak-900);
  background-image: linear-gradient(180deg, rgba(20,12,6,0.62) 0%, rgba(20,12,6,0.80) 100%), var(--leather);
  background-size: cover; background-position: center;
  color: var(--text-on-deep); padding: var(--sp-16) 0 var(--sp-8);
}
.footer a { color: var(--color-brass-300); text-decoration: none; }
.footer a:hover { color: #FFF; text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-10);
}
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text-on-deep); margin: 0 0 var(--sp-3); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 6px; font-size: 0.92rem; }

.footer__brand-mark { width: 220px; max-width: 70%; height: auto; margin-bottom: var(--sp-4); }
.footer__about { color: var(--text-on-deep-muted); margin: 0 0 var(--sp-4); font-size: 0.92rem; line-height: 1.55; }
.footer__nap { font-size: 0.92rem; color: var(--text-on-deep-muted); }

.footer__cross {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(216, 183, 119, 0.22);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
}
@media (max-width: 860px) { .footer__cross { grid-template-columns: 1fr; } }
.footer__cross h5 { font-family: var(--font-serif); font-size: 1.05rem; color: var(--text-on-deep); margin: 0 0 var(--sp-3); }
.footer__cross-block ul { display: flex; flex-direction: column; gap: 4px; }
.footer__cross-disclosure { font-size: 0.82rem; color: var(--text-on-deep-muted); margin-top: var(--sp-3); line-height: 1.5; }

.footer__operator {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(216, 183, 119, 0.22);
  display: flex; align-items: center; gap: var(--sp-4);
}
.footer__operator-mark { width: 44px; height: 44px; opacity: 0.85; }
.footer__operator-text { font-size: 0.85rem; color: var(--text-on-deep-muted); }
.footer__operator-text strong { color: var(--text-on-deep); }

.footer__legal { margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid rgba(216, 183, 119, 0.22); font-size: 0.8rem; color: var(--text-on-deep-muted); display: grid; gap: var(--sp-2); }
.footer__legal a { color: var(--color-brass-300); }

/* ---------- Reveal on scroll --------------------------------------------- */
/* Reveal-on-scroll is PROGRESSIVE ENHANCEMENT only: content is visible by
   default so text, images, and the portrait never depend on JavaScript. The
   scroll script still adds .is-visible for a subtle fade when JS is available. */
.reveal { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Page head (interior pages) ---------------------------------- */
.pagehead { background: var(--color-limestone-100); padding: var(--sp-16) 0 var(--sp-12); border-bottom: 1px solid var(--color-limestone-200); }
.pagehead h1 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.0rem, 4vw, 3.2rem); line-height: 1.1; margin: 0 0 var(--sp-4); color: var(--color-ink-900); }
.crumbs { font-size: 0.82rem; color: var(--text-on-light-mute); margin-bottom: var(--sp-3); }
.crumbs a { color: var(--color-liveoak-800); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 8px; color: var(--color-ink-400); }

/* Long-form prose */
.prose { max-width: 70ch; }
.prose p { color: var(--color-ink-700); margin: 0 0 var(--sp-5); font-size: 1.06rem; line-height: 1.68; }
.prose h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.2; margin: var(--sp-10) 0 var(--sp-4); color: var(--color-ink-900); }
.prose h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; line-height: 1.25; margin: var(--sp-8) 0 var(--sp-3); color: var(--color-ink-900); }
.prose blockquote { border-left: 3px solid var(--color-brass-500); margin: var(--sp-6) 0; padding: var(--sp-2) var(--sp-5); font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--color-ink-900); }
.prose ul, .prose ol { margin: 0 0 var(--sp-5) 1.2em; color: var(--color-ink-700); }
.prose ul li, .prose ol li { margin-bottom: 6px; line-height: 1.6; }
.rule { width: 64px; height: 2px; background: var(--color-brass-500); margin: 0 0 var(--sp-5); }
.rule--brass { background: var(--color-brass-500); }
.rule--centered { margin-inline: auto; }

/* Pillars (commitments) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-5); }
.pillar { background: var(--bg-surface); border: 1px solid var(--color-limestone-200); border-radius: var(--radius-md); padding: var(--sp-6); }
.pillar h3 { font-family: var(--font-serif); font-size: 1.25rem; margin: 0 0 var(--sp-2); color: var(--color-ink-900); }
.pillar p { color: var(--text-on-light-mute); margin: 0; font-size: 0.96rem; }

/* Discreet portrait block (for the About bio page) */
.portrait-card {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--color-limestone-200);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.portrait-card img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin: 0 auto; box-shadow: var(--shadow-md); }
.portrait-card__name { font-family: var(--font-serif); font-size: 1.35rem; margin: 0; color: var(--color-ink-900); }
.portrait-card__title { font-size: 0.95rem; color: var(--text-on-light-mute); margin: 0; }

/* Map embed wrapper */
.map-embed { position: relative; padding-bottom: 56.25%; background: var(--color-limestone-100); border-radius: var(--radius-md); overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Inline education tile (for Dental Fitness page) */
.edu-tile { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); align-items: center; background: var(--bg-surface); border: 1px solid var(--color-limestone-200); border-radius: var(--radius-md); padding: var(--sp-6); margin-bottom: var(--sp-6); }
@media (min-width: 760px) { .edu-tile { grid-template-columns: 0.9fr 1.1fr; } }
.edu-tile--reverse { direction: rtl; }
.edu-tile--reverse > * { direction: ltr; }
.edu-tile__media img { border-radius: var(--radius-sm); }
.edu-tile h3 { font-family: var(--font-serif); font-size: 1.4rem; margin: 0 0 var(--sp-2); color: var(--color-ink-900); }
.edu-tile p { color: var(--color-ink-700); margin: 0 0 var(--sp-2); }
.edu-tile__cite { font-size: 0.82rem; color: var(--text-on-light-mute); margin: var(--sp-2) 0 0; }

/* ---------- Ambient watermark backgrounds (interior pages) ---------------
   Use .section--ambient with --bg-img custom property set inline. The image
   sits as a fixed/contained background under a warm overlay so type stays
   readable and the page never feels bland-white. */
.section--ambient {
  position: relative;
  isolation: isolate;
  background: var(--bg-band);
}
.section--ambient::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  /* Lighter warm scrim so the gallery photo reads clearly, over leather.
     Light text stays legible via the strong text halos below. */
  background:
    linear-gradient(180deg, rgba(20, 12, 6, 0.44) 0%, rgba(20, 12, 6, 0.60) 100%),
    var(--bg-img, none),
    var(--leather);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  filter: saturate(1.36) contrast(1.10);
  pointer-events: none;
}
/* Strong dark halo keeps LIGHT text crisp over the (now more visible) photos. */
.section--ambient .eyebrow, .section--ambient .h2, .section--ambient h2,
.section--ambient .h3, .section--ambient h3, .section--ambient .lede,
.section--ambient p, .section--ambient li,
.section--ambient-deep .eyebrow, .section--ambient-deep .h2, .section--ambient-deep h2,
.section--ambient-deep .h3, .section--ambient-deep h3, .section--ambient-deep .lede,
.section--ambient-deep p, .section--ambient-deep li {
  text-shadow: 0 1px 4px rgba(12, 7, 3, 0.88), 0 0 2px rgba(12, 7, 3, 0.7);
}
/* Subtle grain over the sage veil */
.section--ambient::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--grain);
  background-size: 180px 180px;
  mix-blend-mode: multiply;
  opacity: 0.08;
  pointer-events: none;
}
.section--ambient > .container,
.section--ambient > .container-narrow { position: relative; z-index: 1; }

/* Darker ambient (over deep-band sections) — deep live-oak wash over the photo. */
.section--ambient-deep {
  position: relative;
  isolation: isolate;
  background-color: var(--color-liveoak-900);
  background-image: var(--leather);
  background-size: cover; background-position: center;
  color: var(--text-on-deep);
}
.section--ambient-deep::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  /* Wash lightened (was 0.74/0.90) and warmed so the watermark photo shows
     through, layered over the leather; still dark enough for light text. */
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(184, 146, 60, 0.22) 0%, rgba(184, 146, 60, 0) 58%),
    linear-gradient(180deg, rgba(20, 12, 6, 0.46) 0%, rgba(20, 12, 6, 0.66) 100%),
    var(--bg-img, none),
    var(--leather);
  background-size: cover;
  background-position: center;
  filter: saturate(1.42) contrast(1.08) brightness(0.99);
  pointer-events: none;
}
/* Subtle grain over the green wash */
.section--ambient-deep::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--grain);
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.12;
  pointer-events: none;
}
.section--ambient-deep > .container,
.section--ambient-deep > .container-narrow { position: relative; z-index: 1; }
.section--ambient-deep .h2, .section--ambient-deep h2, .section--ambient-deep h3 { color: var(--text-on-deep); }
.section--ambient-deep .lede { color: var(--text-on-deep-muted); }

/* ---------- Texas gallery ------------------------------------------------- */
.tx-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-3);
}
.tx-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-liveoak-900);
  aspect-ratio: 16 / 10;
  isolation: isolate;
}
.tx-gallery__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease);
  filter: saturate(1.24) contrast(1.08) brightness(0.98);
}
.tx-gallery__item:hover img { transform: scale(1.05); }
.tx-gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-4);
  background: linear-gradient(180deg, rgba(15,42,35,0) 0%, rgba(15,42,35,0.78) 100%);
  color: #FFF;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tx-gallery__item:hover figcaption,
.tx-gallery__item:focus-within figcaption { opacity: 1; transform: translateY(0); }

/* Masonry-feel layout: vary cell spans for visual rhythm. */
.tx-gallery__item--lg  { grid-column: span 8; aspect-ratio: 16 / 9; }
.tx-gallery__item--md  { grid-column: span 4; aspect-ratio: 4 / 5; }
.tx-gallery__item--sm  { grid-column: span 3; aspect-ratio: 4 / 5; }
.tx-gallery__item--wide{ grid-column: span 6; aspect-ratio: 3 / 2; }
.tx-gallery__item--full{ grid-column: span 12; aspect-ratio: 21 / 9; }

@media (max-width: 900px) {
  .tx-gallery { grid-template-columns: repeat(6, 1fr); }
  .tx-gallery__item, .tx-gallery__item--lg, .tx-gallery__item--md,
  .tx-gallery__item--sm, .tx-gallery__item--wide, .tx-gallery__item--full {
    grid-column: span 6; aspect-ratio: 16 / 10;
  }
}

.tx-gallery__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-10);
}

/* ---------- Utilities ---------------------------------------------------- */
[hidden] { display: none !important; }

/* =========================================================================
   DARK STRESSED-LEATHER THEME — interactive & accent fixes (2026-05-29)
   Pairs with the token remap above. Ensures links, nav, buttons, the sticky
   header, and form fields are all legible on the dark leather. No HTML change.
   ========================================================================= */

/* Links read as warm gold on leather (buttons keep their own colors). */
a { color: var(--color-brass-300); }
a:hover { color: #FFFFFF; }
.crumbs a { color: var(--color-brass-300); }
.nav__link:hover { color: var(--color-brass-300); }
.nav__link--ext { color: var(--color-brass-300); }

/* Ghost button: was dark ink — make it light on leather. */
.btn--ghost { color: var(--text-on-deep); border-color: var(--color-brass-500); }
.btn--ghost:hover { background: var(--color-brass-500); color: var(--color-liveoak-900); }

/* Card icons / CTAs that were dark green — switch to gold so they show. */
.qaction__icon { color: var(--color-brass-300); }
.path__cta { color: var(--color-brass-300); }

/* Solid leather header so the sticky nav is always crisp. */
.header {
  background-color: #1C1108;
  background-image: linear-gradient(rgba(20,12,6,0.72), rgba(20,12,6,0.82)), var(--leather);
  background-size: cover; background-position: center;
  border-bottom: 1px solid rgba(216,183,119,0.30);
}
.megamenu__panel { box-shadow: 0 16px 40px rgba(0,0,0,0.55); }

/* Form fields: dark leather inputs need light text + visible placeholders. */
.form input, .form select, .form textarea { color: var(--text-on-light); }
.form input::placeholder, .form textarea::placeholder { color: var(--color-ink-400); }

/* =========================================================================
   SITE-WIDE CINEMATIC WATERMARK BACKDROP (2026-05-30) — pure CSS, no JS.
   Two fixed, full-viewport layers cross-fade through the Texas gallery behind
   ALL content on EVERY page (scroll-fixed, so it follows the visitor). A warm
   dark scrim over each photo keeps light text legible. The leather remains on
   the header, footer, cards, and ambient bands; transparent sections reveal
   this moving backdrop.
   ========================================================================= */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;                 /* above the body leather, behind all content */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: saturate(1.32) contrast(1.07);
  will-change: opacity;
}
/* Layer A shows photos 1,3,5,7 ; Layer B shows 2,4,6,8 — offset so one swaps
   its photo (a discrete change) only while it is fully faded out. 56s loop. */
body::before {
  background-image:
    linear-gradient(180deg, rgba(20,12,6,0.66) 0%, rgba(20,12,6,0.78) 100%),
    url("/assets/img/backgrounds/dam-spillway-hero.webp");
  animation: bgCycleA 56s var(--ease, cubic-bezier(.22,.61,.36,1)) infinite;
}
body::after {
  background-image:
    linear-gradient(180deg, rgba(20,12,6,0.66) 0%, rgba(20,12,6,0.78) 100%),
    url("/assets/img/backgrounds/pasture-dusk.webp");
  animation: bgCycleB 56s var(--ease, cubic-bezier(.22,.61,.36,1)) infinite;
}
@keyframes bgCycleA {
  0%   { opacity: 1; }
  9%   { opacity: 1; }
  12.5%{ opacity: 0; }
  16%  { opacity: 0; background-image: linear-gradient(180deg, rgba(20,12,6,0.66), rgba(20,12,6,0.78)), url("/assets/img/backgrounds/wildflowers-wide.webp"); }
  22%  { opacity: 0; }
  25%  { opacity: 1; }
  34%  { opacity: 1; }
  37.5%{ opacity: 0; }
  41%  { opacity: 0; background-image: linear-gradient(180deg, rgba(20,12,6,0.66), rgba(20,12,6,0.78)), url("/assets/img/backgrounds/aerial-sunset.webp"); }
  47%  { opacity: 0; }
  50%  { opacity: 1; }
  59%  { opacity: 1; }
  62.5%{ opacity: 0; }
  66%  { opacity: 0; background-image: linear-gradient(180deg, rgba(20,12,6,0.66), rgba(20,12,6,0.78)), url("/assets/img/backgrounds/windmill.webp"); }
  72%  { opacity: 0; }
  75%  { opacity: 1; }
  84%  { opacity: 1; }
  87.5%{ opacity: 0; }
  91%  { opacity: 0; background-image: linear-gradient(180deg, rgba(20,12,6,0.66), rgba(20,12,6,0.78)), url("/assets/img/backgrounds/dam-spillway-hero.webp"); }
  97%  { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes bgCycleB {
  0%   { opacity: 0; }
  9%   { opacity: 0; }
  12.5%{ opacity: 1; }
  22%  { opacity: 1; }
  25%  { opacity: 0; }
  28%  { opacity: 0; background-image: linear-gradient(180deg, rgba(20,12,6,0.66), rgba(20,12,6,0.78)), url("/assets/img/backgrounds/oak-grove.webp"); }
  34%  { opacity: 0; }
  37.5%{ opacity: 1; }
  47%  { opacity: 1; }
  50%  { opacity: 0; }
  53%  { opacity: 0; background-image: linear-gradient(180deg, rgba(20,12,6,0.66), rgba(20,12,6,0.78)), url("/assets/img/backgrounds/river-shoals.webp"); }
  59%  { opacity: 0; }
  62.5%{ opacity: 1; }
  72%  { opacity: 1; }
  75%  { opacity: 0; }
  78%  { opacity: 0; background-image: linear-gradient(180deg, rgba(20,12,6,0.66), rgba(20,12,6,0.78)), url("/assets/img/backgrounds/lake-blue-hour.webp"); }
  84%  { opacity: 0; }
  87.5%{ opacity: 1; }
  97%  { opacity: 1; }
  100% { opacity: 0; background-image: linear-gradient(180deg, rgba(20,12,6,0.66), rgba(20,12,6,0.78)), url("/assets/img/backgrounds/pasture-dusk.webp"); }
}
/* Respect reduced-motion: hold a single still image, no cross-fade. */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; opacity: 1; }
  body::after  { animation: none; opacity: 0; }
}
/* Small screens: the two fixed cover layers are cheap, but disable on very
   short viewports where fixed backgrounds can jump during URL-bar show/hide. */
@media (max-width: 820px) {
  body::before, body::after { position: absolute; min-height: 100%; }
}

/* ============================================================
   PREVENTION PROVERB — illuminated bluebonnet marginalia
   "An ounce of prevention is worth a pound of cure."
   Reusable theme component (.proverb). Primary instance sits
   adjacent to the hero's first paragraph. Bluebonnet = the
   Texas state flower already echoed in the hero photo cycle.
   ============================================================ */
:root{
  --color-bluebonnet-300: #AFC2F2;   /* luminous bluebonnet — proverb script on dark */
  --color-bluebonnet-500: #6E86D8;   /* deeper bluebonnet — rules + kicker accents */
}
.proverb{
  position: relative;
  max-width: 48ch;
  margin: var(--sp-8) 0 var(--sp-10);
  padding: var(--sp-5) var(--sp-6) var(--sp-5) var(--sp-8);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,12,6,0.46), rgba(20,12,6,0.66));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(110,134,216,0.32);
  box-shadow: inset 0 1px 0 rgba(175,194,242,0.10), 0 12px 34px rgba(0,0,0,0.28);
}
.proverb::before{                      /* bluebonnet margin rule */
  content:"";
  position:absolute; left:0; top:14px; bottom:14px; width:3px;
  border-radius:3px;
  background: linear-gradient(180deg, var(--color-bluebonnet-300), var(--color-bluebonnet-500));
}
.proverb__kicker{
  display:block;
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-bluebonnet-300);
  margin-bottom: var(--sp-2);
}
.proverb__line{
  font-family: "Pinyon Script", "Cormorant Garamond", cursive;
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  color: var(--color-bluebonnet-300);
  margin: 0 0 var(--sp-3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}
.proverb__gloss{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.06rem; line-height: 1.5;
  color: #F4EFE2;
  margin: 0;
}
.proverb__gloss em{ font-style: normal; font-weight: 600; color: var(--color-bluebonnet-300); }
@media (max-width: 640px){
  .proverb{ max-width: none; }
  .proverb__line{ font-size: clamp(2rem, 9vw, 2.7rem); }
}


/* =========================================================================
   THE SMILE — site-wide signature watermark + tagline (2026-05-31, rev 3)
   A transparent, glassy crystalline smile (the patient's own render, green
   keyed to true alpha) sits as a slim corner lockup in the lower-right of
   EVERY page, with a refined tagline to its left. Unmistakably a dental
   practice; achromatic + non-branded. Pure CSS, no JS, no per-page HTML —
   it rides on html::before (tagline) / html::after (smile) so all 65 pages
   inherit it. pointer-events:none + corner placement => never distracting.
   The smile gently SHIMMERS and GLOWS; honors reduced-motion; hidden in print.
   ========================================================================= */
html {
  --wm-x: clamp(16px, 2.2vw, 30px);          /* corner inset            */
  --wm-y: clamp(16px, 2.2vw, 30px);
  --wm-w: clamp(150px, 17vw, 240px);         /* smile width (medium)    */
  --wm-h: calc(var(--wm-w) * 0.625);         /* keeps the 1.601:1 ratio (full smile + lip shadow) */
}
html::before,
html::after {
  position: fixed;
  z-index: 8;                                /* above backdrop, below sticky header(50) */
  pointer-events: none;
}
/* The glassy smile — shimmer = a slow glow breath on its own light. */
html::after {
  content: "";
  right: var(--wm-x);
  bottom: var(--wm-y);
  width: var(--wm-w);
  height: var(--wm-h);
  background: url("/assets/img/smile-watermark.png") center / contain no-repeat;
  opacity: 0.9;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.28)) drop-shadow(0 1px 3px rgba(0,0,0,0.35));
  animation: smileGlow 6.5s var(--ease, cubic-bezier(.22,.61,.36,1)) infinite;
}
/* The tagline — small, elegant, set to the LEFT of the smile, centered to it. */
html::before {
  content: "Prevention protects your most priceless jewels.";
  right: calc(var(--wm-x) + var(--wm-w) + 14px);
  bottom: calc(var(--wm-y) + var(--wm-h) / 2);
  transform: translateY(50%);
  max-width: 168px;
  text-align: right;
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: #F4EFE2;
  text-shadow: 0 1px 3px rgba(12,7,3,0.85), 0 0 10px rgba(12,7,3,0.55);
  opacity: 0.92;
}
@keyframes smileGlow {
  0%, 100% { opacity: 0.84; filter: drop-shadow(0 0 4px rgba(255,255,255,0.20)) drop-shadow(0 1px 3px rgba(0,0,0,0.35)); }
  50%      { opacity: 0.98; filter: drop-shadow(0 0 16px rgba(255,255,255,0.60)) drop-shadow(0 1px 3px rgba(0,0,0,0.35)); }
}
/* Mobile: keep the smile, drop the tagline so nothing crowds small screens. */
@media (max-width: 768px) {
  html::before { content: ""; display: none; }
  html { --wm-w: clamp(132px, 38vw, 180px); }
}
@media (prefers-reduced-motion: reduce) {
  html::after { animation: none; opacity: 0.92; }
}
@media print { html::before, html::after { display: none; } }


/* =========================================================================
   HOME HERO SMILE (2026-05-31) — the watermark, promoted into the hero.
   On the HOME PAGE the crystalline smile lands in the hero's TOP-RIGHT,
   diagonally balancing the headline (lower-left), with the tagline beneath
   it. The global fixed corner watermark is suppressed on the home page only
   (html.page-home), so the homepage shows ONE intentional, well-placed smile
   while every other page keeps the persistent corner watermark.
   ========================================================================= */
/* HOME ONLY: keep the persistent following smile, but ride it near the TOP
   (just below the sticky header) instead of the bottom corner. */
html.page-home { --wm-top: clamp(116px, 13vh, 148px); }
html.page-home::after { top: var(--wm-top); bottom: auto; }
html.page-home::before { top: calc(var(--wm-top) + var(--wm-h) / 2); bottom: auto; transform: translateY(-50%); }

.hero__smile {
  position: absolute;
  top: clamp(26px, 4.2vw, 60px);
  right: clamp(22px, 4.2vw, 60px);
  z-index: 3;                              /* above the hero gradient overlay */
  width: clamp(176px, 23vw, 312px);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  pointer-events: none;
}
.hero__smile img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 7px rgba(255,255,255,0.32)) drop-shadow(0 2px 7px rgba(0,0,0,0.45));
  animation: smileGlow 6.5s var(--ease, cubic-bezier(.22,.61,.36,1)) infinite;
}
.hero__smile figcaption {
  margin-top: var(--sp-2);
  max-width: 24ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.84rem, 1.05vw, 1.0rem);
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 3px rgba(12,7,3,0.85), 0 0 10px rgba(12,7,3,0.5);
}
/* Tablet: smaller, keep the caption but tighten. */
@media (max-width: 980px) {
  .hero__smile { width: clamp(140px, 26vw, 210px); top: clamp(18px,3vw,34px); right: clamp(16px,3vw,28px); }
}
/* Phone: keep the smile (still the page's cue), drop the caption so nothing crowds. */
@media (max-width: 600px) {
  .hero__smile { width: clamp(108px, 34vw, 150px); }
  .hero__smile figcaption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__smile img { animation: none; }
}
@media print { .hero__smile { display: none; } }


/* =========================================================================
   NAV TOOTH ICON (2026-05-31) — clickable cue on every primary nav tab.
   A small crystalline glass tooth (keyed from the patient render) sits inline
   before each .nav__link, echoing the hero smile. Pure CSS, site-wide via the
   single stylesheet — no per-page HTML. It lives inside the <a>, so it is part
   of the clickable target. Scales with the nav font; hidden in print.
   ========================================================================= */
.nav__link::before {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 7px;
  vertical-align: -0.16em;
  background: url("/assets/img/tooth-icon.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35));
  opacity: 0.9;
  transition: opacity .15s var(--ease, ease), transform .15s var(--ease, ease);
}
.nav__link:hover::before { opacity: 1; transform: translateY(-1px); }
@media print { .nav__link::before { display: none; } }


/* =========================================================================
   TOOTH MARKER — extended to navigational links (2026-05-31)
   The same crystalline tooth, sized DOWN, marks standalone/navigational
   links: dropdown sub-items, footer link columns, and breadcrumb trails.
   Deliberately NOT applied to inline prose links, buttons, or cards that
   already carry an icon — that restraint keeps the page sophisticated.
   ========================================================================= */
.megamenu__link strong::before,
.footer ul li a::before,
.crumbs a::before {
  content: "";
  display: inline-block;
  background: url("/assets/img/tooth-icon.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.30));
  vertical-align: -0.10em;
}
/* Dropdown / mega-menu sub-items */
.megamenu__link strong::before { width: 0.9em; height: 0.9em; margin-right: 6px; opacity: 0.9; }
/* Footer link columns (incl. cross-links) */
.footer ul li a::before { width: 0.82em; height: 0.82em; margin-right: 6px; opacity: 0.82; }
.footer ul li a:hover::before { opacity: 1; }
/* Breadcrumb trail */
.crumbs a::before { width: 0.78em; height: 0.78em; margin-right: 4px; opacity: 0.78; }
@media print { .megamenu__link strong::before, .footer ul li a::before, .crumbs a::before { display: none; } }


/* =========================================================================
   TOOTH ON CTA BUTTONS (2026-05-31) — the Request Appointment + large actions
   The crystalline tooth leads the primary call-to-action and any large button.
   Buttons are inline-flex with a gap, so the tooth slots in as a flex item and
   spaces itself; align-items:center keeps it centered. White glass reads on the
   clay/green/gold button fills. Not applied to small ghost/secondary text links.
   ========================================================================= */
.btn--primary::before,
.btn--lg::before {
  content: "";
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  background: url("/assets/img/tooth-icon.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.40));
}
@media print { .btn--primary::before, .btn--lg::before { display: none; } }


/* =========================================================================
   SERVICE IMAGERY (2026-05-31) — captioned figures + two-up pairs.
   Used on service pages to present real clinical/illustrative photos with a
   sophisticated caption, matching the dark-leather + brass theme.
   ========================================================================= */
.svc-figure {
  margin: var(--sp-8) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-limestone-200);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}
.svc-figure img { width: 100%; height: auto; display: block; }
.svc-figure figcaption {
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.04rem;
  line-height: 1.4;
  color: var(--color-ink-900);
  border-top: 1px solid var(--color-limestone-200);
}
.svc-figure figcaption strong { font-style: normal; font-weight: 600; color: var(--color-brass-300); }

/* Two-up pair (e.g., Clean House / Clean Mouth, Bite Guard / Grill Guard) */
.svc-pair { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); margin: var(--sp-8) 0 var(--sp-4); }
@media (min-width: 760px) { .svc-pair { grid-template-columns: 1fr 1fr; } }
.svc-pair .svc-figure { margin: 0; height: 100%; }
.svc-pair__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-redclay-500);
}
/* The clever shared line beneath a pair */
.svc-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--color-ink-700);
  border-left: 3px solid var(--color-brass-500);
  padding: var(--sp-2) var(--sp-5);
  margin: var(--sp-2) 0 var(--sp-8);
}
