/* ============================================================
   OsteoStrong Unified - Global Styles
   Mobile-first: base = 320px, then 640 / 900 / 1100 breakpoints
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --gold: #E8B630;
  --gold-dark: #C99A1E;
  --gold-light: #F5D77A;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --off-white: #F9F7F2;
  --cream: #FAF6EC;
  --gray-light: #F0EDE6;
  --gray-mid: #8A8A8A;
  --gray-text: #4A4A4A;
  --gray-dark: #2C2C2C;
  --accent: #2B4A3E;

  /* Typography */
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1100px;
  --max-width-narrow: 760px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Touch targets */
  --tap: 48px;
  --tap-primary: 56px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

  /* Motion */
  --t-fast: 0.15s;
  --t: 0.25s;
  --t-slow: 0.4s;
}

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

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--sp-7) 0;
}

.section-dark {
  background: var(--gray-dark);
  color: var(--white);
}

.section-cream {
  background: var(--cream);
}

.section-offwhite {
  background: var(--off-white);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
}

h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  margin-bottom: var(--sp-5);
}

h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: var(--sp-4);
}

h3 {
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  margin-bottom: var(--sp-3);
}

h4 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-2);
}

p {
  margin-bottom: var(--sp-4);
  max-width: 65ch;
  color: var(--gray-text);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-text);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--sp-3);
}

.highlight { color: var(--gold-dark); }
.section-dark.highlight { color: var(--gold); }
.section-dark p { color: rgba(255,255,255,0.85); }
.section-dark h1,.section-dark h2,.section-dark h3 { color: var(--white); }

/* ---------- BUTTONS / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  text-align: center;
  transition: transform var(--t-fast), background var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  min-height: var(--tap-primary);
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 4px 14px rgba(232,182,48,0.35);
  padding: 1rem 1.8rem;
  font-size: 1.05rem;
}
.btn-primary:hover { background: var(--gold-dark); box-shadow: 0 6px 20px rgba(232,182,48,0.45); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.section-dark.btn-outline {
  color: var(--white);
  border-color: var(--white);
}
.section-dark.btn-outline:hover { background: var(--white); color: var(--black); }

.btn-ghost {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: var(--tap);
  padding: 0 var(--sp-2);
}

.btn-block { width: 100%; }

.btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
@media (min-width: 640px) {
.btn-group { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- HOURS TABLE ---------- */
.hours-list {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 var(--sp-4);
  max-width: 360px;
}
.hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-3);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.hours-row:last-child { border-bottom: none; }
.hours-row dt { font-weight: 500; color: var(--black); }
.hours-row dd { color: var(--gray-text); margin: 0; font-variant-numeric: tabular-nums; }
.hours-row.is-closed dt,
.hours-row.is-closed dd { color: var(--gray-mid); }
.hours-list-compact.hours-row { padding: 0.3rem 0; }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  white-space: nowrap;
}

.site-logo {
  display: flex;
  align-items: center;
  min-height: var(--tap);
}
.site-logo img {
  height: 36px;
  width: auto;
  max-width: none;
  aspect-ratio: 3300 / 610;
  object-fit: contain;
}
@media (min-width: 900px) {
.site-logo img { height: 44px; }
}

.site-nav {
  display: none;
}
@media (min-width: 980px) {
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
  }
.site-nav a {
    color: var(--gray-text);
    transition: color var(--t-fast);
    padding: 0.5rem 0;
    white-space: nowrap;
  }
.site-nav a:hover { color: var(--black); }
}
@media (min-width: 1200px) {
.site-nav { gap: var(--sp-5); font-size: 0.95rem; }
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-text);
  min-height: var(--tap);
  white-space: nowrap;
}
@media (min-width: 1100px) {
.header-phone { display: inline-flex; }
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  transition: background var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--gold-dark); }

@media (max-width: 899px) {
.header-cta {
    font-size: 0.8rem;
    padding: 0.55rem 0.95rem;
  }
}

