/* ============================================================
   Beukelman Chiropractic — Spec preview by Woodcrest Marketing
   Design system + editorial layout
   ============================================================ */

:root {
  /* Brand palette (from logo) */
  --teal-900: #0d323b;
  --teal-800: #123f4a;
  --teal-700: #164a58;   /* primary */
  --teal-600: #1e5c6c;
  --blue-500: #5c9bb6;   /* secondary */
  --blue-400: #7db3ca;
  --blue-200: #cfe3ea;
  --sage-600: #7c895a;   /* accent */
  --sage-500: #94a072;
  --sage-200: #d9dfc6;

  /* Neutrals */
  --paper:   #f7f4ec;    /* warm cream */
  --paper-2: #efeadd;
  --white:   #ffffff;
  --ink:     #1c2b2f;
  --ink-soft:#41565b;
  --line:    #e2ddd0;

  /* Semantic */
  --bg: var(--paper);
  --fg: var(--ink);
  --accent: var(--sage-600);

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --fs-body:    clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --fs-lead:    clamp(1.12rem, 1rem + 0.6vw, 1.4rem);
  --fs-h3:      clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem);
  --fs-h1:      clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
  --fs-display: clamp(3rem, 1.5rem + 6vw, 6rem);

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);

  --wrap: 1220px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(13, 50, 59, 0.06);
  --shadow-md: 0 18px 45px -22px rgba(13, 50, 59, 0.4);
  --shadow-lg: 0 40px 80px -40px rgba(13, 50, 59, 0.55);
  --ease: cubic-bezier(0.4, 0.14, 0.15, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--teal-700); color: #fff; padding: 0.6rem 1.2rem; border-radius: 0 0 10px 10px;
  z-index: 200; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.96rem; letter-spacing: 0.005em;
  padding: 0.85rem 1.5rem; border-radius: 100px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease); white-space: nowrap;
}
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn-solid { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--teal-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--teal-700); border-color: rgba(22, 74, 88, 0.28); }
.btn-ghost:hover { border-color: var(--teal-700); background: rgba(22, 74, 88, 0.05); transform: translateY(-2px); }
.btn-cream { background: var(--paper); color: var(--teal-800); }
.btn-cream:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--teal-700); border-color: var(--line); margin-top: 0.4rem; }
.btn-outline:hover { border-color: var(--teal-700); transform: translateY(-2px); }

/* ---------- Shared type helpers ---------- */
.eyebrow, .section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: var(--fs-eyebrow); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--sage-600);
}
.section-eyebrow.light { color: var(--blue-400); }
/* Shared editorial signature: a short rule leads every section eyebrow */
.section-eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: 0.55; flex: none;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-600); box-shadow: 0 0 0 4px rgba(124, 137, 90, 0.18); }

.section-title { font-size: var(--fs-h2); color: var(--teal-800); }
.section-title.light { color: var(--paper); }
.section-title.center { text-align: center; margin-inline: auto; max-width: 18ch; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--teal-700);
  border-bottom: 2px solid transparent; padding-bottom: 2px; width: fit-content;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}
