/* ===================================
   LOCAL-DESIGN BASE
   Design system: sharp corners, strong hierarchy, high contrast.
   Fill in --color-primary and --font-heading from intake + Stitch output.
   =================================== */

:root {
  /* Colors — Vacaville Custom Metal & Electric Gates (iron black + molten orange) */
  --color-primary: #111111;
  --color-primary-ink: #ffffff;
  --color-accent: #e2571e;          /* large text / buttons / icons only (3.74:1 on white) */
  --color-accent-ink: #b33f12;      /* small text on white — 5.78:1, WCAG AA */
  --color-accent-dark: #a83a10;
  --color-ink: #111111;
  --color-body: #333333;
  --color-muted: #5f5f5f;
  --color-line: #ded9d3;
  --color-bg: #f4f2ef;         /* the sheet */
  --color-bg-alt: #ffffff;     /* an alternating working band */
  --color-steel: #2b2b2b;
  --color-success: #15803d;
  --color-error: #b91c1c;

  /* Typography — trades/security register per typography-system.md */
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Scale */
  --fs-h1: clamp(1.875rem, 4.6vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3.5vw, 2.375rem);
  --fs-h3: clamp(1.1875rem, 2vw, 1.4375rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing (8px base) */
  --s-1: 0.5rem;  --s-2: 1rem;  --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 3rem;    --s-6: 4rem;  --s-7: 6rem;    --s-8: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 72px;

  /* NO rounded corners — design rule */
  --radius: 0;

  /* Shop-drawing system */
  --paper: #f4f2ef;            /* drawing field */
  --color-surface: #ffffff;    /* working surfaces only: forms, inputs, cards */
  --draw-line: #ded9d3;        /* hairline on light */
  --draw-line-dk: rgba(255,255,255,0.20);
  --draw-ink-dk: rgba(255,255,255,0.62);
  --accent-on-dark: #f3915c;   /* small text on iron — 6.5:1 over the hero overlay */
  --tick: 9px;                 /* dimension-line end tick */
  --fs-label: 0.6875rem;   /* tracked drawing label */
  --fs-xs: 0.8125rem;      /* captions, meta */
  --fs-sm: 0.9375rem;      /* small body */
  --fs-md: 1.0625rem;      /* card and row titles */
  --fs-lg: 1.125rem;       /* lead paragraphs */
  --fs-cta: 1.1875rem;     /* buttons: also the WCAG large-text floor */
  --fs-title: 1.375rem;    /* title-block heading */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  accent-color: var(--color-accent);
  scrollbar-color: var(--color-accent) var(--paper);
}
::selection { background: var(--color-accent); color: #fff; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 800; }
h4 { font-size: var(--fs-lg); font-weight: 700; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

/* The mandated H1 carries two registers: the brand clause is set as a
   drawing label, the descriptive clause as display. Same sentence, same
   DOM text — it simply stops reading as one undifferentiated keyword wall. */
.h1-brand {
  display: block;
  font-size: clamp(0.75rem, 1.5vw, 0.9375rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-on-dark);
  margin-bottom: var(--s-2);
  line-height: 1.3;
}
.h1-main { display: block; }

/* Drawing label. Annotates a field or a dimension — never sits above a
   heading as a kicker. */
.label {
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.label-accent { color: var(--color-accent-ink); }
.on-dark .label, .label-dark { color: var(--draw-ink-dk); }
.hero .label, .hero .dim { color: rgba(255,255,255,0.88); }
.hero .dim { margin-bottom: var(--s-4); }
@media (min-width: 768px) { .hero .dim { margin-bottom: 0; } }
.hero .dim__rule { background: rgba(255,255,255,0.34); }

/* Dimension line: |——— annotation ———| */
.dim {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--color-muted);
}
.dim::before, .dim::after {
  content: '';
  flex: none;
  width: 1px;
  height: var(--tick);
  background: var(--color-accent);
}
.dim__rule { flex: 1 1 auto; height: 1px; background: var(--draw-line); min-width: var(--s-2); }
.dim__text { flex: 0 1 auto; min-width: 0; }
.on-dark .dim { color: var(--draw-ink-dk); }
.on-dark .dim__rule { background: var(--draw-line-dk); }

/* Section head: title with the sheet rule running out to the margin. */
.head { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-3); }
.head > :first-child { flex: 0 1 auto; margin: 0; }
.head::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--draw-line); }
.on-dark .head::after { background: var(--draw-line-dk); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-3);
}
.container-narrow { max-width: var(--container-narrow); }

