/* ==========================================================================
   The Car Boss — thecarboss.com.au
   Mobile detailing, Sydney (25 km radius from Parramatta)
   Plain CSS. No framework, no build step, no CDN.

   ⚠ RESTYLE 2026-08-24 (session: carboss-site restyle-light-theme). Retinted
   from the original graphite/molten-orange DARK theme to a white/near-white
   LIGHT theme with a single blue accent family. This is a STRUCTURE match to
   glossbossadelaide.com (section order, card-based layout, information
   density) — never a brand match. Checked what glossboss actually uses
   (fetched corpus, _tools/reference-corpus/): their accent is literally
   named --color-gold in their own CSS custom properties, and their fonts are
   Bebas Neue + Inter (Google Fonts). This site uses blue (#1d4ed8, nowhere
   near gold/amber on the wheel) and Anton (self-hosted, a visually distinct
   face from Bebas Neue) + a system-font stack (not Inter) — already a
   different pairing before this restyle, unchanged here. All contrast pairs
   below were measured with the WCAG relative-luminance formula, not eyeballed
   — see the ratio noted next to each token.
   ========================================================================== */

/* --- Self-hosted display face (Anton, SIL OFL 1.1 — see /fonts/OFL.txt) --- */
@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokens -- */
:root {
  /* Palette — white / near-white with a single blue accent family.
     Deliberately NOT gold/amber (glossbossadelaide.com's own --color-gold),
     and not their green. Every text/background pairing below is measured,
     not eyeballed (WCAG 2.1 relative-luminance contrast formula). */
  --bg:            #ffffff;
  --bg-deep:       #f4f5f7;   /* header/footer/hero-fallback tint */
  --surface:       #f6f7f9;   /* alternating section fill */
  --surface-2:     #eef1f4;   /* card / step / badge fill */
  --line:          #e2e5ea;
  --line-bright:   #c7cdd6;

  --text:          #14181d;   /* 17.8:1 on --bg */
  --muted:         #5b6572;   /*  5.9:1 on --bg (AA at any size) */
  --accent:        #1d4ed8;   /*  6.7:1 on --bg, 6.7:1 as --accent-ink on --accent */
  --accent-ink:    #ffffff;
  --accent-deep:   #1e40af;   /*  8.7:1 on --bg — hover/active state */
  --accent-tint:   rgba(29, 78, 216, 0.08);

  --radius:    14px;
  --radius-sm: 8px;
  --maxw:      1180px;
  --gutter:    clamp(1.15rem, 4vw, 2.5rem);

  --font-display: 'Anton', 'Arial Narrow', 'Haettenschweiler', Impact, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.6vw, 4.6rem);

  --shadow: 0 24px 48px -28px rgba(20, 24, 29, 0.28), 0 2px 10px rgba(20, 24, 29, 0.05);
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------------------ typography -- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: 0.02em; }

.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; max-width: 56ch; }
.muted { color: var(--muted); }
.prose p + p, .prose p + ul, .prose ul + p, .prose h2, .prose h3 { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 2em; }
.prose li { margin-bottom: 0.55rem; padding-left: 1.35rem; position: relative; }
.prose li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; background: var(--accent); border-radius: 2px;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

/* ------------------------------------------------------------- a11y ------ */
.skip-link {
  position: absolute; left: 0.5rem; top: -100px; z-index: 999;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- layout --- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.25rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head p { margin-top: 0.85rem; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}

.grid { display: grid; gap: clamp(0.9rem, 2.5vw, 1.5rem); }
@media (min-width: 620px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); }
                             .grid--2\@lg { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px) and (max-width: 899px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.6rem; min-height: 48px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: var(--step-0); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-deep); color: var(--accent-ink); }

.btn--ghost { border-color: var(--line-bright); color: var(--text); background: var(--bg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-tint); }

.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2rem; font-size: var(--step-1); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* -------------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 1.32rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 32px; height: 32px; flex: none;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 7px; display: grid; place-items: center;
  font-size: 0.95rem; letter-spacing: -0.02em;
}
.brand__word em { font-style: normal; color: var(--accent); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--bg); border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm); padding: 0.6rem 0.85rem;
  min-height: 44px; cursor: pointer; font-size: var(--step--1); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span { height: 2px; background: currentColor; border-radius: 2px; }

.site-nav ul { display: flex; gap: 0.35rem; align-items: center; }
.site-nav a {
  display: block; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.94rem;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current='page'] { color: var(--accent); }
