/* ============================================================
   HESTER ASPHALT SEALCOATING — GLOBAL DESIGN SYSTEM
   Dark industrial / asphalt visual language
   ============================================================ */

/* Font-metric-matched fallbacks (CLS fix, September 2026) — measured, not
   guessed: extracted directly from the real webfont files (Google Fonts'
   own served TTFs) and the local Windows system fonts they substitute for,
   via fontTools (hhea ascent/descent/lineGap, OS/2 xAvgCharWidth), then run
   through the standard metric-override formula (as used by Next.js's font
   optimizer / the Fontaine library): size-adjust from the ratio of each
   font's own em-normalized average character width, then ascent/descent/
   line-gap-override as the target's em-normalized metric divided by that
   same size-adjust factor. This makes the fallback's layout box (and, via
   size-adjust, its rendered glyph size) closely match Inter/Barlow
   Condensed's own box, so the swap at `font-display: swap` time doesn't
   reflow the page. Review.html's CLS was 0.175 (entirely font-swap, per a
   real Lighthouse layout-shift trace) before this existed. Values are
   specific to Barlow Condensed v13 / Inter v20 (the exact versions the
   Google Fonts URL below serves) and to Segoe UI / Arial Narrow (Windows'
   built-in substitutes, unchanged for a very long time) — re-derive if
   either webfont's served version ever changes. Zero visual change to
   either typeface itself: these are two new fallback-only font-family
   names, never the real Inter/Barlow Condensed weights actually used
   sitewide, and Mac (no Segoe UI) degrades exactly as it always did,
   straight through to the generic sans-serif at the end of each stack. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Segoe UI");
  ascent-override: 80.83%;
  descent-override: 20.13%;
  line-gap-override: 0%;
  size-adjust: 119.85%;
}
@font-face {
  font-family: "Barlow Condensed Fallback";
  src: local("Arial Narrow");
  ascent-override: 86.77%;
  descent-override: 17.35%;
  line-gap-override: 0%;
  size-adjust: 115.25%;
}

:root {
  /* Surface */
  --ink: #0d0e10;
  --coal-900: #131518;
  --coal-800: #1a1d21;
  --coal-700: #22262b;
  --coal-600: #2d3239;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Brand */
  --orange: #f47921;
  --orange-bright: #ff8d3a;
  --orange-deep: #c95a0e;
  --stripe: #ffc933;

  /* Type */
  --paper: #f2f1ed;
  --mute: #a8aeb6;
  --dim: #868d96; /* lightened for WCAG AA (P4-7) — was #6d747d, 3.22-4.09:1 on the dark surfaces it's actually used on, all below the 4.5:1 minimum */

  /* Fonts */
  --font-display: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Inter Fallback", "Segoe UI", sans-serif;

  /* Rhythm */
  --shell: 1180px;
  --shell-wide: 1380px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 10vw, 130px);
  --cut: clamp(28px, 5vw, 70px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--orange); color: #14100b; }

body { scrollbar-color: var(--coal-600) var(--ink); }

/* ---------- Focus visibility ----------
   :focus-visible (not :focus) so a mouse click never leaves a ring behind —
   only real keyboard/switch focus shows it. Plain outline covers almost
   everything; .btn and .chip-group .chip are excluded on purpose below
   because clip-path clips an outline at the notch, so they get an inset
   ring instead, drawn safely inside the clipped shape. */
:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--orange-bright);
}
/* .btn-solid's fill is already orange — an orange-bright ring on top of it
   fails the 3:1 contrast a focus indicator needs, so it gets a dark ring
   instead. Same reasoning for a checked (also orange-filled) chip below. */
.btn-solid:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.chip-group input:focus-visible + .chip {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--orange-bright);
}
.chip-group input:checked:focus-visible + .chip {
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.h-hero  { font-size: clamp(46px, 7.4vw, 96px); font-weight: 800; }
.h-sec   { font-size: clamp(34px, 4.6vw, 60px); }
.h-sub   { font-size: clamp(24px, 3vw, 34px); }

.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--mute); max-width: 62ch; }

.accent { color: var(--orange); }
.accent-stripe { color: var(--stripe); }

