/* Take A Load Off. Palette and type come from the owner's flyer: black heavy condensed
   headline (Anton), forest green bold labels (Montserrat ExtraBold), plain body (Barlow),
   cream paper, pale green panels with teal-grey rules. Rules applied: Josh's jwatte design
   articles (see DESIGN.md). CSP is style-src 'self', so no markup may carry a style attribute. */
[hidden] { display: none !important; }

/* Fonts: self-hosted WOFF2, subset to exactly this range (fonts/RANGE.txt; build.mjs checks). */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/anton-sub-400-normal.9a72f714.woff2') format('woff2'); unicode-range: U+0020-007E,U+00A0,U+00A9,U+00B7,U+00D7,U+2013-2014,U+2018-2019,U+201C-201D,U+2022,U+2026; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/montserrat-sub-800-normal.2a2e9544.woff2') format('woff2'); unicode-range: U+0020-007E,U+00A0,U+00A9,U+00B7,U+00D7,U+2013-2014,U+2018-2019,U+201C-201D,U+2022,U+2026; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/barlow-sub-400-normal.bddc2ce5.woff2') format('woff2'); unicode-range: U+0020-007E,U+00A0,U+00A9,U+00B7,U+00D7,U+2013-2014,U+2018-2019,U+201C-201D,U+2022,U+2026; }

