/* Northline Chiropractic & PT: fictional sample by Venant Studio (redesign 2026-09-28).
   A training plan: bone paper, graphite type, and one lime line (the logo's diagonal)
   that draws down the page as you move through it. */
:root {
  --bone: #f1f2ed;
  --bone-2: #e3e5dc;
  --graphite: #171f20;
  --graphite-2: #3b4546;
  --steel: #7d8789;
  --lime: #c7ef46;
  --lime-ink: #3d5410;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --rail: clamp(20px, 5vw, 72px);
  --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 400 1.0625rem/1.6 var(--body); color: var(--graphite); background: var(--bone); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .92; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lime); }
[id] { scroll-margin-top: 90px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--graphite); color: var(--lime); padding: 10px 14px; z-index: 60; }
.skip:focus { top: 12px; }
.notice { background: var(--graphite); color: #c9cfc6; font-size: .8125rem; }
.notice .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 8px; }
.notice a { color: var(--lime); }

.hdr { position: sticky; top: 0; z-index: 40; background: var(--bone); border-bottom: 2px solid var(--graphite); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 42px; height: 42px; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: .85; text-transform: uppercase; display: block; }
.brand small { display: block; font-size: .75rem; font-weight: 600; color: var(--graphite-2); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav a { text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--lime); text-underline-offset: 6px; }
.menu-btn { display: none; border: 2px solid var(--graphite); background: none; padding: 8px 14px; font: 700 .95rem var(--body); color: var(--graphite); cursor: pointer; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font-weight: 700; text-decoration: none; border: 2px solid var(--graphite); background: var(--lime); color: var(--graphite); cursor: pointer; font-size: 1rem; box-shadow: 4px 4px 0 var(--graphite); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--graphite); }
.btn.plain { background: var(--bone); }

/* the north line: a rail on the left that fills with scroll */
main { position: relative; }
.rail { position: absolute; left: calc(var(--rail) / 2); top: 0; bottom: 0; width: 4px; background: var(--bone-2); pointer-events: none; z-index: 2; }
.rail i { position: absolute; inset: 0; background: var(--lime); transform-origin: top; transform: scaleY(var(--p, 0)); }
.mark { position: absolute; left: calc(var(--rail) / 2 - 7px); width: 18px; height: 18px; background: var(--bone); border: 3px solid var(--bone-2); transform: rotate(45deg); z-index: 3; transition: background-color .25s, border-color .25s; }
.mark.on { background: var(--lime); border-color: var(--graphite); }
section { position: relative; }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(60px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero .kicker { font-weight: 700; color: var(--lime-ink); background: var(--lime); display: inline-block; padding: 4px 10px; font-size: .95rem; }
.hero h1 { margin-top: 18px; font-size: clamp(3.4rem, 1.4rem + 7.4vw, 8.4rem); }
.hero .lead { margin-top: 22px; font-size: 1.1875rem; color: var(--graphite-2); max-width: 32em; }
.hero .actions { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }
.shot { position: relative; aspect-ratio: 4 / 5; overflow: hidden; clip-path: polygon(0 0, 78% 0, 100% 14%, 100% 100%, 0 100%); background: var(--graphite); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.imgnote { margin-top: 10px; font-size: .78rem; color: var(--steel); }
.stats { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--graphite); }
.stats li { padding: 18px 20px 0 0; }
.stats b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.2rem); line-height: 1; }
.stats span { color: var(--graphite-2); font-weight: 500; }

/* services: stations */
.ways { background: var(--graphite); color: var(--bone); padding-block: clamp(72px, 9vw, 128px); }
.ways h2 { font-size: clamp(2.8rem, 1.4rem + 4.8vw, 6rem); color: var(--lime); }
.ways .intro { margin-top: 14px; color: #bfc6c1; max-width: 34em; font-size: 1.125rem; }
.stations { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #2c3637; border: 2px solid #2c3637; }
.stations li { background: var(--graphite); padding: 28px 26px 32px; min-height: 220px; display: flex; flex-direction: column; gap: 12px; }
.stations h3 { font-size: clamp(1.7rem, 1.2rem + 1vw, 2.2rem); color: #fff; }
.stations p { color: #bfc6c1; }
.stations li:hover h3 { color: var(--lime); }
.ways .note { margin-top: 28px; color: #bfc6c1; }
.ways .note b { color: var(--lime); font-weight: 700; }

/* how we work */
.how { padding-block: clamp(72px, 9vw, 128px); }
.how .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.how h2 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); }
.how .lead { margin-top: 18px; font-size: 1.125rem; color: var(--graphite-2); }
.checks li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 2px solid var(--bone-2); font-weight: 600; font-size: 1.1rem; }
.checks svg { width: 30px; height: 30px; }
.callout { margin-top: 26px; background: var(--lime); padding: 20px 22px; font-weight: 600; border: 2px solid var(--graphite); box-shadow: 6px 6px 0 var(--graphite); }

/* team */
.team { padding-block: clamp(24px, 3vw, 40px) clamp(72px, 9vw, 128px); }
.team h2 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); }
.people { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.people .ph { aspect-ratio: 1; overflow: hidden; background: var(--bone-2); border: 2px solid var(--graphite); }
.people img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .3s; }
.people li:hover img { filter: none; }
.people h3 { margin-top: 14px; font-size: 2rem; }
.people .role { font-weight: 700; color: var(--lime-ink); background: var(--lime); display: inline-block; padding: 2px 8px; font-size: .9rem; margin-top: 6px; }
.people p { margin-top: 8px; color: var(--graphite-2); }