section { padding-block: var(--s-6); }
@media (min-width: 768px) { section { padding-block: var(--s-7); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 0.9375rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-cta);   /* 19px/800 = WCAG "large text": 3:1 floor, orange clears it */
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-ink); }
.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-secondary:hover { background: var(--color-ink); color: #fff; }
.btn-call {
  background: var(--color-ink);
  color: #fff;
  text-decoration: none;
}
.btn-call:hover { background: var(--color-accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  height: var(--header-h);
}
.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-header nav { display: none; gap: var(--s-3); }
.site-header nav a { text-decoration: none; font-weight: 600; }
.site-header nav a:hover { color: var(--color-accent-ink); }
/* ...but not the call button in the menu, whose fill is already dark orange.
   Without this the nav hover paints #b33f12 on #a83a10 at 1.1:1. */
.site-header nav a.nav-call:hover, .site-header nav a.nav-call:focus-visible { color: #fff; }
@media (min-width: 768px) { .site-header nav { display: flex; } }

.header-call { display: inline-flex; align-items: center; gap: var(--s-1); padding: 0.625rem 1rem; background: var(--color-ink); color: #fff; text-decoration: none; font-weight: 700; }
.header-call span { display: none; }
@media (min-width: 480px) { .header-call span { display: inline; } }

/* Hero */
.hero {
  background: var(--color-bg-alt);
  padding-block: var(--s-5);
}
@media (min-width: 768px) {
  .hero { padding-block: var(--s-6); }
  .hero .container { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: var(--s-5); align-items: start; }
  .hero .container > * { min-width: 0; }
}
.hero h1 { margin-bottom: var(--s-3); }
.hero .subhead { font-size: var(--fs-lg); color: var(--color-body); margin-bottom: var(--s-4); max-width: 54ch; }
.hero .trust-pill { display: inline-flex; align-items: center; gap: var(--s-1); padding: 0.5rem 1rem; background: var(--color-ink); color: #fff; font-weight: 700; font-size: var(--fs-sm); margin-bottom: var(--s-3); }

/* Spec list — the hero's claims as drawing annotations rather than a
   checkmark list. Label and value, hairline-ruled. */
.spec { margin: 0 0 var(--s-4); border-top: 1px solid var(--draw-line-dk); }
.spec > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.125rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--draw-line-dk);
}
.spec dt {
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-on-dark);
}
.spec dd { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: rgba(255,255,255,0.90); }
@media (min-width: 560px) {
  .spec > div { grid-template-columns: 9.5rem 1fr; gap: var(--s-2); align-items: baseline; }
}

/* The hero's own action, distinct from the title block's submit. */
.stamp {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 1rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-cta);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--color-accent);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.stamp:hover, .stamp:focus-visible { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
/* Phone order: statement, action, specification — the action must clear the
   fold. Desktop keeps document order: statement, specification, then action. */
.hero-copy { display: flex; flex-direction: column; }
.hero .hero-actions { margin-bottom: var(--s-4); }
@media (min-width: 768px) {
  .hero .hero-actions { order: 10; margin-bottom: 0; margin-top: var(--s-2); }
}
.stamp__n { font-variant-numeric: tabular-nums; }

/* Lead form card */
.lead-form {
  background: var(--color-surface);
  padding: var(--s-3);
  border: 1px solid var(--color-ink);
  box-shadow: none;
}
.hero .lead-form { box-shadow: none; }
/* Title block header: the ruled band a drawing carries its identity in. */
.lead-form .form-head {
  margin: calc(var(--s-3) * -1) calc(var(--s-3) * -1) var(--s-3);
  border-bottom: 1px solid var(--color-ink);
}
.lead-form .form-head h2 {
  font-size: var(--fs-title);
  margin: 0;
  padding: var(--s-3) var(--s-3) 0.625rem;
}
.lead-form .form-sub {
  margin: 0;
  padding: 0.625rem var(--s-3);
  border-top: 1px solid var(--draw-line);
  background: var(--paper);
  font-size: var(--fs-sm);
  color: var(--color-body);
}
/* Two paths out of the title block, both unmistakable. */
.form-foot { display: grid; gap: 0.625rem; margin-top: var(--s-3); }
.form-foot .btn { width: 100%; }
.lead-form .form-row { display: grid; gap: var(--s-2); margin-bottom: var(--s-2); }
.lead-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 0.375rem;
}
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-line);
  border-bottom-width: 2px;
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.15s var(--ease);
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--color-muted); }
.lead-form input:hover, .lead-form select:hover, .lead-form textarea:hover { border-color: var(--color-muted); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-ink);
}
.lead-form textarea { min-height: 100px; resize: vertical; }
.lead-form .btn { width: 100%; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form .form-note { font-size: var(--fs-xs); color: var(--color-muted); margin-top: var(--s-1); text-align: center; }

/* Trust strip — read as the dimensions written along the bottom of a sheet. */
.trust-bar {
  background: var(--paper);
  border-top: 1px solid var(--draw-line);
  color: var(--color-body);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--draw-line);
}
.trust-bar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .trust-bar ul { grid-template-columns: repeat(5, 1fr); } }
.trust-bar li {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.45;
  padding: 0.5rem var(--s-2);
  border-left: 1px solid var(--draw-line);
  color: var(--color-ink);
}
.trust-bar li:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 899px) {
  .trust-bar li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
.trust-bar li span { display: block; }

/* Services grid */
/* Drawn leader, replacing the arrow glyph that stood in for an icon.
   One rule and a filled square, the same device as the service index. */
.arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: var(--s-2);
  font-family: var(--font-heading); font-weight: 800;
  font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent-ink);
}
.arrow::after {
  content: ''; width: 1.75rem; height: 1px; background: var(--color-accent);
  position: relative;
}
a:hover .arrow::after, .arrow:hover::after { width: 2.5rem; }
.arrow { transition: color 0.18s var(--ease); }
.arrow::after { transition: width 0.18s var(--ease); }

/* ---- The visit: a stage track, not a card row. The numbers are earned
   because the sequence itself is the information the reader needs. ---- */
.visit { background: var(--paper); border-block: 1px solid var(--color-ink); }
.stages { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-ink); }
.stage { padding: var(--s-3) 0; border-bottom: 1px solid var(--draw-line); }
.stage__n {
  display: block;
  font-family: var(--font-heading); font-weight: 800;
  font-size: var(--fs-label); letter-spacing: 0.16em;
  color: var(--color-accent-ink); font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}
.stage__t { font-size: var(--fs-md); margin-bottom: 0.375rem; }
.stage__d { font-size: var(--fs-sm); color: var(--color-muted); margin: 0; }
@media (min-width: 900px) {
  .stages { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--draw-line); }
  .stage { border-bottom: 0; border-left: 1px solid var(--draw-line); padding: var(--s-3) var(--s-2); }
  .stage:first-child { border-left: 0; padding-left: 0; }
  .stage:last-child { padding-right: 0; }
}

/* ---- Gallery: the gates themselves, at a size where the infill reads.
   Deliberately uneven spans so it is a gallery, not a card grid. Each gate
   carries a material callout, the drawing annotation that names the stock. ---- */
.gallery { background: var(--paper); }
.gal { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
.gal__item { margin: 0; min-width: 0; }
.gal__plate { position: relative; }
.gal__img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--draw-line); }
.gal__item--tall .gal__img { aspect-ratio: 4 / 5; }

/* Dimension line across the pictured opening — the drawing's own annotation,
   applied to the photograph rather than tabulated beside it. */
