/* TCPH — Tri-Cities Precision Health
   Sky-blue banners with yellow highlights, on a warm cream base. */

:root {
  /* Palette — blue + yellow */
  --blue-900:    #0b3a6f;   /* deep navy */
  --blue-800:    #14549e;   /* rich blue */
  --blue-700:    #1f6fc9;   /* mid sky */
  --blue-500:    #4a94e8;   /* bright sky */
  --blue-300:    #a9c9ee;   /* pale sky */
  --blue-100:    #e0edf9;   /* wash */

  --yellow-700:  #c48a13;   /* deep gold for text on light */
  --yellow-600:  #e6a91d;   /* sunflower */
  --yellow-500:  #f5c344;   /* bright yellow */
  --yellow-400:  #f9d370;   /* soft yellow */
  --yellow-300:  #fce29b;   /* light yellow */
  --yellow-100:  #fef3d1;   /* wash */

  /* Legacy tokens kept as aliases so any lingering var() calls still resolve */
  --apricot-700: var(--blue-800);
  --apricot-600: var(--blue-700);
  --apricot-500: var(--blue-500);
  --apricot-300: var(--blue-300);
  --apricot-100: var(--blue-100);
  --honey-600:   var(--yellow-600);
  --honey-500:   var(--yellow-500);
  --honey-300:   var(--yellow-400);
  --honey-100:   var(--yellow-100);
  --teal-900:    var(--blue-900);
  --teal-800:    var(--blue-800);
  --teal-700:    var(--blue-700);
  --teal-500:    var(--blue-500);
  --teal-100:    var(--blue-100);

  --cream:       #fdf8ef;   /* keep warm cream body */
  --cream-2:     #fbf1de;   /* warm secondary surface */
  --sand:        #f2e4c8;
  --sage:        #8fa285;

  --ink:         #1a2233;   /* cool near-black */
  --ink-2:       #34405a;
  --muted:       #5a6579;   /* cool gray-blue */
  --line:        #e4dcc7;   /* warm border on cream */
  --white:       #ffffff;

  --bg:        var(--cream);
  --surface:   var(--white);
  --surface-2: var(--cream-2);
  --text:      var(--ink);
  --text-muted:var(--muted);
  --accent:    var(--blue-800);
  --accent-2:  var(--yellow-600);
  --accent-teal: var(--blue-800);
  --border:    var(--line);

  /* Type */
  --font-display: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

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

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm:  0 1px 2px rgba(1, 59, 63, 0.05);
  --shadow-md:  0 8px 20px rgba(1, 59, 63, 0.08);
  --shadow-lg:  0 20px 40px rgba(1, 59, 63, 0.14);

  --container: 1180px;
}

html[data-theme="dark"] {
  --bg:          #0d1826;
  --surface:     #172438;
  --surface-2:   #1c2c44;
  --text:        #e8eef7;
  --text-muted:  #a8b4c8;
  --accent:      #6ea8ea;
  --accent-2:    #f5c344;
  --accent-teal: #6ea8ea;
  --border:      #2a3a55;
  --sand:        #22314a;
  --cream-2:     #1c2c44;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--text-muted); }

p { margin: 0 0 var(--space-4); }
.muted { color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; }
.section-sub { color: var(--text-muted); max-width: 640px; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 var(--space-3);
}

.section        { padding: var(--space-20) 0; }
.section-sm     { padding: var(--space-16) 0; }
.section-alt    { background: var(--surface-2); }
.section-scene  { background: var(--surface); }

.section-head        { max-width: 780px; margin-bottom: var(--space-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { display: block; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  color: var(--accent); font-family: var(--font-display); font-weight: 600;
}
.brand:hover { text-decoration: none; }
.brand-name { color: var(--text); font-size: 1rem; line-height: 1.2; display: inline-flex; flex-direction: column; max-width: 160px; }
.brand-sub { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.02em; margin-top: 2px; }
/* Give the nav room to breathe on desktop */
@media (min-width: 1121px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 0.98rem; max-width: 140px; }
}

.nav-links {
  display: flex; align-items: center; gap: var(--space-3);
  list-style: none; padding: 0; margin: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--text); font-weight: 500; font-size: 0.88rem;
  padding: var(--space-2) 0;
  position: relative;
  white-space: nowrap;
}
@media (min-width: 1400px) {
  .nav-links { gap: var(--space-4); }
  .nav-links a { font-size: 0.92rem; }
}
/* Below 1440px the header CTA button is hidden — Patient Hub link stays as the primary route to booking. */
@media (max-width: 1439px) {
  .nav-right .btn { display: none; }
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; position: relative;
}
.theme-toggle::before {
  content: ""; position: absolute; inset: 8px; border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, var(--text) 0 6px, transparent 7px),
    radial-gradient(circle at 30% 30%, transparent 0 5px, var(--text) 6px 8px, transparent 9px);
  mask: linear-gradient(#000, #000);
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(20, 84, 158, 0.28); }
.btn-primary:hover { background: var(--blue-900); color: #fff; box-shadow: 0 6px 18px rgba(20, 84, 158, 0.38); }

.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); }