.text-link svg { transition: transform 0.25s var(--ease); }
.text-link:hover { border-color: var(--sage-600); gap: 0.8rem; }
.text-link:hover svg { transform: translateX(3px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 0.9rem 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(247, 244, 236, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.55rem 0;
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; }
.brand-logo { height: 46px; width: auto; transition: height 0.3s var(--ease); }
.site-header.scrolled .brand-logo { height: 40px; }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a {
  font-weight: 600; font-size: 0.96rem; color: var(--teal-800); position: relative; padding: 0.3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--sage-600); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 1.2rem; }
.phone-link {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; color: var(--teal-800);
}
.phone-link .phone-ico { color: var(--sage-600); display: inline-flex; }
.phone-link:hover { color: var(--sage-600); }

.nav-toggle { display: none; }

/* Mobile nav */
.mobile-nav {
  display: none; flex-direction: column; gap: 0.4rem;
  background: rgba(247, 244, 236, 0.97); backdrop-filter: blur(14px);
  padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--line);
}
.mobile-nav a { font-family: var(--serif); font-size: 1.3rem; color: var(--teal-800); padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { font-family: var(--sans); font-size: 1rem; border: none; margin-top: 0.8rem; color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding-top: clamp(7rem, 6rem + 6vw, 10rem); padding-bottom: var(--sp-6);
  background:
    radial-gradient(130% 100% at 88% -10%, rgba(92, 155, 182, 0.22), transparent 55%),
    radial-gradient(80% 70% at 96% 40%, rgba(124, 137, 90, 0.14), transparent 62%),
    linear-gradient(180deg, #fbf9f3, var(--paper));
}
/* Fine dot-grid texture, top-right, gives the cream field craft, not emptiness */
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; width: 52%; height: 72%;
  background-image: radial-gradient(rgba(22, 74, 88, 0.14) 1.1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 120% at 100% 0%, #000 20%, transparent 68%);
  mask-image: radial-gradient(120% 120% at 100% 0%, #000 20%, transparent 68%);
  opacity: 0.55; z-index: 0; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
}
.hero-copy { position: relative; }
.eyebrow { margin-bottom: 1.5rem; }
.hero-title {
  font-size: var(--fs-h1); color: var(--teal-800); max-width: 13ch; margin-bottom: 1.5rem;
}
.hero-baseline {
  height: 1px; margin-top: clamp(3.25rem, 2rem + 4vw, 5.5rem);
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
  position: relative; z-index: 1;
}
.hero-lead {
  font-size: var(--fs-lead); color: var(--ink-soft); max-width: 46ch; line-height: 1.55; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.8rem; }
.hero-stats {
  display: flex; gap: clamp(1.25rem, 0.6rem + 2vw, 2.6rem); flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.3rem; padding-left: clamp(1.25rem, 0.6rem + 2vw, 2.6rem); border-left: 1px solid var(--line); }
.hero-stats li:first-child { padding-left: 0; border-left: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 600; color: var(--teal-700); line-height: 1; }
.stat-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 600; }

/* Hero media */
.hero-media { position: relative; }
/* Offset accent panel behind the photo for editorial depth */
.hero-media::before {
  content: ""; position: absolute; z-index: 0;
  inset: 26px -22px -30px 34px;
  border-radius: var(--radius-lg) 120px var(--radius-lg) var(--radius-lg);
  background: linear-gradient(150deg, var(--teal-700), var(--teal-900));
  box-shadow: var(--shadow-md);
}
.hero-photo {
  position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg);
  border-top-right-radius: 120px;
  border: 6px solid var(--paper);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; animation: heroSettle 1.5s var(--ease) both; }
@keyframes heroSettle { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(13, 50, 59, 0.42) 100%);
}
.spine-motif {
  position: absolute; top: 12%; left: -26px; display: flex; flex-direction: column; gap: 12px; z-index: 2;
}
.spine-motif span {
  width: 12px; height: 12px; border-radius: 50%; background: var(--sage-500);
  opacity: 0.9; box-shadow: 0 2px 8px rgba(13, 50, 59, 0.2);
}
.spine-motif span:nth-child(odd) { background: var(--blue-500); width: 10px; height: 10px; }
.hero-badge {
  position: absolute; bottom: -22px; left: -28px; z-index: 3;
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--white); padding: 0.9rem 1.2rem; border-radius: 16px;
  box-shadow: var(--shadow-md); max-width: 280px;
}
.badge-mark { width: 48px; height: 48px; flex-shrink: 0; }
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--teal-800); }
.hero-badge span { display: block; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.35; }

/* ============================================================
   TECH STRIP (marquee)
   ============================================================ */
.techstrip {
  background: var(--teal-800); color: var(--blue-200); overflow: hidden;
  padding: 1.05rem 0; position: relative;
}
.techstrip::before, .techstrip::after {
  content: ""; position: absolute; top: 0; width: 90px; height: 100%; z-index: 2;
}
.techstrip::before { left: 0; background: linear-gradient(90deg, var(--teal-800), transparent); }
.techstrip::after { right: 0; background: linear-gradient(270deg, var(--teal-800), transparent); }
.techstrip-track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.01em;
}
.techstrip-track span { white-space: nowrap; }
.techstrip-track span[aria-hidden] { color: var(--sage-500); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding-block: var(--section-y); position: relative; overflow: hidden; }
/* Faint dot-grid echoes the hero texture on the opposite corner for cohesion */
.about::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 62%;
  background-image: radial-gradient(rgba(22, 74, 88, 0.11) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 120% at 0% 100%, #000 12%, transparent 60%);
  mask-image: radial-gradient(120% 120% at 0% 100%, #000 12%, transparent 60%);
  opacity: 0.6; z-index: 0; pointer-events: none;
}
.about-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center;
}
.about-media { position: relative; max-width: 460px; }
.about-media::before {
  content: ""; position: absolute; z-index: 0;
  inset: -22px 30px 34px -24px;
  border-radius: 120px var(--radius-lg) var(--radius-lg) var(--radius-lg);
  background:
    radial-gradient(circle at 30% 25%, rgba(124, 137, 90, 0.18), transparent 60%),
    var(--paper-2);
  border: 1px solid var(--line);
}
.about-photo {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lg); border-bottom-left-radius: 120px;
  max-width: 460px; border: 6px solid var(--white);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-yearbadge {
  position: absolute; right: -10px; bottom: -24px;
  background: var(--sage-600); color: #fff;
  width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow-md); border: 6px solid var(--paper);
}
.yb-num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-weight: 600; }
.yb-txt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0.25rem; }