.gal__dim {
  position: absolute; left: 7%; right: 7%; bottom: 16px;
  height: 1px; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
}
.gal__dim::before, .gal__dim::after {
  content: ''; position: absolute; top: -5px;
  width: 1px; height: 11px; background: var(--color-accent);
}
.gal__dim::before { left: 0; }
.gal__dim::after { right: 0; }
.gal__dimlabel {
  background: var(--color-ink); color: #fff;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.1875rem 0.5rem; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Leader line from plate into the annotation, ending in a filled square. */
.gal__cap { position: relative; padding-top: var(--s-3); }
.gal__cap::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 1px; height: var(--s-2); background: var(--color-accent);
}
.gal__cap::after {
  content: ''; position: absolute; left: -3px; top: var(--s-2);
  width: 7px; height: 7px; background: var(--color-accent);
}
.gal__t {
  font-size: var(--fs-md); margin: 0 0 0.625rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-ink);
}
.matcall { margin: 0; }
.matcall > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s-2); padding: 0.375rem 0; border-bottom: 1px solid var(--draw-line); }
.matcall > div:last-child { border-bottom: 0; }
.matcall dt {
  font-family: var(--font-heading); font-weight: 700;
  font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-muted);
}
.matcall dd { margin: 0; font-size: var(--fs-sm); color: var(--color-ink); }
.gal__note {
  margin-top: var(--s-4); padding-left: var(--s-2);
  border-left: 1px solid var(--color-accent);
  font-size: var(--fs-sm); color: var(--color-muted); max-width: 70ch;
}
@media (min-width: 1100px) {
  .gal { grid-template-columns: repeat(12, 1fr); gap: var(--s-5) var(--s-3); }
  .gal__item:nth-child(1) { grid-column: span 7; }
  .gal__item:nth-child(2) { grid-column: span 5; }
  .gal__item:nth-child(3) { grid-column: span 5; }
  .gal__item:nth-child(4) { grid-column: span 7; }
  .gal__item:nth-child(5) { grid-column: span 6; }
  .gal__item:nth-child(6) { grid-column: span 6; }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .gal { grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-3); }
}

/* Repair triage. The highest-intent visitor on the site is the one whose gate
   has stopped, so this sits directly under the hero rather than below the
   installation story. Same ruled-row language as the service index. */
.triage { background: var(--paper); border-bottom: 1px solid var(--color-ink); }
.idx--triage { border-top: 1px solid var(--color-ink); }
.idx--triage .idx__name { font-size: var(--fs-md); }
.triage__act {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  margin-top: var(--s-4);
}
.triage__act .dim { flex: 1 1 16rem; margin: 0; }
@media (max-width: 639px) { .triage__act .dim { flex-basis: 100%; } }

/* Service index — the drawing's sheet index. Rows, not cards: the whole
   catalogue is scannable at once instead of fifteen identical tiles. */
.idx { border-top: 1px solid var(--color-ink); }
.idx__group { border-bottom: 1px solid var(--draw-line); }
.idx__group:last-child { border-bottom: 0; }
.idx__cat {
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--color-accent-ink);
  margin: var(--s-3) 0 0;
}
.idx__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem var(--s-3);
  padding: var(--s-2) 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--draw-line);
  transition: background-color 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.idx__group .idx__row:last-child { border-bottom: 0; }
.idx__row:hover, .idx__row:focus-visible { background: var(--color-surface); padding-left: var(--s-2); }
.idx__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-md);
  line-height: 1.25;
  color: var(--color-ink);
}
.idx__row:hover .idx__name { color: var(--color-accent-ink); }
.idx__spec { font-size: var(--fs-sm); line-height: 1.5; color: var(--color-muted); }
/* Leader line ending in a filled square — drawn, not a glyph. */
.idx__go { display: none; position: relative; align-self: center; height: 1px; width: 2.5rem; background: var(--draw-line); }
.idx__go::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; background: var(--color-accent);
  transition: transform 0.18s var(--ease);
}
.idx__row:hover .idx__go { background: var(--color-accent); }
.idx__row:hover .idx__go::after { transform: translateX(3px); }
@media (min-width: 720px) {
  .idx__row { grid-template-columns: 19rem 1fr 2.5rem; align-items: baseline; }
  .idx__go { display: block; }
}
@media (min-width: 1024px) {
  .idx__row { grid-template-columns: 22rem 1fr 2.5rem; }
}

/* Social proof */
.reviews { background: var(--color-surface); }
.reviews-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--color-ink); }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: transparent; padding: var(--s-3) 0 0; border: 0; }
@media (min-width: 768px) {
  .review-card { padding: var(--s-3) var(--s-3) 0; border-left: 1px solid var(--draw-line); }
  .review-card:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 767px) {
  .review-card + .review-card { border-top: 1px solid var(--draw-line); margin-top: var(--s-3); }
}
.review-card .stars { color: var(--color-accent); font-size: var(--fs-sm); margin-bottom: var(--s-2); letter-spacing: 2px; }
.review-card blockquote { font-style: normal; margin: 0 0 var(--s-2); font-size: var(--fs-md); line-height: 1.6; }
.review-card cite {
  font-style: normal; display: block;
  font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-sm);
}
.review-card cite span {
  display: block; margin-top: 0.25rem;
  font-family: var(--font-heading); font-weight: 700;
  font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-muted);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--draw-line);
  padding-block: var(--s-3);
}
.faq details:first-of-type { border-top: 1px solid var(--color-ink); }
.faq summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-lg);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
/* Drawn toggle: a plus built from two rules, the vertical one rotating
   away on open. Not a glyph standing in for an icon. */
