/* ============================================================================
   starter.css — MECHANICS-ONLY FLOOR (copied verbatim; design lives below it)
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
img, svg, video { max-width: 100%; height: auto; }

:root {
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;    --space-7: 3rem;     --space-8: 4.5rem;
  --measure: 38rem;
  --section-pad: 4.5rem;
}

h1 { font-size: 2.5rem;   line-height: 1.08; margin: 0 0 1rem; }
h2 { font-size: 1.75rem;  line-height: 1.15; margin: 0 0 0.75rem; }
h3 { font-size: 1.375rem; line-height: 1.25; margin: 0 0 0.5rem; }
p  { margin: 0 0 1rem; max-width: var(--measure); }
@media (min-width: 1000px) { h1 { font-size: 3rem; } }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid currentColor; outline-offset: 2px;
}
a { text-underline-offset: 3px; }

@media (max-width: 720px) {
  :root { --section-pad: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ============================================================================
   SPINAL WELLNESS CENTER — bespoke identity
   Palette: deep teal + warm terracotta on warm paper. Display: Fraunces.
   Body: Hanken Grotesk. Designed for an established, unhurried Quakertown
   chiropractic practice — calm, human, trustworthy, not sterile-clinical.
   ============================================================================ */

:root {
  --ink:        #1c2826;   /* near-black spruce — body text */
  --ink-soft:   #44524e;   /* muted body / captions */
  --teal:       #0f5e63;   /* primary brand */
  --teal-deep:  #0a3f43;   /* dark bands */
  --teal-tint:  #dfe9e6;   /* faint teal wash */
  --clay:       #b9512e;   /* warm accent (decorative fills/borders) */
  --clay-btn:   #a94625;   /* clay for solid buttons (AA-safe w/ light text) */
  --clay-deep:  #9a3f20;   /* accent used as text (AA-safe on paper) */
  --paper:      #f7f3ec;   /* page canvas */
  --sand:       #ece3d3;   /* secondary surface */
  --sand-deep:  #e3d6bf;   /* edges on sand */
  --line:       #d9cdb8;   /* hairlines */
  --shadow:     0 18px 40px -28px rgba(10, 63, 67, 0.55);
  --radius:     14px;
}

body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--teal-deep);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: var(--teal); }
a:hover { color: var(--clay-deep); }

.wrap { width: 100%; max-width: 75rem; margin: 0 auto; padding: 0 var(--space-5); }
.measure { max-width: 34rem; }

.eyebrow {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin: 0 0 var(--space-3);
}
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); }

/* skip link */
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); background-color: var(--teal-deep); color: var(--paper); padding: var(--space-3); border-radius: 8px; z-index: 60; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700; font-size: 1.0625rem;
  text-decoration: none; cursor: pointer;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn-primary { color: var(--paper); background-color: var(--clay-btn); }
.btn-primary:hover { color: var(--paper); background-color: var(--clay-deep); transform: translateY(-1px); }
.btn-line { color: var(--teal-deep); background-color: transparent; border-color: var(--teal); }
.btn-line:hover { color: var(--paper); background-color: var(--teal-deep); }
.btn-ghost { color: var(--paper); background-color: var(--teal-deep); border-color: rgba(247,243,236,0.5); }
.btn-ghost:hover { color: var(--teal-deep); background-color: var(--paper); }

/* ---------- header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.375rem; color: var(--teal-deep); line-height: 1.05; }
.brand-sub { display: block; font-family: "Hanken Grotesk", sans-serif; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-deep); font-weight: 700; }

.mainnav { display: flex; align-items: center; gap: var(--space-5); }
.mainnav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.mainnav a:hover { color: var(--clay-deep); }
.head-cta { display: flex; align-items: center; gap: var(--space-3); }

.navtoggle { display: none; }

/* ---------- sections / bands ---------- */
.band { padding: var(--section-pad) 0; }
.band-sand { background-color: var(--sand); }
.band-tint { background-color: var(--teal-tint); }
.band-dark { background-color: var(--teal-deep); }
.band-dark h2, .band-dark h3 { color: var(--paper); background-color: var(--teal-deep); }
.band-dark p { color: var(--paper); background-color: var(--teal-deep); }
.band-dark .eyebrow { color: var(--sand-deep); background-color: var(--teal-deep); }

.sec-head { max-width: 44rem; margin-bottom: var(--space-6); }

/* ---------- masthead (home opening — intentionally NOT a generic hero) ---------- */
.masthead { position: relative; overflow: hidden; }
.masthead-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-7);
  padding: var(--space-8) 0 var(--space-7);
  align-items: center;
}
.masthead-copy p { max-width: 32rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.masthead-art { position: relative; }
.masthead-art img { width: 100%; border-radius: var(--radius); display: block; }
.masthead-art::after {
  content: ""; position: absolute; left: -14px; top: -14px; right: 26px; bottom: 26px;
  border: 2px solid var(--clay); border-radius: var(--radius); z-index: -1;
}
@media (min-width: 900px) {
  .masthead-grid { grid-template-columns: 1.15fr 0.85fr; }
  .masthead h1 { font-size: 3.25rem; line-height: 1.04; }
}

/* rating line with CSS stars */
.ratingline { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 0; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 2px; color: var(--clay-deep); }
.stars svg { width: 22px; height: 22px; fill: currentColor; }
.rating-text { font-weight: 700; color: var(--teal-deep); }
.rating-text span { color: var(--ink-soft); font-weight: 500; }

/* ---------- promise row (auto-fit, unclassed children — no card tell) ---------- */
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--space-4); }
.promises li { background-color: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: var(--radius); padding: var(--space-5); }
.promises li strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.375rem; color: var(--teal-deep); margin-bottom: var(--space-2); }
.promises li span { color: var(--ink-soft); display: block; max-width: 24rem; }