/* Section eyebrow.

   The road-stripe dash is deliberately NOT part of the base kicker — see the
   rule below. Every section on every page carries one of these labels (117
   sitewide, nine on the homepage alone), so attaching the dash to all of them
   turned a brand signature into wallpaper and flattened the very hierarchy it
   was meant to create. The label itself still does the work: display face,
   orange, 0.34em tracking and uppercase already separate it from body copy,
   and the sections around it are already divided by their own background
   steps (.sec-coal/.sec-raised) and cut-* angles. September 13, 2026. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

/* The dash marks a page's lead eyebrow only — the one above the H1 — where
   it reads as deliberate and is the sole thing separating the breadcrumb row
   from the heading. .hero (index), .page-hero (standard pages) and .art-hero
   (service + article pages) are the only three hero containers sitewide and
   every page has exactly one, so this is one dash per page, 46 sitewide.
   Scoped in CSS rather than by a modifier class on 71 elements so the two
   treatments can never drift apart across the 46 pages. */
.hero .kicker::before,
.page-hero .kicker::before,
.art-hero .kicker::before {
  content: "";
  width: 38px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--stripe) 0 10px, transparent 10px 16px);
}

/* ---------- Layout ---------- */
.shell { width: min(var(--shell), 100% - var(--pad) * 2); margin-inline: auto; }
.shell-wide { width: min(var(--shell-wide), 100% - var(--pad) * 2); margin-inline: auto; }

.sec { padding-block: var(--sec); position: relative; }
.sec-coal { background: var(--coal-900); }
.sec-raised { background: var(--coal-800); }

/* Angular section transitions */
.cut-top    { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); padding-top: calc(var(--sec) + var(--cut)); }
.cut-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); padding-bottom: calc(var(--sec) + var(--cut)); }
.cut-both   { clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); margin-top: calc(var(--cut) * -1); padding-block: calc(var(--sec) + var(--cut)); }

/* Asphalt grain overlay — apply to dark sections */
.grain { position: relative; }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/graphics/asphaltTexture.svg");
  background-size: 480px;
  opacity: 0.5;
  pointer-events: none;
}
.grain > * { position: relative; }

/* Yellow road-stripe horizontal rule */
.stripe-rule {
  height: 5px;
  border: 0;
  background: repeating-linear-gradient(90deg, var(--stripe) 0 44px, transparent 44px 78px);
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-solid { background: var(--orange); color: #160e05; }
.btn-solid:hover { background: var(--orange-bright); transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(244, 121, 33, 0.55); }

.btn-line { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--line-strong); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange-bright); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

.btn-lg { font-size: 20px; padding: 19px 38px; }
.btn-sm { font-size: 15px; padding: 11px 20px; }

/* .btn keeps white-space: nowrap sitewide (no ellipsis fallback exists), so
   .btn-lg's longest label ("See the Full Project Gallery", #transform on
   index.html) ran past the viewport below ~400px with no way to reach the
   clipped remainder — body's own overflow-x: hidden hid it rather than
   exposing a scrollbar. Shrunk here instead of allowed to wrap, so the
   trailing arrow icon stays inline instead of orphaning onto its own line. */
@media (max-width: 400px) {
  .btn-lg { font-size: 15px; padding: 14px 18px; }
}

/* Text arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  transition: gap 0.25s var(--ease), color 0.2s;
}
.link-arrow svg { width: 17px; height: 17px; }
.link-arrow:hover { gap: 14px; color: var(--orange-bright); }

/* ---------- Skip link ----------
   First focusable element in the header on every page. Sits off-screen
   (same visually-hidden technique as .sr-only) until it receives keyboard
   focus, then becomes a real, high-contrast target above the header and
   drawer's own z-index so nothing can sit on top of it. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-120%);
  z-index: 200;
  background: var(--orange);
  color: #160e05;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible {
  transform: translateY(0);
  /* Orange-bright on an orange fill is the same low-contrast problem
     .btn-solid has — see the Focus visibility section above. */
  outline-color: var(--ink);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background 0.35s, box-shadow 0.35s, transform 0.35s;
}
.site-header.is-solid {
  background: rgba(13, 14, 16, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
/* Prevent the header's transform from becoming the containing block for the
   fixed nav-drawer (would clip it to the header's box after scrolling down) */
.site-header:has(.nav-drawer.is-open) { transform: none; }

.nav-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 78px;
}

/* Group nav links, phone icon and CTA together and push them to the right,
   leaving the logo on the left with room to breathe in between */
.nav-bar > nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 75px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links a.nav-item {
  display: block;
  padding: 10px 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a.nav-item:hover, .nav-links a.nav-item.is-active { color: var(--orange-bright); }

/* ---------- Services mega menu (desktop) ----------
   The panel is positioned against .site-header rather than the nav <li>, so
   its width and centring resolve against the same box as .shell-wide. That
   locks it to the page container at every desktop width instead of hanging
   off a narrow nav item. .nav-drop must therefore stay position: static —
   the selector is qualified because .nav-links > li sets position: relative
   and would otherwise win on specificity, re-anchoring the panel to the li. */
.nav-links > li.nav-drop { position: static; }

/* Shared affordance marking the three items that carry a menu. Drawn from
   borders rather than an icon so it inherits the nav item's colour and stays
   consistent with the site's sharp geometry. */
.nav-drop > .nav-item::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 9px;
  vertical-align: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.55;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-drop:hover > .nav-item::after,
.nav-drop:focus-within > .nav-item::after { opacity: 1; transform: translateY(1px) rotate(225deg); }
.nav-drop.is-dismissed > .nav-item::after { opacity: 0.55; transform: translateY(-2px) rotate(45deg); }

.nav-drop-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  width: min(var(--shell-wide), 100% - var(--pad) * 2);
  background: var(--coal-800);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

/* Bridges the gap between the nav item and the panel so the pointer can
   travel down without leaving :hover. Because it belongs to the panel, it is
   only hoverable once the panel is already visible — it can never open the
   menu on its own the way a bridge on .nav-drop would. */
.nav-drop-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 22px;
}

.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; transform: translateY(0); }

