/* Quick-cash template. The ONLY per-client value in here is --accent, which the
   build writes into a <style> tag from site.json. Everything else is the template.
   Layout follows the trade-site benchmark (BKB .claude/runs/2026-10-02-researcher-site-benchmarks.md):
   photo-led hero with trust strip and two CTAs, sticky header Call, bottom call bar. */
@font-face {
  font-family: "Archivo Condensed";
  src: url("/fonts/archivo-700-75.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #1e4d2b;
  --accent-ink: #ffffff;
  --ink: #161b17;
  --muted: #4f594b;
  --paper: #f5f2ea;
  --stone: #e8e2d3;
  --line: #d4ccb8;
  --white: #ffffff;
  --star: #f5b81c;
  --star-on-light: #8a5d00;
  --display: "Archivo Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 5vw, 32px);
  --max: 720px;
  --header-h: 60px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: 0; }
h2 { font-size: clamp(34px, 10vw, 46px); margin-bottom: 20px; }
h3 { font-size: 23px; line-height: 1.1; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 30; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Demo banner: permanent, not dismissable, not sticky (the header is). */
.demo-banner { background: #2b2b2b; color: #fff; font-size: 13px; line-height: 1.4; text-align: center; padding: 8px max(var(--pad), env(safe-area-inset-right)) 8px max(var(--pad), env(safe-area-inset-left)); }
.demo-banner strong { color: #ffd98a; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1; color: var(--ink); text-decoration: none; min-width: 0; }
.brand__mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 23px; line-height: 1; }
.brand img { max-height: 40px; width: auto; }
.nav { display: flex; justify-content: space-between; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: var(--max); margin: 0 auto; padding: 0 max(calc(var(--pad) - 10px), env(safe-area-inset-right)) 0 max(calc(var(--pad) - 10px), env(safe-area-inset-left)); }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 0 10px; min-height: 44px; display: flex; align-items: center; }
.nav a:hover { color: var(--accent); text-decoration: underline; }

/* Buttons */
.btn { -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; font: 700 16px/1 var(--sans); text-decoration: none; white-space: nowrap; border: 2px solid transparent; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--call { background: var(--accent); color: var(--accent-ink); }
.btn--call:hover { filter: brightness(1.12); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--accent-ink); border-color: currentColor; }
.btn--light { background: var(--white); color: var(--accent); }

/* Hero: a real work photo first, the promise over its foot. The photo fades
   into the accent panel, so white text never sits on raw sky. */
.hero { background: var(--accent); color: var(--accent-ink); }
.hero__media { position: relative; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, color-mix(in srgb, var(--accent) 70%, transparent) 72%, var(--accent) 100%); pointer-events: none; }
.hero__photo { aspect-ratio: 16 / 9; max-height: 42vh; width: 100%; object-fit: cover; object-position: 50% 50%; }
.hero .ph { aspect-ratio: 16 / 9; max-height: 42vh; width: 100%; border: 0; font-size: 16px; }
.hero__panel { position: relative; margin-top: -64px; padding: 0 0 28px; }
.hero h1 { font-size: clamp(40px, 12vw, 60px); margin-bottom: 12px; text-wrap: balance; }
.hero__sub { font-size: 17px; line-height: 1.45; margin-bottom: 18px; }

.trust { list-style: none; margin: 0 0 16px; padding: 10px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); }
.trust li { padding: 0 8px; text-align: center; min-width: 0; }
.trust li + li { border-left: 1px solid rgba(255,255,255,.28); }
.trust b { display: block; white-space: nowrap; font: 700 27px/1 var(--display); }
.trust .star { display: inline; color: var(--star); font-size: 0.8em; margin-left: 2px; vertical-align: 0.06em; }
.trust span { display: block; font-size: 13px; line-height: 1.25; margin-top: 4px; }

.hero__actions { display: grid; gap: 10px; }
.hero__call { min-height: 58px; font-size: 20px; width: 100%; }
.hero__text { width: 100%; }

/* Services: a price board, not a card grid */
.services { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.services li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.services__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.services__from { flex: none; font-size: 15px; color: var(--muted); }
.services__from b { color: var(--ink); font: 700 22px/1 var(--display); }
.services p { margin: 6px 0 0; color: var(--muted); }

/* Area */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 16px; }
.chips li.is-base { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.muted { color: var(--muted); }

/* Work */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.work figure { margin: 0; min-width: 0; }
.work img, .work .ph { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 8px; }
.work figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.stock-note { font-size: 14px; margin-top: 14px; }

/* Placeholder for a photo that has not arrived. Honest, labelled, never a fake. */
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; background: var(--stone); color: var(--muted); font-size: 14px; line-height: 1.3; border: 1px dashed #b3a98f; }

/* Reviews */
.reviews__sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: -6px 0 20px; color: var(--muted); font-size: 15px; }
.reviews__sum b { font: 700 34px/1 var(--display); color: var(--ink); }
.reviews__sum .stars { margin: 0; }
.reviews { display: grid; gap: 14px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); padding: 18px; border-radius: 10px; }
.review blockquote { margin: 0 0 10px; font-size: 18px; line-height: 1.45; }
.review figcaption { font-size: 15px; color: var(--muted); font-weight: 600; }
.stars { color: var(--star-on-light); letter-spacing: 2px; font-size: 16px; display: block; margin-bottom: 8px; }
.tag { display: table; font-size: 13px; background: var(--stone); color: var(--muted); border-radius: 4px; padding: 2px 8px; margin: 10px 0 0; font-family: var(--sans); font-weight: 400; letter-spacing: 0; }

