/* ===========================================================================
   Ames Chiropractic — shared stylesheet for every page.
   Edit the whole site's look here. Color/space tokens live in :root; type is an
   explicit 8-step scale in literal rem; spacing follows a 0.25rem (4px) base.
   Identity: warm-paper canvas, forest green, a single honey accent reserved for
   the dark bands — natural-health, not the red chiropractic cliche. A Lora
   display serif over Inter signals the dual clinical + nutrition credentials.
   =========================================================================== */
:root {
  --bone: #f5f2ea;          /* page canvas (warm paper) */
  --paper: #fbfaf5;         /* raised surfaces */
  --ink: #18241d;           /* primary text */
  --muted: #46584b;         /* secondary text (AA on bone) */
  --accent: #2c5840;        /* forest green: links / marks (AA as text on bone) */
  --accent-soft: #d8b878;   /* honey: ON the deep band only (fails AA on light) */
  --deep: #16271e;          /* dark band background (deep pine) */
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --line-soft: color-mix(in srgb, var(--ink) 9%, transparent);
  --measure: 38rem;
  --gap: 1rem;
  --gap-2: 1.5rem;
  --gap-3: 2rem;
  --gap-4: 3rem;
  --gap-5: 4.5rem;
  --edge: clamp(1.25rem, 5vw, 4rem);
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

body {
  margin: 0;
  background-color: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- type: 8-step scale -> 13 / 16 / 18 / 22 / 28 / 32 / 40 / 56 px ---- */
h1 { font-family: var(--font-display); font-weight: 600; font-size: 2.5rem;
     line-height: 1.08; letter-spacing: -0.012em; margin: 0 0 1.25rem; color: var(--ink); }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem;
     line-height: 1.18; letter-spacing: -0.008em; margin: 0 0 1rem; color: var(--ink); }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.375rem;
     line-height: 1.3; margin: 0 0 0.5rem; color: var(--ink); letter-spacing: -0.005em; }
p  { margin: 0 0 1rem; max-width: var(--measure); }
.lede { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem;
        line-height: 1.55; color: var(--muted); max-width: 36rem; font-style: italic; }
.measure { max-width: var(--measure); }
strong { font-weight: 700; color: var(--ink); }

/* eyebrow / kicker — a short rule after the label is a signature device */
.kicker { display: flex; align-items: center; gap: 0.75rem;
          font-family: var(--font-body); text-transform: uppercase;
          letter-spacing: 0.18em; font-size: 0.8125rem; font-weight: 700;
          color: var(--accent); margin: 0 0 1rem; }
.kicker::after { content: ""; flex: 0 0 auto; width: 2.5rem; height: 0;
                 border-top: 1px solid var(--accent); }
.kicker.solo::after { display: none; }

/* ---- links & buttons (hover + focus on everything interactive) ---- */
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
    text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background-color: var(--ink); color: var(--bone);
              padding: 0.5rem 1rem; z-index: 20; text-decoration: none; }

.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  background-color: var(--accent); color: var(--bone);
  border: 2px solid var(--accent); border-radius: 2px;
  padding: 0.75rem 1.5rem;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-2px); background-color: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn-ghost { background-color: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background-color: var(--accent); color: var(--bone); border-color: var(--accent); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }

/* ===========================================================================
   Header — a forest top rule + a small leaf mark is the site's signature.
   Byte-identical markup across every page (nav-consistency check).
   =========================================================================== */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem 2rem;
  padding: 1.25rem var(--edge);
  background-color: var(--bone);
  border-top: 4px solid var(--accent);
  box-shadow: inset 0 -1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand svg { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem;
            color: var(--ink); letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
             text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.nav-wrap { display: flex; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; }
.site-head nav ul { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-head nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
.site-head nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.head-call { font-family: var(--font-body); font-weight: 700; font-size: 1rem;
             color: var(--accent); text-decoration: none; white-space: nowrap;
             border: 2px solid var(--accent); border-radius: 2px; padding: 0.5rem 1rem; }
.head-call:hover { background-color: var(--accent); color: var(--bone); }

main { display: block; }
section { padding: var(--gap-5) var(--edge); border-bottom: 1px solid var(--line-soft); }

/* ===========================================================================
   Masthead — asymmetric, left-aligned, deliberately not a centered hero.
   =========================================================================== */
.masthead { display: grid; grid-template-columns: 3fr 2fr; gap: var(--gap-4); align-items: start; }
.masthead-lead { min-width: 0; }
.masthead h1 { margin-top: 0.5rem; }
.masthead-aside { min-width: 0; }

/* fact card — framed by a honey top-rule + forest detail */
.factcard { background-color: var(--paper); border: 1px solid var(--line);
            border-top: 4px solid var(--accent-soft); border-radius: 3px;
            padding: 1.5rem 1.5rem 1rem; }
.factcard dl { margin: 0; }
.factcard dt { font-family: var(--font-body); font-weight: 700; font-size: 0.8125rem;
               text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
               margin-top: 1.25rem; }
.factcard dt:first-child { margin-top: 0; }
.factcard dd { margin: 0.25rem 0 0; font-family: var(--font-display); font-size: 1.375rem;
               color: var(--ink); line-height: 1.25; }
.factcard dd span { display: block; font-family: var(--font-body); font-size: 1rem;
                    color: var(--muted); margin-top: 0.25rem; }

/* tenure — "35+" as an editorial typographic move */
.tenure { display: flex; align-items: baseline; gap: 1rem; margin: 2rem 0 0;
          padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tenure-num { font-family: var(--font-display); font-weight: 600; font-size: 3.5rem;
              line-height: 0.9; color: var(--accent); }
.tenure-txt { font-size: 1rem; color: var(--muted); max-width: 14rem; margin: 0; }

/* ---- quiet band ---- */
.band-quiet { background-color: color-mix(in srgb, var(--accent) 7%, var(--bone)); }
.band-quiet .measure { max-width: 44rem; }

/* ===========================================================================
   Two-pillar block — the rare chiro + nutrition pairing, side by side.
   Two children only; styled via parent>child so no repeated-card tell.
   =========================================================================== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
       border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background-color: var(--paper); }
.duo > article { padding: 2rem; min-width: 0; }
.duo > article + article { border-left: 1px solid var(--line); }
.duo .pillar-no { font-family: var(--font-display); font-size: 2rem; color: var(--accent);
                  line-height: 1; display: block; margin-bottom: 0.75rem; }
.duo h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; }
.duo ul { margin: 1rem 0 1.5rem; padding-left: 1.25rem; }
.duo li { margin-bottom: 0.5rem; }
.duo p { max-width: none; }

/* ===========================================================================
   Listing — auto-fit, never a fixed 3-col card grid; unclassed children.
   =========================================================================== */
.listing h2 { max-width: 36rem; }
.reflow { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid;
          grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--gap-3); }
.reflow-wide { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.reflow li { padding: 1.5rem; background-color: var(--paper); border: 1px solid var(--line);
             border-left: 3px solid var(--accent); border-radius: 3px; }
.reflow li p { margin-bottom: 0; max-width: none; }
.reflow li h3 { margin-bottom: 0.5rem; }

/* numbered step list (what to expect) — single column, unclassed li */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; max-width: 44rem; }
.steps li { counter-increment: step; position: relative; padding: 1.25rem 0 1.25rem 3.5rem;
            border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1.25rem;
                    font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; color: var(--accent); }
.steps li h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; margin-bottom: 0.25rem; }
.steps li p { margin-bottom: 0; }

/* ---- split (about / info) ---- */
.split { display: grid; grid-template-columns: 3fr 2fr; gap: var(--gap-4); align-items: start; }
.split h2 + p { margin-bottom: 1.75rem; }
.side-note { background-color: var(--paper); border: 1px solid var(--line);
             border-top: 4px solid var(--accent); border-radius: 3px; padding: 1.5rem; }
.side-note h2 { font-size: 1.375rem; }
.ticks { margin: 0; padding-left: 1.25rem; }
.ticks li { margin-bottom: 0.5rem; }

/* definition rows (hours, insurance) — unclassed dt/dd */
.rows { margin: 1.5rem 0 0; max-width: 40rem; }
.rows div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
            padding: 0.75rem 0; border-top: 1px solid var(--line); }
.rows dt { font-weight: 700; color: var(--ink); margin: 0; }
.rows dd { margin: 0; color: var(--muted); font-family: var(--font-display); }

/* ===========================================================================
   Dark bands — self-contained color: every light-text rule restates --deep.
   =========================================================================== */
