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

:root {
  /* Colors — OVERRIDE from intake */
  --color-primary: #1a1a1a;
  --color-primary-ink: #ffffff;
  --color-accent: #e63946;
  --color-ink: #0a0a0a;
  --color-body: #333333;
  --color-muted: #6b6b6b;
  --color-line: #e5e5e5;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-success: #16a34a;
  --color-error: #dc2626;

  /* Typography — OVERRIDE from typography-system.md */
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Scale */
  --fs-h1: clamp(2.5rem, 5vw, 4rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --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: 800px;
  --header-h: 72px;

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

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
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: 1.125rem; font-weight: 700; }

.overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-accent);
}

/* 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.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  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-bg);
  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); }
/* Nav breakpoint is 1024px, not the 768px the rest of the layout uses.
   Six items plus the logo and the call button do not fit below that:
   at 900px Contact slid under the phone button and at 768px the logo
   was overlapped and two items wrapped to a second line. Tablet widths
   get the hamburger, which scrolls. */
@media (min-width: 1024px) { .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; } }


/* Lead form card */
.lead-form {
  background: var(--color-bg);
  padding: var(--s-3);
  border: 2px solid var(--color-ink);
}
.lead-form h2 { font-size: 1.5rem; margin-bottom: var(--s-2); }
.lead-form .form-row { display: grid; gap: var(--s-2); margin-bottom: var(--s-2); }
.lead-form label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-line);
  background: #fff;
  font-size: 1rem;
}
.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: 0.8125rem; color: var(--color-muted); margin-top: var(--s-1); text-align: center; }

/* Trust bar */
.trust-bar { background: var(--color-ink); color: #fff; padding-block: var(--s-3); }
.trust-bar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
  text-align: center;
}
@media (min-width: 768px) { .trust-bar ul { grid-template-columns: repeat(5, 1fr); } }
.trust-bar li { font-weight: 700; font-size: 0.9375rem; }
.trust-bar li span { display: block; font-size: 1.25rem; color: var(--color-accent); margin-bottom: 0.25rem; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  display: block;
  padding: var(--s-3);
  background: var(--color-bg);
  border: 2px solid var(--color-line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.service-card:hover { border-color: var(--color-ink); background: var(--color-bg-alt); }
.service-card h3 { margin-bottom: var(--s-1); }
.service-card .arrow { display: inline-block; margin-top: var(--s-2); font-weight: 800; color: var(--color-accent); }

/* Social proof */
.reviews { background: var(--color-bg-alt); }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: #fff; padding: var(--s-3); border: 2px solid var(--color-line); }
.review-card .stars { color: #f59e0b; font-size: 1.125rem; margin-bottom: var(--s-1); letter-spacing: 2px; }
.review-card blockquote { font-style: italic; margin-bottom: var(--s-2); }
.review-card cite { font-style: normal; font-weight: 700; display: block; }
.review-card cite span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--color-muted); }

/* FAQ */
.faq details {
  border-bottom: 2px solid var(--color-line);
  padding-block: var(--s-2);
}
.faq summary {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: var(--color-accent);
}
.faq details[open] summary::after { content: '−'; }
.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: 1.125rem; margin-bottom: var(--s-3); }

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: #fff;
  padding-block: var(--s-5) var(--s-3);
  font-size: 0.9375rem;
}
.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: 0.8125rem;
  color: rgba(255,255,255,0.7);
}

/* 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: none;
}
.mobile-cta.visible { transform: none; }
.mobile-cta a {
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9375rem;
  font-family: var(--font-heading);
}
.mobile-cta .call { background: var(--color-ink); color: #fff; }
.mobile-cta .quote { background: var(--color-accent); color: #fff; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* Breadcrumbs */
.breadcrumbs {
  padding-block: var(--s-2);
  font-size: 0.875rem;
  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); }

/* ===================================================================
   CAMARILLO CUSTOM CABINETS — brand layer
   Overrides + components added on top of the local-design base.
   Palette: charcoal + burnt orange. Sharp corners retained throughout.
   Contrast audited: accent #C2410C on white = 5.18:1 (AA normal text),
   white on accent = 5.18:1, muted #6B6B73 on #F7F5F2 = 4.7:1 (AA).
   Accent is never used as text on the dark ink background; the lighter
   --color-accent-hi (#FB923C, 8.1:1 on ink) is used there instead.
   =================================================================== */

:root {
  --color-primary: #16161A;
  --color-primary-ink: #ffffff;
  --color-accent: #C2410C;
  --color-accent-deep: #9A3412;
  --color-accent-hi: #FB923C;
  --color-ink: #16161A;
  --color-ink-soft: #24242B;
  --color-body: #35353D;
  --color-muted: #5F5F67;
  --color-line: #D9D3CA;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F5F2;
  --color-bg-warm: #EFEBE5;

  --font-heading: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Sofia Sans', system-ui, -apple-system, sans-serif;

  --header-h: 68px;
  --announce-h: 40px;
}

h1, h2, h3, h4 { letter-spacing: -0.015em; }
h2 { margin-bottom: var(--s-2); }
p + p { margin-top: var(--s-2); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.section-alt { background: var(--color-bg-alt); }
.section-warm { background: var(--color-bg-warm); }
.section-head { max-width: 60ch; margin-bottom: var(--s-4); }
.section-head.center { margin-inline: auto; text-align: center; }
.lede { font-size: 1.125rem; color: var(--color-body); }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: var(--announce-h);
  display: flex;
  align-items: center;
}
.announcement-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-1) var(--s-3);
  text-align: center;
  padding-block: 0.5rem;
}
.announcement-bar strong { font-weight: 800; }

/* ---------- Header ---------- */
.site-header { border-bottom: 2px solid var(--color-ink); }
.site-header .logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-header nav a { font-size: 0.9375rem; letter-spacing: 0.01em; }
.site-header nav a[aria-current="page"] { color: var(--color-accent); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--color-ink);
  color: var(--color-ink);
  cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Just over the breakpoint the six items cleared the call button by 3px,
   which is not a margin, it is a coincidence. Tightening the gap and the type
   a little between 1024 and 1200 turns that into real space. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header nav { gap: var(--s-2); }
  .site-header nav a,
  .site-header .nav-group-label { font-size: 0.875rem; }
}

#primary-nav.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-ink);
  padding: var(--s-2) var(--s-3);
}
#primary-nav.open a { padding-block: 0.75rem; border-bottom: 1px solid var(--color-line); }
.site-header > .container { position: relative; }