.site-header .btn { padding: 0.7rem 1.15rem; min-height: 44px; font-size: 0.94rem; }

@media (max-width: 899px) {
  .site-nav {
    position: fixed; inset: 4.25rem 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: var(--gutter); max-height: calc(100dvh - 4.25rem); overflow-y: auto;
    box-shadow: var(--shadow);
  }
  .site-nav[hidden] { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .site-nav a { padding: 0.9rem 0.75rem; font-size: 1.06rem; border-bottom: 1px solid var(--line); }
  .site-header__cta { display: none; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
  .site-nav[hidden] { display: block; }
}

/* ---------------------------------------------------------------- hero --- */
.hero { position: relative; overflow: hidden; background: var(--bg-deep); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* A light wash, NOT a dark scrim: on a light theme the legibility guarantee
   comes from .hero__panel below (a solid near-white card the text actually
   sits on), not from darkening the photo. This wash only keeps a very bright
   photo from reading as pure white flare behind the panel edge. */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 24, 29, 0.06) 0%, rgba(20, 24, 29, 0.16) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding-block: clamp(3.5rem, 11vw, 7.5rem);
}
/* The panel — not the photo — is what guarantees text contrast. Its
   background is a fixed near-opaque white regardless of what photo sits
   behind it, so the worst case (a blown-out white photo dropped into the
   slot) still leaves body copy at --muted-on-white (5.9:1, AA at any size)
   rather than depending on the image at all. */
.hero__panel {
  max-width: 44rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.hero h1 { margin-bottom: 1.15rem; }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero .lede { margin-bottom: 1.9rem; }
.hero .btn-row { margin-bottom: 0; }

/* -------------------------------------------------------- trust strip ---- */
.trust {
  background: var(--surface); border-block: 1px solid var(--line);
}
/* STATS is 3 tiles — see _tools/data.js. If STATS ever changes length,
   change this repeat() count with it. */
.trust ul {
  display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 500px) { .trust ul { grid-template-columns: repeat(3, 1fr); } }
.trust li {
  background: var(--bg); padding: 1.35rem 1rem; text-align: center;
}
.trust__figure {
  display: block; font-family: var(--font-display); font-size: var(--step-2);
  color: var(--accent); line-height: 1; margin-bottom: 0.35rem;
}
.trust__label {
  display: block; font-size: var(--step--1); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ------------------------------------------------------- trust badges ---- */
/* NEW 2026-08-24. A second, separate row from .trust above: three short
   PHRASE badges (own wording — see _tools/data.js TRUST_BADGES), not the
   three SUPPLIED numeric stats. Kept visually distinct (pill row, not a
   bordered tile grid) so nobody reading the two sections mistakes one row's
   content for the other's source (numbers = SUPPLIED CONFIG; badges =
   DERIVED trade-standard claims, flagged in CONTENT_TO_CONFIRM.md). */
.trust-badges { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }
.trust-badges ul {
  display: grid; gap: 0.65rem; grid-template-columns: 1fr;
}
@media (min-width: 620px) { .trust-badges ul { grid-template-columns: repeat(3, 1fr); } }
.trust-badges li {
  display: flex; align-items: center; gap: 0.65rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.85rem 1.15rem;
  font-weight: 700; font-size: var(--step--1); color: var(--text);
}
.trust-badges li svg { color: var(--accent); flex: none; }

/* ---------------------------------------------------------------- card --- */
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.85rem);
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { border-color: var(--line-bright); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 0; }
.card p { color: var(--muted); flex: 1; }

.card--link { text-decoration: none; color: inherit; }
.card--link:hover { color: inherit; border-color: var(--accent); }
.card__more {
  font-weight: 700; color: var(--accent); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.card__media {
  margin: calc(-1 * clamp(1.25rem, 3vw, 1.85rem)) calc(-1 * clamp(1.25rem, 3vw, 1.85rem)) 0.35rem;
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
  background: var(--surface-2); aspect-ratio: 3 / 2;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__index {
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--line-bright); line-height: 1;
}

/* --- service cards (JSON-driven — public/data/services.json + js/services.js) */
/* .card--draft marks EVERY service card right now, because every entry in
   services.json is a placeholder. It is a purely visual reinforcement of what
   the card's own text already says (every name and price literally contains
   the word "PLACEHOLDER") — dashed instead of solid so a placeholder card
   never reads as a normal, confirmed one even at a glance. */
.card--draft { border-style: dashed; border-color: var(--line-bright); background: var(--surface); }
.card__flag {
  align-self: flex-start;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line-bright);
  border-radius: 999px; padding: 0.2rem 0.65rem;
}
.svc-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; }
.svc-card__price { font-family: var(--font-display); font-size: var(--step-1); color: var(--accent); }
.svc-card__duration { color: var(--muted); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; }

/* Loading / error states for the two JSON-fetched mounts. Distinct from each
   other on purpose — a fetch failure must never look like "nothing to show"
   (see feedback_silent_catch_hides_bugs / feedback_empty_state_reachable_on_error). */
.svc-loading { color: var(--muted); font-style: normal; }
.svc-error {
  border: 1px solid var(--line-bright); background: var(--surface);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; color: var(--text); max-width: 56ch;
}
.svc-error strong { display: block; margin-bottom: 0.35rem; }

/* --------------------------------------------------------------- steps --- */
.steps { counter-reset: step; display: grid; gap: clamp(0.9rem, 2.5vw, 1.4rem); }
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.35rem 1.35rem;
}
.steps li::before {
  content: '0' counter(step);
  display: block; font-family: var(--font-display); font-size: var(--step-2);
  color: var(--accent); line-height: 1; margin-bottom: 0.7rem;
}
.steps h3 { margin-bottom: 0.4rem; font-size: var(--step-0); letter-spacing: 0.04em; }
.steps p { color: var(--muted); font-size: 0.96rem; }