.faq summary::before, .faq summary::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px; height: 2px;
  background: var(--color-accent);
  transform: translateY(-50%);
  transition: transform 0.2s var(--ease);
}
.faq summary::after { transform: translateY(-50%) rotate(90deg); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.faq summary:hover { color: var(--color-accent-ink); }
.faq details p { margin-top: var(--s-2); }

/* Final CTA */
.cta-band {
  background: var(--color-ink);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: var(--s-2); }
.cta-band p { font-size: var(--fs-lg); margin-bottom: var(--s-3); }

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: #fff;
  padding-block: var(--s-5) var(--s-3);
  font-size: var(--fs-sm);
}
.site-footer a { color: #fff; }
.site-footer .footer-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer h4 { color: #fff; margin-bottom: var(--s-2); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer .footer-bottom {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
}

/* Keep the number intact where there is room; below ~400px the nowrap sets a
   min-content width wider than the screen and pushes the whole form past the
   viewport, so let it wrap and tighten the button padding instead. */
.nowrap-phone { white-space: nowrap; }
.lead-form { min-width: 0; }
@media (max-width: 400px) {
  .nowrap-phone { white-space: normal; }
  .lead-form .btn { padding-inline: 0.75rem; }
}

/* Touch targets. Padding expands the hit area and the matching negative
   margin keeps the rendered layout identical, so breadcrumbs and heading
   links clear the 44px floor without the rows growing. */
.breadcrumbs a {
  display: inline-block;
  padding-block: 0.8125rem;
  margin-block: -0.8125rem;
}
.city-block h3 a, .area-card h3 a {
  display: inline-block;
  padding-block: 0.8125rem;
  margin-block: -0.8125rem;
}

/* Touch targets: the header home link and the tool's reset control both sat
   under 44px tall on phones. */
.logo { min-height: 44px; }
.linkish {
  display: inline-flex; align-items: center;
  min-height: 44px;
}
@media (min-width: 768px) { .linkish { min-height: 0; } }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta a {
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-sm);
  font-family: var(--font-heading);
}
.mobile-cta .call { background: var(--color-ink); color: #fff; }
.mobile-cta .quote { background: var(--color-accent-dark); color: #fff; }
.mobile-cta a { font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* Breadcrumbs */
.breadcrumbs {
  padding-block: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-ink); }
.breadcrumbs span[aria-current] { color: var(--color-ink); font-weight: 600; }

/* Utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mb-3 { margin-bottom: var(--s-3); }

/* ===================================================================
   PROJECT COMPONENTS — Vacaville Custom Metal & Electric Gates
   =================================================================== */

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-accent-dark); color: #fff; padding: 0.75rem 1.25rem;
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Focus visibility (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Header refinements */
.site-header { border-bottom: 3px solid var(--color-ink); }
.site-header .logo { text-decoration: none; display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.logo-mark { flex: none; }
.logo-text { font-family: var(--font-heading); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--color-ink); }
.logo-text b { display: block; font-size: var(--fs-md); font-weight: 900; }
.logo-text span { display: block; font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--color-accent-ink); margin-top: 2px; }
@media (max-width: 400px) { .logo-text b { font-size: var(--fs-sm); } }

.site-header nav a { font-size: var(--fs-sm); }
.header-call {
  background: var(--color-accent-dark);  /* 15px white needs 4.5:1; bright orange gives 3.74 */
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-size: var(--fs-sm);
}
.header-call:hover { background: var(--color-ink); }
.header-call span { display: inline; }   /* number always visible — never icon-only */
@media (max-width: 380px) { .header-call { padding: 0.5rem 0.625rem; font-size: var(--fs-xs); } }

/* Above-hero review bar */
.review-bar {
  background: var(--color-ink);
  color: var(--draw-ink-dk);
  text-align: center;
  padding: 0.5rem var(--s-2);
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  line-height: 1.5;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--draw-line-dk);
}
.review-bar svg { width: 13px; height: 13px; fill: var(--color-accent); flex: none; }
.review-bar b { font-weight: 900; font-family: var(--font-heading); }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { fill: var(--color-accent); }