/* Mobile hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  color: var(--black);
  background: transparent;
}
@media (min-width: 900px) {
.nav-toggle { display: none; }
}

.nav-toggle svg { width: 28px; height: 28px; }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  padding: var(--sp-4) var(--sp-5) var(--sp-6);
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform var(--t);
}
.mobile-nav[data-open="true"] {
  transform: translateY(0);
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}
.mobile-nav ul {
  list-style: none;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.mobile-nav li {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--black);
}
.mobile-nav-cta {
  margin-top: var(--sp-6);
}

body[data-nav-open="true"] { overflow: hidden; }

/* ---------- STICKY MOBILE CTA BAR ---------- */
/* Hidden by default (slid below viewport). JS adds .is-visible when the
   user has scrolled past the in-hero CTAs, so we never show duplicate
   buttons at the same time (zero cognitive load). */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem var(--sp-4) calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.05);
  z-index: 90;
  display: flex;
  gap: var(--sp-2);
  transform: translateY(110%);
  transition: transform 0.25s ease-out;
  pointer-events: none;
}
.mobile-cta-bar.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-cta-bar .btn {
  flex: 1;
  min-height: var(--tap);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}
@media (min-width: 900px) {
  .mobile-cta-bar { display: none; }
}
/* Padding reserved only when the bar is shown (via body flag set from JS) */
@media (max-width: 899px) {
  body.sticky-cta-on { padding-bottom: 70px; }
}

/* Single-button variant - used on /book page (call-only sticky bar).
   Always visible (no JS gating), button spans full width. */
.mobile-cta-bar--single { justify-content: stretch; }
.mobile-cta-bar--single .btn { flex: 1; }
@media (max-width: 899px) {
  body:has(.mobile-cta-bar--single) { padding-bottom: 70px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: var(--sp-6) 0 var(--sp-7);
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  overflow: hidden;
}
@media (min-width: 900px) {
.hero { padding: var(--sp-8) 0; }
}

.hero-inner {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) {
.hero-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--sp-7);
  }
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(232,182,48,0.15);
  color: var(--gold-dark);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
}

.hero h1 {
  font-size: clamp(1.85rem, 7vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--sp-3);
}
.hero h1 .highlight { color: var(--gold-dark); }

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--gray-text);
  margin-bottom: var(--sp-4);
  max-width: 55ch;
}
@media (min-width: 900px) {
  .hero-sub { font-size: 1.15rem; }
}

/* Authority claim: visible high in the hero, grunt-test pass */
.hero-authority {
  display: block;
  background: rgba(232,182,48,0.14);
  color: var(--black);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
  padding: 0.85rem 1rem 0.85rem 1rem;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  margin-bottom: var(--sp-5);
  max-width: 58ch;
}
@media (min-width: 900px) {
  .hero-authority { font-size: 1.05rem; }
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
}

.hero-cta {
  gap: var(--sp-3);
}
.hero-cta .btn {
  min-height: 52px;
}

/* Image stays BELOW the copy on mobile so the headline + CTA clear the fold */
.hero-media {
  order: 1;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  margin: var(--sp-5) auto 0;
}
@media (min-width: 900px) {
  .hero-media { order: 0; margin: 0; max-width: none; }
}
.hero-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center 30%;
}
@media (min-width: 900px) {
  .hero-media img { aspect-ratio: 4/5; object-position: center; }
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.82rem;
  color: var(--gray-mid);
}
@media (min-width: 900px) {
  .trust-bar {
    margin-top: var(--sp-6);
    padding-top: var(--sp-5);
    font-size: 0.85rem;
  }
}
.trust-bar strong { color: var(--black); }

/* ---------- EMPATHY / PROBLEM ---------- */
.empathy-grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
@media (min-width: 640px) {
.empathy-grid { grid-template-columns: repeat(3, 1fr); }
}
.empathy-card {
  padding: var(--sp-5);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
}
.empathy-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.empathy-card p { font-size: 0.95rem; margin: 0; }

/* ---------- GUIDE / AUTHORITY ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
@media (min-width: 640px) {
.stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  text-align: center;
  padding: var(--sp-4) var(--sp-2);
}
.stat-num {
  display: block;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray-text);
  line-height: 1.4;
}

.claim-hero {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: var(--sp-5);
  border-radius: var(--radius);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: var(--sp-5) 0;
}
.claim-hero strong { color: var(--black); }
.claim-source {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin-top: var(--sp-2);
  font-style: italic;
}

/* ---------- PLAN (3-step) ---------- */
.plan-grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  counter-reset: plan;
}
@media (min-width: 900px) {
.plan-grid { grid-template-columns: repeat(3, 1fr); }
}
.plan-step {
  position: relative;
  padding: var(--sp-5);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}
.plan-step::before {
  counter-increment: plan;
  content: counter(plan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--sp-3);
}
.plan-step h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }

/* ---------- FEATURE SPLIT (image + copy, alternating) ---------- */
.feature-split {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) {
.feature-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-7);
  }