.btn-white { background: #fff; color: var(--blue-800); }
.btn-white:hover { background: var(--yellow-100); color: var(--blue-900); }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* HERO */
.hero {
  position: relative;
  min-height: 620px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245,195,68,0.18) 0%, rgba(20,84,158,0.42) 55%, rgba(11,58,111,0.62) 100%);
}
.hero .wrap { position: relative; }
.hero-inner {
  padding: var(--space-24) 0 var(--space-20);
  max-width: 780px;
}
.hero .eyebrow { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero p { color: #fff; font-size: 1.15rem; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  margin-top: var(--space-10);
  color: color-mix(in oklab, #fff 88%, transparent);
  font-size: 0.94rem;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { flex-shrink: 0; }

/* GRID */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
}
.card h3 { margin-top: var(--space-4); }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 12%, var(--surface));
  color: var(--accent);
}

/* SPLIT (two-column media/text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.split-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.split-media.wide img { aspect-ratio: 5 / 4; }
.split.single { grid-template-columns: 1fr; max-width: 760px; }

/* Checklists */
.checklist {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--space-4);
}
.checklist li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.checklist li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* CTA band */
.cta-band {
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-12);
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--yellow-500) 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: color-mix(in oklab, #fff 88%, transparent); max-width: 560px; margin: 0 auto var(--space-8); font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 22%, transparent), var(--shadow-md);
  position: relative;
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.price-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: var(--space-2); }
.price-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.price-amount small { font-size: 1rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.price-desc { color: var(--text-muted); margin-top: var(--space-3); margin-bottom: var(--space-6); }
.price-features { list-style: none; padding: 0; margin: 0 0 var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.price-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 0.96rem; }
.price-features svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* Drip-menu price droplet badge */
.drop-badge {
  display: inline-flex; flex-direction: column-reverse; align-items: center; justify-content: center;
  min-width: 84px; height: 84px; padding: 8px 10px;
  background: color-mix(in oklab, var(--accent) 8%, var(--white));
  border: 1.5px solid color-mix(in oklab, var(--accent) 22%, var(--border));
  /* teardrop: round three corners, point the TOP (rotate puts the sharp corner up) */
  border-radius: 50% 50% 50% 0 / 60% 60% 50% 50%;
  transform: rotate(135deg);
  box-shadow: 0 4px 12px rgba(20, 84, 158, 0.12);
  vertical-align: middle;
}
.drop-badge > span { transform: rotate(-135deg); display: block; line-height: 1.05; text-align: center; font-family: var(--font-display); }
.drop-badge .drop-std { color: var(--accent); font-weight: 700; font-size: 1.15rem; }
.drop-badge .drop-mem { color: var(--yellow-700); font-weight: 600; font-size: 0.82rem; margin-top: 1px; }
.drop-head { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-3); }
.drop-head .drop-title { margin: 0; flex: 1; }
/* staggered drip look — alternate the badge's vertical offset card to card */
.grid > .card:nth-child(odd) .drop-badge { margin-top: -6px; }
.grid > .card:nth-child(even) .drop-badge { margin-top: 20px; }