/* hours */
.hours { background: var(--bone-2); padding-block: clamp(72px, 9vw, 128px); }
.hours .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hours .big { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 2rem + 10vw, 11rem); line-height: .8; }
.hours .big small { display: block; font-size: .28em; line-height: 1; margin-top: 12px; }
.hours address { margin-top: 22px; font-style: normal; font-weight: 700; }
.hours address small { display: block; font-weight: 400; color: var(--graphite-2); font-size: .82rem; }
.days { border-top: 2px solid var(--graphite); }
.days li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #c9ccc2; font-weight: 600; }
.days li span:last-child { font-weight: 500; }
.days li.early span:last-child { background: var(--lime); padding: 0 6px; }
.days .off { color: var(--steel); }

/* faq + demo */
.faq { padding-block: clamp(72px, 9vw, 128px); }
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq h2 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); }
.qs details { border-bottom: 2px solid var(--bone-2); }
.qs summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.15rem; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 2rem; line-height: 1; }
.qs details[open] summary::after { content: "–"; }
.qs details p { padding-bottom: 20px; color: var(--graphite-2); max-width: 40em; }
.demo { background: var(--graphite); color: var(--bone); padding-block: clamp(72px, 9vw, 128px); }
.demo .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.demo h2 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); color: var(--lime); }
.demo .lede { margin-top: 16px; color: #bfc6c1; font-size: 1.125rem; }
.demo .demo-note { margin-top: 20px; border: 2px dashed #4a5556; padding: 14px 16px; color: #bfc6c1; font-size: .92rem; }
.form { background: var(--bone); color: var(--graphite); padding: clamp(20px, 3vw, 34px); display: grid; gap: 18px; border: 2px solid var(--lime); }
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.form select, .form input { width: 100%; min-height: 48px; font: 500 1rem var(--body); color: var(--graphite); background: #fff; border: 2px solid var(--graphite); padding: 11px 14px; border-radius: 0; }
.form .err { color: #a3261c; font-weight: 700; font-size: .9rem; margin-top: 6px; }
.form .err:empty { display: none; }
.preview { background: var(--lime); padding: 14px 16px; border: 2px solid var(--graphite); }
.preview[hidden] { display: none; }
.preview b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; margin-bottom: 4px; }

.ftr { background: var(--graphite); color: #c9cfc6; padding-block: 48px 30px; border-top: 2px solid #2c3637; }
.ftr .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.ftr .brand b { color: #fff; }
.ftr h3 { font-family: var(--body); text-transform: none; font-weight: 700; font-size: .95rem; color: #fff; }
.ftr ul { margin-top: 10px; display: grid; gap: 6px; }
.ftr a { text-decoration: none; } .ftr a:hover { color: var(--lime); }
.ftr .base { grid-column: 1 / -1; border-top: 1px solid #2c3637; padding-top: 20px; margin-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: #8f9a95; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bone); border-bottom: 2px solid var(--graphite); padding: 8px var(--pad) 20px; }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 12px 0; font-size: 1.1rem; }
  .nav .btn { justify-content: center; margin-top: 8px; }
  .hero .wrap, .how .wrap, .hours .wrap, .faq .wrap, .demo .wrap, .ftr .wrap { grid-template-columns: 1fr; }
  .shot { max-width: 440px; }
  .stations { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; max-width: 420px; }
  .stats { grid-template-columns: 1fr; }
  .stats li { border-bottom: 1px solid var(--bone-2); padding-bottom: 14px; }
  .rail, .mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .rail i { transform: none; }
}

/* Phones, 2026-11-12: the photo comes before the button (DESIGN.md rule 8) */
@media (max-width: 700px) {
  .hero .wrap:first-child { row-gap: 0; }
  .hero .wrap:first-child > div { display: contents; }
  .hero .kicker { order: 1; justify-self: start; } .hero h1 { order: 2; } .hero .lead { order: 3; }
  .hero .shot { order: 4; margin-top: 24px; } .hero .imgnote { order: 5; }
  .hero .actions { order: 6; margin-top: 20px; }
}
