/* Colchester Family Chiropractic — shared stylesheet
   Aesthetic: "Hometown letterpress" — editorial single-column storytelling,
   periwinkle paper, navy ink blocks, brand-red accents, slab-serif display. */

:root {
  /* Sampled brand colors (old site) */
  --brand-red: #a20307;
  --brand-periwinkle: #789dca;
  --brand-slate: #6893a6;
  --brand-navy: #1f628e;
  --brand-text: #5c5a57;
  --brand-grey: #b3b3b3;
  --brand-black: #000000;

  /* Derived tints / shades */
  --red-deep: #7e0205;
  --red-tint: #f7e6e6;
  --navy-deep: #143f5c;
  --navy-ink: #0f2f45;
  --slate-deep: #3f6878;      /* AA for white text */
  --periwinkle-tint: #e7eef8;
  --periwinkle-soft: #c9d8ec;
  --paper: #f5f7fb;
  --paper-warm: #fbfaf7;
  --ink: #2f3436;            /* headings/body on paper */
  --text: #4c4a47;           /* body text (darkened brand-text for AA) */
  --line: #d5deea;

  --font-body: 'Alegreya Sans', 'Trebuchet MS', sans-serif;
  --font-display: 'Josefin Slab', Georgia, serif;
  --font-caps: 'Marcellus SC', Georgia, serif;

  --radius: 14px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(15, 47, 69, .06), 0 10px 30px -12px rgba(15, 47, 69, .22);
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html:has(.jump-bar) { scroll-padding-top: 150px; }
@media (min-width: 1080px) { html:has(.jump-bar) { scroll-padding-top: 206px; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
body::after { /* subtle paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-red); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-red); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: #fff; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw + .5rem, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3vw + .8rem, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-caps); font-size: .95rem; letter-spacing: .14em; color: var(--brand-red);
  display: inline-flex; align-items: center; gap: .7em; margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: #f3c9ca; }
.on-dark p a:not(.btn), .on-dark li a:not(.btn) { color: #fff; font-weight: 700; text-decoration-color: #f3c9ca; }
.on-dark p a:not(.btn):hover, .on-dark li a:not(.btn):hover { color: #f3c9ca; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--brand-red); color: #fff;
  padding: .7rem 1.1rem; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 1.02rem/1 var(--font-body); padding: .95em 1.4em; border-radius: 999px;
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
  min-height: 48px;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--red { background: var(--brand-red); color: #fff; }
.btn--red:hover { background: var(--red-deep); color: #fff; }
.btn--navy { background: var(--brand-navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--brand-navy); background: transparent; }
.btn--ghost:hover { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.btn--light { background: #fff; color: var(--navy-ink); }
.btn--light:hover { background: var(--periwinkle-tint); color: var(--navy-ink); }
.btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy-ink); }

/* ---------- Header ---------- */
.topbar { background: var(--navy-ink); color: #dfe8f3; font-size: .95rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; justify-content: space-between; padding-block: .45rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__group { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center; }
.topbar__hide-sm { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { width: 190px; height: auto; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-call { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1rem;
  border-radius: 999px; border: 2px solid var(--brand-navy); background: transparent; color: var(--brand-navy);
  font: 700 1rem var(--font-body); cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars::before { top: 0; } .nav-toggle__bars span { top: 5px; } .nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }

.site-nav { display: none; border-top: 1px solid var(--line); background: var(--paper-warm); }
.site-nav.is-open { display: block; }
.js .site-nav:not(.is-open) { display: none; }
.no-js .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0 auto; padding: .5rem 0 1.2rem; }
.site-nav a {
  display: block; padding: .8rem .25rem; color: var(--ink); text-decoration: none; font-weight: 500;
  font-size: 1.12rem; border-bottom: 1px solid var(--line);
}
.site-nav a:hover { color: var(--brand-red); }
.site-nav a[aria-current="page"] { color: var(--brand-red); font-weight: 700; }
.site-nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); margin-right: .55rem; vertical-align: middle; }

@media (min-width: 640px) {
  .topbar__hide-sm { display: inline; }
  .header-call { display: inline-flex; }
  .brand img { width: 230px; }
}
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-header__inner { min-height: 84px; }
  .js .site-nav:not(.is-open), .site-nav { display: block; border-top: 0; background: transparent; }
  .site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .2rem; padding: 0 0 .7rem; }
  .site-nav a { border: 0; font-size: .98rem; padding: .4rem .65rem; border-radius: 999px; position: relative; }
  .site-nav a::after { content: ""; position: absolute; left: .65rem; right: .65rem; bottom: .15rem; height: 2px; background: var(--brand-red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .site-nav a:hover::after { transform: scaleX(1); }
  .site-nav a[aria-current="page"] { background: var(--red-tint); }
  .site-nav a[aria-current="page"]::before { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero { background: var(--navy-ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 70% at 85% 10%, rgba(120,157,202,.45), transparent 60%),
              radial-gradient(60% 60% at 0% 100%, rgba(104,147,166,.35), transparent 60%);
}
.hero .wrap { position: relative; display: grid; gap: 2.2rem; padding-block: 2.8rem 3.4rem; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .since { display: block; font-family: var(--font-caps); font-size: .32em; letter-spacing: .2em; color: #f3c9ca; margin-bottom: .8rem; font-weight: 400; }
.hero__lead { font-size: 1.25rem; color: #eaf0f8; max-width: 38ch; }
.hero__sub { color: #c9d8ec; max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.6rem; font-size: 1rem; color: #c9d8ec; }
.hero__meta strong { color: #fff; font-weight: 700; }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr 1.08fr; align-items: center; padding-block: 4.5rem 5rem; }
}

/* Slideshow */
.slideshow { position: relative; }
.slideshow__frame { position: relative; display: grid; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-deep, #0f2f45); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.slide { grid-area: 1 / 1; position: relative; margin: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.no-js .slide:first-child { opacity: 1; visibility: visible; }
.slide img.slide__portrait { object-fit: contain; background: var(--brand-navy); }
.slide img { width: 100%; height: auto; aspect-ratio: 7 / 4; object-fit: cover; background: var(--brand-navy); }
.slide figcaption {
  flex: 1; padding: .95rem 1.15rem 1.05rem;
  background: var(--navy-deep, #0f2f45); border-top: 3px solid var(--brand-red);
  color: #eaf0f8; font-size: 1rem; line-height: 1.4;
}
.slide figcaption strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.slideshow__controls { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; }
.slideshow__dots { display: flex; gap: .35rem; margin-left: auto; }
.slideshow__dot { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.slideshow__dot span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); transition: transform .2s, background .2s; }
.slideshow__dot[aria-current="true"] span { background: #fff; transform: scale(1.3); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--periwinkle-tint); }
.section--warm { background: var(--paper-warm); }
.section--navy { background: var(--brand-navy); color: #eaf0f8; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a:not(.btn) { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 2.4rem; }
.section-head p { font-size: 1.2rem; }
.lede { font-size: 1.25rem; color: var(--ink); }

/* Answer-first summary block */
.summary {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: var(--shadow); border-left: 6px solid var(--brand-red);
  margin-top: -2rem; position: relative; z-index: 2;
}
.summary p { font-size: 1.15rem; margin: 0; }
.summary p + p { margin-top: .8rem; }

/* Five CTA paths */
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: path; }
.path a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; text-decoration: none;
  padding: 1.25rem 1.3rem; border-radius: var(--radius); background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(15,47,69,.04);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; height: 100%;
}
.path a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-periwinkle); color: var(--ink); }
.path__num { counter-increment: path; font-family: var(--font-display); font-size: 2.2rem; color: var(--brand-red); line-height: 1; width: 2.2ch; }
.path__num::before { content: "0" counter(path); }
.path__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; display: block; line-height: 1.15; }
.path__desc { display: block; font-size: 1rem; color: var(--text); margin-top: .2rem; }
.path__arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--periwinkle-tint); color: var(--brand-navy); display: grid; place-items: center; transition: background .2s, color .2s, transform .25s var(--ease); }
.path__arrow svg { width: 18px; height: 18px; }
.path a:hover .path__arrow { background: var(--brand-red); color: #fff; transform: translateX(3px); }
.path--feature a { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.path--feature a:hover { color: #fff; border-color: var(--navy-deep); }
.path--feature .path__num { color: #f3c9ca; }
.path--feature .path__desc { color: #dce6f2; }
.path--feature .path__arrow { background: rgba(255,255,255,.14); color: #fff; }
.paths-note { margin-top: 1.4rem; font-size: 1.05rem; }
@media (min-width: 760px) {
  .paths { grid-template-columns: repeat(2, 1fr); }
  .path--feature { grid-column: 1 / -1; }
  .path--feature .path__title { font-size: 1.8rem; }
}
@media (min-width: 1080px) {
  .paths { grid-template-columns: repeat(6, 1fr); }
  .path { grid-column: span 2; }
  .path--feature { grid-column: span 3; }
  .path:nth-child(2) { grid-column: span 3; }
}

/* Story / two-column */
.split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split--rev > :first-child { order: 2; } }
.photo-stack { position: relative; padding: 0 2.5rem 2.5rem 0; max-width: 520px; }
.photo-stack img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.photo-stack .photo-stack__small { position: absolute; right: 0; bottom: 0; width: 44%; border: 6px solid var(--paper-warm); }
.people { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; margin-top: 1.6rem; }
.person { display: flex; gap: .9rem; align-items: center; background: #fff; border-radius: var(--radius); padding: .8rem; border: 1px solid var(--line); }
.person img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; }
.person strong { display: block; color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.person span { font-size: .95rem; }
@media (max-width: 480px) { .people { grid-template-columns: 1fr; } }

/* Info cards (visit / hours / insurance) */
.visit { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .visit { grid-template-columns: 1.15fr 1fr 1fr; } }
.card { background: #fff; border-radius: var(--radius-lg); padding: 1.6rem; border: 1px solid var(--line); }
.card--navy { background: var(--navy-ink); color: #dfe8f3; border: 0; }
.card--navy h2, .card--navy h3 { color: #fff; }
.card--navy a:not(.btn) { color: #fff; }
.card h2, .card h3 { font-size: 1.6rem; }
.card address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.hours th, .hours td { padding: .5rem 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.hours th { font-weight: 700; color: var(--ink); padding-right: 1rem; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--brand-red); }
.hours tr.is-today th::after { content: " (today)"; font-weight: 500; font-size: .85em; }
.hours small { display: block; font-size: .85rem; color: var(--text); }
.card--navy .hours th, .card--navy .hours td { border-color: rgba(255,255,255,.18); color: #fff; }
.card--navy .hours small { color: #c9d8ec; }
.card--navy .hours tr.is-today th, .card--navy .hours tr.is-today td { color: #ffd1d2; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { padding: .45rem 0 .45rem 1.7rem; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .95rem; width: 10px; height: 6px; border-left: 2px solid var(--brand-red); border-bottom: 2px solid var(--brand-red); transform: rotate(-45deg); }
.updated { font-size: .9rem; color: var(--text); font-style: italic; }
.contact-lines { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.contact-lines li { padding: .35rem 0; }
.contact-lines .label { display: block; font-family: var(--font-caps); font-size: .8rem; letter-spacing: .12em; color: #c9d8ec; }
.stack-btns { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Notice */
.notice { display: grid; gap: 1.4rem; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 1.4rem; border: 1px solid var(--line); }
.notice img { border-radius: var(--radius); }
@media (min-width: 800px) { .notice { grid-template-columns: 260px 1fr; padding: 1.8rem; } }

/* Disclosure / FAQ */
.faq { display: grid; gap: .7rem; max-width: 860px; }
.faq details { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--brand-periwinkle); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3.2rem 1.1rem 1.3rem; position: relative; font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.3rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--brand-red); border-bottom: 2px solid var(--brand-red); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .faq__a { padding: 0 1.3rem 1.2rem; }
.faq .faq__a p:last-child { margin: 0; }

/* Plans + fee table */
.plans { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(2, 1fr); } .plans .plan--wide { grid-column: 1 / -1; } }
.plan { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); }
.plan h3 { color: var(--brand-red); }
.plan ul { padding-left: 1.2rem; }
.plan li { margin-bottom: .5rem; }
.price-list { list-style: none; padding: 0 !important; margin: 1rem 0; }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .6rem 0; border-bottom: 1px dashed var(--line); margin: 0 !important; }
.price-list strong { color: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); margin: 1.2rem 0; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; min-width: 420px; background: #fff; }
.fee-table caption { text-align: left; padding: .9rem 1rem; font-weight: 700; color: var(--ink); background: var(--periwinkle-tint); }
.fee-table th, .fee-table td { padding: .55rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.fee-table thead th { background: var(--navy-ink); color: #fff; font-weight: 700; }
.fee-table td.num, .fee-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.fee-table tbody th[scope="rowgroup"] { background: var(--periwinkle-tint); color: var(--navy-deep); font-family: var(--font-caps); letter-spacing: .06em; font-weight: 400; }
.fee-table td.chu { color: var(--brand-red); font-weight: 700; }
.fine { font-size: .92rem; font-style: italic; }

/* ---------- Services page ---------- */
.page-hero { background: var(--brand-navy); color: #eaf0f8; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 0%, rgba(120,157,202,.5), transparent 60%), linear-gradient(180deg, transparent, rgba(15,47,69,.4)); }
.page-hero .wrap { position: relative; padding-block: 3rem 4.4rem; }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero p { max-width: 62ch; font-size: 1.2rem; }
.breadcrumb { font-size: .95rem; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: #c9d8ec; }
.breadcrumb a { color: #fff; }

.jump { display: flex; gap: .5rem; overflow-x: auto; padding: 1rem 0; margin: 0; list-style: none; scrollbar-width: thin; }
.jump-bar { background: var(--paper-warm); border-bottom: 1px solid var(--line); position: sticky; top: 72px; z-index: 40; }
@media (min-width: 1080px) { .jump-bar { top: 128px; } }
.jump a { white-space: nowrap; display: inline-block; padding: .5rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1rem; }
.jump a:hover { border-color: var(--brand-red); color: var(--brand-red); }
.jump a.is-current { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }

.service { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.service:nth-of-type(even) { background: var(--periwinkle-tint); }
.service__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.service__num { font-family: var(--font-display); color: var(--brand-red); font-size: 1.2rem; font-weight: 600; letter-spacing: .1em; }
.service__body { display: grid; gap: 2rem; }
@media (min-width: 960px) { .service__body { grid-template-columns: 1.25fr .75fr; gap: 3.5rem; align-items: start; } }
.service__body .prose p, .service__body .prose li { font-size: 1.15rem; }
.callout { background: #fff; border-left: 4px solid var(--brand-red); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0; }
.callout strong { color: var(--brand-red); }
blockquote { margin: 1.4rem 0; padding: 1.2rem 1.4rem; background: #fff; border-radius: var(--radius); font-style: italic; color: var(--ink); position: relative; border: 1px solid var(--line); }
blockquote footer { font-style: normal; font-size: .95rem; margin-top: .6rem; }
.figs { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.figs figure { margin: 0; background: #fff; border-radius: var(--radius); padding: .7rem; border: 1px solid var(--line); }
.figs figure.wide { grid-column: 1 / -1; }
.figs img { border-radius: 10px; width: 100%; object-fit: contain; background: #fff; }
.figs figcaption { font-size: .92rem; padding: .5rem .2rem 0; line-height: 1.35; }
.styles-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .7rem; }
.styles-list li { background: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; border: 1px solid var(--line); }
.styles-list strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }

/* Inquiry panel */
.inquiry {
  margin-top: 2.6rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-ink); color: #dfe8f3;
  display: grid; box-shadow: var(--shadow);
}
@media (min-width: 960px) { .inquiry { grid-template-columns: .8fr 1.2fr; } }
.inquiry__aside { padding: clamp(1.4rem, 4vw, 2.4rem); background: linear-gradient(160deg, var(--brand-navy), var(--navy-ink)); }
.inquiry__aside h3 { color: #fff; font-size: 1.7rem; }
.inquiry__aside p { color: #dfe8f3; }
.inquiry__aside .stack-btns { flex-direction: column; align-items: stretch; margin-top: 1.2rem; }
.inquiry__form { background: var(--paper-warm); color: var(--text); padding: clamp(1.4rem, 4vw, 2.4rem); }

/* Forms */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: .35rem; font-size: 1.02rem; }
.field .req { color: var(--brand-red); }
.field .opt { font-weight: 400; font-size: .9rem; color: var(--text); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff;
  border: 1.5px solid #9fb1c6; border-radius: 10px; padding: .75rem .9rem; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgba(31,98,142,.25); }
.field [aria-invalid="true"] { border-color: var(--brand-red) !important; background: #fff8f8; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid #9fb1c6; background: #fff; font-weight: 500; color: var(--ink); transition: background .2s, border-color .2s, color .2s; }
.choice input:checked + span { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--brand-red); outline-offset: 2px; }
.field-error { color: var(--brand-red); font-size: .95rem; font-weight: 700; margin-top: .3rem; }
.field-error:empty { display: none; }
.form-note { font-size: .95rem; background: var(--red-tint); color: var(--red-deep); border-radius: 10px; padding: .75rem .95rem; margin: 1rem 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.form-status { margin-top: 1rem; }
.form-status:empty { display: none; }
.form-confirm { background: #fff; border: 1.5px solid var(--brand-navy); border-radius: var(--radius); padding: 1.1rem 1.2rem; color: var(--ink); }
.form-confirm strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--brand-navy); margin-bottom: .3rem; }
.form-confirm .btn { margin-top: .7rem; }
.form-summary-error { color: var(--brand-red); font-weight: 700; }

/* Supplies */
.supplies { display: grid; gap: 1rem; }
@media (min-width: 800px) { .supplies { grid-template-columns: repeat(3, 1fr); } }
.supply { background: #fff; border-radius: var(--radius-lg); padding: 1.3rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .8rem; }
.supply img { width: 120px; height: 120px; object-fit: contain; }
.supply h3 { font-size: 1.35rem; margin: 0; }
.supply p { margin: 0; font-size: 1.05rem; }

/* Final CTA band */
.cta-band { background: var(--brand-red); color: #fff; }
.cta-band .wrap { padding-block: 2.8rem; display: grid; gap: 1.2rem; align-items: center; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: .4rem 0 0; color: #fbe3e3; }
.cta-band :focus-visible { outline-color: #fff; }
@media (min-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: #c9d8ec; font-size: 1.02rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { padding-block: 3.4rem 1.4rem; }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-logo { background: var(--paper-warm); border-radius: 12px; padding: .7rem 1rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { width: 200px; }
.site-footer h2 { font-family: var(--font-caps); color: #fff; font-size: 1rem; letter-spacing: .14em; font-weight: 400; margin-bottom: 1rem; }
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.footer-hours { width: 100%; border-collapse: collapse; }
.footer-hours th, .footer-hours td { padding: .2rem 0; text-align: left; font-weight: 400; vertical-align: top; }
.footer-hours th { color: #fff; padding-right: .8rem; font-weight: 500; }
.footer-hours td small { display: block; font-size: .8em; opacity: .75; }
.social-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .8rem; }
.social-link svg { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.6rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .92rem; }

/* Mobile action bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(15,47,69,.96); }
.mobile-bar .btn { min-height: 46px; padding: .7em 1em; }
body { padding-bottom: 70px; }
@media (min-width: 760px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .path a:hover { transform: none; }
}
@media print {
  .site-header, .mobile-bar, .slideshow__controls, .inquiry__form, .jump-bar, body::after { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* ==========================================================
   Secondary-page components (staff, contact, forms, exercises,
   orthotics, supplements, privacy)
   ========================================================== */

/* Staff profiles */
.staff { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .staff { grid-template-columns: 1.05fr 1fr; gap: 4rem; } .staff--rev .staff__photo { order: 2; } }
.staff__photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.staff__photo--portrait { max-width: 420px; justify-self: center; }
.staff__aka { display: block; font-size: .55em; color: var(--brand-red); margin-top: .3rem; }
.staff__mini { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; margin-top: 1.2rem; }
.staff__mini img { width: 64px; height: auto; flex: none; }
.staff__mini p { margin: 0; font-size: 1rem; }

/* Contact */
.contact-grid { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-address { font-style: normal; font-size: 1.2rem; line-height: 1.6; margin-bottom: 1rem; color: #fff; }
.card--navy .fine { color: #c9d8ec; }
.contact-lines--light .label { color: var(--brand-red); }
.contact-lines--light li { border-bottom: 1px solid var(--line); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.photo-pair img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chip-list { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-list a { display: inline-block; padding: .45rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.chip-list a:hover { border-color: var(--brand-red); color: var(--brand-red); }

/* Alert */
.alert { background: var(--red-tint); color: var(--red-deep); border-left: 6px solid var(--brand-red); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.3rem; font-size: 1.15rem; margin-bottom: 2rem; }
.alert a { color: var(--red-deep); font-weight: 700; white-space: nowrap; }

/* Forms / downloads */
.doc-grid { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
@media (min-width: 800px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; }
.doc-card h2 { font-size: 1.6rem; }
.doc-card p { flex: 1; }
.doc-card__num { font-family: var(--font-display); color: var(--brand-red); font-weight: 600; letter-spacing: .1em; margin-bottom: .4rem; }
.doc-card:first-child { background: var(--navy-ink); color: #dfe8f3; border: 0; }
.doc-card:first-child h2 { color: #fff; }
.doc-card:first-child .doc-card__num { color: #f3c9ca; }
.doc-card:first-child :focus-visible { outline-color: #fff; }
.doc-link { display: inline-flex; align-items: center; gap: .9rem; padding: .7rem 1.1rem .7rem .7rem; border-radius: var(--radius); background: var(--periwinkle-tint); border: 1.5px solid var(--periwinkle-soft); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; }
.doc-link:hover { color: var(--ink); border-color: var(--brand-navy); transform: translateY(-2px); }
.doc-link__badge { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--brand-navy); color: #fff; font: 700 .8rem var(--font-body); letter-spacing: .08em; }
.doc-link__title { display: block; font-weight: 700; line-height: 1.2; }
.doc-link__meta { display: block; font-size: .9rem; color: var(--text); }
.doc-row { margin: 1rem 0 1.4rem; }

/* Exercises */
.exercise { padding-block: clamp(2.6rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.exercise:nth-of-type(even) { background: var(--periwinkle-tint); }
.exercise .prose { max-width: 820px; }
.proc-grid { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .proc-grid { grid-template-columns: 1.3fr 1fr; } }
.proc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; }
.proc h3 { color: var(--brand-red); font-size: 1.3rem; margin-top: .4rem; }
.proc ul { padding-left: 1.2rem; }
.proc li { margin-bottom: .45rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0; display: grid; gap: .7rem; }
.steps li { counter-increment: step; position: relative; padding: .9rem 1rem .9rem 3.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: .9rem; top: .85rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand-navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
p.callout { display: block; }

/* Printable sheets */
.sheet-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: 1.4rem; }
.sheet-grid--single { grid-template-columns: minmax(0, 520px); }
.sheet { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; }
.sheet a { display: block; border-radius: 8px; overflow: hidden; position: relative; }
.sheet a::after { content: "Open full size"; position: absolute; right: .5rem; bottom: .5rem; background: rgba(15,47,69,.9); color: #fff; font-size: .82rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease); }
.sheet a:hover::after, .sheet a:focus-visible::after { opacity: 1; transform: none; }
.sheet img { width: 100%; background: #fff; }
.sheet figcaption { font-size: .95rem; padding: .55rem .2rem 0; line-height: 1.35; color: var(--ink); }

/* Supplements */
.vendor { display: grid; gap: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.3rem, 4vw, 2.4rem); margin-bottom: 1.4rem; }
@media (min-width: 860px) { .vendor { grid-template-columns: 220px 1fr; gap: 2.6rem; } }
.vendor__brand { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.vendor__brand img { max-width: 160px; }
.vendor__pd img { max-width: 240px; margin-top: 1.2rem; }
.vendor__wide { border-radius: var(--radius); margin-top: 1.2rem; }
.keyval { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0 1.3rem; }
.keyval div { background: var(--periwinkle-tint); border-radius: var(--radius); padding: .6rem 1rem; }
.keyval dt { font-family: var(--font-caps); font-size: .8rem; letter-spacing: .12em; color: var(--brand-red); }
.keyval dd { margin: 0; font-weight: 700; font-size: 1.2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.note-card { border-left: 6px solid var(--brand-navy); background: var(--paper-warm); padding: 1.3rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }

/* Privacy policy */
.policy { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .policy { grid-template-columns: 300px 1fr; gap: 3.5rem; align-items: start; } .toc-card { position: sticky; top: 150px; } }
.toc-card { background: var(--periwinkle-tint); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; }
.toc-card h2 { font-size: 1.3rem; }
.toc-card ol { margin: 0; padding-left: 1.3rem; font-size: 1rem; }
.toc-card li { margin-bottom: .4rem; }
.policy__body { max-width: 780px; }
.policy-section { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.policy-section h2 { font-size: clamp(1.6rem, 2vw + .8rem, 2.2rem); }
.policy-section h3 { color: var(--brand-red); margin-top: 1.4rem; }
.policy-section ul { padding-left: 1.2rem; }
.policy-section li { margin-bottom: .5rem; }
.policy-section:last-child { border-bottom: 0; background: var(--paper-warm); border-radius: var(--radius-lg); padding: 1.4rem; border-left: 6px solid var(--brand-navy); }