/* intermittent shades of blue on drip/shot cards */
.grid > .card:has(.drop-head) {
  border-color: color-mix(in oklab, var(--accent) 20%, var(--border));
}
/* mostly blue, with a soft yellow every 3rd card as a warm accent */
.grid > .card:has(.drop-head):nth-child(odd)  { background: color-mix(in oklab, var(--blue-100) 55%, var(--white)); }
.grid > .card:has(.drop-head):nth-child(even) { background: color-mix(in oklab, var(--blue-300) 32%, var(--white)); }
.grid > .card:has(.drop-head):nth-child(3n)   { background: color-mix(in oklab, var(--yellow-100) 60%, var(--white)); border-color: color-mix(in oklab, var(--yellow-600) 25%, var(--border)); }
/* keep the drop badge readable on tinted cards */
.grid > .card:has(.drop-head) .drop-badge { background: var(--white); }

/* Contact grid */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12);
}
.contact-info dl {
  display: grid; grid-template-columns: max-content 1fr; gap: var(--space-3) var(--space-6);
  margin: var(--space-6) 0 var(--space-8);
}
.contact-info dt { font-weight: 600; color: var(--text); }
.contact-info dd { margin: 0; color: var(--text-muted); }
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Simple form */
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-10);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text);
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 15%, transparent);
}
.field textarea { min-height: 130px; resize: vertical; }

/* Feature list */
.feature-list {
  display: flex; flex-direction: column; gap: var(--space-6);
}
.feature-item {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--space-6);
  padding: var(--space-6) 0; border-bottom: 1px solid var(--border);
}
.feature-item:last-child { border-bottom: 0; }
.feature-item .card-icon { width: 56px; height: 56px; }
.feature-item h3 { margin-top: 0; margin-bottom: var(--space-2); }
.feature-item p { margin: 0; color: var(--text-muted); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: var(--space-6); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: color-mix(in oklab, var(--accent) 50%, transparent);
  display: block; margin-bottom: var(--space-2);
}
.step h3 { margin: 0 0 var(--space-2); font-size: 1.06rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* PAGE HEADER (for interior pages) */
.page-header {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-300) 55%, var(--yellow-400) 100%);
  color: #fff;
  padding: var(--space-24) 0 var(--space-16);
  text-align: center;
}
.page-header .eyebrow { color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(11,58,111,0.35); }
.page-header h1 { color: #fff; margin-bottom: var(--space-4); text-shadow: 0 2px 10px rgba(11,58,111,0.5); }
.page-header p { color: #fff; font-size: 1.15rem; max-width: 640px; margin: 0 auto; text-shadow: 0 1px 6px rgba(11,58,111,0.4); }

/* FOOTER */
.site-footer {
  background: linear-gradient(180deg, #0b3a6f 0%, #082a52 100%);
  color: #dae6f4;
  padding: var(--space-16) 0 var(--space-8);
}
.site-footer .brand { color: #fff; }
.site-footer .brand-name { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer-grid h4 { color: var(--yellow-400); margin-bottom: var(--space-4); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #dae6f4; }
.footer-grid a:hover { color: var(--yellow-400); }
.footer-grid p { color: #b8c6de; margin-top: var(--space-3); font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  display: flex; justify-content: space-between; gap: var(--space-4);
  color: #9aabc4; font-size: 0.86rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1120px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-4, .price-grid { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: var(--space-16) 0 var(--space-12); }
  .hero { min-height: 520px; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; }
  .cta-band { padding: var(--space-12) var(--space-6); }
  .section, .section-sm { padding: var(--space-16) 0; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .hero-badges { gap: var(--space-3) var(--space-5); font-size: 0.88rem; }
}

/* Nav mobile menu */
.nav-links.open {
  display: flex; flex-direction: column; align-items: flex-start;
  position: absolute; top: 72px; left: 0; right: 0;
  background: var(--surface); padding: var(--space-6);
  border-bottom: 1px solid var(--border);
  gap: var(--space-4);
}

/* ============ SUPPORTING PAGES ============ */

/* (interior page header override removed — using the sunrise gradient above) */
.page-header h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 12px 0 20px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(11,58,111,0.5);
}
[data-theme="dark"] .page-header h1 { color: #fff; }
.page-header .lede {
  font-size: 1.15rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(11,58,111,0.4);
}

/* Section title */
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 40px;
  text-align: center;
}
[data-theme="dark"] .section-title { color: var(--cream); }

/* Split reverse */
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
@media (max-width: 800px) {
  .split-reverse { direction: ltr; }
}

/* Split body — ensure defined */
.split-body p { margin-bottom: 16px; line-height: 1.7; }
.split-body h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--teal-900);
  margin: 8px 0 20px;
  line-height: 1.15;
}
[data-theme="dark"] .split-body h2 { color: var(--cream); }

/* Steps list (legacy — kept for any remaining usages) */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 32px;
  max-width: 780px;
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-800);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.steps h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal-900);
  margin-bottom: 8px;
}
[data-theme="dark"] .steps h3 { color: var(--cream); }
.steps p { color: var(--ink-2); line-height: 1.65; margin: 0; }

/* Onboarding card grid (New Patients page) */
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}
.onboarding-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  padding-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.onboarding-num {
  position: absolute;
  top: calc(-1 * var(--space-5));
  left: var(--space-8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-800);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(20, 84, 158, 0.28);
}
.onboarding-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--teal-900);
  margin: var(--space-2) 0 0;
}
[data-theme="dark"] .onboarding-card h3 { color: var(--cream); }
.onboarding-card p {
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 var(--space-2);
  flex-grow: 1;
}
.onboarding-card .btn {
  align-self: flex-start;
}
.onboarding-card .btn + .btn {
  margin-top: var(--space-2);
}