.header-call {
  border: 2px solid var(--color-ink);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.header-call span { display: inline; }


/* ---------- Lead form ---------- */
/* Explicit color: the form card sits inside .hero and .cta-form-band, both of
   which set color:#fff. Without this reset the label text renders white on the
   white card and disappears. */
.lead-form { border-color: var(--color-accent); box-shadow: none; color: var(--color-body); }
.lead-form label { color: var(--color-ink); }
.lead-form .form-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}
.lead-form h2 { font-size: 1.375rem; line-height: 1.15; }
.lead-form .form-sub { font-size: 0.875rem; color: var(--color-muted); margin-bottom: var(--s-2); }
.lead-form .req { color: var(--color-accent); }
.lead-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-ink) 50%), linear-gradient(135deg, var(--color-ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.form-error { color: var(--color-error); margin-bottom: var(--s-2); font-weight: 600; font-size: 0.9375rem; }
.form-error a { color: var(--color-error); font-weight: 800; }
.form-success { background: var(--color-bg); border: 2px solid var(--color-success); padding: var(--s-3); }
.form-success h3 { color: var(--color-success); margin-bottom: var(--s-1); }
.form-success-alt { font-size: 0.9375rem; color: var(--color-muted); margin-top: var(--s-2); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-ink-soft); border-block: 2px solid var(--color-accent); }
.trust-bar li span { color: var(--color-accent-hi); }
.trust-bar li strong { display: block; font-size: 1.0625rem; }
.trust-bar li em { display: block; font-style: normal; font-weight: 400; font-size: 0.8125rem; color: rgba(255,255,255,0.72); }

/* ---------- Services grid ---------- */
.service-card { border-color: var(--color-line); }
.service-card:hover { border-color: var(--color-accent); background: #fff; }
.service-card .service-icon { color: var(--color-accent); margin-bottom: var(--s-2); }
.service-card p { font-size: 0.9375rem; }
.service-card .arrow { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { padding: var(--s-3); }
.why-card h3 { margin-bottom: var(--s-2); font-size: 1.1875rem; }
.why-card p { font-size: 0.9375rem; }

/* ---------- Stat chip ---------- */
.stat-chip {
  display: inline-block;
  margin-top: var(--s-2);
  padding: 0.375rem 0.75rem;
  background: var(--color-bg-warm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink);
}

/* ---------- Depth content sections ---------- */
.depth-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .depth-grid { grid-template-columns: repeat(2, 1fr); } }
.depth-item { padding: var(--s-3); background: #fff; border: 1px solid var(--color-line); }
.depth-item h3 { margin-bottom: var(--s-1); font-size: 1.125rem; }
.depth-item p { font-size: 0.9375rem; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--s-5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-3); margin-bottom: var(--s-1); }
.prose ul, .prose ol { margin: var(--s-2) 0; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--color-accent-deep); font-weight: 600; }

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { counter-increment: step; padding-left: 3.25rem; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.125rem;
}
.steps h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.steps p { font-size: 0.9375rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-block: var(--s-3); border: 2px solid var(--color-ink); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
table.data caption { text-align: left; padding: var(--s-2); font-weight: 700; background: var(--color-bg-warm); border-bottom: 2px solid var(--color-ink); }
table.data th, table.data td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--color-line); vertical-align: top; }
table.data thead th { background: var(--color-ink); color: #fff; font-family: var(--font-heading); font-weight: 800; }
table.data tbody tr:nth-child(even) { background: var(--color-bg-alt); }
table.data td strong { color: var(--color-ink); }

/* ---------- Callout band (dark, accent-ruled) ---------- */
.callout-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-3);
  background: var(--color-ink);
  color: #fff;
  margin-block: var(--s-3);
}
.callout-band p { margin: 0; }
.callout-band strong { color: var(--color-accent-hi); display: block; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 800; }
/* margin-left:auto parks the button at the end of the row, which is right
   while the text and the button share a line. Once the band wraps, the same
   rule strands it off-centre: 40px of space on its left and 24px on its right
   at 375px. Below the wrap it becomes a full-width button instead, which is
   what every other call to action on a phone does here. */
.callout-band .btn { margin-left: auto; }
@media (max-width: 640px) {
  .callout-band .btn { margin-left: 0; flex: 1 0 100%; }
}