/* Set by Escape and when a sibling menu takes over; outranks :hover and
   :focus-within so a panel can close without blurring its trigger. The
   transition is dropped here on purpose — a forced dismissal must clear
   immediately, or the outgoing panel cross-fades over the incoming one and
   two menus are briefly visible in the same position. */
.nav-drop.is-dismissed .nav-drop-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: none;
}

.mega {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) 2fr;
  gap: clamp(22px, 2.6vw, 44px);
  padding: clamp(22px, 2.4vw, 38px);
}

.mega-intro { align-self: start; }
.mega-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.mega-eyebrow::before {
  content: "";
  width: 30px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--stripe) 0 10px, transparent 10px 16px);
}
.mega-title {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--paper);
}
.mega-copy { color: var(--mute); font-size: 14px; line-height: 1.6; margin: 12px 0 20px; }
.mega-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  transition: gap 0.25s var(--ease), color 0.2s;
}
.mega-all svg { width: 16px; height: 16px; }
.mega-all:hover { gap: 14px; color: var(--orange-bright); }

/* Shared right-hand area: the rule and padding every menu sits behind,
   independent of how that menu arranges its own items. */
.mega-body {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 2.2vw, 36px);
}

.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.mega-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Services panel: 4 real services (not 3, like .mega-grid's base case
   below was built for — that's the About panel). Scoped to the Services
   panel specifically via its aria-label, so About's 3-column layout is
   untouched. Two states only, chosen by actual fit at the widths this
   site is verified at: a clean 2×2 by default, 4-across once the panel
   is wide enough that four real .mega-name/.mega-desc columns don't feel
   cramped. Never the awkward 3-then-1 the un-scoped 3-column base would
   otherwise produce for a 4-item list between 1201–1344px. */
.nav-drop-panel[aria-label="Services"] .mega-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1345px) {
  .nav-drop-panel[aria-label="Services"] .mega-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Grouped variant — used where items belong under labelled sets.
   auto-fit (not a fixed column count) so the same rule serves the
   3-group Service Area panel and the 5-group Insights panel: columns
   with no content collapse rather than leaving empty tracks, and a
   panel with more groups than fit at the current width wraps to a
   second row instead of squeezing type. */
.mega-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: clamp(18px, 2vw, 34px); }
.mega-set-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0 0 9px 15px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

/* Non-link set entry (Service Area's "Also Serving" counties — no
   dedicated page exists, so this is never a link, just information). */
.mega-plain { padding: 13px 15px; color: var(--mute); font-size: 12.5px; line-height: 1.6; }

