/* =====================================================================
   SUTTON CHIROPRACTIC & ACUPUNCTURE — Foundations
   Clean · clinical · editorial. Cool clinical blues, cool-gray neutrals,
   a refined serif display + technical grotesque + mono for clinical data.
   ---------------------------------------------------------------------
   Import this file, then use the semantic vars (--h1, --blue, --line…).
   Fonts load from Google Fonts via the @import below.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- TYPEFACES ---------------------------------------------------- */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---- NEUTRALS (cool gray, hue ~225, very low chroma) -------------- */
  --paper:       #f2f5f6;  /* page background                          */
  --surface:     #ffffff;  /* cards, panels                            */
  --surface-2:   #e9eef0;  /* sunken / secondary surface               */
  --surface-3:   #dee5e8;  /* deeper inset                             */
  --line:        #d5dee1;  /* hairline borders                         */
  --line-strong: #b6c2c7;  /* emphasized borders                       */

  /* ---- INK (cool near-black text) ----------------------------------- */
  --ink:    #11272f;  /* primary text, headlines                       */
  --ink-2:  #3f565e;  /* secondary text                                */
  --ink-3:  #6b7f86;  /* muted / captions                              */
  --ink-on: #ffffff;  /* text on dark / brand fills                    */

  /* ---- BRAND BLUE (clinical) ---------------------------------------- */
  --blue-deep: #14323f;  /* brand anchor: footers, headers, ink panels */
  --blue-800:  #163f50;
  --blue-700:  #185a74;
  --blue:      #1d6f8e;  /* PRIMARY action / brand accent             */
  --blue-400:  #5b97ac;
  --blue-200:  #b6d2dd;
  --blue-100:  #d8e7ed;  /* tint fills                                 */
  --blue-50:   #eaf2f5;  /* faint wash                                 */

  /* ---- TEAL (supporting — acupuncture / wellness, used sparingly) --- */
  --teal:     #2f8a80;
  --teal-100: #d6ebe7;
  --teal-50:  #eaf5f3;

  /* ---- SEMANTIC ----------------------------------------------------- */
  --success: #2f7d5b;
  --warning: #b07a1e;
  --danger:  #b23b3b;
  --info:    var(--blue);
  --success-50: #e9f4ee;
  --warning-50: #f7efe0;
  --danger-50:  #f6e9e9;

  /* ---- RADII (restrained — clinical, not bubbly) -------------------- */
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;

  /* ---- SPACING (4px base) ------------------------------------------- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  /* ---- ELEVATION (soft, cool-tinted, low) --------------------------- */
  --shadow-sm: 0 1px 2px rgba(17, 39, 47, 0.06);
  --shadow-md: 0 2px 8px rgba(17, 39, 47, 0.07), 0 1px 2px rgba(17, 39, 47, 0.05);
  --shadow-lg: 0 12px 32px -8px rgba(17, 39, 47, 0.16), 0 2px 6px rgba(17, 39, 47, 0.06);
  --ring: 0 0 0 3px rgba(29, 111, 142, 0.22); /* focus ring */

  /* ---- TYPE TOKENS -------------------------------------------------- */
  /* Display / headings use the serif. UI + body use the sans.          */
  --h1-size: clamp(40px, 5.2vw, 68px);
  --h2-size: clamp(30px, 3.4vw, 44px);
  --h3-size: clamp(23px, 2.2vw, 30px);
  --h4-size: 20px;
  --body-lg: 19px;
  --body:    16px;
  --small:   14px;
  --caption: 12.5px;

  --eyebrow-size: 12px;          /* mono, uppercase, tracked            */
  --eyebrow-track: 0.16em;
}

/* =====================================================================
   SEMANTIC TYPOGRAPHY — apply these classes or copy the rules.
   ===================================================================== */