/* ---------- Mid-page CTA form band ---------- */
.cta-form-band { background: var(--color-ink); color: #fff; }
.cta-form-band h2 { color: #fff; }
.cta-form-band .lede { color: rgba(255,255,255,0.85); }
.cta-form-band .band-grid { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 900px) { .cta-form-band .band-grid { grid-template-columns: 1fr 1fr; } }
.cta-form-band .band-points { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: 0.625rem; }
.cta-form-band .band-points li { display: flex; gap: 0.5rem; font-size: 0.9375rem; color: rgba(255,255,255,0.9); }
.cta-form-band .band-points svg { flex: none; margin-top: 3px; color: var(--color-accent-hi); }

/* ---------- Trust / credential callouts (replaces review grid) ---------- */
.credential-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .credential-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .credential-grid { grid-template-columns: repeat(4, 1fr); } }
.credential-card { background: #fff; border: 2px solid var(--color-line); padding: var(--s-3); }
.credential-card .credential-icon { color: var(--color-accent); margin-bottom: var(--s-2); }
.credential-card h3 { font-size: 1.0625rem; margin-bottom: var(--s-1); }
.credential-card p { font-size: 0.875rem; color: var(--color-body); }

/* ---------- Service area ---------- */
.area-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .area-list { grid-template-columns: repeat(4, 1fr); } }
.area-list li { font-weight: 600; font-size: 0.9375rem; }
.area-list a { text-decoration: none; }
.area-list a:hover { color: var(--color-accent-deep); text-decoration: underline; }

.city-links { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.city-links a {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border: 2px solid var(--color-line);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  background: #fff;
}
.city-links a:hover { border-color: var(--color-accent); color: var(--color-accent-deep); }

/* ---------- Related services ---------- */
.related-grid { display: grid; gap: var(--s-2); grid-template-columns: 1fr; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { display: block; padding: var(--s-2) var(--s-3); border: 2px solid var(--color-line); text-decoration: none; color: inherit; font-weight: 600; }
.related-card:hover { border-color: var(--color-accent); }
.related-card span { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--color-muted); margin-top: 0.25rem; }

/* ---------- Final CTA band ---------- */
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }

/* ---------- Footer ---------- */
.site-footer a { text-decoration: none; color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-nap { margin-top: var(--s-2); font-style: normal; line-height: 1.7; color: rgba(255,255,255,0.82); }
.site-footer .footer-nap strong { color: #fff; }
.site-footer .footer-tag { color: rgba(255,255,255,0.72); margin-top: var(--s-2); font-size: 0.875rem; max-width: 40ch; }

/* ---------- Mobile CTA + FAB ---------- */
.mobile-cta .call { background: var(--color-accent); }
.mobile-cta .quote { background: var(--color-ink); }
.mobile-cta a { border-top: 2px solid #fff; }

.call-fab {
  position: fixed;
  right: var(--s-3);
  bottom: var(--s-3);
  z-index: 90;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background-color 0.15s;
}
.call-fab:hover { background: var(--color-ink); }
.call-fab.visible { opacity: 1; transform: translateY(0); }
@media (min-width: 768px) { .call-fab { display: inline-flex; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--color-line); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Contact / hours ---------- */
.contact-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.hours-table { width: 100%; border-collapse: collapse; margin-top: var(--s-2); }
.hours-table th, .hours-table td { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid var(--color-line); font-size: 0.9375rem; }
.hours-table th { font-weight: 600; }
.hours-table td { text-align: right; color: var(--color-body); }

.map-frame { width: 100%; height: 340px; border: 2px solid var(--color-ink); margin-top: var(--s-3); }

/* ---------- Print ---------- */
@media print {
  .announcement-bar, .mobile-cta, .call-fab, .site-header, .cta-band { display: none !important; }
}

/* ===================================================================
   MOBILE REFINEMENTS
   At 375px the header's three items (logo 124 + toggle 33 + call 170)
   plus 48px of gutter added up to exactly 375px, so space-between had
   nothing left to distribute and they sat flush against each other.
   The nav toggle was also being squeezed to 33px, under the 44px
   minimum touch target. Fixed by tightening the gutter, giving the
   header a real gap, and pinning the toggle's size.
   =================================================================== */

@media (max-width: 767px) {
  /* 16px gutter buys 16px of breathing room back for the header row */
  .container { padding-inline: 1rem; }

  /* Announcement bar was 107px tall, 13% of an iPhone viewport, before
     the header even began. */
  .announcement-bar { font-size: 0.75rem; line-height: 1.35; }
  .announcement-bar .container {
    gap: 0.25rem;
    padding-block: 0.5rem;
    text-align: center;
  }

  .site-header > .container { gap: 0.625rem; }

  /* The logo is the only element allowed to shrink. */
  .site-header .logo { flex: 0 1 auto; min-width: 0; }
  .site-header .logo img { width: auto; max-width: 130px; height: auto; }

  /* Call button sits before the menu button so the phone number stays
     the most prominent control and both land under the thumb. */
  .header-call {
    order: 2;
    flex: none;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
  }

  .nav-toggle {
    order: 3;
    flex: none;
    width: 44px;
    height: 44px;
  }

  /* Trust bar stacked 2-up ran to 432px. */
  .trust-bar { padding-block: var(--s-2); }
  .trust-bar ul { gap: var(--s-2) var(--s-1); }
  .trust-bar li { font-size: 0.875rem; }
  .trust-bar li strong { font-size: 0.9375rem; }
  .trust-bar li span { font-size: 1rem; margin-bottom: 0.125rem; }

  /* Full-width tap targets for the primary actions */
  .cta-band .cta-actions .btn { width: 100%; }

  /* The sticky call bar is on screen from load, so reserve its height at the
     bottom of the page; otherwise it covers the end of the footer. */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* Narrow phones: drop the secondary announcement line and tighten
   the call button so the logo keeps a usable size. */
@media (max-width: 400px) {
  .header-call { font-size: 0.875rem; padding: 0.5rem 0.625rem; }
  .site-header .logo img { max-width: 112px; }
}

/* ===================================================================
   BUTTON CONTRAST INSIDE PROSE
   `.prose a` has specificity (0,1,1) and was beating `.btn-primary`
   (0,1,0), so the callout band's button label rendered in
   #9A3412 on a #C2410C background: 1.41:1, effectively unreadable.
   Buttons must keep their own colour wherever they appear.
   =================================================================== */
.prose a.btn,
.callout-band a.btn,
.cta-band a.btn {
  text-decoration: none;
  font-weight: 800;
}

.prose a.btn-primary,
.callout-band a.btn-primary,
.cta-band a.btn-primary,
.prose a.btn-call {
  color: #fff;                 /* 5.18:1 on the accent */
}

.prose a.btn-primary:hover,
.callout-band a.btn-primary:hover {
  color: #fff;
  background: var(--color-ink);
}

.prose a.btn-secondary {
  color: var(--color-ink);
}


/* ===================================================================
   IMAGE BUCKETS
   Slots defined in build/images.py. An empty slot renders nothing, so
   these rules only ever apply to images that actually exist.
   =================================================================== */
.media {
  margin: var(--s-4) 0;
}
.media img { width: 100%; }
.media figcaption {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
  padding-left: 0.625rem;
}
.prose .media { margin-inline: 0; }

/* Side-by-side copy and image */
.media-split {
  display: grid;
  gap: var(--s-4);
  align-items: center;
}
@media (min-width: 900px) {
  .media-split { grid-template-columns: 1.05fr 0.95fr; }
  .media-split.reverse > *:first-child { order: 2; }
}
.media-split .media { margin: 0; }

.gallery-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  margin: 0;
  background: #fff;
  border: 2px solid var(--color-line);
}
.gallery-item img { width: 100%; }
.gallery-item figcaption {
  padding: var(--s-2);
  font-size: 0.875rem;
  color: var(--color-body);
  border-top: 2px solid var(--color-line);
}

/* Service card thumbnails */
.service-card .card-media { margin: calc(var(--s-3) * -1) calc(var(--s-3) * -1) var(--s-3); }
.service-card .card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ===================================================================
   NAV DROPDOWNS
   Desktop uses hover plus :focus-within so keyboard works without JS.
   Mobile shows the sublinks inline inside the already-open nav panel.
   =================================================================== */
.nav-group { position: relative; }
.nav-group-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}
.nav-group-label:hover { color: var(--color-accent); }

.nav-sub { display: none; }

@media (min-width: 1024px) {
  .site-header nav { align-items: center; }
  .nav-sub {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    background: var(--color-bg);
    border: 2px solid var(--color-ink);
    padding: 0.5rem 0;
    z-index: 60;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    /* A dropdown must never run past the bottom of the window. The Services
       panel measured 901px against an 820px laptop viewport, which put the
       last four rows out of reach with nothing to scroll. The grid below
       keeps it short enough that this rarely engages; it is here so that a
       short window, or a future service, cannot make items unreachable
       again. overscroll-behavior stops the page scrolling underneath once
       the menu hits its end. */
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Services carries 14 items across 5 groups. Two balanced columns bring it
     from 20 rows to 10, which fits any laptop without scrolling. */
  /* NO `display` here. `.nav-sub { display: none }` is what keeps the panel
     hidden at rest, and this selector has equal specificity but comes later,
     so declaring display:grid on it overrode that and left the Services panel
     permanently rendered over the page, eating every click beneath it. The
     grid is applied only by the :hover / :focus-within rule above. */
  .nav-sub-wide {
    grid-template-columns: repeat(2, minmax(212px, 1fr));
    column-gap: 0.25rem;
    align-items: start;
  }
  .nav-sub-wide .nav-col { min-width: 0; }
  /* The first heading in each column is flush; later ones keep their rule. */
  .nav-sub-wide .nav-col > .nav-sub-group:first-child {
    margin-top: 0;
    border-top: 0;
    padding-top: 0.5rem;
  }
  .nav-sub-wide .nav-sub-all {
    grid-column: 1 / -1;
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .nav-group:hover .nav-sub,
  .nav-group:focus-within .nav-sub { display: block; }
  /* The rule above is what actually reveals a panel, so it has to restore the
     grid for the wide one. Without this it sets display:block on hover and
     silently collapses the Services menu back to a single tall column. */
  .nav-group:hover .nav-sub-wide,
  .nav-group:focus-within .nav-sub-wide { display: grid; }
  /* Bridges the gap between label and panel so the menu does not
     close as the pointer travels down to it. */
  .nav-group::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
  }
  .nav-sub a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
  }
  .nav-sub a:hover { background: var(--color-bg-alt); color: var(--color-accent-deep); }
  .nav-sub .nav-sub-all {
    margin-top: 0.375rem;
    border-top: 1px solid var(--color-line);
    font-weight: 700;
    color: var(--color-accent-deep);
  }
}

@media (max-width: 1023px) {
  /* The open mobile menu is a scroll container.
     It holds 31 links across two expanded groups and measured 1648px against
     an 812px phone viewport. The header is position:sticky, so scrolling the
     page does NOT bring the lower half into reach: it stays pinned and 19
     links sit permanently off-screen. The menu has to scroll itself.
     dvh rather than vh so the mobile browser's collapsing address bar does not
     leave the last item under the chrome; vh first as the fallback. */
  #primary-nav.open {
    /* 7.75rem = the announcement bar plus the header row. The menu opens
       124px down the screen when the page is at the top, and 66px down once
       the bar has scrolled away and the header pins, so this is sized for the
       taller of the two states. */
    max-height: calc(100vh - 7.75rem);
    max-height: calc(100dvh - 7.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #primary-nav.open .nav-group { display: block; }
  #primary-nav.open .nav-group-label {
    display: flex;
    justify-content: space-between;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--color-line);
    font-weight: 700;
  }
  #primary-nav.open .nav-group-label svg { display: none; }
  #primary-nav.open .nav-sub { display: block; padding-left: 0.75rem; }
  #primary-nav.open .nav-sub a {
    display: block;
    padding-block: 0.625rem;
    border-bottom: 1px solid var(--color-line);
    font-size: 0.9375rem;
    color: var(--color-body);
    text-decoration: none;
  }
  #primary-nav.open .nav-sub .nav-sub-all { font-weight: 700; color: var(--color-accent-deep); }
}


/* ---------- Blog ---------- */
.post-meta {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-accent-deep);
  margin-bottom: var(--s-2);
}
.post-tags {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.prose .lede { font-size: 1.125rem; color: var(--color-ink); }
.post-links {
  margin-top: var(--s-4);
  padding: var(--s-3);
  background: var(--color-bg-warm);
  font-size: 0.9375rem;
}
.service-card .arrow em { font-style: normal; color: var(--color-muted); font-weight: 400; }

/* ---------- Brand mentions linking home ----------
   Base styles set `a { color: inherit }`, so without this a brand link inside a
   card or hero would read as plain underlined text rather than a link. */
.brand-link {
  color: var(--color-accent-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brand-link:hover { color: var(--color-ink); text-decoration: none; }

/* On dark backgrounds the deep accent fails contrast, so use the light tone. */
.cta-form-band .brand-link,
.cta-band .brand-link,
.site-footer .brand-link,
.callout-band .brand-link { color: var(--color-accent-hi); }
.cta-form-band .brand-link:hover,
.cta-band .brand-link:hover,
.site-footer .brand-link:hover { color: #fff; }

/* ---------- Services hub category groups ---------- */
.svc-group { margin-bottom: var(--s-6); }
.svc-group:last-child { margin-bottom: 0; }
.svc-group .section-head { margin-bottom: var(--s-3); }
.svc-group h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); }

/* ---------- Grouped nav dropdown ---------- */
.nav-sub-group {
  display: block;
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: var(--color-muted);
}
.nav-sub-group:not(:first-child) {
  margin-top: 0.25rem;
  border-top: 1px solid var(--color-line);
  padding-top: 0.625rem;
}
@media (max-width: 1023px) {
  #primary-nav.open .nav-sub-group {
    padding-left: 0;
    border-top: 1px solid var(--color-line);
    margin-top: 0.5rem;
  }
}

/* Optional-field marker on the lead form */
.lead-form .opt { font-weight: 400; color: var(--color-muted); font-size: 0.8125rem; }

/* Signature spec line: the concrete, checkable differentiators, first thing
   after the intro heading. */
.spec-line {
  font-size: 1.0625rem;
  padding: 0.875rem 0 0.875rem 1.125rem;
  background: var(--color-bg-warm);
  margin-bottom: var(--s-3);
}

/* ---------- Decision tool ---------- */
.dt { max-width: 760px; margin-inline: auto; }
.dt-steps { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.dt-step { margin-bottom: var(--s-4); }
.dt-q {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.0625rem;
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
  margin-bottom: var(--s-2);
}
.dt-num {
  flex: none;
  width: 1.75rem; height: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-ink); color: #fff;
  font-size: 0.875rem;
}
.dt-opts { display: grid; gap: 0.625rem; }
@media (min-width: 640px) { .dt-opts { grid-template-columns: repeat(3, 1fr); } }
.dt-opt {
  padding: 0.875rem 1rem;
  background: #fff;
  border: 2px solid var(--color-line);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 48px;
}
.dt-opt:hover { border-color: var(--color-accent); }
.dt-opt.is-on {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}
.dt-result {
  background: var(--color-ink);
  color: #fff;
  padding: var(--s-4);
}
.dt-result h3 { color: #fff; margin-bottom: var(--s-2); }
.dt-result p { margin-bottom: var(--s-2); }
.dt-result-kicker {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 800; color: var(--color-accent-hi); margin-bottom: 0.5rem;
}
.dt-range { font-weight: 700; color: var(--color-accent-hi); }
.dt-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.dt-reset { text-align: center; margin-top: var(--s-3); }
.dt-reset-btn {
  background: none; border: none; cursor: pointer;
  font-weight: 700; color: var(--color-accent-deep);
  text-decoration: underline; text-underline-offset: 3px;
}
.dt-fallback { margin-top: var(--s-2); }
.dt-fallback li { margin-bottom: 0.5rem; }

/* ---------- Honeypot ----------
   Named "website" and hidden off-screen with CSS rather than type="hidden",
   so a bot parsing the DOM sees an ordinary text input and fills it. Never
   display:none -- some bots skip those. aria-hidden + tabindex="-1" keep it
   out of the accessibility tree and the tab order for real users. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Turnstile ---------- */
.cf-turnstile { margin-bottom: var(--s-2); min-height: 65px; }

/* ---------- Project minimum ----------
   Reuses .callout-band for the block form. The compact form sits inside the
   lead form, where it has to read as information rather than a warning: a red
   or boxed treatment here tested as a barrier, so it stays as quiet text. */
.min-callout strong { margin-bottom: .35rem; }
.min-note {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin: .5rem 0 0;
}

/* ---------- Cabinet cost estimator ---------- */
.est-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  align-items: start;
}
@media (min-width: 900px) {
  .est-grid { grid-template-columns: 1fr 22rem; }
  /* The figure has to stay in view while the specification is being changed,
     otherwise the cause and the effect are never on screen together. */
  .est-result { position: sticky; top: 6rem; }
  .est-toggle { display: none; }
}

/* On a phone the panel would otherwise sit below six fieldsets, so changing a
   material moves a number that is off screen. It becomes a compact sticky
   summary instead: the range stays visible while the specification changes,
   and the breakdown opens on demand rather than eating the viewport. */
@media (max-width: 899px) {
  .est-result {
    order: -1;
    position: sticky;
    top: 4rem;
    z-index: 40;
    padding: 0.875rem 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  .est-result .est-range { font-size: 1.375rem; }
  .est-result .est-lines,
  .est-result .est-why,
  .est-result .est-disclaimer,
  .est-result .est-actions { display: none; }
  .est-result.is-open .est-lines,
  .est-result.is-open .est-why,
  .est-result.is-open .est-disclaimer,
  .est-result.is-open .est-actions { display: block; }
  .est-result.is-open { max-height: 80vh; overflow-y: auto; overscroll-behavior: contain; }
  .est-toggle {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.4rem 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--color-line);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-accent-deep);
    cursor: pointer;
    text-align: left;
  }
}

/* Clears the sticky header, and on mobile the sticky summary too, so a
   step scrolled to is never hidden behind them. */
.est-step { border: 0; padding: 0; margin: 0 0 var(--s-4); scroll-margin-top: 16rem; }
@media (min-width: 900px) { .est-step { scroll-margin-top: 7rem; } }
.est-step legend {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-ink);
  margin-bottom: 0.375rem;
}
.est-num {
  display: inline-grid;
  place-items: center;
  width: 1.65rem; height: 1.65rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  border-radius: 50%;
  flex: none;
}
.est-help { font-size: 0.875rem; color: var(--color-muted); margin: 0 0 0.75rem; }