/* ---------------------------------------------------------- inclusions --- */
.inclusions {
  display: grid; gap: 0.65rem 1.5rem;
}
@media (min-width: 620px) { .inclusions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .inclusions { grid-template-columns: repeat(3, 1fr); } }
.inclusions li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.inclusions li svg { flex: none; margin-top: 0.28em; color: var(--accent); }

/* ------------------------------------------------------------ area map --- */
.area-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) { .area-grid { grid-template-columns: 1fr 1fr; } }

.suburbs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.suburbs li {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.42rem 0.95rem;
  font-size: 0.9rem; color: var(--muted);
}
.area-note {
  margin-top: 1.35rem; padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent); background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); font-size: 0.96rem;
}

/* --- radius section (NEW 2026-08-24, homepage — structural slot matching
   glossboss's "anywhere within Xkm" section position; SUPPLIED figure only,
   no suburb list, see _tools/data.js SITE.radiusKm). */
.radius-band { text-align: center; }
.radius-figure {
  display: block; font-family: var(--font-display); color: var(--accent);
  font-size: var(--step-4); line-height: 1; margin-bottom: 0.5rem;
}

/* ----------------------------------------------------------- CTA band ---- */
.cta-band {
  background:
    linear-gradient(135deg, var(--accent-tint), transparent 55%),
    var(--surface);
  border-block: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.9rem; }