.ds-h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}
.ds-h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.014em;
  color: var(--ink);
  text-wrap: balance;
}
.ds-h3 {
  font-family: var(--font-display);
  font-size: var(--h3-size);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ds-h4 {
  font-family: var(--font-sans);
  font-size: var(--h4-size);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.ds-lead {
  font-family: var(--font-sans);
  font-size: var(--body-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.ds-body {
  font-family: var(--font-sans);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.ds-small {
  font-family: var(--font-sans);
  font-size: var(--small);
  line-height: 1.5;
  color: var(--ink-3);
}
.ds-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--eyebrow-size);
  font-weight: 500;
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  color: var(--blue);
}
.ds-data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
address { font-style: normal; }
ul { list-style: none; }

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

/* =====================================================================
   LAYOUT UTILITIES
   ===================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--small);
  font-weight: 600;
  line-height: 1;
  padding: 11px var(--s-5);
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary {
  background: var(--blue);
  color: var(--ink-on);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue-200);
}
.btn-ghost:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
}

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

.btn-sm { padding: 8px var(--s-4); font-size: 13px; }
.btn-lg { padding: 14px var(--s-6); font-size: var(--body); }

/* =====================================================================
   NAV
   ===================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  text-decoration: none;
}
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--blue-deep);
  white-space: nowrap;
}
.nav-brand-sub { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav-links > a {
  font-size: var(--small);
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s;
}
.nav-links > a:not(.btn):hover { color: var(--blue); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-2);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-2);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  background: var(--blue-deep);
  position: relative;
  padding: var(--s-10) 0 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 40%, var(--blue-800) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s-8);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s-5) var(--s-9);
  position: relative;
}

.hero-eyebrow { color: var(--blue-400); margin-bottom: var(--s-4); }

.hero-headline {
  color: var(--ink-on);
  margin-bottom: var(--s-5);
}
.hero-headline em {
  font-style: italic;
  color: var(--blue-200);
}

.hero-lead {
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin-bottom: var(--s-6);
}

.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* Info card */
.info-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.info-card > .ds-eyebrow { margin-bottom: calc(-1 * var(--s-2)); }

.info-card-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}
.info-icon {
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 2px;
}
.info-link {
  color: var(--blue);
  font-size: 18px;
  font-weight: 600;
  display: block;
  line-height: 1.2;
  margin-bottom: var(--s-1);
}
.info-link:hover { color: var(--blue-700); }

/* Wave divider */
.hero-wave {
  display: block;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 64px;
  display: block;
}

/* =====================================================================
   MISSION
   ===================================================================== */
.mission {
  padding: var(--s-9) 0;
  background: var(--paper);
}

.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}

.mission-text > .ds-eyebrow { margin-bottom: var(--s-3); }
.mission-text .ds-h2 { margin-bottom: var(--s-4); }
.mission-text .ds-lead { max-width: 480px; }

.mission-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.pillar {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-5);
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.pillar:hover { box-shadow: var(--shadow-md); }

.pillar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--blue-50);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.pillar-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.pillar-body .ds-h4,
.pillar-body .ds-body { margin: 0; }

/* =====================================================================
   SERVICES
   ===================================================================== */
.services {
  padding: var(--s-9) 0;
  background: var(--surface-2);
}

.section-header {
  text-align: center;
  margin-bottom: var(--s-7);
}
.section-header .ds-eyebrow { margin-bottom: var(--s-3); }
.section-header .ds-h2 { margin-bottom: var(--s-4); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-4);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.service-card--featured {
  border-color: var(--teal-100);
  background: var(--teal-50);
}
.service-card--featured .service-icon { background: var(--teal-100); color: var(--teal); }
.service-card--featured:hover { border-color: var(--teal); }

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-50);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.service-card .ds-h4 { margin: 0; }

.service-badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--teal-100);
  color: var(--teal);
  border-radius: var(--r-xs);
  margin-top: auto;
  font-size: 10px;
}

/* =====================================================================
   ACUPUNCTURE CALLOUT
   ===================================================================== */
.acupuncture {
  background: var(--blue-deep);
  padding: var(--s-9) 0;
  position: relative;
  overflow: hidden;
}
.acupuncture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, var(--blue-800) 0%, transparent 70%);
  pointer-events: none;
}

.acupuncture-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  position: relative;
}

.acupuncture-text > .ds-eyebrow { margin-bottom: var(--s-3); }
.acupuncture-text .ds-h2 { margin-bottom: var(--s-4); }

.acupuncture-visual {
  display: flex;
  justify-content: center;
}

.meridian-diagram {
  position: relative;
  width: 200px;
  height: 320px;
}

.meridian-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(47,138,128,0.2), 0 0 16px rgba(47,138,128,0.3);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.meridian-dot:nth-child(2) { animation-delay: 0.3s; }
.meridian-dot:nth-child(3) { animation-delay: 0.6s; }
.meridian-dot:nth-child(4) { animation-delay: 0.9s; }
.meridian-dot:nth-child(5) { animation-delay: 1.2s; }
.meridian-dot:nth-child(6) { animation-delay: 1.5s; }
.meridian-dot:nth-child(7) { animation-delay: 1.8s; }
.meridian-dot:nth-child(8) { animation-delay: 2.1s; }
.meridian-dot:nth-child(9) { animation-delay: 2.4s; }

.meridian-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.25); }
}

/* =====================================================================
   REVIEWS
   ===================================================================== */
