/* Hastings Chiropractic & Natural Health — concept build */
:root {
  --ink: #13292e;
  --sea: #1d5560;
  --sea-deep: #143f48;
  --mangrove: #3f6f58;
  --mist: #edf2f1;
  --paper: #ffffff;
  --sand: #d9c9a8;
  --muted: #4b6064;
  --line: #c9d6d5;
  --focus: #b8862b;
  --radius-s: 6px;
  --radius-l: 14px;
  --measure: 66ch;
  --wrap: 1120px;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 4.4vw, 2.75rem);
  --step-4: clamp(2.4rem, 6.2vw, 4rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 0.18em; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Concept bar */
.concept-bar {
  background: var(--ink);
  color: #e6eeee;
  font-size: var(--step--1);
  padding: 8px 0;
}
.concept-bar p { margin: 0; max-width: none; }
.concept-bar strong { color: #fff; }
.tc {
  border-bottom: 2px dotted var(--focus);
  cursor: help;
}
.tc::after { content: " \25C6"; color: var(--focus); font-size: 0.7em; vertical-align: 0.15em; }
.concept-bar .tc-key { color: var(--focus); }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; flex-wrap: wrap;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand b { display: block; font-size: 1.15rem; }
.brand span { font-size: var(--step--1); color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 0; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--sea); }
.nav a:hover { color: var(--sea); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  border-radius: var(--radius-s); padding: 12px 20px; line-height: 1.2;
  border: 2px solid var(--sea);
}
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--sea); }
.btn-ghost:hover { background: var(--paper); color: var(--sea-deep); }
.nav .btn { padding: 9px 16px; color: #fff; }
.nav .btn:hover { color: #fff; }

/* Hero */
.hero { background: var(--paper); padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; }
.hero h1 { max-width: 14ch; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 36ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.hero-note { font-size: var(--step--1); color: var(--muted); }

.photo {
  background:
    repeating-linear-gradient(135deg, rgba(29,85,96,0.06) 0 12px, transparent 12px 24px),
    #dfe8e7;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  min-height: 320px; display: flex; align-items: flex-end; padding: 16px;
  color: var(--muted); font-size: var(--step--1);
}
.photo.round { border-radius: var(--radius-l); min-height: 220px; }

/* The week strip — the one bold element */
.week {
  background: var(--sea); color: #fff;
  padding: 22px 0 26px;
}
.week h2 { font-size: var(--step-0); font-weight: 700; margin: 0 0 12px; letter-spacing: 0; }
.week-status { font-size: var(--step-2); font-weight: 700; margin: 0 0 16px; max-width: none; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.days li {
  border-top: 4px solid rgba(255,255,255,0.28);
  padding: 8px 2px 0; font-size: var(--step--1); line-height: 1.35;
}
.days li b { display: block; font-size: var(--step-0); }
.days li.closed { color: rgba(255,255,255,0.62); }
.days li.today { border-top-color: var(--sand); }
.days li.today b::after { content: " · today"; font-weight: 400; color: var(--sand); font-size: var(--step--1); }
.week .tc { border-bottom-color: var(--sand); }
.week .tc::after { color: var(--sand); }

/* Sections */
.section { padding: 64px 0; }
.section.paper { background: var(--paper); }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person .photo { margin-bottom: 14px; }
.person h3 { margin-bottom: 2px; }
.role { color: var(--mangrove); font-weight: 700; margin-bottom: 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 28px;
}
.panel.quiet { background: transparent; }
.list-plain { margin: 0 0 1em; padding-left: 1.2em; max-width: var(--measure); }
.list-plain li { margin-bottom: 0.4em; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 56px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--sea); color: var(--sea); font-weight: 700;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: 4px; }

.durations { width: 100%; border-collapse: collapse; max-width: 34rem; margin-bottom: 1em; }
.durations th, .durations td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.durations td:last-child, .durations th:last-child { text-align: right; }

.callout {
  border-left: 4px solid var(--sand); padding: 4px 0 4px 18px; margin: 24px 0;
}

.page-head { background: var(--paper); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--step-3); max-width: 22ch; }
.page-head p { font-size: var(--step-1); color: var(--muted); }

/* Form */
form { display: grid; gap: 16px; max-width: 34rem; }
label { font-weight: 700; display: block; margin-bottom: 4px; }
.hint { font-weight: 400; color: var(--muted); font-size: var(--step--1); display: block; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 11px 12px; border: 1.5px solid #9fb2b2; border-radius: var(--radius-s);
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
button { font: inherit; cursor: pointer; }
.form-done {
  border: 2px solid var(--mangrove); background: #eef5f1;
  border-radius: var(--radius-l); padding: 20px; max-width: 34rem;
}
.form-done[hidden] { display: none; }

/* Footer */
.site-foot { background: var(--ink); color: #dbe5e5; padding: 48px 0 28px; font-size: var(--step--1); }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h2 { font-size: var(--step-0); margin-bottom: 8px; letter-spacing: 0; }
.site-foot p { margin-bottom: 0.5em; }
.foot-hours { list-style: none; padding: 0; margin: 0; }
.foot-hours li { display: flex; justify-content: space-between; max-width: 15rem; }
.foot-small { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 32px; padding-top: 16px; color: #a9bcbc; }
.foot-small p { max-width: none; }

@media (max-width: 860px) {
  .hero-grid, .split, .foot-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .photo { min-height: 200px; }
  .days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .days li { font-size: 0.78rem; }
  .days li b { font-size: 0.9rem; }
  .days li.today b::after { content: ""; }
  .section { padding: 48px 0; }
}
@media (max-width: 420px) {
  .days li span.hrs { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