.about-copy .section-eyebrow { margin-bottom: 1.1rem; }
.about-copy .section-title { margin-bottom: 1.8rem; max-width: 16ch; }
.doctor-note {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 1.8rem 2rem; box-shadow: var(--shadow-sm); border-left: 4px solid var(--sage-500);
  margin-bottom: 1.8rem;
}
.doctor-note > p {
  font-family: var(--serif); font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.28rem); font-style: italic;
  color: var(--teal-800); line-height: 1.5; margin-bottom: 1.4rem;
}
.signature-row { display: flex; align-items: center; gap: 1.2rem; }
.signature { height: 48px; width: auto; opacity: 0.85; }
.sig-name strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--teal-800); }
.sig-name span { font-size: 0.85rem; color: var(--ink-soft); }
.about-body { color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.6rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--teal-800); color: var(--blue-200);
  padding-block: var(--section-y); position: relative; overflow: hidden;
}
.services::before {
  content: ""; position: absolute; top: -10%; right: -5%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(92, 155, 182, 0.18), transparent 65%); z-index: 0;
}
.services .wrap { position: relative; z-index: 1; }
.services-head { max-width: 640px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.services-head .section-eyebrow { margin-bottom: 1rem; }
.services-intro { color: var(--blue-200); opacity: 0.86; font-size: var(--fs-lead); margin-top: 1.2rem; max-width: 50ch; }

/* Feature service */
.service-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem;
}
.sf-media { position: relative; min-height: 340px; }
.sf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-copy { padding: clamp(2rem, 1.4rem + 2vw, 3.4rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.sf-index { font-family: var(--serif); font-size: 1rem; color: var(--sage-500); letter-spacing: 0.2em; margin-bottom: 1rem; }
.sf-copy h3 { font-size: var(--fs-h3); color: #fff; margin-bottom: 1rem; }
.sf-copy p { color: var(--blue-200); opacity: 0.85; margin-bottom: 1.6rem; }
.sf-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sf-tags li {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: #fff;
  padding: 0.4rem 0.9rem; border: 1px solid rgba(255,255,255,0.22); border-radius: 100px;
}

/* Service list */
.service-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.service-card {
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 1.8rem 1.7rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--sage-500); transform: scaleY(0); transform-origin: top; transition: transform 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); }
.service-card:hover::before { transform: scaleY(1); }
.sc-index { font-family: var(--serif); font-size: 0.9rem; color: var(--sage-500); letter-spacing: 0.16em; }
.service-card h3 { font-size: 1.28rem; color: #fff; margin: 0.7rem 0 0.7rem; }
.service-card p { font-size: 0.95rem; color: var(--blue-200); opacity: 0.82; line-height: 1.55; }

.services-foot { margin-top: 2.2rem; color: var(--blue-200); opacity: 0.85; font-size: 1rem; }
.services-foot a { color: #fff; border-bottom: 1.5px solid var(--sage-500); padding-bottom: 1px; transition: color 0.2s; }
.services-foot a:hover { color: var(--blue-400); }

/* ============================================================
   APPROACH
   ============================================================ */
.approach { padding-block: var(--section-y); }
.approach-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.approach-intro { position: sticky; top: 110px; }
.approach-intro .section-eyebrow { margin-bottom: 1.1rem; }
.approach-intro .section-title { margin-bottom: 1.5rem; max-width: 15ch; }
.approach-intro > p { color: var(--ink-soft); margin-bottom: 2rem; max-width: 44ch; }

.pillars { display: flex; flex-direction: column; gap: 1.25rem; }
.pillar {
  background: var(--white); border-radius: var(--radius); padding: 2rem 2.2rem;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.pillar-line {
  position: absolute; left: 0; top: 2rem; bottom: 2rem; width: 4px; border-radius: 4px;
  background: linear-gradient(var(--sage-500), var(--blue-500));
}
.pillar h3 { font-size: 1.45rem; color: var(--teal-800); margin-bottom: 0.6rem; }
.pillar p { color: var(--ink-soft); max-width: 48ch; }

/* ============================================================
   SYMPTOMS
   ============================================================ */
.symptoms {
  padding-block: var(--section-y);
  background:
    linear-gradient(180deg, var(--paper), var(--paper-2));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.symptoms .eyebrow-center { display: flex; justify-content: center; margin-bottom: 1rem; }
.symptoms .section-title { margin-bottom: 2.8rem; color: var(--teal-800); }
.symptom-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.symptom-grid li {
  background: var(--white); border: 1px solid var(--line); border-radius: 100px;
  padding: 1rem 1.4rem; text-align: center; font-family: var(--serif); font-size: 1.1rem;
  color: var(--teal-800); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.symptom-grid li:hover { transform: translateY(-4px); border-color: var(--sage-500); color: var(--sage-600); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--teal-900); color: var(--paper);
  padding-block: var(--section-y); position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; bottom: -20%; left: -8%; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(124, 137, 90, 0.22), transparent 65%);
}
.contact::after {
  content: ""; position: absolute; top: -15%; right: -6%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(92, 155, 182, 0.2), transparent 65%);
}
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; position: relative; z-index: 1; }
.contact-copy .section-eyebrow { margin-bottom: 1.1rem; }
.contact-copy .section-title { margin-bottom: 1.4rem; max-width: 15ch; }
.contact-lead { color: var(--blue-200); opacity: 0.88; font-size: var(--fs-lead); max-width: 42ch; margin-bottom: 2rem; }

.contact-details {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  backdrop-filter: blur(4px);
}
.detail-list { display: flex; flex-direction: column; gap: 1.6rem; }
.detail { display: grid; grid-template-columns: 1fr; gap: 0.4rem; }
.detail + .detail { padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); }
.detail dt {
  display: inline-flex; align-items: center; gap: 0.6rem; color: var(--sage-500);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
}
.detail dd { color: #fff; font-size: 1.1rem; line-height: 1.5; }
.detail dd a { border-bottom: 1.5px solid transparent; transition: border-color 0.2s; }
.detail dd a:hover { border-color: var(--sage-500); }
.hours-row { display: flex; justify-content: space-between; gap: 1.5rem; font-size: 1rem; padding: 0.15rem 0; }
.hours-row span:last-child { color: var(--blue-200); }
.hours-row.closed span { color: #cf9a86; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--paper-2); color: var(--ink-soft); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: var(--sp-5);
}
.footer-logo { height: 52px; width: auto; margin-bottom: 1.2rem; }
.footer-mission { max-width: 42ch; font-size: 0.98rem; }
.footer-col h4 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal-700); margin-bottom: 1.1rem; font-weight: 700; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.footer-col a, .footer-col span { color: var(--ink-soft); font-size: 0.98rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-700); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem 0; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft);
}