.invite { background-color: var(--deep); }
.invite .measure { max-width: 42rem; }
.invite h2 { color: var(--bone); background-color: var(--deep); }
.invite p  { color: var(--bone); background-color: var(--deep); max-width: 42rem; }
.invite .kicker { color: var(--accent-soft); background-color: var(--deep); }
.invite .kicker::after { border-top-color: var(--accent-soft); }
.btn-on-dark { background-color: var(--accent-soft); color: var(--deep); border-color: var(--accent-soft); }
.btn-on-dark:hover { background-color: var(--bone); border-color: var(--bone); color: var(--deep); }

/* credentials / membership strip on deep band */
.creds { background-color: var(--deep); }
.creds h2 { color: var(--bone); background-color: var(--deep); }
.creds .kicker { color: var(--accent-soft); background-color: var(--deep); }
.creds .kicker::after { border-top-color: var(--accent-soft); }
.creds p { color: var(--bone); background-color: var(--deep); max-width: 42rem; }
.creds ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid;
            grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.75rem 2rem; }
.creds li { color: var(--bone); background-color: var(--deep); padding: 0.75rem 0;
            border-top: 1px solid color-mix(in srgb, var(--accent-soft) 40%, transparent);
            font-family: var(--font-display); font-size: 1.125rem; }

.page-intro { padding-top: var(--gap-5); }
.page-intro .lede { max-width: 40rem; }

/* ===========================================================================
   Contact — fields are unclassed <p> styled via parent>child.
   =========================================================================== */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: var(--gap-4); align-items: start; }
.contact-form { display: grid; gap: var(--gap-2); max-width: 32rem; }
.contact-form p { margin: 0; display: grid; gap: 0.5rem; max-width: none; }
.contact-form label { font-weight: 700; font-size: 1rem; }
.form-note { background-color: color-mix(in srgb, var(--accent) 12%, var(--bone));
             border: 1px solid var(--line); border-left: 3px solid var(--accent);
             padding: 0.75rem 1rem; font-size: 1rem; color: var(--ink); }
input, select, textarea {
  font: inherit; color: var(--ink); background-color: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 2px; padding: 0.5rem 0.75rem; width: 100%;
}
.contact-aside { background-color: var(--paper); border: 1px solid var(--line);
                 border-top: 4px solid var(--accent); border-radius: 3px; padding: 1.5rem; }
.contact-aside h2 { font-size: 1.375rem; margin-top: 1.5rem; }
.contact-aside h2:first-child { margin-top: 0; }
.contact-aside a { font-weight: 700; }
.maparea { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 3px;
           background-color: color-mix(in srgb, var(--accent) 6%, var(--bone)); padding: 1.5rem; }
.maparea p { margin-bottom: 0; color: var(--muted); }

/* ===========================================================================
   Footer — deep band, honey accents; distinct child blocks (no card tell).
   =========================================================================== */
.site-foot { background-color: var(--deep); padding: var(--gap-4) var(--edge) var(--gap-3);
             border-bottom: none; border-top: 4px solid var(--accent-soft); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: var(--gap-4); align-items: start; }
.site-foot p, .site-foot li, .site-foot dd, .site-foot dt { color: var(--bone); background-color: var(--deep); max-width: none; }
.foot-brand .foot-mark { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600;
                         color: var(--bone); background-color: var(--deep); margin: 0 0 0.5rem; }
.foot-tag { color: var(--accent-soft); background-color: var(--deep); font-size: 1rem; margin: 0; }
.foot-nav h2, .foot-reach h2 { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-soft);
            background-color: var(--deep); margin: 0 0 0.75rem; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: 0.5rem; }
.foot-nav a, .foot-reach a { color: var(--bone); background-color: var(--deep); text-decoration: none; }
.foot-nav a:hover, .foot-reach a:hover { color: var(--accent-soft); background-color: var(--deep); text-decoration: underline; }
.foot-reach p { color: var(--bone); background-color: var(--deep); font-size: 1rem; margin: 0 0 0.5rem; }
.foot-fine { margin: var(--gap-3) 0 0; padding-top: 1.25rem;
             border-top: 1px solid color-mix(in srgb, var(--accent-soft) 35%, transparent); }
.foot-fine p { color: var(--accent-soft); background-color: var(--deep); font-size: 0.8125rem; margin: 0; }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 860px) {
  .masthead, .split, .contact-grid, .duo, .foot-grid { grid-template-columns: 1fr; }
  .duo > article + article { border-left: none; border-top: 1px solid var(--line); }
  .nav-wrap { width: 100%; justify-content: space-between; }
  section { padding-top: var(--gap-4); padding-bottom: var(--gap-4); }
}
@media (min-width: 1000px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2rem; }
  .masthead h1 { font-size: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