.est-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.5rem; }
.est-opt {
  display: block;
  position: relative;
  border: 2px solid var(--color-line);
  padding: 0.6875rem 0.875rem;
  cursor: pointer;
  background: var(--color-bg);
  transition: border-color .12s ease, background .12s ease;
}
.est-opt:hover { border-color: var(--color-accent); }
.est-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.est-opt-body { display: block; font-size: 0.9375rem; line-height: 1.35; }
.est-opt-body strong { display: block; font-weight: 600; color: var(--color-ink); }
.est-opt-body em { font-style: normal; font-size: 0.8125rem; color: var(--color-accent-deep); font-weight: 700; }
/* "Not sure yet" is a different kind of answer from a species, so it reads as
   one: dashed rather than solid, and set apart from the specific choices. */
.est-opt-span { border-style: dashed; }
.est-opt-span .est-opt-body strong { color: var(--color-muted); }
.est-opt-span:has(input:checked) .est-opt-body strong { color: var(--color-ink); }

.est-opt:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-bg-alt);
}
.est-opt:has(input:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.est-size label { display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 600; color: var(--color-ink); margin-bottom: 0.375rem; }
.est-size output { font-family: var(--font-heading); font-weight: 800; color: var(--color-accent-deep); }
.est-size input[type="range"] { width: 100%; accent-color: var(--color-accent); }

.est-result {
  border: 2px solid var(--color-ink);
  padding: var(--s-3);
  background: var(--color-bg);
}
.est-kicker { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .09em;
  font-weight: 800; color: var(--color-muted); margin: 0 0 0.25rem; }
.est-range {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 0.25rem;
}
.est-unitline { font-size: 0.875rem; color: var(--color-muted); margin: 0 0 0.875rem; }
.est-lines { border-block: 1px solid var(--color-line); padding-block: 0.625rem; margin-bottom: 0.875rem; }
.est-line { display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.875rem; margin: 0 0 0.3rem; }
.est-line span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.est-line-total { border-top: 1px solid var(--color-line); padding-top: 0.4rem; margin-top: 0.4rem; }
.est-line-total span { font-weight: 800; color: var(--color-ink); }
.est-why-item { font-size: 0.8125rem; line-height: 1.5; color: var(--color-body); margin: 0 0 0.625rem; }
.est-why-item strong { color: var(--color-accent-deep); }
.est-why-hint { border-top: 1px solid var(--color-line); padding-top: 0.625rem; }
.est-disclaimer { font-size: 0.75rem; line-height: 1.5; color: var(--color-muted);
  border-top: 1px solid var(--color-line); padding-top: 0.75rem; margin: 0.25rem 0 0.875rem; }
.est-actions { display: grid; gap: 0.5rem; margin: 0; }
.est-actions .btn { width: 100%; text-align: center; }

/* Under the minimum the panel changes character: this is an answer, not an
   error, so it is informative rather than alarming. */
.est-under-min .est-result { border-top-color: var(--color-muted); }
.est-under-min .est-range { font-size: 1.25rem; color: var(--color-muted); }
.est-under-min .est-lines { font-size: 0.875rem; }
.est-under-min .est-lines p { margin: 0 0 0.625rem; }


/* ---------- Gallery page ----------
   Filters stay hidden until main.js reveals them, so a visitor without
   JavaScript never sees controls that do nothing. */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.gallery-filters[hidden] { display: none; }
.gallery-filter {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  min-height: 44px;
  border: 2px solid var(--color-line);
  background: var(--color-bg);
  color: var(--color-ink);
  cursor: pointer;
}
.gallery-filter span { color: var(--color-muted); font-weight: 500; margin-left: 0.2rem; }
.gallery-filter:hover { border-color: var(--color-accent); }
.gallery-filter[aria-pressed="true"] { border-color: var(--color-accent); background: var(--color-bg-alt); }
.gallery-filter:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.gallery-status { font-size: 0.8125rem; color: var(--color-muted); min-height: 1.25em; margin: 0 0 0.75rem; }
.gallery-item[hidden] { display: none; }
.gallery-open { display: block; cursor: zoom-in; }
.gallery-open:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.gallery-more { display: block; margin-top: 0.3rem; font-weight: 600; font-size: 0.8125rem; }

/* Lightbox on the native <dialog>: focus trapping, Escape to close and the
   backdrop all come from the browser rather than from script. */
.lightbox {
  /* The global reset zeroes every margin, which strips the margin:auto a
     modal <dialog> relies on to center itself. Without this it pins to the
     left edge of the viewport. */
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  max-width: min(1100px, 94vw);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 10, 10, 0.86); }
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox-figure { margin: 0; background: var(--color-bg); }
.lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  background: #111;
}
.lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
}
.lightbox-caption { flex: 1 1 100%; color: var(--color-ink); font-weight: 600; }
.lightbox-link { font-weight: 700; }
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close { top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; font-size: 1.75rem; }
.lightbox-nav { top: 38%; width: 44px; height: 64px; font-size: 2.25rem; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }



/* ---------- Before/after slider ----------
   Default (no JavaScript): the two images sit side by side, each labelled.
   main.js adds .is-live, which stacks them and turns the pair into a
   drag-to-compare slider. The range input is visually hidden but focusable:
   it is the keyboard and screen reader control, while pointer drag is handled
   on the stage so that vertical swipes still scroll the page on a phone. */
.ba-grid { display: grid; gap: var(--s-4); }
@media (min-width: 1024px) {
  .vision-section .ba-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
}
.ba-slider { margin: 0; }
.ba-slider figcaption { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--color-ink); }
.ba-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ba-layer { position: relative; }
.ba-layer img { display: block; width: 100%; height: auto; }
.ba-tag {
  position: absolute;
  top: 0.5rem;
  z-index: 3;
  padding: 0.2rem 0.5rem;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-tag-before { left: 0.5rem; }
.ba-tag-after { left: calc(50% + 0.75rem); }
.ba-handle, .ba-range { display: none; }

/* Live slider */
.ba-slider.is-live .ba-stage {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  background: #111;
}
.ba-slider.is-live .ba-layer { position: absolute; inset: 0; }
.ba-slider.is-live .ba-layer img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider.is-live .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-slider.is-live .ba-tag-after { left: auto; right: 0.5rem; }
.ba-slider.is-live .ba-handle {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 2;
  width: 0;
  pointer-events: none;
}
.ba-slider.is-live .ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
}
.ba-slider.is-live .ba-handle span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
/* Two chevrons drawn in CSS, so the handle reads as draggable both ways. */
.ba-slider.is-live .ba-handle span::before,
.ba-slider.is-live .ba-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid var(--color-ink);
  border-width: 0 0 2.5px 2.5px;
}
.ba-slider.is-live .ba-handle span::before { left: 11px; transform: translateY(-50%) rotate(45deg); }
.ba-slider.is-live .ba-handle span::after { right: 11px; transform: translateY(-50%) rotate(-135deg); }
.ba-slider.is-live .ba-range {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Keyboard focus lands on the hidden range; show it on the handle. */
.ba-slider.is-live .ba-stage:focus-within .ba-handle span {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Transformations: details under each slider ---------- */
.tf-section .ba-slider figcaption { margin-top: 0.875rem; }
.tf-title { font-size: 1.125rem; margin: 0 0 0.35rem; }
.tf-desc { font-size: 0.9375rem; line-height: 1.55; color: var(--color-body); margin: 0 0 0.75rem; }
.tf-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0;
  border-block: 1px solid var(--color-line);
}
.tf-facts div { min-width: 0; }
.tf-facts dt {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}
.tf-facts dd {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--color-ink);
}
.tf-more { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ===================================================================
   GRADE STAMP AND TALLY
   The visual system: every page reads like the provenance tag on a board
   of hardwood. Planed-maple grounds and white ticket stock; charcoal stamp
   ink for type and rules; copper only on the call and quote actions and
   on active states. Square corners, 1.5px stamp rules, hairline tally
   rules, extra-condensed caps for headings and stamps, tabular figures for
   every price, size and phone number. This layer is last so it wins ties.
   =================================================================== */

:root {
  --rule: 1.5px;
  --ground: var(--color-bg-alt);
  --line-strong: #CFC9C0;
  --ticket-shadow: 0 18px 32px -22px rgba(22, 22, 26, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fs-h1: clamp(2.5rem, 4.4vw, 4.5rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.125rem);
  --fs-h3: 1.25rem;
}

/* ---------- Browser surfaces ---------- */
html { scrollbar-color: var(--color-ink) var(--color-bg-warm); }
::selection { background: var(--color-ink); color: var(--color-bg-alt); }
input, select, textarea { caret-color: var(--color-accent); }

body {
  background: var(--color-bg-alt);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern";
}

/* ---------- Type ---------- */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--color-ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 0.92; }
h2 { font-size: var(--fs-h2); line-height: 0.96; }
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.0625rem;
}
.lede { font-size: 1.1875rem; line-height: 1.55; max-width: 62ch; }
.tnum,
.stamp-phone-num,
.header-call span,
.tf-facts dd,
.est-range,
.est-line,
.dt-range,
table.data td { font-variant-numeric: tabular-nums lining-nums; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ---------- Rhythm ---------- */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-alt { background: var(--color-bg-warm); --ground: var(--color-bg-warm); }
.section-head {
  max-width: none;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
  padding-top: 1.25rem;
  border-top: var(--rule) solid var(--color-ink);
}
.section-head h2,
.section-head h1 { margin-bottom: 0.875rem; max-width: 24ch; }
.section-head > p { max-width: 64ch; }
.section-head.center { text-align: left; margin-inline: 0; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.9rem 1.4rem 0.85rem;
  border: var(--rule) solid transparent;
  border-radius: 0;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-deep); }