/* ---------- tokens (roles, not colours; dark mode redefines the same names) ---------- */
:root {
  color-scheme: light;
  --ground: #fbfaf5;        /* page */
  --surface: #fefdf9;       /* cards: warm, never #fff */
  --panel: #eef3ea;         /* soft panels */
  --band: #eef6f5;          /* alternating section band */
  --rule: #a9c6bf;          /* decorative card and section rules */
  --control-line: #5f7f70;  /* input and control borders: 3:1 or better on --surface */
  --ink: #141a14;           /* body text */
  --muted: #475446;         /* secondary text */
  --accent-ink: #1f4a2e;    /* green AS TEXT: labels, h3, links */
  --fill: #1f4a2e;          /* green AS A FILL: buttons and the schedule panel */
  --on-fill: #f4efe2;       /* text on --fill */
  --sage: #8fae86;          /* decoration only, never text */
  --focus: #b35c00;
  --footer: #142217; --on-footer: #e8eee4; --footer-link: #d6e6cc; --footer-muted: #c5d1c1; --footer-rule: #2c4232;
  --shadow: 0 1px 2px rgba(20, 26, 20, .06), 0 8px 24px rgba(20, 26, 20, .08);
  --radius: 18px; --radius-sm: 12px; --radius-pill: 999px;
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem;
  --space-section: clamp(3.5rem, 8vw, 8rem);
  --container: 70rem; --container-narrow: 47.5rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --dur-press: 140ms; --dur: 200ms;
  --display: 'Anton', 'Arial Narrow', 'Helvetica Neue Condensed', Impact, sans-serif;
  --label: 'Montserrat', 'Arial Black', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
/* Light ("day") is the default for every visitor, whatever the device setting (owner's call,
   2026-10-19). Dark applies only after the header switch sets [data-theme="dark"]. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0f1510;
    --surface: #151d16;
    --panel: #18241b;
    --band: #132019;
    --rule: #34503f;
    --control-line: #7f9a8a;
    --ink: #e6ebe2;
    --muted: #b6c2b3;
    --accent-ink: #b7cfaa;
    --fill: #b7cfaa;
    --on-fill: #0f1510;
    --focus: #ffb35c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}
:root[data-theme="light"] { color-scheme: light; }
/* No :root rule may follow the dark block: it would tie on specificity and win by order. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.125rem/1.38 var(--body); }
img, svg, picture { max-width: 100%; height: auto; display: block; }
/* Bold in body copy uses the label face (Montserrat 800), not a synthesized Barlow bold. */
strong, b { font-family: var(--label); font-weight: 800; font-size: .94em; letter-spacing: .01em; }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: .08em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
p, ul, ol, dl, table { margin: 0 0 var(--space-2); }
p, li, dd { text-wrap: pretty; overflow-wrap: break-word; }
/* Grid children may shrink below their content (long hostnames otherwise push a 320px page sideways). */
.hero-grid > *, .price-grid > *, .loc-grid > *, .cards > *, .footer-grid > * { min-width: 0; }
.host { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0 0 .6rem; text-wrap: balance; }
/* Heavy display face on purpose: the flyer's own headline (see DESIGN.md, "deviations"). */
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.5rem, 8vw, 4.6rem); line-height: 1.03; }
h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.08; }
h3 { font: 800 1.05rem/1.17 var(--label); text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); }
.tabular, .num, .price-big, .phone, .calc output, .calc input { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.skip-link { position: absolute; left: .75rem; top: -4rem; z-index: 50; background: var(--fill); color: var(--on-fill); padding: .625rem 1rem; border-radius: 10px; font: 800 .95rem var(--label); }
.skip-link:focus { top: .75rem; }
.wrap { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.narrow { width: min(var(--container-narrow), 100% - 2rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.nav-row { display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; padding: .625rem 0; }
.brand { display: block; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.125rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font: 800 .82rem/1 var(--label); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: .9rem .125rem; display: inline-block; border-bottom: 3px solid transparent; transition: border-color var(--dur) ease; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--sage); }
@media (max-width: 640px) {
  .brand img { height: 38px; }
  .nav-row { padding: .5rem 0 .25rem; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; gap: 0; }
  /* the sticky text bar carries the call to action on phones */
  .site-header .header-cta { display: none; }
  /* keep focused elements clear of the sticky bottom bar (WCAG 2.4.11) */
  html { scroll-padding-bottom: 6rem; }
}

/* the logo for the active theme */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
/* light/dark switch: 44px target; the moon shows in light (press for dark), the sun in dark */
.theme-toggle { order: 2; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-pill); border: 2px solid var(--control-line); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform var(--dur-press) var(--ease-out), background-color var(--dur) ease, border-color var(--dur) ease; }
.theme-toggle:active { transform: scale(0.97); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.site-nav { order: 1; }
.header-cta { order: 3; }
@media (max-width: 640px) { .theme-toggle { order: 1; } .site-nav { order: 3; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .625rem; min-height: 3.25rem; padding: .875rem 1.5rem; border-radius: var(--radius-pill); font: 800 .95rem/1.15 var(--label); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; border: 2px solid var(--fill); cursor: pointer; text-align: center;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--fill); color: var(--on-fill); }
.btn-ghost { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
.btn-sm { min-height: 2.75rem; padding: .625rem 1.125rem; font-size: .8rem; }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 .5rem; }

/* ---------- hero ---------- */
.hero { padding: 2.5rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.badge { display: inline-flex; align-items: center; gap: .625rem; background: var(--panel); border: 1px solid var(--rule); color: var(--accent-ink); border-radius: var(--radius-pill); padding: .5rem 1rem; font: 800 .8rem/1.2 var(--label); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.125rem; }
.badge::before, .badge::after { content: ''; width: .875rem; height: 2px; background: currentColor; border-radius: 2px; }
.kicker { font: 800 clamp(1rem, 2.6vw, 1.35rem)/1.25 var(--label); color: var(--accent-ink); text-transform: uppercase; letter-spacing: .04em; margin: -.25rem 0 1rem; }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.35; max-width: 38ch; }
.fine { font-size: .98rem; color: var(--muted); }
.flyer-card { display: block; justify-self: center; max-width: 420px; transform: rotate(1.5deg); border-radius: var(--radius-sm); box-shadow: var(--shadow); border: 1px solid var(--rule); overflow: hidden; background: #fff; transition: transform 300ms var(--ease-in-out); }
.flyer-card:active { transform: rotate(0) scale(0.99); }
.flyer-caption { text-align: center; font-size: .95rem; color: var(--muted); margin-top: .75rem; }

/* ---------- sections ---------- */
.section { padding: var(--space-section) 0; }
.section.alt { background: var(--band); border-block: 1px solid var(--rule); }
.section-head { max-width: 62ch; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); }
.panel { background: var(--surface); border: 2px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.panel.soft { background: var(--panel); box-shadow: none; }
.panel h2:not(:first-child) { margin-top: 1.5rem; }

.steps { display: grid; gap: 1.125rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--surface); border: 2px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.steps img { width: 8.25rem; height: auto; margin: 0 auto .75rem; }
.steps h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--ink); letter-spacing: .01em; margin-bottom: .375rem; }
.steps p { margin: 0; color: var(--muted); }
.step-n { display: inline-block; font: 800 .75rem var(--label); color: var(--accent-ink); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25rem; }

.price-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .price-grid { grid-template-columns: 1.1fr .9fr; } }
.price-big { font: 400 clamp(3rem, 10vw, 5.4rem)/.95 var(--display); text-transform: uppercase; margin: 0 0 .375rem; }
.price-big small { font-size: .45em; }
.price-flat { font: 800 1.05rem var(--label); color: var(--accent-ink); text-transform: uppercase; letter-spacing: .03em; }
.bag-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: center; margin: 1.125rem 0; }
.bag-row img { width: 7.5rem; height: auto; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .625rem; }
.facts li { padding-left: 1.875rem; position: relative; }
.facts li::before { content: ''; position: absolute; left: .25rem; top: .45em; width: .875rem; height: .5rem; border-left: 3px solid var(--accent-ink); border-bottom: 3px solid var(--accent-ink); transform: rotate(-45deg); }