.feature-split-reverse.feature-media { order: 2; }
.feature-split-reverse.feature-copy  { order: 1; }
}
.feature-copy h2 { margin-top: var(--sp-2); }
.feature-copy p { font-size: 1.05rem; line-height: 1.7; color: var(--gray-text); }
.feature-copy p + p { margin-top: var(--sp-3); }
.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--off-white, #f6f3ee);
}
.feature-media img,
.feature-media picture img { width: 100%; height: auto; display: block; }

/* ---------- DEVICE GRID ---------- */
.device-grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
@media (min-width: 640px) {.device-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {.device-grid { grid-template-columns: repeat(4, 1fr); } }

.device-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.device-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.device-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--off-white, #f6f3ee);
}
.device-card-media img,
.device-card-media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.device-card-body {
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
}
.device-card-body h3 {
  font-size: 1.15rem;
  margin: 0 0 var(--sp-2);
  color: var(--black);
}
.device-card-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gray-text);
}

/* ---------- SESSION STEPS ---------- */
.session-steps {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 0;
  display: grid;
  gap: var(--sp-4);
}
.session-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
}
.session-steps.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.session-steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.session-steps p {
  margin: 0;
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- TIMELINE ---------- */
.timeline {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 700px) {.timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {.timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline-item {
  position: relative;
  padding: var(--sp-5);
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.timeline-marker {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: rgba(232,182,48,0.18);
  color: var(--black);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-3);
  font-variant-numeric: tabular-nums;
}
.timeline-item h3 {
  font-size: 1.1rem;
  margin: 0 0 var(--sp-2);
}
.timeline-item p {
  margin: 0;
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- VIDEO TESTIMONIALS ---------- */
.video-grid {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
@media (min-width: 640px) {.video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {.video-grid { grid-template-columns: repeat(4, 1fr); } }

.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  box-shadow: var(--shadow-md);
  aspect-ratio: 9/16;
  cursor: pointer;
}
.video-card img,
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background var(--t);
}
.video-card:hover .play-badge { background: rgba(0,0,0,0.1); }
.video-card .play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.video-card .play-icon svg { width: 24px; height: 24px; color: var(--black); margin-left: 3px; }
.video-card .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-3);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  display: grid;
  gap: 0.15rem;
}
.video-card .caption strong { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.video-card .caption span { font-size: 0.8rem; font-weight: 400; color: rgba(255,255,255,0.85); }

/* Bone-density hero grid: 2 large landscape videos filling the row */
.video-grid-density {
  gap: var(--sp-4);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {.video-grid-density { grid-template-columns: repeat(2, 1fr); } }
.video-grid-density .video-card { aspect-ratio: 16 / 9; }

/* Proof-quote cards shown beneath the density videos */
.proof-grid {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {.proof-grid { grid-template-columns: repeat(2, 1fr); } }

/* Secondary wins grid: smaller cards, keep 2-up on mobile */
.video-grid-sm {
  gap: var(--sp-3);
}
.video-grid-sm .video-card { aspect-ratio: 3/4; }
@media (min-width: 640px) {.video-grid-sm { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {.video-grid-sm { grid-template-columns: repeat(4, 1fr); } }

/* Proof card - for written density wins rendered alongside video tiles */
.proof-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.proof-card.proof-stat {
  font-family: var(--font-heading, inherit);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.proof-card blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gray-text);
  font-style: italic;
}
.proof-card.proof-attr {
  font-size: 0.85rem;
  color: var(--gray-mid);
}

/* ---------- MEMBERS CAROUSEL ---------- */
.success-split {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 980px) {
.success-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--sp-7);
  }
}

.members-carousel {
  display: grid;
  gap: var(--sp-3);
}
/* Standalone (not in a side-by-side layout): constrain + center the whole carousel */
.members-carousel.is-standalone {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.members-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--off-white, #f6f3ee);
  aspect-ratio: 4/5;
  max-height: 560px;
}
@media (min-width: 640px) {.members-main { aspect-ratio: 1; } }

.members-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.members-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.members-zoom {
  position: relative;
  flex: 1 1 auto;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  display: block;
}
.members-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.members-zoom:hover img { transform: scale(1.03); }
.members-zoom-hint {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: rgba(0,0,0,0.65);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.members-slide figcaption {
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: grid;
  gap: 0.15rem;
}
.members-slide figcaption strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}
.members-slide figcaption span {
  font-size: 0.9rem;
  color: var(--gray-text);
}

.members-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  color: var(--black);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.members-nav:hover { background: var(--white); transform: translateY(-50%) scale(1.05); }
.members-nav-prev { left: var(--sp-3); }
.members-nav-next { right: var(--sp-3); }

.members-thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-2);
}
@media (max-width: 639px) {
.members-thumbs { grid-template-columns: repeat(4, 1fr); }
.members-thumbs li:nth-child(n+5) { display: none; }
}
.members-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  aspect-ratio: 1;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.members-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.members-thumb.is-active {
  border-color: var(--gold);
}
.members-thumb:hover { transform: translateY(-2px); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}
.lightbox[data-open="true"] { display: flex; }
.lightbox-frame {
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.lightbox-frame img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--white);
}
.lightbox-frame figcaption {
  text-align: center;
  color: var(--white);
  font-size: 1rem;
}
.lightbox-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.quote-grid {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
@media (min-width: 640px) {.quote-grid { grid-template-columns: repeat(2, 1fr); } }

.quote-card {
  padding: var(--sp-5);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
}
.quote-card blockquote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-dark);
  margin-bottom: var(--sp-3);
  font-style: italic;
}
.quote-attr {
  font-size: 0.85rem;
  color: var(--gray-mid);
  font-weight: 500;
}
.quote-attr strong { color: var(--black); }