/* ---------- conditions chips (unclassed li) ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.chips li { }
.chips a {
  display: inline-block; text-decoration: none; font-weight: 600;
  color: var(--teal-deep); background-color: var(--paper);
  border: 1px solid var(--teal); border-radius: 999px; padding: 0.5rem 1rem;
}
.chips a:hover { color: var(--paper); background-color: var(--teal); }

/* ---------- split / zigzag ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: center; }
.split + .split { margin-top: var(--space-8); }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.split-media { order: -1; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-media { order: 0; }
  .split-flip .split-media { order: -1; }
}

/* ---------- in-network list ---------- */
.payer-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-3) var(--space-5); }
.payer-list li { color: var(--paper); background-color: var(--teal-deep); padding-left: var(--space-5); position: relative; font-weight: 600; }
.payer-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; background-color: var(--clay); }

/* ---------- reviews ---------- */
.reviewgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-5); }
.reviewgrid li { background-color: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow); }
.reviewgrid .stars svg { width: 18px; height: 18px; }
.reviewgrid p { color: var(--ink); }
.reviewgrid cite { font-style: normal; font-weight: 700; color: var(--teal-deep); display: block; margin-top: var(--space-3); }
.rep-emblem { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); }
.rep-emblem img { width: 150px; height: 150px; }
.bignum { font-family: "Fraunces", Georgia, serif; font-size: 3rem; color: var(--clay-deep); line-height: 1; }

/* ---------- callout / CTA band ---------- */
.callout { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: center; }
.callout .btn { white-space: nowrap; }
@media (min-width: 820px) { .callout { grid-template-columns: 1.4fr auto; } }

/* ---------- contour divider ---------- */
.divider { height: 120px; background-image: url("images/contour-band.jpg"); background-size: cover; background-position: center; }

/* ---------- info columns (hours / address) ---------- */
.infogrid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 820px) { .infogrid { grid-template-columns: 1fr 1fr; } }
.hours { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: var(--space-4); padding: 0.5rem 0; border-bottom: 1px solid var(--line); max-width: 26rem; }
.hours li span:last-child { color: var(--ink-soft); font-weight: 600; }

/* ---------- prose lists ---------- */
.checklist { list-style: none; margin: var(--space-4) 0; padding: 0; }
.checklist li { position: relative; padding-left: var(--space-6); margin-bottom: var(--space-3); max-width: 36rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 4px; background-color: var(--clay); }

/* condition anchor sections */
.cond { padding-top: var(--space-6); border-top: 1px solid var(--line); margin-top: var(--space-6); }
.cond:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.cond h3 { font-size: 1.375rem; }
.cond p { max-width: 44rem; }

/* anchor offset so sticky header doesn't cover targets */
:target { scroll-margin-top: 6rem; }

/* ---------- contact form (non-functional demo) ---------- */
.demoform { background-color: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow); }
.demoform p { max-width: none; }
.field { display: block; margin-bottom: var(--space-4); }
.field span { display: block; font-weight: 700; color: var(--teal-deep); margin-bottom: var(--space-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background-color: var(--paper);
  border: 1px solid var(--ink-soft); border-radius: 8px; padding: 0.75rem;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--teal); }
.demo-note { font-size: 0.8125rem; color: var(--ink-soft); }

/* ---------- mobile sticky call bar ---------- */
.callbar { display: none; }

/* ---------- footer ---------- */
.site-foot { background-color: var(--teal-deep); padding: var(--section-pad) 0 var(--space-6); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h3 { color: var(--paper); background-color: var(--teal-deep); font-family: "Hanken Grotesk", sans-serif; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-foot p { color: var(--paper); background-color: var(--teal-deep); max-width: 24rem; }
.foot-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.foot-brand img { width: 52px; height: 52px; }
.foot-brand strong { color: var(--paper); background-color: var(--teal-deep); font-family: "Fraunces", Georgia, serif; font-size: 1.375rem; font-weight: 600; }
.footlinks { list-style: none; margin: 0; padding: 0; }
.footlinks li { margin-bottom: var(--space-2); }
.site-foot a { color: var(--sand); background-color: var(--teal-deep); text-decoration: none; }
.site-foot a:hover { color: var(--paper); background-color: var(--teal-deep); text-decoration: underline; }
.foot-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(247,243,236,0.18); }
.foot-bottom p { color: var(--sand); background-color: var(--teal-deep); font-size: 0.8125rem; max-width: none; }

/* ---------- responsive nav ---------- */
@media (max-width: 880px) {
  .mainnav, .head-cta { display: none; }
  .navtoggle {
    display: inline-flex; align-items: center; gap: var(--space-2);
    font: inherit; font-weight: 700; cursor: pointer;
    color: var(--teal-deep); background-color: var(--paper);
    border: 2px solid var(--teal); border-radius: 999px; padding: 0.5rem 1rem;
  }
  .nav-open .mainnav {
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
    padding: var(--space-5) 0;
  }
  .nav-open .head-cta { display: flex; flex-wrap: wrap; padding-bottom: var(--space-5); }
  .head-inner { flex-wrap: wrap; }

  /* sticky bottom call bar on phones */
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background-color: var(--line);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: var(--space-2); font-weight: 700; text-decoration: none; padding: 0.75rem; }
  .callbar .cb-call { color: var(--paper); background-color: var(--clay-btn); }
  .callbar .cb-book { color: var(--paper); background-color: var(--teal-deep); }
  body { padding-bottom: 3.5rem; }
}