.cards { display: grid; gap: 1.125rem; }
@media (min-width: 760px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
.cards .panel h3 { margin-bottom: .5rem; }
.cards .panel p:last-child, .cards .panel ul:last-child { margin-bottom: 0; }

.schedule { background: var(--fill); color: var(--on-fill); border-radius: var(--radius); padding: 1.75rem; }
.schedule h2, .schedule h3, .schedule p { color: var(--on-fill); }
/* links inside the fill panel are on-fill too: accent-ink on fill is 1:1 (ink/fill are one value today) */
.schedule a:not(.btn) { color: var(--on-fill); }
.schedule .phone { font: 400 clamp(2.4rem, 8vw, 3.6rem)/1 var(--display); letter-spacing: .02em; color: var(--on-fill); text-decoration: none; display: inline-block; margin: .375rem 0 .625rem; }
.schedule .btn-primary { background: var(--on-fill); color: var(--fill); border-color: var(--on-fill); }
.schedule .btn-ghost { color: var(--on-fill); border-color: var(--on-fill); }
.copy-status { min-height: 1.4em; font-size: .95rem; }

/* calculator */
.calc { display: grid; gap: .75rem; }
.calc label { font: 800 .85rem var(--label); text-transform: uppercase; letter-spacing: .05em; }
.calc-row { display: flex; gap: .625rem; align-items: center; flex-wrap: wrap; }
.calc input { font: 400 1.4rem var(--body); width: 8ch; min-height: 3.25rem; padding: .5rem .75rem; border-radius: var(--radius-sm); border: 2px solid var(--control-line); background: var(--surface); color: var(--ink); }
.calc output { font: 400 2.4rem/1 var(--display); }
.calc-note { color: var(--muted); font-size: .98rem; margin: 0; }

table.simple { width: 100%; border-collapse: collapse; background: var(--surface); }
table.simple th, table.simple td { text-align: left; padding: .75rem .875rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.simple thead th { font: 800 .8rem var(--label); text-transform: uppercase; letter-spacing: .05em; background: var(--panel); }
table.simple td.num, table.simple th.num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 2px solid var(--rule); border-radius: var(--radius); }

/* quote form: composes a text, never posts */
.quote h2 { margin-bottom: .5rem; }
.q-services { border: 0; padding: 0; margin: 1rem 0; display: grid; gap: .625rem; }
@media (min-width: 640px) { .q-services { grid-template-columns: 1fr 1fr; } }
.q-services legend { font: 800 .85rem var(--label); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .625rem; padding: 0; }
.q-choice { display: flex; gap: .75rem; align-items: center; min-height: 3rem; padding: .625rem .875rem; border: 2px solid var(--control-line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.q-choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--fill); flex: none; }
.q-choice:has(input:checked) { border-color: var(--accent-ink); background: var(--panel); }
.q-grid { display: grid; gap: .875rem 1rem; }
@media (min-width: 640px) { .q-grid { grid-template-columns: 1fr 1fr; } .q-wide { grid-column: 1 / -1; } }
.q-field { display: grid; gap: .375rem; min-width: 0; }
.q-field label { font: 800 .8rem/1.3 var(--label); text-transform: uppercase; letter-spacing: .04em; }
.q-field input, .q-field select, .q-field textarea { font: 400 1.05rem/1.3 var(--body); min-height: 3rem; padding: .625rem .75rem; border: 2px solid var(--control-line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); width: 100%; }
.q-field textarea { min-height: 6rem; resize: vertical; }
.q-estimate { margin: 1rem 0; font-weight: 400; color: var(--muted); min-height: 1.4em; }
.q-out { margin-top: 1.25rem; padding: 1rem; border: 2px dashed var(--control-line); border-radius: var(--radius-sm); background: var(--panel); }
.q-out-h { font: 800 .85rem var(--label); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.q-msg { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border-radius: var(--radius-sm); padding: .75rem .875rem; border: 1px solid var(--rule); }

/* location */
.loc-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 860px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
.photo { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--rule); margin: 0; }
.photo figcaption { padding: .625rem .875rem; font-size: .95rem; color: var(--muted); background: var(--surface); }
.map-slot { margin-top: 1rem; border: 2px dashed var(--rule); border-radius: var(--radius); padding: 1.125rem; background: var(--surface); }
.map-slot iframe { width: 100%; height: 21.25rem; border: 0; border-radius: var(--radius-sm); display: block; }
address { font-style: normal; }

/* faq */
.faq details { background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.125rem; font: 800 1rem/1.35 var(--label); list-style: none; display: flex; justify-content: space-between; gap: 1rem; border-radius: 12px; transition: transform var(--dur-press) var(--ease-out); }
.faq summary:active { transform: scale(0.99); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.6rem/1 var(--display); color: var(--accent-ink); }
.faq details[open] summary::after { content: '\2013'; }
.faq details > div { padding: 0 1.125rem .5rem; }

.prose h2 { margin-top: 1.6rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: .875rem; }
.crumbs a { color: var(--muted); }
.page-head { padding: 2.25rem 0 .75rem; }

/* footer: always dark, in both themes */
.site-footer { background: var(--footer); color: var(--on-footer); padding: 2.75rem 0 7rem; margin-top: 1.5rem; }
.site-footer a { color: var(--footer-link); }
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } .site-footer { padding-bottom: 2.75rem; } }
.footer-grid h2 { font: 800 .85rem var(--label); text-transform: uppercase; letter-spacing: .08em; color: #b7cfaa; margin-bottom: .625rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .375rem; }
.footer-logo { width: 16.25rem; max-width: 100%; margin-bottom: .875rem; }
.footer-legal { border-top: 1px solid var(--footer-rule); margin-top: 1.75rem; padding-top: 1rem; font-size: .95rem; color: var(--footer-muted); }

/* sticky text bar on phones; clears the home indicator (needs viewport-fit=cover) */
.textbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ground) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--rule); }
.textbar .btn { width: 100%; }
@media (min-width: 860px) { .textbar { display: none; } }

/* Hover only where a real pointer hovers; touch screens get the :active press instead. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 6px 18px rgba(20, 26, 20, .18); }
  .btn-ghost:hover { background: var(--panel); }
  .schedule .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
  .site-nav a:hover { border-bottom-color: var(--sage); }
  a:hover { text-decoration-thickness: .14em; }
  .flyer-card:hover { transform: rotate(0); }
}

/* Reduced motion: gentler, not off. Movement goes; colour and opacity fades stay. */
@media (prefers-reduced-motion: reduce) {
  .btn, .faq summary, .flyer-card { transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease; }
  .btn:active, .faq summary:active, .flyer-card, .flyer-card:active, .flyer-card:hover { transform: none; }
}
@media print {
  .site-header, .textbar, .site-footer, .btn-row, .map-slot { display: none !important; }
  body { background: #fff; color: #000; }
  .section.alt { background: none; }
}