/* Featured link inside a mega-intro column (Insights). Reuses .mega-link's
   block/hover treatment but sits among plain-text intro elements, so the
   same 15px left padding that separates it visually from .mega-body's grid
   would misalign it against the eyebrow/title/copy above — pulled back out
   with a negative margin so its text edge lines up with theirs. */
.mega-intro .mega-link { margin: 6px 0 14px -15px; }

/* One link treatment for all three menus */
.mega-link {
  display: block;
  height: 100%;
  padding: 13px 15px;
  border-left: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.mega-link:hover { border-color: var(--orange); background: rgba(255, 255, 255, 0.04); }
.mega-name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.2s;
}
.mega-link:hover .mega-name { color: var(--orange-bright); }
.mega-desc { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.55; margin-top: 5px; }

/* Two columns once three would squeeze the descriptions */
@media (max-width: 1200px) {
  .mega { grid-template-columns: minmax(200px, 0.7fr) 2fr; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-title { font-size: 24px; }
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Phone removed from desktop nav (sticky call CTA and contact page cover it) */
.nav-phone { display: none; }

/* Hamburger */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 48px;
  height: 48px;
  margin-left: auto;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-burger span {
  display: block;
  width: 28px;
  height: 4px;
  background: var(--paper);
  margin: 6px auto;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  background: rgba(13, 14, 16, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px var(--pad) 110px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  overflow-y: auto;
}
.nav-drawer.is-open { opacity: 1; visibility: visible; }
.nav-drawer a.drawer-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 7.5vw, 42px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 0;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s, color 0.2s;
}
.nav-drawer.is-open a.drawer-link { transform: translateY(0); opacity: 1; }
.nav-drawer a.drawer-link:hover { color: var(--orange-bright); }
.nav-drawer .drawer-sub { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); margin: 26px 0 6px; }
.nav-drawer .drawer-services a {
  display: inline-block;
  font-size: 15px;
  color: var(--mute);
  padding: 5px 12px 5px 0;
}
.nav-drawer .drawer-services a:hover { color: var(--orange-bright); }

/* ---------- Mobile drawer accordion (Services / Service Area / Insights) ----------
   Reuses .drawer-link's exact type scale and stagger-in animation for the
   trigger, so it reads as the same list of top-level items; only the
   affordance (a chevron, drawn the same way as the desktop .nav-drop one)
   and the click behaviour differ. */
.drawer-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 7.5vw, 42px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--paper);
  cursor: pointer;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s, color 0.2s;
}
.nav-drawer.is-open .drawer-trigger { transform: translateY(0); opacity: 1; }
.drawer-trigger:hover { color: var(--orange-bright); }
.drawer-trigger::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-left: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.drawer-trigger[aria-expanded="true"]::after { transform: rotate(225deg); }

.drawer-panel { display: none; padding: 4px 0 14px; }
.drawer-accordion.is-open .drawer-panel { display: block; }

.drawer-panel-group {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 16px 0 4px;
}
.drawer-panel-link {
  display: block;
  font-size: 16px;
  color: var(--mute);
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.drawer-panel-link:hover { color: var(--orange-bright); border-color: var(--orange); }
.drawer-panel-featured { font-weight: 600; color: var(--paper); }
.drawer-panel-text {
  font-size: 13.5px;
  color: var(--dim);
  padding: 4px 0 4px 14px;
}
.drawer-panel-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 14px 0 4px 14px;
}
.drawer-panel-all svg { width: 14px; height: 14px; }
.drawer-panel-all:hover { color: var(--orange-bright); }

/* Mobile sticky action bar */
.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 80;
  display: none;
  grid-template-columns: 1fr 1fr;
  background: rgba(19, 21, 24, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  /* Pushed clear of the consent banner (js/consent.js) whenever it is
     on screen — 0px the rest of the time, including today, since the
     banner never shows with no analytics vendor id configured. */
  transform: translateY(calc(-1 * var(--consentBannerOffset)));
  transition: transform 0.3s var(--ease);
}
.action-bar .btn { font-size: 16px; padding: 14px 10px; width: 100%; }

/* Call carries equal weight to Request Estimate here — phone is the
   client's stated first-choice contact method (see hesterProductionPlan
   P1-10), so the ghost/ratio treatment used elsewhere is overridden. */