/* Spec footer (mandatory) */
.spec-footer {
  background: var(--teal-900); color: rgba(255,255,255,0.72);
  text-align: center; padding: 1.1rem 1.25rem; font-size: 0.85rem; font-family: var(--sans); line-height: 1.5;
}
.spec-footer a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Content is fully visible by default; only the .js class arms the hidden
   pre-reveal state, so the page never renders blank without JavaScript. */
html.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--d, 0) * 55ms);
  will-change: opacity, transform;
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-copy { max-width: 640px; }
  .hero-media { max-width: 480px; margin-inline: auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
  .about-media { max-width: 460px; }
  .about-photo { max-width: none; }
  .approach-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .approach-intro { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-feature { grid-template-columns: 1fr; }
  .sf-media { min-height: 300px; }
}

@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
    width: 46px; height: 46px; background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
    padding: 0 12px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--teal-800); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav.open { display: flex; }

  .service-list { grid-template-columns: 1fr; }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: -26px; }
  .spine-motif { left: 8px; }
}

@media (max-width: 430px) {
  .wrap { width: min(100% - 1.75rem, var(--wrap)); }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats { gap: 1.1rem 1.5rem; }
  .hero-stats li { padding-left: 1.5rem; }
  .hero-stats li:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .symptom-grid li { font-size: 1rem; padding: 0.85rem 1rem; }
  .doctor-note { padding: 1.4rem 1.4rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  .techstrip-track { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