.cta-band p { color: var(--muted); max-width: 48ch; margin: 0 auto 1.9rem; }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------- table --- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.95rem; }
caption { text-align: left; padding: 1rem 1.1rem; color: var(--muted); font-size: var(--step--1); }
th, td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--surface-2); color: var(--text);
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.09em;
  position: sticky; top: 0;
}
tbody th { font-weight: 700; color: var(--text); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.yes { color: var(--accent); font-weight: 700; }
td.no { color: var(--line-bright); }

/* ----------------------------------------------------------------- FAQ --- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; font-weight: 700; list-style: none;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--font-display); font-size: 1.5rem;
  color: var(--accent); line-height: 1; flex: none;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details > div { padding-bottom: 1.3rem; color: var(--muted); max-width: 68ch; }

/* ---------------------------------------------------------------- form --- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field > label { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-size: var(--step--1); color: var(--muted); }
.req { color: var(--accent); }

input[type='text'], input[type='tel'], input[type='email'], input[type='file'], select, textarea {
  width: 100%; padding: 0.85rem 1rem; min-height: 48px;
  background: var(--bg); border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm); color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #88919b; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] {
  border-color: #d92d20;
}
.field-error { color: #b42318; font-size: var(--step--1); min-height: 1px; }

.form-status { padding: 1rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid var(--line-bright); }
.form-status[data-state='ok'] { border-color: var(--accent); background: var(--accent-tint); }
.form-status[data-state='error'] { border-color: #d92d20; background: rgba(217, 45, 32, 0.06); }
/* 'pending' is deliberately NEUTRAL, not styled like 'ok'. "Sending…" must
   never look like "Sent" — the visitor should be able to tell them apart at
   a glance, not only by reading the words. */
.form-status[data-state='pending'] { border-color: var(--line-bright); background: var(--surface); }

/* Honeypot: removed from layout and from the accessibility tree without
   display:none (some bots skip display:none fields, which defeats the trap). */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------- admin page --- */
/* NEW 2026-08-25. #admin-login / #admin-editor are toggled by public/js/admin.js
   — one is always [hidden] via the native attribute, never CSS-only, so a
   fetch failure that leaves both un-toggled fails visibly (nothing renders)
   rather than showing the editor by default. */
.admin-row {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; background: var(--bg);
}
.admin-row__head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--line);
}
.admin-row__id {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--accent); font-size: var(--step-0);
}
.admin-row__updated { font-size: var(--step--1); color: var(--muted); }
.admin-row__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .admin-row__grid { grid-template-columns: 1fr 1fr 1fr; }
  .admin-row__grid .field:nth-child(4) { grid-column: 1 / -1; }
}
.admin-row__grid textarea { min-height: 80px; }
.admin-row__actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.admin-row__status { font-size: var(--step--1); font-weight: 700; }
.admin-row__status[data-state='ok'] { color: var(--accent); }
.admin-row__status[data-state='error'] { color: #b42318; }

/* -------------------------------------------------------- breadcrumbs ---- */
.crumbs { padding-block: 1rem 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--step--1); color: var(--muted); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 0.4rem; color: var(--line-bright); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* -------------------------------------------------------------- footer --- */
.site-footer {
  background: var(--bg-deep); border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
/* 2-column variant: footer's "Services" column was removed (no service names
   were ever supplied) so the footer now carries brand + one contact column. */
.footer-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid--2 { grid-template-columns: 1.4fr 1fr; } }
.site-footer h2 {
  font-size: var(--step--1); letter-spacing: 0.14em; color: var(--muted);
  margin-bottom: 0.9rem;
}
.site-footer ul { display: grid; gap: 0.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-brand p { color: var(--muted); margin-top: 0.9rem; max-width: 34ch; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.35rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  justify-content: space-between; color: var(--muted); font-size: var(--step--1);
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ------------------------------------------------- sticky mobile bar ----- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 56px; text-decoration: none; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem;
}
.mobile-bar a:first-child { background: var(--surface-2); color: var(--text); }
.mobile-bar a:last-child { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 900px) { .mobile-bar { display: none; } }
/* The bar's own height grows by env(safe-area-inset-bottom) on notched
   devices, so the body's reserve has to grow with it — a flat 56px leaves the
   last line of the footer under the bar on an iPhone with a home indicator.
   Measured clearance at the true page bottom with this rule: 23px at 390px
   wide with a zero inset, and it no longer goes negative when the inset is
   large. */
@media (max-width: 899px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* -------------------------------------------------- media placeholders --- */
/* Every .ph is a real <img> slot. Dimensions + alt text: /IMAGES_NEEDED.md   */
.ph { background: var(--surface-2); }

.media-frame {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface-2);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------- CSS scroll-driven reveals --- */
/* Progressive enhancement only: without support, content is simply visible.
   Deliberately animates ONLY transform, never opacity: a scroll-timeline
   animation is, by definition, caught mid-transition in any snapshot taken
   while an element is entering the viewport — a real user scrolling slowly,
   landing on an anchor link, or a Lighthouse a11y pass can all sample that
   exact moment. An opacity-based fade measured mid-flight IS a real,
   sub-threshold contrast ratio, not a testing artefact (found on
   services.html: 1.82:1 on a heading, well under WCAG AA). Sliding position
   carries no such risk at any animation progress, so the reveal keeps its
   effect without ever being able to fail contrast. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}
@keyframes reveal-in {
  from { transform: translateY(26px); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover, .card:hover { transform: none; }
}

/* ------------------------------------------------------------ 404 page --- */
.error-page { text-align: center; padding-block: clamp(4rem, 14vw, 9rem); }
.error-page .code {
  font-family: var(--font-display); font-size: clamp(5rem, 22vw, 12rem);
  line-height: 0.85; color: var(--accent); margin-bottom: 1rem;
}

/* -------------------------------------------------------------- print ---- */
@media print {
  .site-header, .mobile-bar, .cta-band, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}