.action-bar .btn-ghost { background: var(--orange); color: #160e05; }
.action-bar .btn-ghost:hover { background: var(--orange-bright); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(150px, 22vh, 220px) 0 var(--sec);
  background:
    linear-gradient(180deg, rgba(13, 14, 16, 0.55), var(--ink) 88%),
    var(--coal-800);
  overflow: hidden;
}
.page-hero .hero-art {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.34;
}
.page-hero .shell { position: relative; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 22px;
}
/* inline-block + a matching negative margin keeps the visible line
   untouched while giving the link itself a real ≥24px tap target (WCAG
   2.2 AA 2.5.8) — the plain inline anchor measured 16-21px tall before. */
.crumbs a { display: inline-block; padding-block: 4px; margin-block: -4px; color: var(--mute); transition: color 0.2s; }
.crumbs a:hover { color: var(--orange-bright); }
.crumbs span::before { content: "/"; margin-right: 8px; color: var(--coal-600); }

/* ---------- Cards & panels ---------- */
.panel {
  background: var(--coal-800);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.panel:hover { transform: translateY(-5px); border-color: rgba(244, 121, 33, 0.4); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8); }

.notch { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }

/* Quote cards — moved here from styleHome.css (September 12, 2026) once a
   second page (review.html) started using them; a page-specific stylesheet
   isn't loaded sitewide, so a shared component's CSS belongs in the shared
   stylesheet. Used by index.html's static #testimonials section and
   review.html's verified-reviews grid; the dormant #reviews section
   (js/reviews.js) also renders into this same markup shape when active. */
.quote-card { padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
/* The official Google "G" mark sits immediately left of the star row on
   every static review card, confirming the rating is a real Google review
   at a glance rather than a generic 5-star graphic. */
.quote-rating { display: flex; align-items: center; gap: 11px; }
.quote-google { width: 23px; height: 23px; flex: none; }
.quote-stars { display: flex; gap: 4px; }
.quote-stars svg { width: 18px; height: 18px; color: var(--stripe); fill: var(--stripe); }
.quote-stars svg.is-empty { fill: none; opacity: 0.35; }
.quote-card blockquote { color: var(--paper); font-size: 16.5px; line-height: 1.65; flex: 1; }
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

/* Stat counters */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
}
.stat-num .unit { color: var(--orange); }
.stat-label { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }

/* Checklist */
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  color: var(--mute);
}
.check-list li svg { width: 19px; height: 19px; flex: none; margin-top: 4px; color: var(--orange); }
.check-list li strong { color: var(--paper); font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.field label em { color: var(--orange); font-style: normal; }
.field input, .field select, .field textarea {
  background: var(--coal-900);
  border: 1px solid var(--line-strong);
  padding: 14px 16px;
  color: var(--paper);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 121, 33, 0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--dim); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e0452f; }