/* About / why us */
.about__photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.promises { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.promises li { background: var(--white); border-radius: 10px; border-left: 5px solid var(--accent); padding: 16px 16px 14px; }
.promises h3 { margin-bottom: 6px; }
.promises p { margin: 0; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* FAQ: visible answers, no JavaScript */
.faq { margin: 0; border-top: 3px solid var(--ink); }
.faq div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.faq dd { margin: 0; color: var(--muted); }

/* Contact */
.contact { background: var(--ink); color: #f1eee6; }
.contact a { color: #fff; }
.contact h2 { color: #fff; }
.contact__phone { display: flex; align-items: center; min-height: 48px; font-family: var(--display); font-size: clamp(42px, 13vw, 60px); font-weight: 700; text-decoration: none; margin-bottom: 18px; line-height: 1; }
.contact__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.contact__actions .btn { width: 100%; }
.contact .btn--call { background: #fff; color: var(--ink); }
.contact .btn--ghost { color: #fff; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 20px; }
.contact dt { color: #c9c4b6; }
.contact dd { margin: 0; }
/* Email stays whole: never break mid-word. A <wbr> before the @ is the only
   break point, used only if a long client address cannot fit. At narrow widths
   the list stacks so the value gets the full column (curator 2026-10-01). */
.contact__email { word-break: normal; overflow-wrap: normal; }
/* 44px tap target without moving the list: the padding grows the box, the equal negative
   margin gives the line its old height back (walker 2026-10-02: was 22px). Mostly upward:
   the next row starts ~6px below the text and would take any taps lower than that. */
.contact__email { display: inline-block; padding: 13px 0 5px; margin: -13px 0 -5px; }
@media (max-width: 359px) {
  .contact dl { grid-template-columns: 1fr; gap: 0; }
  .contact dd { margin-bottom: 10px; }
}

/* Footer: room underneath for the fixed call bar (only where the script shows the bar) */
.footer { background: var(--ink); color: #c9c4b6; font-size: 14px; padding: 20px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid #3a4038; }
.bar-js .footer { padding-bottom: calc(var(--bar-h) + 28px + env(safe-area-inset-bottom)); }
.footer a { color: #c9c4b6; }
.footer p { margin: 0 0 4px; }
.footer__phone span { display: inline-flex; align-items: center; min-height: 44px; font: 700 26px/1 var(--display); color: #fff; text-decoration: none; }

/* Bottom call bar: thumb zone, on a phone. Shown only when the script runs (.bar-js): with no
   script nothing could hide it, and it sat over the hero's own Call/Text at scroll 0. */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: none; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); grid-template-columns: 1fr 1fr; background: var(--accent); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(0,0,0,.18); transition: transform .2s ease, visibility 0s; }
.bar-js .callbar { display: grid; }
.callbar a { -webkit-tap-highlight-color: transparent; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--bar-h); color: var(--accent-ink); font: 700 17px/1 var(--sans); text-decoration: none; }
.callbar a + a { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--accent-ink) 30%, transparent); }
.callbar svg { width: 18px; height: 18px; flex: none; }
/* Hidden while the hero's own buttons are on screen (script adds .bar-wait; no script = always shown). */
.bar-wait .callbar:not(.is-on) { transform: translateY(100%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
@media (prefers-reduced-motion: reduce) { .callbar, .bar-wait .callbar:not(.is-on) { transition: none; } }
/* The header Call is for screens without the bar; on a phone it would be a second Call in the fold. */
@media (max-width: 899px) { .header__call { display: none; } }
@media (min-width: 900px) { .bar-js .callbar { display: none; } .footer, .bar-js .footer { padding-bottom: 32px; } }

/* Demo-only: the Call/Text buttons open this note instead of dialling.
   Pure CSS (:target); no JavaScript involved. Sits above the call bar. */
.demo-toast { display: none; position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; background: #2b2b2b; color: #fff; border-radius: 10px; padding: 16px 16px 14px; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.bar-js .demo-toast { bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom)); }
.demo-toast:target { display: block; }
.demo-toast p { margin: 0 0 10px; }
.demo-toast a { color: #ffd98a; }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }

@media (min-width: 700px) {
  .work { grid-template-columns: repeat(3, 1fr); }
  .hero__actions { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: repeat(3, 1fr); }
}
