/* Working Class Chiropractic. Mobile-first, system fonts, colors from the logo's two blues. */
:root {
  --blue: #0b5ea8;
  --blue-dark: #084a85;
  --sky: #1a9be0;
  --ink: #1d2733;
  --muted: #5b6672;
  --paper: #ffffff;
  --band: #f2f7fb;
  --line: #d8e2ea;
  --error: #b42318;
  --radius: 10px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); font-weight: 800; line-height: 1.05; font-size: .95rem; text-transform: uppercase; letter-spacing: .02em; }
.brand span { display: flex; flex-direction: column; }
.brand b { color: var(--blue-dark); letter-spacing: .18em; font-size: .78rem; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--blue); }
.bar .btn.sm { margin-left: auto; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .bar .btn.sm { margin-left: 8px; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: var(--radius);
  padding: 13px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn.sm { padding: 9px 14px; font-size: .9rem; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.ghost:hover { background: var(--blue); color: #fff; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Hero */
.hero { background: linear-gradient(180deg, #eaf4fb 0%, var(--paper) 100%); padding: 40px 0 32px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.eyebrow { letter-spacing: .04em; font-size: .9rem; font-weight: 700; color: var(--blue); margin-bottom: .5em; }
.lead { font-size: 1.1rem; color: #33404d; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta .btn { flex: 1 1 200px; }
.hero-logo { width: 100%; max-width: 360px; justify-self: center; }
@media (min-width: 860px) {
  .hero { padding: 72px 0 56px; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .cta .btn { flex: 0 0 auto; }
  .hero-logo { max-width: 440px; }
}

/* Sections */
.band { padding: 48px 0; }
.band.alt { background: var(--band); }
@media (min-width: 860px) { .band { padding: 72px 0; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.partners { padding-left: 1.2em; }

/* Form */
.contact { display: grid; gap: 16px; margin-top: 8px; }
.row2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1px solid #b9c6d2; border-radius: 8px; padding: 11px 12px;
}
textarea { resize: vertical; }
.req { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecea; color: var(--error); border-radius: 8px; padding: 12px 14px; font-weight: 600; }
.contact .btn { justify-self: start; min-width: 160px; }

/* Footer */
.foot { background: #0f2236; color: #d6e2ee; padding: 36px 0 28px; }
.foot p { margin: 0 0 .4em; }
.foot a { color: #fff; font-weight: 700; }
.foot .muted { color: #a9bccd; }
.foot-name { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.nw { white-space: nowrap; }
/* Footer stays at the bottom on short pages; anchors clear the sticky header. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
section[id] { scroll-margin-top: 72px; }