/* Hero */
.hero {
  background: var(--color-ink);
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(17,17,17,0.94) 0%, rgba(17,17,17,0.90) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 46px);
  padding-block: var(--s-5);
}
.hero h1 { color: #fff; }
.hero .subhead { color: rgba(255,255,255,0.86); font-size: var(--fs-md); }
.hero .trust-pill { background: var(--color-accent); color: #fff; }
.hero-bullets { list-style: none; padding: 0; margin: 0 0 var(--s-3); display: grid; gap: 0.625rem; }
.hero-bullets li { display: flex; align-items: flex-start; gap: 0.625rem; font-weight: 600; font-size: var(--fs-sm); color: rgba(255,255,255,0.94); }
.hero-bullets svg { flex: none; fill: var(--color-accent); margin-top: 2px; }
.hero .btn-secondary { color: #fff; border-color: #fff; }
.hero .btn-secondary:hover { background: #fff; color: var(--color-ink); }
/* ...but the quote form sits on white inside that dark hero. Without this,
   the form's call link renders white on white. */
.hero .lead-form .btn-secondary { color: var(--color-ink); border-color: var(--color-ink); }
.hero .lead-form .btn-secondary:hover { background: var(--color-ink); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (min-width: 768px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

/* Lead form */
.lead-form { border: 1px solid var(--color-accent); box-shadow: none; }
.lead-form .form-head { margin-bottom: var(--s-2); }
.lead-form h2 { font-size: var(--fs-title); margin-bottom: 0.25rem; }
.lead-form .form-sub { font-size: var(--fs-xs); color: var(--color-muted); }
.lead-form label { color: var(--color-ink); }
.lead-form .req { color: var(--color-accent-ink); }
.lead-form .btn { font-size: var(--fs-cta); padding-block: 1rem; }
.lead-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.25rem; }
.form-success { border: 3px solid var(--color-success); padding: var(--s-3); background: #fff; }
.form-success h3 { color: var(--color-success); margin-bottom: var(--s-1); }

/* Trust bar */
.trust-bar { background: var(--paper); color: var(--color-ink); border-bottom: 1px solid var(--draw-line); padding-block: var(--s-3); }
.trust-bar ul { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .trust-bar ul { grid-template-columns: repeat(5, 1fr); } }
.trust-bar li span { display: block; }

/* Section furniture */
.section-alt { background: var(--paper); border-block: 1px solid var(--draw-line); }
.section-dark { background: var(--color-ink); color: rgba(255,255,255,0.88); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { margin-bottom: var(--s-4); }
.section-head.center { max-width: 62ch; margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--s-2); color: var(--color-muted); font-size: var(--fs-md); max-width: 62ch; }
.section-dark .section-head p { color: rgba(255,255,255,0.75); }

/* The sheet rule: every section opens like a drawing sheet, the title
   followed by a hairline running out to the margin. This is the device
   that replaced the eyebrow label as the section marker. */
.section-head:not(.center) > h2 {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
}
.section-head:not(.center) > h2::after {
  content: '';
  flex: 1 1 auto;
  min-width: var(--s-4);
  height: 1px;
  background: var(--draw-line);
  transform: translateY(-0.3em);
}
.section-dark .section-head:not(.center) > h2::after,
.form-band .section-head:not(.center) > h2::after { background: var(--draw-line-dk); }
@media (max-width: 639px) {
  .section-head:not(.center) > h2 { display: block; }
  .section-head:not(.center) > h2::after { display: none; }
}

/* A lone middot on its own row is not a separator. */
@media (max-width: 639px) {
  .review-bar > span[aria-hidden="true"] { display: none; }
}
.overline { color: var(--color-accent-ink); display: block; margin-bottom: var(--s-1); }
.section-dark .overline, .cta-band .overline { color: var(--color-accent); }

/* Service cards */

/* Why Choose Us */
/* Revision row — the ruled change-record a drawing carries. Replaces the
   three-up metric cards the floor refuses. */
.rev { border-top: 1px solid var(--color-ink); }
.rev__row {
  display: grid; grid-template-columns: 1fr; gap: 0.375rem var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--draw-line);
}
.rev__row:last-child { border-bottom: 0; }
.rev__key {
  margin: 0;
  font-family: var(--font-heading); font-weight: 800;
  font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--color-accent-ink); font-variant-numeric: tabular-nums;
}
.rev__body > h3 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.rev__body > p { font-size: var(--fs-sm); margin: 0; max-width: 68ch; }
.section-dark .rev { border-top-color: var(--draw-line-dk); }
.section-dark .rev__row { border-bottom-color: var(--draw-line-dk); }
.section-dark .rev__key { color: var(--accent-on-dark); }
@media (min-width: 720px) { .rev__row { grid-template-columns: 11rem 1fr; } }


/* Deep-content blocks ("What types of...") */
.topic-grid { display: grid; gap: var(--s-4) var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
.topic { border-top: 1px solid var(--color-line); padding-top: var(--s-3); }
.topic h3 { margin-bottom: var(--s-2); }
.topic p { font-size: var(--fs-sm); }
.topic .datapoint {
  display: block; margin-top: var(--s-2); padding-left: var(--s-2);
  border-left: 1px solid var(--color-accent);
  font-size: var(--fs-sm); color: var(--color-ink); font-weight: 600;
}

/* Prose */
.prose > * + * { margin-top: var(--s-3); }
.prose h2 { margin-top: var(--s-5); }
.prose h3 { margin-top: var(--s-4); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--color-accent); font-weight: 700; }
.prose strong { color: var(--color-ink); }

/* Process steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--s-3); }
.steps li { counter-increment: step; padding-left: 3.5rem; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-heading); font-weight: 900; font-size: 1.5rem;
  color: var(--color-accent); line-height: 1;
}
.steps h3 { font-size: var(--fs-lg); margin-bottom: 0.375rem; }
.steps p { font-size: var(--fs-sm); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-line); }
table.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 620px; }
table.spec th, table.spec td { padding: 0.875rem 1rem; text-align: left; border-bottom: 1px solid var(--color-line); vertical-align: top; }
table.spec thead th { background: var(--color-ink); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; }
table.spec tbody tr:nth-child(even) { background: var(--color-bg-alt); }
table.spec th[scope="row"] { font-weight: 800; color: var(--color-ink); }

/* Callout */
.callout { border-left: 1px solid var(--color-accent); background: transparent; padding: 0 0 0 var(--s-3); }
.callout h3 { margin-bottom: var(--s-2); }
.callout p { font-size: var(--fs-sm); }

/* Mid-page form band */
.form-band { background: var(--color-ink); color: #fff; }
.form-band h2 { color: #fff; }
/* ...but not inside the quote form, which sits on white. Without this the
   title block's heading renders white-on-white and disappears. */
.form-band .lead-form h2,
.section-dark .lead-form h2,
.cta-band .lead-form h2 { color: var(--color-ink); }
.form-band .band-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .form-band .band-grid { grid-template-columns: 1fr 1fr; } }
.form-band p { color: rgba(255,255,255,0.82); }
.form-band .band-list { list-style: none; padding: 0; margin-top: var(--s-3); display: grid; gap: 0.625rem; }
.form-band .band-list li { display: flex; gap: 0.625rem; font-weight: 600; font-size: var(--fs-sm); }
.form-band .band-list svg { flex: none; fill: var(--color-accent); margin-top: 3px; }
.form-band .lead-form { color: var(--color-body); }

/* Reviews */
.reviews { background: var(--color-bg-alt); }
.review-card { border-width: 1px; border-top: 1px solid var(--color-accent); }
.review-card blockquote { font-style: normal; font-size: var(--fs-sm); }
.review-card blockquote::before { content: '\201C'; }
.review-card blockquote::after { content: '\201D'; }

/* City / area links */
.city-grid { display: grid; gap: 0 var(--s-4); grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; border-top: 1px solid var(--color-ink); }
.city-grid li { border-bottom: 1px solid var(--draw-line); }
@media (min-width: 768px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
.city-grid a {
  display: block; padding: 0.875rem var(--s-2) 0.875rem 0;
  background: transparent; border: 0;
  text-decoration: none; font-weight: 700; font-size: var(--fs-sm);
  color: var(--color-ink);
  transition: padding-left 0.18s var(--ease), color 0.18s var(--ease);
}
.city-grid a:hover, .city-grid a:focus-visible {
  background: transparent; color: var(--color-accent-ink); padding-left: var(--s-2);
}

/* Related links */
.related { display: grid; gap: 0; grid-template-columns: 1fr; margin-top: var(--s-3); border-top: 1px solid var(--color-ink); }
@media (min-width: 768px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a {
  display: flex; align-items: baseline; gap: var(--s-2);
  padding: 0.875rem 0; border-bottom: 1px solid var(--draw-line);
  text-decoration: none; font-weight: 700; font-size: var(--fs-sm);
  transition: padding-left 0.18s var(--ease), color 0.18s var(--ease);
}
.related a::before {
  content: ''; flex: none; width: 7px; height: 7px;
  background: var(--draw-line); transform: translateY(-1px);
}
.related a:hover { padding-left: var(--s-2); color: var(--color-accent-ink); }
.related a:hover::before { background: var(--color-accent); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary { font-size: var(--fs-md); }
.faq summary::after { color: var(--color-accent); font-weight: 700; }
.faq details p { font-size: var(--fs-sm); }

/* CTA band */
.cta-band { background: var(--color-ink); border-top: 1px solid var(--color-accent); }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { font-size: var(--fs-cta); }
.cta-band a { color: #fff; font-size: var(--fs-cta); }
/* The orange is the action here, exactly as it is in the hero — not the
   ground the action sits on. */
.cta-band .btn-primary { background: var(--color-accent); color: #fff; }
.cta-band .btn-primary:hover { background: var(--color-accent-dark); color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-accent); }
.site-footer h3 { color: var(--color-accent); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s-2); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer p, .site-footer li, .site-footer address { color: rgba(255,255,255,0.78); }
.footer-cols-2 { columns: 2; column-gap: var(--s-2); }
@media (max-width: 520px) { .footer-cols-2 { columns: 1; } }

/* Desktop floating call button */
/* Matches the header call button exactly, just pinned to the viewport. */
.fab-call {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  display: none; align-items: center; gap: var(--s-1);
  background: var(--color-accent-dark); color: #fff; text-decoration: none;
  font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-sm);
  letter-spacing: 0.01em; white-space: nowrap;
  padding: 0.75rem 1.125rem; border: 0;
}
.fab-call:hover { background: var(--color-ink); }
.fab-call svg { fill: currentColor; }
@media (min-width: 768px) { .fab-call { display: inline-flex; } }

/* Mobile sticky CTA */
.mobile-cta .call { background: var(--color-ink); }
.mobile-cta .quote { background: var(--color-accent-dark); }

/* Contact page */
.contact-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.nap-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.nap-list li { display: flex; gap: var(--s-2); }
.nap-list svg { flex: none; fill: var(--color-accent); margin-top: 3px; }
.nap-list b { display: block; font-family: var(--font-heading); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); margin-bottom: 2px; }
.nap-list a { font-weight: 700; text-decoration: none; }
.nap-list a:hover { text-decoration: underline; }

/* Page header (interior pages) */
.page-head { background: var(--color-ink); color: #fff; padding-block: var(--s-4) var(--s-5); }
.page-head h1 { color: #fff; }
.page-head .subhead { color: rgba(255,255,255,0.82); font-size: var(--fs-md); margin-top: var(--s-2); max-width: 60ch; }
.page-head .breadcrumbs { color: rgba(255,255,255,0.6); padding-top: 0; }
.page-head .breadcrumbs a { color: rgba(255,255,255,0.6); }
.page-head .breadcrumbs a:hover { color: #fff; }
.page-head .breadcrumbs span[aria-current] { color: #fff; }
.page-head .hero-actions { margin-top: var(--s-3); }
.page-head .btn-secondary { color: #fff; border-color: #fff; }
.page-head .btn-secondary:hover { background: #fff; color: var(--color-ink); }

/* Service page layout */
.svc-layout { display: grid; gap: var(--s-5); grid-template-columns: 1fr; align-items: start; }
/* Grid items default to min-width:auto, so the 620px spec table was forcing the whole
   column to 622px and giving every service, location and post page a horizontal
   scrollbar on mobile. min-width:0 lets .table-wrap scroll internally as intended. */
.svc-layout > * { min-width: 0; }
.prose { min-width: 0; }
.prose img, .prose figure { max-width: 100%; }
@media (min-width: 1024px) { .svc-layout { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); } }
.svc-aside { position: sticky; top: calc(var(--header-h) + var(--s-2)); display: grid; gap: var(--s-3); }
@media (max-width: 1023px) { .svc-aside { position: static; } }

/* Print-safe / reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===================== IMAGERY ===================== */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  z-index: -2;
  filter: grayscale(0.72) contrast(1.12) brightness(0.82);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Max lightness that still guarantees WCAG AAA for white text over ANY image
     content: at 0.68 alpha over pure white, the composite is #5D5D5D = 6.6:1. */
  background: linear-gradient(105deg, rgba(17,17,17,0.94) 0%, rgba(17,17,17,0.86) 46%, rgba(17,17,17,0.66) 100%);
}
.hero:has(.hero-media) { background-image: none; }

.page-head { position: relative; overflow: hidden; isolation: isolate; }
.page-head .hero-media { object-position: center 55%; }
.page-head:has(.hero-media)::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.74) 55%, rgba(17,17,17,0.62) 100%);
}

@media (max-width: 767px) {
  .hero::after, .page-head:has(.hero-media)::after {
    background: linear-gradient(180deg, rgba(17,17,17,0.82) 0%, rgba(17,17,17,0.72) 60%, rgba(17,17,17,0.64) 100%);
  }
}

/* Text over photography: the overlay alone already meets AA worst-case;
   this shadow is additional real-world legibility insurance. */
.hero:has(.hero-media) h1, .hero:has(.hero-media) .subhead,
.hero:has(.hero-media) .hero-bullets li,
.page-head:has(.hero-media) h1, .page-head:has(.hero-media) .subhead,
.page-head:has(.hero-media) .breadcrumbs {
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 0 1px rgba(0,0,0,0.4);
}

/* Figures in prose and sections */
figure.media { margin: 0; }
figure.media img { width: 100%; height: auto; border: 1px solid var(--color-line); }
figure.media figcaption {
  font-size: var(--fs-xs); color: var(--color-muted); padding-top: 0.625rem; line-height: 1.45;
}
.prose figure.media { margin-top: var(--s-4); }

/* Service card thumbnails */

/* Two-up media row */
.media-row { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .media-row { grid-template-columns: 1fr 1fr; } }

/* Split section: image beside copy */
.media-split { display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .media-split { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }

/* ===================== SERVICES HUB + SEMANTIC BLOCKS ===================== */
.cat-block { margin-top: var(--s-6); }
.cat-block:first-of-type { margin-top: var(--s-4); }
.cat-block h2 { border-left: 1px solid var(--color-accent); padding-left: var(--s-2); }
.cat-blurb { margin: var(--s-2) 0 var(--s-3); color: var(--color-muted); max-width: 68ch; }

.city-columns { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .city-columns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .city-columns { grid-template-columns: repeat(3, 1fr); } }
.city-block { background: var(--color-surface); border: 1px solid var(--draw-line); border-top: 1px solid var(--color-accent); padding: var(--s-3); }
.city-block h3 { font-size: var(--fs-lg); margin-bottom: 0.25rem; }
.city-block .city-meta { font-size: var(--fs-xs); color: var(--color-muted); margin-bottom: var(--s-2); }
.city-block ul { list-style: none; padding: 0; margin: 0; }
.city-block li { margin-bottom: 0.4375rem; font-size: var(--fs-sm); line-height: 1.35; }

/* Service -> is a type of -> Category */
.cat-line { font-size: var(--fs-sm); color: var(--color-muted); border-left: 1px solid var(--color-accent); padding-left: var(--s-2); }
.cat-line a { color: var(--color-accent-ink); font-weight: 600; }

/* Problem -> solved by -> Service */
.topic .solved-by { margin-top: var(--s-2); font-size: var(--fs-sm); font-weight: 600; }
.topic .solved-by a { color: var(--color-accent-ink); }

/* City -> has -> Services */
ul.city-services { list-style: none; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { ul.city-services { grid-template-columns: 1fr 1fr; } }
ul.city-services li { margin: 0; }
ul.city-services a {
  display: block; padding: 0.625rem 0 0.625rem var(--s-2);
  background: transparent; border-left: 1px solid var(--draw-line);
  text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
ul.city-services a:hover { border-left-color: var(--color-accent); color: var(--color-accent-ink); }

/* ===================== SERVICE AREAS ===================== */
.area-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
.area-card {
  display: block; padding: var(--s-3); background: var(--color-surface);
  border: 1px solid var(--color-line); border-top: 1px solid var(--color-accent);
  text-decoration: none; color: inherit;
}
.area-card:hover { background: var(--color-surface); border-color: var(--draw-line); border-top-color: var(--color-accent); }
.area-card h3 { margin-bottom: 0.25rem; }
.area-card .area-meta { font-size: var(--fs-xs); color: var(--color-muted); margin-bottom: var(--s-2); }
.area-card p { font-size: var(--fs-sm); }
.area-card .arrow { display: inline-block; margin-top: var(--s-2); font-weight: 800; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-accent-ink); }

.svc-lines { display: grid; gap: 0 var(--s-4); grid-template-columns: 1fr; border-top: 1px solid var(--color-ink); }
@media (min-width: 768px) { .svc-lines { grid-template-columns: 1fr 1fr; } }
.svc-line {
  display: block; padding: var(--s-3) 0;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--draw-line);
  text-decoration: none; color: inherit;
  transition: padding-left 0.18s var(--ease), background-color 0.18s var(--ease);
}
.svc-line:hover { background: var(--color-surface); padding-left: var(--s-2); }
.svc-line:hover h3, .svc-line:hover .arrow { color: var(--color-accent-ink); }
.svc-line h3 { font-size: var(--fs-md); margin-bottom: 0.375rem; }
.svc-line p { font-size: var(--fs-sm); color: var(--color-muted); }
.svc-line:hover p { color: var(--color-muted); }
.svc-line .arrow { display: inline-block; margin-top: var(--s-2); font-weight: 800; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-accent-ink); }
.city-block h3 a { text-decoration: none; }
.city-block h3 a:hover { color: var(--color-accent-ink); }

/* ===================== MOBILE PRIMARY NAV =====================
   Hamburger disclosure below 768px. Progressive enhancement: the `js` class is set
   on <html> before first paint, so with JavaScript the panel starts collapsed, and
   without it the nav simply renders as a visible stacked list rather than vanishing. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid var(--color-ink);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.625rem;
  cursor: pointer;
  min-height: 44px;
}
.nav-toggle-bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-call { display: none; }

@media (max-width: 767px) {
  .site-header { height: auto; }
  .site-header > .container {
    flex-wrap: wrap;
    padding-block: 0.5rem;
    gap: 0.5rem;
    align-items: center;
  }
  /* DOM order is logo, toggle, nav, call. Reorder visually so the phone sits beside
     the logo on row one and only the nav panel wraps below. */
  /* flex-basis 0 (not auto) so the logo yields space to the phone and toggle
     instead of claiming its full content width and forcing a wrap. */
  .site-header .logo { order: 1; flex: 1 1 0; min-width: 0; gap: 0.5rem; }
  .site-header .header-call { order: 2; }
  .nav-toggle { order: 3; }
  .site-header > .container { padding-inline: var(--s-2); }
  .site-header .logo-mark { width: 28px; height: 28px; }
  .logo-text b { font-size: var(--fs-sm); }
  .logo-text span { font-size: 0.5rem; letter-spacing: 0.09em; }

  .site-header .header-call { flex: 0 0 auto; padding: 0.5rem 0.625rem; font-size: var(--fs-xs); min-height: 44px; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; min-width: 44px; justify-content: center; }
  .nav-toggle-label { display: none; }

  /* JS present: collapsed by default, expands as a full-width panel */
  .js .site-header nav {
    display: none;
    order: 4;
    flex: 1 0 100%;
    flex-direction: column;
    gap: 0;
    margin-inline: calc(-1 * var(--s-3));
    padding-inline: var(--s-3);
    border-top: 1px solid var(--color-line);
  }
  .js .site-header nav.open { display: flex; }
  /* No JS: stacked and visible rather than unreachable */
  html:not(.js) .site-header nav {
    display: flex; order: 4; flex: 1 0 100%; flex-direction: column; gap: 0;
    margin-inline: calc(-1 * var(--s-3)); padding-inline: var(--s-3);
    border-top: 1px solid var(--color-line);
  }
  .site-header nav a {
    padding: 0.9375rem 0;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--color-line);
  }
  .site-header nav a:last-of-type { border-bottom: 0; }
  .nav-call {
    display: flex !important;
    align-items: center; justify-content: center; gap: 0.5rem;
    margin: 0.75rem 0 0.5rem;
    padding: 0.875rem 1rem !important;
    background: var(--color-accent-dark); color: #fff;  /* 16px white needs 4.5:1 */
    font-family: var(--font-heading); font-weight: 800;
    font-size: var(--fs-md);
    border-bottom: 0 !important;
  }
  .nav-call svg { fill: currentColor; }
  body.nav-open { overflow: hidden; }
}
/* Keep the phone NUMBER visible at iPhone widths: shed logo weight instead of the
   number, which is the primary conversion element in the header. */
@media (max-width: 430px) {
  .logo-text span { display: none; }
  /* Wrap to two short lines rather than truncating the brand name */
  .logo-text b { font-size: var(--fs-xs); line-height: 1.12; white-space: normal; }
  .site-header .logo-mark { width: 26px; height: 26px; }
  .site-header .header-call { padding: 0.5rem 0.5rem; font-size: 0.75rem; gap: 0.3125rem; }
  .nav-toggle { padding: 0.5rem 0.5rem; }
}
/* Only below ~340px does the number finally give way to the icon. */
@media (max-width: 339px) {
  .site-header .header-call span { display: none; }
}

/* Comfortable tap targets for pure-navigation lists on touch screens
   (inline prose links keep their natural inline size). */
@media (max-width: 767px) {
  .site-footer li { margin-bottom: 0; }
  .site-footer li a { display: inline-block; padding-block: 0.4375rem; }
  .footer-bottom { gap: var(--s-2); }
  .city-grid a, ul.city-services a { padding-block: 0.875rem; }
}

/* Long mandated H1s run to many lines on narrow screens. Tighten leading and trim
   hero padding so the first CTA is reachable without a long scroll. */
@media (max-width: 767px) {
  h1 { line-height: 1.06; letter-spacing: -0.025em; }
  .hero { padding-block: var(--s-4); }
  .page-head { padding-block: var(--s-3) var(--s-4); }
  .hero .subhead, .page-head .subhead { font-size: 1rem; }
  .hero-actions .btn, .page-head .btn { width: 100%; }
}

/* Honeypot: off-screen rather than display:none, since some bots skip hidden fields.
   Never shown to real visitors and removed from the tab order via tabindex="-1". */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ===================== ENGAGEMENT TOOLS ===================== */
.tool { background: var(--color-bg-alt); border-top: 1px solid var(--color-accent); }
.tool h2 { margin-bottom: var(--s-2); }
.tool-intro { color: var(--color-muted); max-width: 62ch; margin-bottom: var(--s-4); }
.tool-form { background: #fff; border: 1px solid var(--color-line); padding: var(--s-3); }
.tool-progress {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent-ink);
  margin-bottom: var(--s-2); min-height: 1rem;
}
.tool-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.tool-step fieldset { border: 0; padding: 0; margin: 0; }
.tool-step legend {
  font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-md);
  color: var(--color-ink); margin-bottom: var(--s-2); display: flex; gap: 0.625rem; align-items: baseline;
}
.step-num {
  flex: none; width: 1.5rem; height: 1.5rem; background: var(--color-ink); color: #fff;
  font-size: var(--fs-xs); display: inline-flex; align-items: center; justify-content: center;
}
.opts { display: grid; gap: 0.5rem; }
.opt { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--color-line); padding: 0.875rem 1rem; background: #fff; min-height: 48px; }
.opt:hover { border-color: var(--color-ink); background: var(--color-bg-alt); }
.opt input { flex: none; margin-top: 0.1875rem; width: 1.125rem; height: 1.125rem; accent-color: var(--color-accent); }
.opt input:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.opt:has(input:checked) { border-color: var(--color-accent); border-left-width: 1px; background: #fff; }
.opt-text { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.opt-note { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--color-muted); margin-top: 2px; }

.tool-result { margin-top: var(--s-4); padding: var(--s-3); border: 2px solid var(--color-ink);
  background: var(--color-bg-alt); }
.tool-result.urgent { border-color: var(--color-accent); }
.tool-verdict-label { font-family: var(--font-heading); font-size: var(--fs-label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent-ink); margin-bottom: 0.25rem; }
.tool-result h3 { margin-bottom: var(--s-2); }
.tool-result p { font-size: var(--fs-sm); }
.tool-notes { margin: var(--s-2) 0 0; padding-left: 1.25rem; }
.tool-notes li { font-size: var(--fs-sm); margin-bottom: 0.4375rem; }
.tool-notes li::marker { color: var(--color-accent); }
.tool-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.tool-caveat { font-size: var(--fs-xs); color: var(--color-muted); margin-top: var(--s-2); }
.tool-extra { font-weight: 700; color: var(--color-accent-ink); }
.tool-safety { font-size: var(--fs-sm); margin-top: var(--s-3); border-left: 1px solid var(--color-accent);
  padding-left: var(--s-2); }
.tool-reset { margin-top: var(--s-3); }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-sm);
  color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--color-ink); }

/* Only hide the fallback note once the script has actually wired the tool up */
.tool-fallback { font-size: var(--fs-xs); color: var(--color-muted); margin-top: var(--s-3); }
.js-tool ~ .tool-fallback { display: none; }

@media (max-width: 767px) {
  .tool-form { padding: var(--s-2); }
  /* width:100% loses to flex sizing here; flex-basis is what actually stretches them */
  .tool-actions { flex-direction: column; }
  .tool-actions .btn { flex: 1 0 auto; width: 100%; }
}

/* Turnstile widget sits above the submit button inside each lead form. */
.cf-turnstile { margin-bottom: var(--s-2); min-height: 65px; }
.cf-turnstile:empty { min-height: 0; }

/* Shown when Turnstile has not produced a token. Without this the form posts an empty
   token, Un-static rejects it, and the enquiry is lost with no feedback to anyone. */
.ts-warning {
  border-left: 4px solid var(--color-error);
  background: #fff;
  padding: 0.75rem 0.875rem;
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-error);
}
.ts-warning a { color: var(--color-error); font-weight: 800; }