.field .error-msg { display: none; font-size: 13px; color: #ff7a66; }
.field.has-error .error-msg { display: block; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .span-2 { grid-column: span 2; }

/* Radio / choice chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-group label { cursor: pointer; }
.chip-group input { position: absolute; opacity: 0; pointer-events: none; }
.chip-group .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  background: var(--coal-900);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mute);
  transition: all 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.chip-group input:checked + .chip { background: var(--orange); border-color: var(--orange); color: #160e05; font-weight: 600; }
.chip-group .chip:hover { border-color: var(--orange); color: var(--paper); }
.chip-group input:checked + .chip:hover { color: #160e05; }

/* Form status banners */
.form-note { display: none; padding: 16px 18px; font-size: 15px; border-left: 3px solid; margin-top: 18px; }
.form-note.is-on { display: block; }
.form-note.ok { background: rgba(64, 168, 95, 0.12); border-color: #40a85f; color: #9fe0b4; }
.form-note.err { background: rgba(224, 69, 47, 0.1); border-color: #e0452f; color: #ffb3a6; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--rd, 0s);
}
/* Offset kept within --pad's guaranteed minimum (20px) so the
   pre-reveal state never pushes an element past its container's own
   edge, let alone the viewport — was 44px, which is what forced the
   site to depend on body { overflow-x: hidden } (P4-9) to mask real
   horizontal overflow at 390/768px widths. */
[data-reveal="left"]  { transform: translateX(-20px); }
[data-reveal="right"] { transform: translateX(20px); }
[data-reveal="zoom"]  { transform: scale(0.94); }
[data-reveal].is-in   { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
}

/* ---------- Marquee (service-area towns) ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--coal-900); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--orange); font-size: 13px; }
@keyframes marquee { to { transform: translateX(var(--marqueeDistance, -50%)); } }

/* ---------- CTA band ---------- */
/* Background swaps by viewport width, not image-set()'s device-pixel-ratio
   (a min-width cascade is the correct tool here, not image-set(): this
   background scales with viewport width at ~100vw on every one of the 22
   pages that use it, and image-set()'s x descriptor selects by device
   pixel ratio, which would serve the wrong-resolution file for a given
   screen size rather than the smaller one an actually-narrower viewport
   needs). Sits under a ~80-88% black gradient the whole time, so even the
   480w derivative reads as visually identical to the 1200w master — this
   was measured, not assumed (September 2026 performance audit). */
.cta-band {
  position: relative;
  text-align: center;
  padding-block: clamp(80px, 11vw, 140px);
  background:
    linear-gradient(180deg, rgba(13, 14, 16, 0.78), rgba(13, 14, 16, 0.88)),
    url("../images/graphics/responsive/480/crackFilling-480.webp") center / cover no-repeat;
}
@media (min-width: 640px) {
  .cta-band {
    background:
      linear-gradient(180deg, rgba(13, 14, 16, 0.78), rgba(13, 14, 16, 0.88)),
      url("../images/graphics/responsive/768/crackFilling-768.webp") center / cover no-repeat;
  }
}
@media (min-width: 1024px) {
  .cta-band {
    background:
      linear-gradient(180deg, rgba(13, 14, 16, 0.78), rgba(13, 14, 16, 0.88)),
      url("../images/graphics/webp/crackFilling.webp") center / cover no-repeat;
  }
}
.cta-band .h-sec { margin-bottom: 14px; }
.cta-band p { color: var(--mute); max-width: 56ch; margin: 0 auto 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--coal-900); border-top: 1px solid var(--line); position: relative; }
.footer-stripe { height: 6px; background: repeating-linear-gradient(90deg, var(--stripe) 0 50px, transparent 50px 88px); opacity: 0.75; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  padding-block: clamp(54px, 7vw, 84px);
}
.footer-brand p { color: var(--mute); font-size: 14.5px; margin: 16px 0 22px; max-width: 34ch; }
.footer-col h2, .footer-col h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 18px;
}
.footer-col ul li { padding: 5px 0; }
.footer-col a { color: var(--mute); font-size: 14.5px; transition: color 0.2s, transform 0.2s; display: inline-block; }
.footer-col a:hover { color: var(--orange-bright); transform: translateX(4px); }

.footer-contact li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; color: var(--mute); font-size: 14.5px; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--orange); }
.footer-contact a:hover { color: var(--orange-bright); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dim);
}
.footer-bottom a { color: var(--mute); }
.footer-bottom a:hover { color: var(--orange-bright); }

.dev-credit { display: inline-flex; width: fit-content; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; text-decoration: none; }
.dev-credit-text { color: var(--mute); opacity: 0.75; }
.dev-credit-logo { width: 70px; height: auto; flex-shrink: 0; opacity: 0.55; transition: opacity 0.2s; }
.dev-credit:hover .dev-credit-logo, .dev-credit:focus-within .dev-credit-logo { opacity: 1; }

/* ---------- Post cards (Home, Blog, related sections) ---------- */
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.post-card { display: flex; flex-direction: column; }
.post-card figure { aspect-ratio: 1200 / 630; overflow: hidden; }
.post-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover figure img { transform: scale(1.05); }
.post-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-cat {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
}
.post-body h3 { font-size: 22px; line-height: 1.15; }
.post-body p { font-size: 14.5px; color: var(--mute); }
.post-date { font-size: 12.5px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Before / After slider (Home + Projects) ---------- */
.ba-slider {
  position: relative;
  aspect-ratio: 9 / 5.5;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  user-select: none;
  touch-action: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 30px) 100%, 0 100%);
}
.ba-img, .ba-top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The reveal is a clip, never a resize. .ba-top stays exactly the size of the
   slider so the before image resolves its 100%/cover box against the same
   container as .ba-img and the two stay pixel-identical while dragging.
   Sizing this element instead would re-crop the image on every pointer move. */