.btn-secondary { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn-secondary:hover { background: var(--color-ink); color: #fff; }
.cta-band a.btn-secondary { color: var(--color-ink); }
.cta-band a.btn-secondary:hover { color: #fff; }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* ---------- The stamp set ---------- */
.stamp-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stamp {
  display: inline-block;
  padding: 0.4rem 0.65rem 0.32rem;
  border: var(--rule) solid var(--color-ink);
  outline: 1px solid var(--color-ink);
  outline-offset: -5px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.stamp-phone {
  display: inline-grid;
  gap: 0.2rem;
  padding: 0.85rem 1.2rem 0.8rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 5px var(--color-accent), inset 0 0 0 6px rgba(255, 255, 255, 0.75);
  transition: background-color 0.18s var(--ease-out);
}
.stamp-phone:hover { background: var(--color-accent-deep); box-shadow: inset 0 0 0 5px var(--color-accent-deep), inset 0 0 0 6px rgba(255, 255, 255, 0.75); }
.stamp-phone-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stamp-phone-label svg { width: 15px; height: 15px; }
.stamp-phone-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.125rem, 3.1vw, 2.875rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---------- Announcement + header ---------- */
.announcement-bar {
  background: var(--color-bg-warm);
  color: var(--color-ink);
  min-height: 34px;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-block: 0.3rem;
}
.site-header { background: #fff; border-bottom: var(--rule) solid var(--color-ink); }
.site-header nav a,
.site-header .nav-group-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-header nav a:hover,
.nav-group-label:hover { color: var(--color-accent-deep); }
.site-header nav a[aria-current="page"],
.nav-group-label[aria-current="page"] {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.header-call {
  background: #fff;
  color: var(--color-accent);
  border: var(--rule) solid var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.9rem 0.4rem;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.header-call:hover { background: var(--color-accent); color: #fff; }
.nav-toggle { border-width: var(--rule); }
@media (min-width: 1024px) {
  .nav-sub {
    border: var(--rule) solid var(--color-ink);
    box-shadow: var(--ticket-shadow);
  }
  .nav-sub a { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 0.9375rem; font-weight: 500; }
  .nav-sub a:hover { background: var(--color-bg-alt); color: var(--color-accent-deep); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header nav a,
  .site-header .nav-group-label { font-size: 1.0625rem; }
  .header-call { font-size: 1.25rem; }
}
#primary-nav.open { border-bottom: var(--rule) solid var(--color-ink); }
#primary-nav.open .nav-sub a { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 500; }
.nav-sub-group { font-family: var(--font-heading); font-size: 0.875rem; letter-spacing: 0.1em; }

.breadcrumbs {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-block: 0.875rem;
}
.breadcrumbs li + li::before { color: var(--color-muted); }

/* ---------- Stock-tag hero ---------- */
.tag-hero {
  --ground: var(--color-bg-alt);
  background: var(--color-bg-alt);
  padding-block: clamp(0.75rem, 2vw, 1.75rem) clamp(3rem, 5vw, 4.5rem);
}
.tag-hero-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-areas: "head" "call" "plate" "form";
}
.tag-head { grid-area: head; }
.tag-head .subhead {
  margin-top: 1rem;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--color-body);
  max-width: 60ch;
}
.tag-call { grid-area: call; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.tag-hours {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.tag-quote { font-weight: 600; color: var(--color-ink); }
.tag-plate { grid-area: plate; position: relative; margin: 0; }
.tag-plate img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: var(--rule) solid var(--color-ink);
}
.spec-ticket {
  background: #fff;
  border: var(--rule) solid var(--color-ink);
  border-top: 0;
  padding: 0.875rem 1rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-ink);
}
.spec-ticket-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 0.45rem;
  margin-bottom: 0.15rem;
  border-bottom: var(--rule) solid var(--color-ink);
}
.spec-ticket ul { list-style: none; padding: 0; margin: 0; }
.spec-ticket li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding-block: 0.55rem;
  line-height: 1.35;
}
.spec-ticket li + li { border-top: 1px solid var(--color-line); }
.spec-ticket svg { flex: none; margin-top: 2px; color: var(--color-ink); }
.tag-form { grid-area: form; }
@media (min-width: 1024px) {
  .tag-hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 1.75rem;
    grid-template-areas:
      "head head head head head head head head call call call call"
      "plate plate plate plate plate plate plate form form form form form";
    align-items: start;
  }
  .tag-call { align-self: end; align-items: stretch; }
  .tag-call .stamp-phone { justify-items: start; }
  .spec-ticket {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: min(330px, 56%);
    border-top: var(--rule) solid var(--color-ink);
    box-shadow: var(--ticket-shadow);
  }
}

/* The one authored moment: the phone stamp presses in once on load. */
@media (prefers-reduced-motion: no-preference) {
  .tag-hero .stamp-phone { animation: stamp-press 0.6s var(--ease-out) 0.15s both; }
}
@keyframes stamp-press {
  from { transform: scale(1.07) rotate(-1.2deg); filter: blur(1.5px); }
  to { transform: none; filter: none; }
}

/* ---------- Intake form: the tally ticket ---------- */
.lead-form {
  position: relative;
  background: #fff;
  color: var(--color-body);
  border: var(--rule) solid var(--color-ink);
  padding: 1.25rem 1.25rem 1.375rem;
  box-shadow: var(--ticket-shadow);
}
.lead-form h2 { font-size: clamp(1.75rem, 2.4vw, 2.125rem); line-height: 0.95; margin-bottom: 0.4rem; }
.lead-form .form-sub {
  position: relative;
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin: 0 -1.25rem 1.125rem;
  padding: 0 1.25rem 1rem;
  border-bottom: var(--rule) dashed var(--color-ink);
}
/* Punched notches where the stub tears off. */
.lead-form .form-sub::before,
.lead-form .form-sub::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ground);
  border: var(--rule) solid var(--color-ink);
}
.lead-form .form-sub::before { left: -9.5px; clip-path: inset(0 0 0 50%); }
.lead-form .form-sub::after { right: -9.5px; clip-path: inset(0 50% 0 0); }
.lead-form .form-row { gap: 0.875rem; margin-bottom: 1rem; }
.lead-form label { font-size: 0.9375rem; font-weight: 600; color: var(--color-ink); }
.lead-form .req { color: var(--color-ink); }
.lead-form input,
.lead-form select,
.lead-form textarea {
  margin-top: 0.3rem;
  padding: 0.7rem 0.75rem;
  border: var(--rule) solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--color-ink);
  transition: border-color 0.15s var(--ease-out);
}
.lead-form input::placeholder { color: #6E6E76; }
.lead-form input:hover,
.lead-form select: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: 1px; border-color: var(--color-ink); }
.lead-form input:user-invalid,
.lead-form select:user-invalid { border-color: var(--color-error); }
.lead-form .btn { font-size: 1.3125rem; padding-block: 1rem 0.95rem; }
.lead-form .form-note { font-size: 0.875rem; }
.lead-form .form-note a { color: var(--color-ink); font-weight: 700; }
.form-success { border: var(--rule) solid var(--color-ink); }
.form-success h3 { color: var(--color-ink); }

/* ---------- Trust bar: one tally row ---------- */
.trust-bar {
  background: #fff;
  color: var(--color-body);
  border-block: var(--rule) solid var(--color-ink);
  padding-block: 0;
}
.trust-bar ul { gap: 0; text-align: left; }
.trust-bar li {
  padding: 1.1rem 1.25rem 1rem;
  border-left: 1px solid var(--color-line);
  font-weight: 400;
}
.trust-bar li:first-child { border-left: 0; padding-left: 0; }
.trust-bar li strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-ink);
  line-height: 1.05;
}
.trust-bar li em { color: var(--color-muted); font-size: 0.9375rem; margin-top: 0.15rem; }
@media (max-width: 767px) {
  .trust-bar ul { grid-template-columns: 1fr 1fr; }
  .trust-bar li { padding: 0.875rem 0.75rem 0.8rem; border-top: 1px solid var(--color-line); }
  .trust-bar li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-bar li:nth-child(-n+2) { border-top: 0; }
  .trust-bar li strong { font-size: 1.125rem; }
  .trust-bar li em { font-size: 0.8125rem; }
}

/* ---------- Ledger: service, area and article indexes ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; }
@media (min-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) and (max-width: 899px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 1.25rem;
  grid-template-areas: "media title arrow" "media desc arrow";
  column-gap: 1.125rem;
  row-gap: 0.25rem;
  align-items: start;
  padding: 1.125rem 0.25rem 1.125rem 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-line);
  transition: background-color 0.18s var(--ease-out);
}
.services-grid > .service-card:nth-child(-n+2) { border-top: var(--rule) solid var(--color-ink); }
@media (max-width: 899px) {
  .services-grid > .service-card:nth-child(2) { border-top: 1px solid var(--color-line); }
}
.service-card:hover { background: rgba(255, 255, 255, 0.6); border-color: var(--color-line); }
.service-card .card-media { grid-area: media; margin: 0; }
.service-card .card-media img { width: 112px; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--color-ink); }
.service-card h3 { grid-area: title; font-size: 1.1875rem; margin: 0; }
.service-card p {
  grid-area: desc;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card .arrow {
  grid-area: arrow;
  align-self: center;
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  overflow: hidden;
  color: transparent;
  margin: 0;
  text-decoration: none;
}
.service-card .arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--color-ink);
  border-right: 2px solid var(--color-ink);
  transform: translateX(-2px) rotate(45deg);
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.service-card:hover .arrow::after { border-color: var(--color-accent); transform: translateX(2px) rotate(45deg); }
.service-card:hover h3 { color: var(--color-accent-deep); }
.service-card:not(:has(.card-media)) {
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  grid-template-areas: "title arrow" "desc arrow";
}
@media (max-width: 479px) {
  .service-card { grid-template-columns: 84px minmax(0, 1fr) 1rem; column-gap: 0.875rem; }
  .service-card .card-media img { width: 84px; }
  .service-card h3 { font-size: 1.0625rem; }
  .service-card p { -webkit-line-clamp: 2; font-size: 0.875rem; }
}

/* ---------- Ruled columns instead of boxed cards ---------- */
.why-grid { gap: 2.5rem; }
.why-card,
.credential-card,
.depth-item {
  background: transparent;
  border: 0;
  border-top: var(--rule) solid var(--color-ink);
  padding: 1.125rem 0 0;
}
.why-card h3,
.credential-card h3,
.depth-item h3 { font-size: 1.1875rem; margin-bottom: 0.625rem; }
.depth-grid { gap: 2rem 2.5rem; }
.credential-grid { gap: 2rem 2.5rem; }
.credential-card .credential-icon { color: var(--color-ink); }
.related-grid { gap: 0 2.5rem; }
.related-card {
  border: 0;
  border-top: 1px solid var(--color-line);
  padding: 0.875rem 0;
  font-weight: 700;
}
.related-card:hover { color: var(--color-accent-deep); border-color: var(--color-line); }