.reviews {
  padding: var(--s-9) 0;
  background: var(--surface-2);
}

.reviews-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.review-card[hidden] { display: none; }

.review-header {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.review-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--av, var(--blue));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-meta { flex: 1; min-width: 0; }

.review-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin: 0;
}

.review-location {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
}

.review-stars {
  font-size: 16px;
  color: #f59e0b;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.review-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.review-date {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
}

.review-source {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.review-source--yelp {
  background: #fde8e8;
  color: #c0392b;
}

.review-source--google {
  background: #e8f0fe;
  color: #1a73e8;
}

.reviews-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-7);
}

.reviews-pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.reviews-pagination button:hover:not(:disabled) {
  background: var(--blue-50);
  border-color: var(--blue);
  color: var(--blue);
}

.reviews-pagination button[aria-current="page"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.reviews-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* =====================================================================
   APPOINTMENT FORM
   ===================================================================== */
.appt {
  padding: var(--s-9) 0;
  background: var(--paper);
}

.appt-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-9);
  align-items: start;
}

.appt-text .ds-eyebrow { margin-bottom: var(--s-3); }
.appt-text .ds-h2 { margin-bottom: var(--s-4); }
.appt-text .ds-lead { max-width: 420px; }

.appt-phone {
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}
.appt-phone:hover { color: var(--blue-700); }

.appt-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}

.appt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.appt-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.appt-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.appt-optional {
  font-weight: 400;
  color: var(--ink-3);
}

.appt-input {
  width: 100%;
  padding: 10px var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.appt-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.appt-input::placeholder { color: var(--ink-3); }

.appt-textarea {
  resize: vertical;
  min-height: 80px;
}

.appt-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.appt-submit { flex-shrink: 0; }

.appt-status {
  font-size: 14px;
  margin: 0;
}

.appt-status.is-success { color: var(--success); }
.appt-status.is-error   { color: var(--danger); }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band {
  padding: var(--s-7) 0;
  background: var(--blue-50);
  border-top: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.cta-band .ds-eyebrow { margin-bottom: var(--s-2); }
.cta-band .ds-h2 { font-size: clamp(22px, 2.5vw, 32px); }

.cta-band-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--blue-deep);
  padding: var(--s-9) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-on);
  letter-spacing: -0.01em;
}

.footer-mission {
  margin-top: var(--s-3);
  color: rgba(255,255,255,0.45);
  max-width: 260px;
}

.footer-col-label {
  color: var(--blue-400);
  margin-bottom: var(--s-4);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  color: rgba(255,255,255,0.55);
}

.footer-link {
  color: var(--blue-200);
  transition: color 0.15s;
}
.footer-link:hover { color: #fff; }

.footer-address {
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) 0;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer-bottom .ds-small {
  color: rgba(255,255,255,0.35);
}
.footer-bottom .footer-link { color: rgba(255,255,255,0.5); }
.footer-bottom .footer-link:hover { color: #fff; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: var(--s-7);
  }
  .hero-card { max-width: 420px; }

  .mission-inner { grid-template-columns: 1fr; gap: var(--s-6); }

  .appt-inner { grid-template-columns: 1fr; gap: var(--s-6); }

  .acupuncture-inner { grid-template-columns: 1fr; }
  .acupuncture-visual { display: none; }

  .reviews-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}

@media (max-width: 640px) {
  /* Container */
  .container { padding: 0 var(--s-4); }

  /* Nav: hide text links, show hamburger */
  .nav-links > a:not(.btn) { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile nav drawer */
  .site-nav.is-open .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--s-2) var(--s-5) var(--s-5);
    gap: 0;
    z-index: 99;
  }
  .site-nav.is-open .nav-links > a:not(.btn) {
    display: block;
    padding: var(--s-3) 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .site-nav.is-open .nav-links > a.btn {
    margin-top: var(--s-4);
    justify-content: center;
  }

  /* Hamburger → X */
  .site-nav.is-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-nav.is-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .site-nav.is-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero */
  .hero { padding-top: var(--s-8); }
  .hero-headline { font-size: clamp(32px, 8vw, 52px); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-card { max-width: 100%; }

  /* Reduce section vertical padding */
  .mission, .services, .acupuncture, .reviews, .appt { padding-top: var(--s-7); padding-bottom: var(--s-7); }

  /* Appointment form */
  .appt-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .appt-row   { grid-template-columns: 1fr; }

  /* Services */
  .services-grid { grid-template-columns: 1fr 1fr; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }

  /* CTA band */
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-band-actions { flex-direction: column; width: 100%; }
  .cta-band-actions .btn { justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
  .nav-brand-sub { display: none; }
}