@media (max-width: 860px) {
  .onboarding-grid { grid-template-columns: 1fr; }
}

/* Stat card (About page) */
.stat-card {
  background: white;
  border: 1px solid rgba(1, 105, 111, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(1, 59, 63, 0.06);
}
[data-theme="dark"] .stat-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(1, 105, 111, 0.08);
}
.stat-row:last-child { border-bottom: none; }
.stat-num {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--teal-800);
}
.stat-label { color: var(--ink-2); font-size: 0.95rem; text-align: right; }

/* Pricing card */
.pricing-card {
  background: white;
  border: 2px solid var(--teal-800);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 28px rgba(1, 59, 63, 0.08);
}
[data-theme="dark"] .pricing-card {
  background: rgba(1, 122, 128, 0.08);
  border-color: var(--teal-700);
}
.pricing-card .eyebrow { color: var(--teal-800); }
.price {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: var(--teal-900);
  line-height: 1;
  margin: 12px 0 4px;
}
[data-theme="dark"] .price { color: var(--cream); }
.price-unit { font-size: 1.1rem; font-weight: 500; color: var(--ink-2); }
.price-note { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 24px; }
.pricing-card .checklist { margin-bottom: 28px; }
.pricing-card .btn { width: 100%; text-align: center; }

/* Contact page blocks */
.contact-block { margin-bottom: 36px; }
.contact-block:last-child { margin-bottom: 0; }
.contact-block p { line-height: 1.6; margin: 4px 0; }
.big-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--teal-800);
  text-decoration: none;
}
.big-link:hover { color: var(--teal-900); text-decoration: underline; }
[data-theme="dark"] .big-link { color: var(--teal-700); }