/* Stat chips become stamps. */
.stat-chip {
  background: transparent;
  border: var(--rule) solid var(--color-ink);
  outline: 1px solid var(--color-ink);
  outline-offset: -5px;
  padding: 0.5rem 0.7rem 0.45rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.spec-line {
  background: transparent;
  border: 0;
  border-block: var(--rule) solid var(--color-ink);
  padding: 0.875rem 0;
  font-size: 1.125rem;
  color: var(--color-ink);
}
.media figcaption { border: 0; padding: 0.5rem 0 0; border-top: 1px solid var(--color-line); }
.media img { border: 1px solid var(--color-ink); }
.post-links { background: #fff; border: var(--rule) solid var(--color-ink); }
.area-list li { border: 0; border-bottom: 1px solid var(--color-line); padding: 0.5rem 0; }
.city-links a { border: var(--rule) solid var(--color-ink); background: transparent; font-weight: 700; }
.city-links a:hover { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }

.steps li::before {
  background: transparent;
  color: var(--color-ink);
  border: var(--rule) solid var(--color-ink);
  font-weight: 800;
  font-size: 1.375rem;
}

/* ---------- Light bands (no heavy dark sections) ---------- */
.callout-band {
  background: #fff;
  color: var(--color-body);
  border: var(--rule) solid var(--color-ink);
}
.callout-band strong { color: var(--color-ink); font-size: 1.375rem; text-transform: uppercase; letter-spacing: 0.02em; }
.callout-band .brand-link { color: var(--color-accent-deep); }

.cta-form-band { --ground: var(--color-bg-warm); background: var(--color-bg-warm); color: var(--color-body); border-top: var(--rule) solid var(--color-ink); }
.cta-form-band h2 { color: var(--color-ink); }
.cta-form-band .lede { color: var(--color-body); }
.cta-form-band .band-points li { color: var(--color-ink); font-size: 1rem; padding-block: 0.6rem; border-top: 1px solid var(--color-line); }
.cta-form-band .band-points li:first-child { border-top: 0; }
.cta-form-band .band-points svg { color: var(--color-ink); }
.cta-form-band .brand-link { color: var(--color-accent-deep); }
@media (min-width: 900px) { .cta-form-band .band-grid { align-items: start; } }

.cta-band {
  background: var(--color-bg-warm);
  color: var(--color-body);
  text-align: left;
  border-top: var(--rule) solid var(--color-ink);
}
.cta-grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1.4fr) auto; column-gap: 4rem; } }
.cta-band h2 { color: var(--color-ink); font-size: clamp(2.25rem, 4.4vw, 3.75rem); margin-bottom: 0.75rem; }
.cta-band p { font-size: 1.1875rem; max-width: 52ch; margin-bottom: 1.5rem; }
.cta-band .cta-actions { display: grid; gap: 0.75rem; justify-content: stretch; }
.cta-band .cta-actions .btn { width: 100%; }
.cta-band .brand-link { color: var(--color-accent-deep); }

.dt-result { background: #fff; color: var(--color-body); border: var(--rule) solid var(--color-ink); }
.dt-result h3 { color: var(--color-ink); }
.dt-result-kicker { color: var(--color-muted); }
.dt-range { color: var(--color-ink); }
.dt-actions .btn-secondary { color: var(--color-ink); border-color: var(--color-ink); }
.dt-actions .btn-secondary:hover { background: var(--color-ink); color: #fff; }
.dt-num { background: transparent; color: var(--color-ink); border: var(--rule) solid var(--color-ink); font-family: var(--font-heading); font-weight: 800; }
.dt-q { font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; }
.dt-opt { border: var(--rule) solid var(--line-strong); }
.dt-opt:hover { border-color: var(--color-ink); }

/* ---------- FAQ ledger ---------- */
.faq details { border-bottom: 1px solid var(--color-line); padding-block: 1.125rem; }
.faq h2 + details,
.faq .lede + details { border-top: var(--rule) solid var(--color-ink); }
.faq summary { font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; color: var(--color-ink); padding-right: 2.5rem; }
.faq summary:hover { color: var(--color-accent-deep); }
.faq summary::after {
  content: "";
  top: 0.35rem;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--color-ink), var(--color-ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--color-ink), var(--color-ink)) center / 2px 14px no-repeat;
  transition: transform 0.2s var(--ease-out);
}
.faq details[open] summary::after {
  content: "";
  background: linear-gradient(var(--color-ink), var(--color-ink)) center / 14px 2px no-repeat;
}
.faq details p { max-width: 70ch; }