/* ---------- FAILURE STAKES (dark section) ---------- */
.failure-list {
  list-style: none;
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}
.failure-list li {
  padding-left: var(--sp-5);
  position: relative;
  font-size: 1.05rem;
  line-height: 1.5;
}
.failure-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(232,182,48,0.2);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- SUCCESS TRANSFORMATION ---------- */
.success-list {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.success-list li {
  padding-left: var(--sp-5);
  position: relative;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--gray-text);
}
.success-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(43,74,62,0.1);
  color: var(--accent);
  font-weight: 700;
}

.photo-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}
@media (min-width: 640px) {
.photo-collage { grid-template-columns: repeat(6, 1fr); }
}
.photo-collage img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-list {
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  min-height: var(--tap-primary);
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
}
.faq-q:hover { background: rgba(232,182,48,0.05); }
.faq-q[aria-expanded="true"] { background: rgba(232,182,48,0.08); }
.faq-q.chevron {
  transition: transform var(--t);
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"].chevron { transform: rotate(180deg); }
.faq-a {
  padding: 0 var(--sp-5);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t), padding var(--t);
}
.faq-q[aria-expanded="true"] +.faq-a {
  padding: 0 var(--sp-5) var(--sp-5);
  max-height: 600px;
}
.faq-a p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

/* ---------- GUIDE CARDS (transitional CTA) ---------- */
.guide-grid {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
@media (min-width: 640px) {.guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {.guide-grid { grid-template-columns: repeat(4, 1fr); } }

.guide-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform var(--t), box-shadow var(--t);
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.guide-card h3 { font-size: 1rem; margin-bottom: var(--sp-2); }
.guide-card p { font-size: 0.85rem; margin-bottom: var(--sp-3); flex-grow: 1; }
.guide-card.btn-ghost { align-self: flex-start; padding: 0; font-size: 0.85rem; }

/* ---------- LOCATION CARDS ---------- */
.location-grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
@media (min-width: 640px) {.location-grid { grid-template-columns: repeat(2, 1fr); } }

.location-card {
  padding: var(--sp-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
}
.location-card h3 { font-size: 1.3rem; margin-bottom: var(--sp-3); color: var(--gold-dark); }
.location-card address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-text);
  margin-bottom: var(--sp-4);
}
.location-card.location-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--sp-4);
  min-height: var(--tap);
}
.location-card.btn { margin-top: var(--sp-2); }