.ba-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
  cursor: pointer;
  z-index: 3;
  translate: -2px 0;
}
.ba-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 52px;
  height: 52px;
  background: var(--orange);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}
.ba-grip svg { width: 22px; height: 22px; color: #160e05; }
.ba-tag {
  position: absolute;
  bottom: 38px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 7px 14px;
  background: rgba(13, 14, 16, 0.72);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.ba-tag-l { left: 22px; color: var(--mute); }
.ba-tag-r { right: 30px; color: var(--stripe); }

@media (max-width: 600px) {
  .ba-slider { aspect-ratio: 4 / 3; }
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.mt-1 { margin-top: 14px; } .mt-2 { margin-top: 28px; } .mt-3 { margin-top: 48px; }
.mb-1 { margin-bottom: 14px; } .mb-2 { margin-bottom: 28px; } .mb-3 { margin-bottom: 48px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* A small inline link sitting in body copy (the contact page's secondary
   cell number, locations.html's "Ask us") measures well under the 24px
   WCAG 2.2 AA tap-target minimum from font metrics alone. inline-block
   plus a matching negative margin gives it real height without shifting
   the surrounding line. */
.inline-tap { display: inline-block; padding-block: 5px; margin-block: -5px; }

/* Honeypot — hidden from humans and screen readers alike (unlike
   .sr-only, which stays in the accessibility tree on purpose). Catnip
   for bots that fill every input; the name must match HONEYPOT_FIELD
   in appsScript/config.gs. */
.honeypotField {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Consent banner — stays out of the DOM entirely on a page where
   analytics has no vendor id configured (js/consent.js). Built now
   so landing a real GA4/Clarity id is the only step left. */
:root { --consentBannerOffset: 0px; }
.consentBanner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  background: rgba(19, 21, 24, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
}
.consentBanner.isVisible { transform: translateY(0); opacity: 1; }
.consentBannerInner {
  position: relative;
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding: 20px var(--pad) 20px 22px;
  padding-right: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.consentBannerHeading { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.02em; color: var(--paper); margin-bottom: 4px; }
.consentBannerText { font-size: 14px; color: var(--mute); max-width: 640px; line-height: 1.5; }
.consentBannerLink { color: var(--orange-bright); text-decoration: underline; }
.consentBannerActions { display: flex; gap: 10px; margin-left: auto; }
.consentButton { font-family: var(--font-body); font-size: 14px; font-weight: 600; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; white-space: nowrap; }
.consentButtonAccept { background: var(--orange); color: #160e05; border-color: var(--orange); }
.consentButtonAccept:hover { background: var(--orange-bright); }
.consentButtonReject { background: transparent; color: var(--mute); }
.consentButtonReject:hover { color: var(--paper); border-color: var(--mute); }
.consentBannerClose {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: var(--dim);
  cursor: pointer;
}
.consentBannerClose svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.consentBannerClose:hover { color: var(--paper); }
@media (max-width: 760px) {
  .consentBannerInner { padding: 18px 48px 18px 18px; }
  .consentBannerActions { margin-left: 0; width: 100%; }
  .consentButton { flex: 1; text-align: center; }
}

/* Icon sizing default */
.ic { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a.nav-item { padding-inline: 7px; }
  .nav-cta .btn { padding-inline: 22px; }
}

@media (max-width: 1024px) {
  .nav-bar { justify-content: space-between; }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-burger { display: block; }
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 74px; } /* room for action bar */
  .action-bar.is-visible { display: grid; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { width: 100%; }
}

@media (max-width: 520px) {
  /* keep condensed display lines inside narrow viewports */
  .h-hero { font-size: clamp(32px, 10vw, 44px); }
  .h-sec { font-size: clamp(28px, 8vw, 38px); }
  /* tighten eyebrow kicker so long text fits on one line */
  .kicker { font-size: 12px; letter-spacing: 0.16em; gap: 10px; }
  .hero .kicker::before,
  .page-hero .kicker::before,
  .art-hero .kicker::before { width: 26px; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* stack dev credit so "Developed by:" sits above the logo on mobile */
  .dev-credit { flex-direction: column; align-items: flex-start; gap: 6px; }
}