/* ---------- Tables as tally sheets ---------- */
.table-wrap { border: var(--rule) solid var(--color-ink); background: #fff; }
table.data caption { background: var(--color-bg-warm); border-bottom: var(--rule) solid var(--color-ink); }
table.data thead th {
  background: transparent;
  color: var(--color-ink);
  border-bottom: var(--rule) solid var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.0625rem;
}
table.data tbody tr:nth-child(even) { background: var(--color-bg-alt); }

/* ---------- Gallery, sliders, estimator ---------- */
.gallery-item { background: #fff; border: 1px solid var(--color-ink); }
.gallery-item figcaption { border-top: 1px solid var(--color-ink); }
.gallery-filter { border: var(--rule) solid var(--line-strong); font-weight: 700; }
.gallery-filter:hover { border-color: var(--color-ink); }
.gallery-filter[aria-pressed="true"] { border-color: var(--color-ink); background: var(--color-ink); color: #fff; }
.gallery-filter[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.75); }

.ba-stage { border: var(--rule) solid var(--color-ink); }
.ba-tag {
  background: #fff;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}
.ba-slider.is-live .ba-handle::before { background: #fff; box-shadow: 0 0 0 1px rgba(22, 22, 26, 0.35); }
.ba-slider.is-live .ba-handle span { border-radius: 0; border: var(--rule) solid var(--color-ink); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.45); }
.tf-title { font-size: 1.25rem; }
.tf-facts { border-block: var(--rule) solid var(--color-ink); background: #fff; padding: 0.75rem 0.875rem; }
.tf-facts div + div { border-left: 1px solid var(--color-line); padding-left: 0.875rem; }
.tf-facts dt { font-family: var(--font-heading); font-size: 0.875rem; letter-spacing: 0.1em; }
.tf-facts dd { font-size: 1.375rem; line-height: 1.1; }

.est-num { border-radius: 0; background: transparent; color: var(--color-ink); border: var(--rule) solid var(--color-ink); font-family: var(--font-heading); font-weight: 800; }
.est-step legend { font-family: var(--font-body); font-weight: 700; }
.est-opt { border: var(--rule) solid var(--line-strong); }
.est-opt:hover { border-color: var(--color-ink); }
.est-result { border: var(--rule) solid var(--color-ink); box-shadow: var(--ticket-shadow); }
.est-kicker { font-family: var(--font-heading); font-size: 0.9375rem; letter-spacing: 0.1em; }
.est-range { font-size: clamp(2rem, 3.6vw, 2.5rem); }
.est-size output { color: var(--color-ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-warm);
  color: var(--color-body);
  border-top: var(--rule) solid var(--color-ink);
}
.site-footer a { color: var(--color-body); }
.site-footer a:hover { color: var(--color-ink); }
.site-footer h4 { color: var(--color-ink); }
.site-footer .footer-h4-gap { margin-top: 1.5rem; }
.site-footer .footer-hours,
.site-footer .footer-tag,
.site-footer .footer-nap { color: var(--color-body); }
.site-footer .footer-nap strong { color: var(--color-ink); }
.site-footer .footer-nap a { color: var(--color-accent-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.site-footer .footer-bottom { border-top: var(--rule) solid var(--color-ink); color: var(--color-muted); }
.site-footer .brand-link { color: var(--color-accent-deep); }

/* ---------- Floating and sticky calls ---------- */
.call-fab {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 4px var(--color-accent), inset 0 0 0 5px rgba(255, 255, 255, 0.75), 0 12px 26px -12px rgba(22, 22, 26, 0.55);
}
.call-fab:hover { background: var(--color-accent-deep); box-shadow: inset 0 0 0 4px var(--color-accent-deep), inset 0 0 0 5px rgba(255, 255, 255, 0.75), 0 12px 26px -12px rgba(22, 22, 26, 0.55); }
.mobile-cta a {
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  border-top: var(--rule) solid var(--color-ink);
}

@media (max-width: 767px) {
  .tag-head .subhead { font-size: 1.0625rem; }
  .tag-call .stamp-phone { width: 100%; }
  .stamp-phone-num { font-size: 2.25rem; }
  .cta-band .cta-actions .stamp-phone { width: 100%; }
}
@media (max-width: 767px) {
  .announcement-bar { font-size: 0.8125rem; letter-spacing: 0.04em; min-height: 30px; }
  .trust-bar li:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}

/* ---------- Review fixes ---------- */
/* Drawn arrow, replacing the text glyph in links and buttons. */
.arw {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.4em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translate(-0.08em, 0.08em);
  vertical-align: 0.06em;
  transition: transform 0.18s var(--ease-out);
}
a:hover > .arw { transform: rotate(45deg) translate(0.06em, -0.06em); }

/* Factoids are notes, not stamps: the stamp is kept for the fixed set. */
.stat-chip {
  display: block;
  margin-top: 1rem;
  padding: 0.6rem 0 0;
  border: 0;
  border-top: 1px solid var(--color-line);
  outline: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-ink);
}

/* Hero: the photo column runs the height of the form ticket. */
.tag-call .stamp { align-self: flex-start; }
@media (min-width: 1024px) {
  .tag-hero-grid { align-items: stretch; }
  .tag-form { align-self: start; }
  .tag-plate { display: flex; }
  .tag-plate picture { display: block; flex: 1; }
  .tag-plate img { height: 100%; min-height: 420px; aspect-ratio: auto; }
}

/* "What you can verify": a ruled ledger, no icon tiles. */
.credential-card .credential-icon { display: none; }
@media (min-width: 1024px) { .credential-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===================================================================
   COLOR PASS
   Copper now owns whole regions instead of only the buttons: the
   announcement strip, the trust row, the mid-page form band and the
   closing band are copper fields, so the page warms as it scrolls without
   any heavy black sections. On copper the call stamp inverts to white so
   it stays the strongest mark in view. Stamps are struck in copper ink,
   and section headings carry a lumber-crayon stroke.
   =================================================================== */
:root {
  --copper-tint: #F6E6DA;
  --on-copper-soft: #FDE7D7;   /* 6.9:1 on #9A3412; on #C2410C use white */
  --crayon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 28 6, 52 12, 80 8 S 130 5, 157 8' stroke='%23C2410C' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3Cpath d='M8 9 C 40 7, 70 11, 100 8 S 140 7, 152 9' stroke='%23FB923C' stroke-width='2.5' fill='none' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E");
}

/* Hero spec ticket: below the photo, never over it. */
.tag-plate { display: flex; flex-direction: column; }
.tag-plate picture { display: block; }
.spec-ticket {
  position: static;
  width: auto;
  border: var(--rule) solid var(--color-ink);
  border-top: 0;
  box-shadow: none;
  background: #fff;
}
.spec-ticket ul { display: grid; gap: 0 1.5rem; }
@media (min-width: 640px) {
  .spec-ticket ul { grid-template-columns: 1fr 1fr; }
  .spec-ticket li + li { border-top: 0; }
  .spec-ticket li:nth-child(n+3) { border-top: 1px solid var(--color-line); }
}
@media (min-width: 1024px) {
  .spec-ticket { position: static; right: auto; bottom: auto; width: auto; box-shadow: none; border-top: 0; }
  .tag-plate picture { flex: 1; min-height: 0; }
  .tag-plate img { height: 100%; min-height: 360px; }
}
.spec-ticket-title { color: var(--color-accent-deep); border-bottom-color: var(--color-accent-deep); }
.spec-ticket svg { color: var(--color-accent); }

/* Announcement strip */
.announcement-bar { background: var(--color-accent-deep); color: #fff; border-bottom: 0; }

/* Trust row: a copper field */
.trust-bar { background: var(--color-accent); border-block: 0; }
.trust-bar li { border-left-color: rgba(255, 255, 255, 0.3); }
.trust-bar li strong { color: #fff; }
.trust-bar li em { color: #fff; }
@media (max-width: 767px) { .trust-bar li { border-top-color: rgba(255, 255, 255, 0.3); } }

/* Two-ink stamps */
.stamp { color: var(--color-accent-deep); border-color: var(--color-accent-deep); outline-color: var(--color-accent-deep); }

/* Lumber-crayon stroke under section headings */
.section-head h2::after,
.section-head h1::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 0.85rem;
  margin-top: 0.7rem;
  background: var(--crayon) left center / 100% 100% no-repeat;
}
.section-head { border-top-color: var(--color-ink); }

/* Navigation and links pick up the copper */
.site-header nav a[aria-current="page"],
.nav-group-label[aria-current="page"] { text-decoration-color: var(--color-accent); }
.site-footer { border-top: 6px solid var(--color-accent); }
.site-footer h4 { color: var(--color-accent-deep); }
.faq summary::after {
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) center / 14px 2px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) center / 2px 14px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--color-accent), var(--color-accent)) center / 14px 2px no-repeat; }
.faq details[open] summary { color: var(--color-accent-deep); }
.stat-chip { border-top-color: var(--color-accent); }
.why-card, .credential-card, .depth-item { border-top-color: var(--color-accent-deep); }
table.data thead th { background: var(--copper-tint); }

/* Transformations sit on a copper tint; figures read in copper. */
.tf-section { background: var(--copper-tint); --ground: var(--copper-tint); }
.tf-facts dd { color: var(--color-accent-deep); }

/* Mid-page form band: a copper field with the ticket on it */
.cta-form-band { --ground: var(--color-accent); background: var(--color-accent); color: #fff; border-top: 0; }
.cta-form-band h2,
.cta-form-band .lede,
.cta-form-band .band-points li { color: #fff; }
.cta-form-band .band-points li { border-top-color: rgba(255, 255, 255, 0.3); }
.cta-form-band .band-points svg { color: #fff; }
.cta-form-band .brand-link { color: #fff; }
.cta-form-band .lead-form { box-shadow: 0 22px 40px -24px rgba(60, 18, 4, 0.7); }

/* Closing band: deep copper, with the call stamp inverted to white */
.cta-band { background: var(--color-accent-deep); color: #fff; border-top: 0; }
.cta-band h2,
.cta-band p { color: #fff; }
.cta-band .brand-link { color: #fff; }
.cta-band .stamp { color: #fff; border-color: #fff; outline-color: #fff; }
.cta-band .stamp-phone {
  background: #fff;
  color: var(--color-accent-deep);
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px var(--color-accent-deep);
}
.cta-band .stamp-phone:hover { background: var(--on-copper-soft); box-shadow: inset 0 0 0 5px var(--on-copper-soft), inset 0 0 0 6px var(--color-accent-deep); }
.cta-band a.btn-secondary { color: #fff; border-color: #fff; }
.cta-band a.btn-secondary:hover { background: #fff; color: var(--color-accent-deep); }
/* The ticket keeps its own ink on a copper field. */
.cta-form-band .lead-form h2 { color: var(--color-ink); }
.cta-form-band .lead-form .form-sub { color: var(--color-muted); }
.cta-form-band .lead-form .form-note a { color: var(--color-ink); }
/* The floating call button keeps an edge when it passes over a copper band. */
.call-fab { outline: 2px solid #fff; }