/* ---------- FORM ---------- */
.form {
  display: grid;
  gap: var(--sp-4);
  max-width: 500px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-text);
}
.form input,.form select,.form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  min-height: var(--tap);
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  transition: border-color var(--t-fast);
}
.form input:focus,.form select:focus,.form textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.form textarea { min-height: 120px; resize: vertical; }
.form-help { font-size: 0.8rem; color: var(--gray-mid); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--gray-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--sp-7) 0 var(--sp-5);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
@media (min-width: 640px) {
.footer-grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; display: grid; gap: var(--sp-2); }
.footer-col a {
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast);
  display: inline-block;
  min-height: 32px;
  padding: 0.2rem 0;
}
.footer-col a:hover { color: var(--gold); }
.footer-logo { max-width: 160px; margin-bottom: var(--sp-3); }
.footer-bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
@media (min-width: 640px) {
.footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- PAGE HEADER (non-home pages) ---------- */
.page-hero {
  background: var(--cream);
  padding: var(--sp-7) 0 var(--sp-6);
  text-align: center;
}
.page-hero h1 { margin-bottom: var(--sp-3); }
.page-hero.lead { margin: 0 auto; max-width: 50ch; }

/* Compact variant - used on /book so location cards appear above the fold */
.page-hero--compact { padding: var(--sp-3) 0 var(--sp-2); }
.page-hero--compact h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: var(--sp-1); line-height: 1.15; }
.page-hero--compact .eyebrow { margin-bottom: var(--sp-1); }
.page-hero--compact .lead { margin: 0 auto; max-width: 40ch; font-size: 0.95rem; line-height: 1.45; margin-bottom: 0; }

/* Tight section - reduced top/bottom padding when hero is compact */
.section--tight { padding-top: var(--sp-3); padding-bottom: var(--sp-4); }

/* Compact grid/cards for /book: get both locations closer to the fold */
.location-grid--compact { gap: var(--sp-4); margin-top: var(--sp-4); }
.location-card--compact {
  padding: var(--sp-5);
  text-align: center;
  overflow: hidden; /* belt-and-suspenders: never let content escape the card */
}

/* Header: city name on top, phone (Google Maps link) directly below.
   Stacked so neither can overflow the card on narrow screens. */
.location-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: var(--sp-3);
}
.location-card--compact h3 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.25;
  color: var(--gold-dark);
}
.location-card--compact .location-phone {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,0.25);
}
.location-card--compact .location-phone:hover {
  text-decoration-color: var(--gold-dark);
}

/* Address block - tappable, opens Google Maps */
.location-card--compact .location-address {
  display: block;
  text-decoration: none;
  color: var(--gray-text);
  margin-bottom: var(--sp-4);
}
.location-card--compact .location-address:hover { color: var(--black); }
.location-card--compact address {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  font-style: normal;
  max-width: none; /* override global p-like constraints */
}

/* Center the CTA so the button visually balances the card */
.btn-group--center {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.btn-group--center .btn {
  width: 100%;
  max-width: 100%;
  white-space: normal; /* allow wrap on narrow screens so text never clips */
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}

/* ---------- BLOG ---------- */
.post-meta {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin-bottom: var(--sp-5);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.post-meta.category {
  background: rgba(232,182,48,0.15);
  color: var(--gold-dark);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-dark);
  max-width: 65ch;
}
.post-content h2 { margin-top: var(--sp-7); }
.post-content h3 { margin-top: var(--sp-5); }
.post-content p { max-width: none; }
.post-content ul,.post-content ol { margin: 0 0 var(--sp-4) var(--sp-5); }
.post-content li { margin-bottom: var(--sp-2); line-height: 1.7; }
.post-content img { border-radius: var(--radius); margin: var(--sp-5) 0; }
.post-content blockquote {
  border-left: 4px solid var(--gold);
  padding-left: var(--sp-4);
  margin: var(--sp-5) 0;
  font-style: italic;
  color: var(--gray-dark);
}
.post-content a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-cta {
  background: var(--cream);
  padding: var(--sp-5);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  margin: var(--sp-6) 0;
}
.inline-cta h3 { margin-bottom: var(--sp-2); }

.post-grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
@media (min-width: 640px) {.post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {.post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card.post-card-body { padding: var(--sp-5); flex-grow: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.post-card p { font-size: 0.9rem; margin: 0 0 var(--sp-3); flex-grow: 1; }

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

/* ---------- MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal[data-open="true"] { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: var(--sp-6);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: var(--tap);
  height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: 1.5rem;
}
.modal-close:hover { color: var(--black); }
.modal h3 { margin-bottom: var(--sp-3); }
.modal-buttons { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }

/* Video modal */
.video-modal.modal-box {
  max-width: 420px;
  padding: 0;
  background: var(--black);
}
.video-modal video {
  width: 100%;
  aspect-ratio: 9/16;
  display: block;
  border-radius: var(--radius-lg);
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.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;
}
.mt-0 { margin-top: 0!important; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }

/* Honeypot */
.hp { position: absolute; left: -5000px; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: 0.01ms!important;
    scroll-behavior: auto!important;
  }
}