/* Contact form */
.contact-form {
  background: white;
  border: 1px solid rgba(1, 105, 111, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(1, 59, 63, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
[data-theme="dark"] .contact-form {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
[data-theme="dark"] .contact-form label { color: var(--cream); }
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid rgba(1, 105, 111, 0.2);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-800);
  box-shadow: 0 0 0 3px rgba(1, 105, 111, 0.12);
}
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: var(--cream);
}
.form-status {
  color: var(--teal-800);
  font-weight: 500;
  min-height: 20px;
}
[data-theme="dark"] .form-status { color: var(--teal-700); }

/* ============ LET'S TALK FLOATING BUTTON ============ */
.lets-talk {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--teal-800);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(1, 59, 63, 0.25), 0 2px 6px rgba(1, 59, 63, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lets-talk:hover {
  background: var(--teal-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(1, 59, 63, 0.3), 0 4px 8px rgba(1, 59, 63, 0.18);
}
.lets-talk:active { transform: translateY(0); }
.lets-talk svg { flex-shrink: 0; }
[data-theme="dark"] .lets-talk {
  background: var(--teal-700);
}
[data-theme="dark"] .lets-talk:hover {
  background: var(--teal-500);
}

.lets-talk-popover {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 99;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: white;
  border: 1px solid rgba(1, 105, 111, 0.15);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 48px rgba(1, 59, 63, 0.18), 0 4px 12px rgba(1, 59, 63, 0.08);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lets-talk-popover.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
[data-theme="dark"] .lets-talk-popover {
  background: #0d2a2c;
  border-color: rgba(255,255,255,0.1);
}
.lets-talk-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-900);
  margin: 0 0 12px;
}
[data-theme="dark"] .lets-talk-title { color: var(--cream); }
.lets-talk-item {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
  margin-bottom: 4px;
}
.lets-talk-item:hover {
  background: rgba(1, 105, 111, 0.08);
}
[data-theme="dark"] .lets-talk-item { color: var(--cream); }
[data-theme="dark"] .lets-talk-item:hover { background: rgba(255,255,255,0.06); }
.lets-talk-item-title {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal-800);
  margin-bottom: 2px;
}
[data-theme="dark"] .lets-talk-item-title { color: var(--teal-500); }
.lets-talk-item-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.lets-talk-note {
  font-size: 0.78rem;
  color: var(--ink-2);
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(1, 105, 111, 0.1);
  text-align: center;
}
[data-theme="dark"] .lets-talk-note { border-top-color: rgba(255,255,255,0.08); }

@media (max-width: 600px) {
  .lets-talk {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .lets-talk-popover {
    bottom: 76px;
    right: 16px;
  }
}

/* ============ Billing page ============ */
.billing-list { list-style: none; padding: 0; margin: 0; }
.billing-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.billing-list li:last-child { border-bottom: none; }
.billing-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* Info callout */
.callout {
  border-radius: 14px;
  padding: 24px 28px;
  margin: 24px 0;
}
.callout-info {
  background: var(--blue-100);
  border-left: 4px solid var(--accent);
}
[data-theme="dark"] .callout-info {
  background: color-mix(in oklab, var(--accent) 14%, var(--surface));
}
.callout h3 { color: var(--accent); margin-top: 0; }
.callout ul { padding-left: 20px; margin-bottom: 0; }
.callout li { margin-bottom: 8px; }

/* FAQ (details/summary) */
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 14px;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq details:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--border)); }
.faq details[open] {
  border-color: color-mix(in oklab, var(--accent) 30%, var(--border));
  box-shadow: 0 4px 14px rgba(20, 84, 158, 0.06);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-display, 'DM Sans'), sans-serif;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { margin-bottom: 14px; }
.faq details p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.faq details p + p { margin-top: 10px; }

/* Spruce QR code block on Patient Hub */
.spruce-qr-block {
  margin-top: 48px;
  background: #F5F3EE;
  border: 1px solid #E5E1D8;
  border-radius: 20px;
  padding: 32px;
}
.spruce-qr-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}
.spruce-qr-img {
  width: 200px;
  height: 200px;
  display: block;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(15, 95, 99, 0.08);
}
.spruce-qr-text h3 {
  margin: 4px 0 8px;
}
.spruce-qr-text .eyebrow {
  color: #0F5F63;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0;
}
.spruce-qr-text p {
  margin: 8px 0;
  color: #1F2A2E;
}
.spruce-qr-text .price-note {
  font-size: 14px;
  color: #5A6A6E;
}
.spruce-qr-text .price-note a {
  color: #0F5F63;
  text-decoration: underline;
}
@media (max-width: 640px) {
  .spruce-qr-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .spruce-qr-img {
    margin: 0 auto;
  }
}

/* Phone button — desktop copies, mobile dials */
.phone-btn { position: relative; }
.phone-btn .phone-btn-copied {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 180ms ease;
  border-radius: inherit;
  background: inherit;
  color: inherit;
  pointer-events: none;
}
.phone-btn.copied .phone-btn-label { opacity: 0; }
.phone-btn.copied .phone-btn-copied { opacity: 1; }

/* Patient Hub link in header — primary route to booking/messaging */
.hub-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  color: #fff;
  background: var(--accent, #01696f);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background 160ms ease, transform 160ms ease;
  white-space: nowrap;
}
.hub-link:hover {
  background: var(--accent-hover, #0c4e54);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .hub-link { display: none; }
}
