/* ==========================================================================
   BRICK BY BRICK GENERAL CONTRACTING — re-skinned from Template Zero
   Design tokens live here and only here. Palette sourced directly from
   Scott Reeves' real logo/business card (orange, charcoal, kraft paper).
   Nothing below the token block should ever contain a hardcoded color,
   font-family, or off-grid spacing value.
   ========================================================================== */

:root {
  /* ---- Color: sourced directly from Scott's real logo/business card ---- */
  --color-charcoal: #241c17;        /* base dark surface — dark asphalt-shingle charcoal */
  --color-charcoal-light: #332a23;  /* raised surface on dark sections (cards, nav) */
  --color-charcoal-line: #4a3f36;   /* hairline borders on dark surfaces */

  --color-kraft: #f3ead8;       /* base light surface — kraft-paper tone from the card stock */
  --color-kraft-dim: #e6d6b3;   /* raised/bordered surface on light sections */
  --color-ink: #241a10;           /* body text on light surfaces — warm near-black, not pure #000 */

  --color-brick: #f16f24;     /* primary + CTA accent — sampled directly from the logo icon */
  --color-brick-dark: #c1591d;/* hover/active state for brick orange */

  --color-steel: #5f6a72;          /* secondary accent — standing-seam metal roofing gray */
  --color-steel-dark: #454d54;

  --color-kraft-mute: #a8987e;          /* muted support — dividers, secondary text on dark */

  --color-white: #fbf7ee;

  /* ---- Type: paired for structural gravity + everyday readability ---- */
  --font-display: 'Arvo', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --fs-display-xl: clamp(2.75rem, 3.2vw + 2rem, 5.5rem);
  --fs-display-lg: clamp(2.1rem, 2vw + 1.5rem, 3.25rem);
  --fs-headline: clamp(1.5rem, 1vw + 1.25rem, 2rem);
  --fs-title: 1.3125rem;
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.8125rem;

  --lh-tight: 1.1;
  --lh-snug: 1.35;
  --lh-body: 1.6;

  /* ---- Spacing: 4px grid, no off-grid values anywhere ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Shape: small chamfered radius, not the rounded-SaaS default ---- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* ---- Elevation: warm-tinted shadows, never neutral black ---- */
  --shadow-sm: 0 1px 2px rgba(20, 24, 18, 0.28);
  --shadow-md: 0 8px 24px rgba(20, 24, 18, 0.32);
  --shadow-lg: 0 20px 48px rgba(20, 24, 18, 0.38);

  /* ---- Layout ---- */
  --content-max: 1220px;
  --content-pad: clamp(1.25rem, 4vw, 3rem);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1); /* overshoots past 1 then settles — the "pop" */
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 800ms;
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* old Edge/IE */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-kraft);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, p, figure {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Visible keyboard focus everywhere — never suppressed */
:focus-visible {
  outline: 3px solid var(--color-brick);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   SHARED
   ========================================================================== */

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: var(--space-24);
  border-bottom: 1px solid transparent;
}

.section--dark {
  background: var(--color-charcoal);
  color: var(--color-kraft);
}

.section--dark .eyebrow {
  color: var(--color-brick);
}

.section-head {
  margin-bottom: var(--space-12);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brick);
  margin-bottom: var(--space-4);
}

h2.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  line-height: var(--lh-tight);
  font-weight: 700;
}

.section-dek {
  margin-top: var(--space-4);
  font-size: var(--fs-body-lg);
  color: var(--color-steel);
  max-width: 38rem;
}

.section--dark .section-dek {
  color: var(--color-kraft-mute);
}

.section-dek a {
  color: var(--color-brick);
  font-weight: 600;
  text-decoration: none;
}

.section-dek a:hover {
  text-decoration: underline;
}

.legal-content {
  max-width: 42rem;
  margin-inline: auto;
}

.legal-content p,
.legal-content ul {
  color: var(--color-steel);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-top: var(--space-4);
}

.legal-content ul {
  padding-left: var(--space-6);
}

.legal-content li {
  margin-top: var(--space-2);
}

.legal-content li:first-child {
  margin-top: 0;
}

.legal-content a {
  color: var(--color-brick);
  font-weight: 600;
}

.legal-content h2.section-title {
  margin-top: var(--space-12);
  font-size: var(--fs-headline);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-brick);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-brick-dark);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.section--light .btn--ghost:hover,
.btn--ghost.on-light:hover {
  background: rgba(30, 43, 34, 0.06);
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-block: var(--space-5);
  background: transparent;
  transition: background var(--dur-med) var(--ease-out), padding-block var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

.site-header.is-scrolled {
  background: var(--color-charcoal);
  padding-block: var(--space-3);
  box-shadow: var(--shadow-md);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 2.25rem;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 6px rgba(10, 8, 6, 0.55));
}

.main-nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
}

.main-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(10, 8, 6, 0.55);
  transition: color var(--dur-fast) var(--ease-out);
}

.main-nav a:hover {
  color: var(--color-brick);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Below this width there isn't room for the logo, CTA button, and menu
   toggle on one line — the button moves into the mobile nav overlay instead. */
@media (max-width: 640px) {
  .nav-cta .btn--primary {
    display: none;
  }
}

.nav-toggle {
  display: inline-flex;
  background: rgba(10, 8, 6, 0.25);
  border: 1px solid var(--color-kraft);
  color: var(--color-kraft);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-small);
  text-shadow: 0 1px 6px rgba(10, 8, 6, 0.55);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-charcoal);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--content-pad);
  transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease-out);
}

.mobile-nav.is-open {
  transform: translateY(0);
}

.mobile-nav a {
  color: var(--color-kraft);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 2rem;
}

.mobile-nav a.mobile-nav__cta {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  white-space: nowrap;
  margin-top: var(--space-2);
}

.mobile-nav__close {
  position: absolute;
  top: var(--space-5);
  right: var(--content-pad);
  background: none;
  border: none;
  color: var(--color-kraft);
  font-size: var(--fs-title);
}

/* ==========================================================================
   HERO
   One concern: land the promise ("built to outlast") over a real finished
   build, at the light golden hour that's the payoff of the whole trade.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* True "fixed background" parallax: while any part of the hero is still
   on screen, the image is pinned to the viewport (position: fixed) so it
   stays virtually still while the content scrolls normally over it — the
   strongest version of the effect. script.js adds .is-past the instant
   the hero has fully scrolled out of view, switching the image back to a
   normal absolute position (pinned to the bottom of .hero__media) so it
   scrolls away with the page instead of staying stuck over later sections. */
.hero__media img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

.hero__media img.is-past {
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(15, 20, 15, 0.5) 0%,
      rgba(15, 20, 15, 0) 22%
    ),
    linear-gradient(
      to top,
      rgba(15, 20, 15, 0.94) 0%,
      rgba(15, 20, 15, 0.72) 45%,
      rgba(15, 20, 15, 0.45) 75%,
      rgba(15, 20, 15, 0.22) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
  max-width: var(--content-max);
  margin-inline: auto;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display-xl);
  line-height: var(--lh-tight);
  max-width: 18ch;
  text-shadow: 0 2px 16px rgba(10, 8, 6, 0.5);
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateX(-3rem);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-pop);
}

.hero-line.intro-in {
  opacity: 1;
  transform: translateX(0);
}

.hero-line--2 {
  color: var(--color-brick);
}

.hero__dek {
  margin-top: var(--space-6);
  font-size: var(--fs-body-lg);
  color: var(--color-kraft);
  max-width: 46ch;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  text-shadow: 0 1px 10px rgba(10, 8, 6, 0.45);
}

.hero__dek.intro-in {
  opacity: 0.92;
  transform: translateY(0);
}

.hero__actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.hero__actions.intro-in {
  opacity: 1;
  transform: translateY(0);
}

/* Belt-and-suspenders: if JS never runs, none of this should stay hidden. */
.no-js .hero-line {
  opacity: 1;
  transform: none;
}

.no-js .hero__dek {
  opacity: 0.92;
  transform: none;
}

.no-js .hero__actions {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   SERVICES — roofing is the specialty and gets a full feature treatment;
   everything else is real work Scott also handles, shown as a compact
   scannable grid of icon chips rather than nine competing photo cards.
   ========================================================================== */

.services-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.service-feature {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-charcoal);
  color: var(--color-kraft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 700px) {
  .service-feature {
    grid-template-columns: 1.1fr 1fr;
  }
}

.service-feature__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

@media (min-width: 700px) {
  .service-feature__media {
    aspect-ratio: auto;
  }
}

.service-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-feature__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: center;
}

.service-feature__tag {
  display: inline-block;
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brick);
}

.service-feature__body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  font-weight: 700;
}

.service-feature__body p {
  color: var(--color-kraft-mute);
  font-size: var(--fs-body-lg);
  max-width: 36ch;
}

.service-feature__list {
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-charcoal-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-feature__list li {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--color-charcoal);
  background: var(--color-brick);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
}

.services-grid-compact {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}

/* 10 chips divides evenly at 2 columns (5 rows) but leaves the last one
   stranded at 3 columns (10 / 3 = 3 rows + 1) — stretch it across the
   full row only at the 3-column breakpoint so it stays even edge-to-edge. */
.services-grid-compact > :last-child {
  grid-column: auto;
}

@media (min-width: 560px) {
  .services-grid-compact {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid-compact > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .services-grid-compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-chip {
  background: var(--color-white);
  border: 1px solid var(--color-kraft-dim);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.service-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.service-chip__icon {
  color: var(--color-brick);
  width: 28px;
  height: 28px;
}

.service-chip__icon svg {
  width: 100%;
  height: 100%;
}

.service-chip h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0;
}

.service-chip p {
  color: var(--color-steel);
  font-size: var(--fs-small);
  margin: 0;
}

/* ==========================================================================
   GALLERY — real project photos, curated. A large featured shot plus a
   supporting row does more work than a dense thumbnail grid when there's
   only a handful of jobs photographed so far.
   ========================================================================== */

.gallery-layout {
  display: grid;
  gap: var(--space-4);
}

.gallery-featured {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: none;
}

.gallery-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery-featured:hover img {
  transform: scale(1.03);
}

.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-6) var(--space-6) var(--space-5);
  background: linear-gradient(to top, rgba(10, 8, 6, 0.85) 0%, rgba(10, 8, 6, 0) 100%);
  color: var(--color-white);
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 600;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

/* 5 thumbs is an odd count at 2 columns, leaving the last one stranded on
   the left with empty space beside it — just drop it on mobile so the
   grid stays an even 2x2, and bring it back once there's room for all 5. */
.gallery-row > :last-child {
  display: none;
}

@media (min-width: 700px) {
  .gallery-row {
    grid-template-columns: repeat(5, 1fr);
  }

  .gallery-row > :last-child {
    display: block;
  }
}

.gallery-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: none;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

.gallery-extra {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-charcoal-line);
}

.gallery-extra__head {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-kraft-mute);
  margin-bottom: var(--space-4);
}

.gallery-extra__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(1, 1fr);
}

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

.gallery-extra__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: none;
}

.gallery-extra__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}

.gallery-extra__item:hover img {
  transform: scale(1.06);
}

.gallery-extra__item .gallery-cap {
  padding: var(--space-4) var(--space-4) var(--space-3);
  font-size: var(--fs-small);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--content-pad);
  background: rgba(12, 9, 7, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: min(90vw, 1400px);
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox__cap {
  margin-top: var(--space-4);
  color: var(--color-kraft);
  font-size: var(--fs-small);
  text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: transparent;
  border: 1px solid var(--color-kraft-mute);
  color: var(--color-white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-title);
  line-height: 1;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  border-color: var(--color-brick);
  color: var(--color-brick);
}

.lightbox__close {
  top: var(--space-5);
  right: var(--content-pad);
  border-radius: var(--radius-sm);
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-small);
}

.lightbox__prev {
  left: var(--content-pad);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: var(--content-pad);
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .lightbox__prev,
  .lightbox__next {
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   PROOF — stat row + a single testimonial with photo, on the dark surface.
   ========================================================================== */

.proof-grid {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .proof-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 500px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  color: var(--color-brick);
  line-height: 1;
  white-space: nowrap;
}

.stat dt {
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-kraft-mute);
}

.testimonial {
  border-left: 3px solid var(--color-brick);
  padding-left: var(--space-6);
}

.testimonial-link {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-headline);
  line-height: var(--lh-snug);
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-fast) var(--ease-out);
}

.testimonial-link:hover {
  color: var(--color-brick);
}

.proof-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.proof-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   REVIEWS — real Google reviews in a compact horizontal slider, not a
   page-filling wall of cards. All 5-star, sourced from the business's
   real Google Business Profile.
   ========================================================================== */

.review-stars {
  color: var(--color-brick);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-3);
}

.reviews-slider {
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: var(--space-1);
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  /* fade the edges so cards entering/leaving don't hard-clip */
  mask-image: linear-gradient(to right, transparent 0, #000 var(--space-8), #000 calc(100% - var(--space-8)), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--space-8), #000 calc(100% - var(--space-8)), transparent 100%);
}

.reviews-slider::-webkit-scrollbar {
  display: none;
}

.reviews-slider.is-dragging {
  cursor: grabbing;
}

.reviews-track {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  width: max-content;
}

.review-card {
  flex: 0 0 auto;
  width: 260px;
  background: var(--color-white);
  border: 1px solid var(--color-kraft-dim);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 560px) {
  .review-card {
    width: 300px;
  }
}

.review-card__quote {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--color-ink);
}

.review-card__name {
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--color-charcoal);
}

.review-card__name span {
  font-weight: 400;
  color: var(--color-steel);
}

.review-card__reply {
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-kraft-dim);
  font-size: var(--fs-label);
  color: var(--color-steel);
  font-style: italic;
}

/* ==========================================================================
   PROCESS — the one place a sequential 01–04 device is earned: a build
   genuinely happens in this order, every time.
   ========================================================================== */

.process-list {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 700px) {
  .process-list {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.process-step {
  counter-increment: step;
  position: relative;
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-kraft-dim);
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -0.85em;
  left: 0;
  background: var(--color-kraft);
  padding-right: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--color-brick);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  color: var(--color-charcoal);
  margin-bottom: var(--space-2);
}

.process-step p {
  color: var(--color-steel);
  font-size: var(--fs-body);
}

/* On a dark section the light-surface defaults above (a cream divider and
   a cream number chip) read as a washed-out, disconnected line — swap in
   dark-surface equivalents so the chip and rule sit on the same surface
   as everything else in the section. */
.section--dark .process-step {
  border-top-color: var(--color-charcoal-line);
}

.section--dark .process-step::before {
  background: var(--color-charcoal);
}

.section--dark .process-step h3 {
  color: var(--color-kraft);
}

.section--dark .process-step p {
  color: var(--color-kraft-mute);
}

/* ==========================================================================
   SERVICE AREA
   ========================================================================== */

.area-layout {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .area-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-6);
}

.area-list li {
  font-size: var(--fs-body-lg);
  font-family: var(--font-display);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-kraft-dim);
}

.area-note {
  margin-top: var(--space-6);
  color: var(--color-steel);
  font-size: var(--fs-small);
}

.area-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.area-media img,
.area-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-layout {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-direct a {
  color: var(--color-kraft);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--fs-title);
}

.contact-direct a:hover {
  color: var(--color-brick);
}

.contact-direct__label {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-kraft-mute);
  margin-bottom: var(--space-1);
}

.contact-direct__tag {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0.1em 0.5em;
  border-radius: var(--radius-sm);
  background: var(--color-brick);
  color: var(--color-charcoal);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.contact-direct__note {
  margin-top: var(--space-1);
  font-size: var(--fs-small);
  color: var(--color-kraft-mute);
  max-width: 34ch;
  text-wrap: pretty;
}

.contact-form {
  display: grid;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-kraft);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  background: var(--color-charcoal-light);
  border: 1px solid var(--color-charcoal-line);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: var(--color-white);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-kraft-mute);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-brick);
}

.form-status {
  font-size: var(--fs-small);
  color: var(--color-brick);
  min-height: 1.2em;
}

/* ALTCHA bot check (api/altcha-challenge.mjs). Kept out of .field so the
   input rules above don't restyle its checkbox. Both contact forms sit on
   section--dark, so it's themed for the charcoal surface. */
.captcha altcha-widget {
  --altcha-color-base: var(--color-charcoal-light);
  --altcha-color-base-content: var(--color-white);
  --altcha-border-color: var(--color-charcoal-line);
  --altcha-color-neutral: var(--color-charcoal-line);
  --altcha-color-neutral-content: var(--color-kraft);
  --altcha-color-primary: var(--color-brick);
  --altcha-checkbox-border-color: var(--color-kraft-mute);
  --altcha-checkbox-outline-color: var(--color-brick);
  --altcha-border-radius: var(--radius-sm);
  --altcha-max-width: 100%;
  font-size: var(--fs-small);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--color-charcoal);
  color: var(--color-kraft-mute);
  padding-block: var(--space-12);
  padding-left: var(--content-pad);
}

.site-footer .wrap {
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: center;
}

.site-footer .logo img {
  height: 1.9rem;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-kraft-mute);
  text-decoration: none;
  font-size: var(--fs-small);
}

.footer-links a:hover {
  color: var(--color-kraft);
}

.footer-fine {
  width: 100%;
  font-size: var(--fs-label);
  margin-top: var(--space-6);
  color: var(--color-steel);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-brick);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.footer-social:hover {
  background: var(--color-brick-dark);
}

/* ==========================================================================
   PAGE HERO — the shorter banner used on every interior page (not the home
   page, which keeps its full-bleed parallax hero). One concern: land the
   page's topic over a real, relevant photo, with a breadcrumb for wayfinding.
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  overflow: hidden;
  padding-top: var(--space-24);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 6, 0.92) 0%, rgba(10, 8, 6, 0.55) 55%, rgba(10, 8, 6, 0.35) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-10);
  width: 100%;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-label);
  color: var(--color-kraft-mute);
  margin-bottom: var(--space-4);
}

.breadcrumbs a {
  color: var(--color-kraft-mute);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-white);
}

.breadcrumbs span[aria-current] {
  color: var(--color-white);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display-lg);
  line-height: var(--lh-tight);
  max-width: 24ch;
  text-shadow: 0 2px 16px rgba(10, 8, 6, 0.5);
}

/* Variant for services with no dedicated real job photo yet — an honest
   icon-led banner instead of a stock/generic photo. */
.page-hero--icon {
  background: var(--color-charcoal);
  min-height: 38vh;
}

.page-hero--icon .page-hero__media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(1rem, 6vw, 6rem);
  opacity: 0.16;
}

.page-hero--icon .page-hero__media svg {
  width: clamp(160px, 22vw, 320px);
  height: clamp(160px, 22vw, 320px);
  color: var(--color-brick);
}

.page-hero--icon .page-hero__media::after {
  content: none;
}

.page-hero__dek {
  margin-top: var(--space-4);
  font-size: var(--fs-body-lg);
  max-width: 52ch;
  color: var(--color-kraft);
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(10, 8, 6, 0.45);
}

/* ==========================================================================
   SERVICES HUB (services.html) — 10 services as equal, scannable cards.
   ========================================================================== */

.services-hub-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .services-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 11 cards is an odd count at 2 columns, stranding the last one alone
     on its row — stretch it full-width there. At 3 columns it lands as
     a normal 2-up final row, so no stretch is needed. */
  .services-hub-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .services-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-hub-grid > :last-child {
    grid-column: auto;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-kraft-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-card--specialty {
  grid-column: 1 / -1;
  flex-direction: column;
  background: var(--color-charcoal);
  color: var(--color-kraft);
}

@media (min-width: 700px) {
  .service-card--specialty {
    flex-direction: row;
  }
}

.service-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card--specialty .service-card__media {
  aspect-ratio: 16 / 10;
}

@media (min-width: 700px) {
  .service-card--specialty .service-card__media {
    width: 45%;
    aspect-ratio: auto;
  }
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.service-card:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.service-card--specialty .service-card__body {
  justify-content: center;
  padding: var(--space-8);
}

.service-card__icon {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-charcoal);
  color: var(--color-brick);
}

.service-card__icon svg {
  width: 30%;
  height: 30%;
}

.service-card__tag {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brick);
}

.service-card__body h2,
.service-card__body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  color: var(--color-charcoal);
}

.service-card--specialty .service-card__body h2 {
  font-size: var(--fs-display-lg);
  color: var(--color-white);
}

.service-card__body p {
  color: var(--color-steel);
  font-size: var(--fs-small);
  flex: 1;
}

.service-card--specialty .service-card__body p {
  color: var(--color-kraft-mute);
  font-size: var(--fs-body-lg);
  max-width: 40ch;
}

.service-card__link {
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-brick);
}

/* ==========================================================================
   SERVICE DETAIL (individual service pages) — overview, list, cross-links.
   ========================================================================== */

.service-overview {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .service-overview {
    grid-template-columns: 1fr 1fr;
  }
}

.service-overview__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.service-overview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  font-size: var(--fs-body-lg);
}

.check-list li::before {
  content: '\2713';
  color: var(--color-brick);
  font-weight: 700;
}

.related-services {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .related-services {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-services a {
  display: block;
  text-align: center;
  padding: var(--space-5) var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-kraft-dim);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-display);
  color: var(--color-charcoal);
  font-size: var(--fs-body);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.related-services a:hover {
  transform: translateY(-2px);
  border-color: var(--color-brick);
}

/* ==========================================================================
   FAQ — native <details>/<summary>: keyboard-accessible and JS-free.
   Written as real question/answer pairs so it doubles as FAQPage schema
   content and as plain-language answers the way AI answer engines and
   search snippets prefer to quote.
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 46rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-kraft-dim);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-5);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding-block: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--fs-body-lg);
  color: var(--color-charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--color-brick);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: var(--space-5);
  color: var(--color-steel);
  font-size: var(--fs-body);
  max-width: 56ch;
}

/* ==========================================================================
   PROJECT GALLERY (gallery.html) — one card per real project: a big final
   result photo, with the real build steps in a smaller slider underneath.
   ========================================================================== */

.project {
  margin-bottom: var(--space-24);
  scroll-margin-top: var(--space-24);
}

.project:last-child {
  margin-bottom: 0;
}

.project__head {
  margin-bottom: var(--space-6);
}

.project__tag {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brick);
  display: block;
  margin-bottom: var(--space-2);
}

.project__head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  color: var(--color-charcoal);
}

.project__head p {
  margin-top: var(--space-3);
  color: var(--color-steel);
  font-size: var(--fs-body-lg);
  max-width: 60ch;
}

.project__hero {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: none;
  margin-bottom: var(--space-5);
}

.project__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.project__hero:hover img {
  transform: scale(1.02);
}

.project__hero .gallery-cap {
  font-size: var(--fs-body-lg);
}

.steps-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.steps-slider {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  gap: var(--space-4);
  flex: 1;
  padding-block: var(--space-1);
}

.steps-slider::-webkit-scrollbar {
  display: none;
}

/* Static variant for projects with few enough step photos that a
   scrollable slider (and its prev/next arrows) isn't needed — same
   .step-thumb cards, just laid out in a plain grid instead. */
.steps-static {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.steps-static .step-thumb {
  width: 100%;
}

@media (min-width: 620px) {
  .steps-static {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-thumb {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 220px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.step-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}

.step-thumb:hover img {
  transform: scale(1.05);
}

.step-thumb__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(to top, rgba(10, 8, 6, 0.85), rgba(10, 8, 6, 0));
  color: var(--color-white);
  font-size: var(--fs-label);
  font-weight: 600;
  text-align: left;
}

.steps-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-kraft-dim);
  background: var(--color-white);
  color: var(--color-charcoal);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-title);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.steps-nav:hover {
  border-color: var(--color-brick);
  color: var(--color-brick);
}

@media (min-width: 700px) {
  .steps-nav {
    display: flex;
  }
}

/* ==========================================================================
   REVIEWS PAGE — the full, non-scrolling grid version of the review card,
   for reviews.html (the home page keeps the compact auto-scroll slider).
   ========================================================================== */

.reviews-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reviews-grid .review-card {
  width: auto;
}

/* ==========================================================================
   SERVICE AREA: coverage block, ZIP checker, city pages, county groups.
   Added for the service-area system. Mobile first throughout: every grid
   below starts single-column and only widens at an explicit breakpoint.
   No hardcoded colors, fonts or off-grid spacing, same rule as the rest of
   this file.
   ========================================================================== */

/* ---- Coverage block -------------------------------------------------------
   One component, three variants. The copy lives in src/partials/coverage.mjs
   and is injected by the generator, so it is identical everywhere it renders.
   -------------------------------------------------------------------------- */

.section--coverage {
  padding-block: var(--space-16);
}

.coverage {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 860px) {
  .coverage {
    grid-template-columns: 1fr auto;
    gap: var(--space-12);
  }
}

.coverage__lead {
  font-family: var(--font-display);
  font-size: var(--fs-headline);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-4);
}

.coverage__body {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  max-width: 54ch;
}

.coverage__prompt {
  margin-top: var(--space-4);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 54ch;
}

.coverage__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

@media (min-width: 860px) {
  .coverage__actions {
    align-items: flex-end;
    text-align: right;
  }
}

.coverage__actions .btn {
  white-space: nowrap;
}

.coverage__link {
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-brick);
}

.coverage__link:hover {
  text-decoration: underline;
}

/* Variant: on a light band. */
.coverage--light .coverage__lead {
  color: var(--color-ink);
}

.coverage--light .coverage__body,
.coverage--light .coverage__prompt {
  color: var(--color-steel);
}

/* Variant: on a dark band. kraft on charcoal clears AA comfortably; the
   muted tone is reserved for the secondary line only. */
.coverage--dark .coverage__lead {
  color: var(--color-kraft);
}

.coverage--dark .coverage__body {
  color: var(--color-kraft);
}

.coverage--dark .coverage__prompt {
  color: var(--color-kraft-mute);
}


/* ---- ZIP checker ---------------------------------------------------------- */

.section--zipcheck {
  padding-block: var(--space-20);
}

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

.zipcheck__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.zipcheck__input {
  flex: 1 1 8rem;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-kraft-dim);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
}

.zipcheck__input:focus-visible {
  outline: 2px solid var(--color-brick);
  outline-offset: 1px;
  border-color: var(--color-brick);
}

.zipcheck__submit {
  flex: 0 0 auto;
}

.zipcheck__result {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-kraft-dim);
  background: var(--color-white);
  border-left: 3px solid var(--color-steel);
  color: var(--color-ink);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.zipcheck__result p + p {
  margin-top: var(--space-3);
}

.zipcheck__headline {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  line-height: var(--lh-snug);
}

/* Three answer states, distinguished by the rule on the left rather than by
   tinting the whole panel, so the body text keeps one known contrast ratio. */
.zipcheck__result.is-yes {
  border-left-color: var(--color-brick);
}

.zipcheck__result.is-maybe {
  border-left-color: var(--color-steel);
}

.zipcheck__result.is-far {
  border-left-color: var(--color-kraft-mute);
}

.zipcheck__result.is-invalid {
  border-left-color: var(--color-kraft-dim);
}

.zipcheck__links {
  font-size: var(--fs-small);
}

.zipcheck__links a {
  color: var(--color-brick);
  font-weight: 600;
}

.zipcheck__cta {
  margin-top: var(--space-5);
}

.zipcheck__noscript {
  margin-top: var(--space-4);
  font-size: var(--fs-small);
  color: var(--color-steel);
}

/* Dark-surface treatment. Applies to the footer checker and to the page
   checker when it sits in a section--dark band. The light styles above are the
   default, these override only the surfaces that need to change. */
.section--dark .zipcheck__input,
.zipcheck--footer .zipcheck__input {
  background: var(--color-charcoal-light);
  border-color: var(--color-charcoal-line);
  color: var(--color-kraft);
}

.section--dark .zipcheck__input::placeholder,
.zipcheck--footer .zipcheck__input::placeholder {
  color: var(--color-kraft-mute);
}

.section--dark .zipcheck__result,
.zipcheck--footer .zipcheck__result {
  background: var(--color-charcoal-light);
  border-color: var(--color-charcoal-line);
  color: var(--color-kraft);
}

.section--dark .zipcheck__headline,
.zipcheck--footer .zipcheck__headline {
  color: var(--color-kraft);
}

.section--dark .zipcheck__noscript,
.zipcheck--footer .zipcheck__noscript {
  color: var(--color-kraft-mute);
}

/* The left rule still carries the answer state, so re-assert it after the
   border-color reset above. */
.section--dark .zipcheck__result.is-yes,
.zipcheck--footer .zipcheck__result.is-yes {
  border-left-color: var(--color-brick);
}

.section--dark .zipcheck__result.is-maybe,
.zipcheck--footer .zipcheck__result.is-maybe {
  border-left-color: var(--color-steel);
}

.section--dark .zipcheck__result.is-far,
.zipcheck--footer .zipcheck__result.is-far {
  border-left-color: var(--color-kraft-mute);
}

.section--dark .zipcheck__result.is-invalid,
.zipcheck--footer .zipcheck__result.is-invalid {
  border-left-color: var(--color-charcoal-line);
}

/* Footer variant: compact, on the dark footer surface. */
.zipcheck--footer {
  width: 100%;
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-charcoal-line);
}

.zipcheck__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brick);
}

.zipcheck--footer .zipcheck__form {
  margin-top: var(--space-4);
  max-width: 24rem;
}

/* ---- City pages ----------------------------------------------------------- */

.city-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  margin-top: var(--space-6);
  font-size: var(--fs-small);
  color: var(--color-kraft-mute);
}

.city-meta strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brick);
  margin-bottom: var(--space-1);
}

.city-meta span span,
.city-meta > span {
  color: var(--color-kraft);
}

.city-intro {
  max-width: 68ch;
}

.city-intro p {
  margin-top: var(--space-5);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
}

.section--light .city-intro p {
  color: var(--color-steel);
}

.section--dark .city-intro p {
  color: var(--color-kraft);
}

.city-intro p strong {
  color: var(--color-ink);
}

.section--dark .city-intro p strong {
  color: var(--color-kraft);
}

.city-intro__hoa {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-kraft-dim);
  border-left: 3px solid var(--color-steel);
  border-radius: var(--radius-md);
  font-size: var(--fs-body) !important;
}

.city-services {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .city-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .city-services {
    grid-template-columns: repeat(4, 1fr);
  }
}

.city-service {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-charcoal-light);
  border: 1px solid var(--color-charcoal-line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.city-service:hover {
  transform: translateY(-2px);
  border-color: var(--color-brick);
}

.city-service h3 {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  line-height: var(--lh-snug);
  color: var(--color-kraft);
}

.city-service p {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--color-kraft-mute);
  flex: 1 1 auto;
}

.city-service__link {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brick);
}

.city-services__all {
  margin-top: var(--space-8);
  font-size: var(--fs-small);
}

.city-services__all a {
  color: var(--color-brick);
  font-weight: 600;
  text-decoration: none;
}

.city-services__all a:hover {
  text-decoration: underline;
}

/* Placeholder standing in for per-city job photos. Reads as a deliberate
   pointer to the projects page rather than an empty slot. */
.city-photos-todo {
  display: grid;
  gap: var(--space-6);
  justify-items: start;
  padding: var(--space-8);
  background: var(--color-white);
  border: 1px dashed var(--color-kraft-dim);
  border-radius: var(--radius-md);
}

.city-photos-todo p {
  max-width: 60ch;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--color-steel);
}

.city-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.city-cta__note {
  margin-top: var(--space-8);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-kraft-mute);
}

.city-cta__note a {
  color: var(--color-brick);
}

/* ---- County groups, hub page ---------------------------------------------- */

.area-group + .area-group {
  margin-top: var(--space-10);
}

.area-group__head {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  line-height: var(--lh-snug);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-charcoal-line);
}

.section--light .area-group__head {
  border-bottom-color: var(--color-kraft-dim);
  color: var(--color-ink);
}

.section--dark .area-group__head {
  color: var(--color-kraft);
}

.area-group__list {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .area-group__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Capped at two columns deliberately. Denton County has eight cities and
   Cooke County two, so a two-column grid fills every row completely in both
   groups. Three columns would leave a ragged 3/3/2 under Denton. */

.area-group__list--linked a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-charcoal-light);
  border: 1px solid var(--color-charcoal-line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.area-group__list--linked a:hover {
  transform: translateY(-2px);
  border-color: var(--color-brick);
}

.area-group__city {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  color: var(--color-kraft);
}

.area-group__drive {
  font-size: var(--fs-label);
  color: var(--color-kraft-mute);
  text-align: right;
}

/* Extended towns: plain crawlable text, deliberately not links. */
.area-group__towns {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--color-steel);
  max-width: 80ch;
}

/* Homepage area list, now linked through to the city pages. */
.area-list--linked li {
  border-bottom: none;
  padding-block: 0;
}

.area-list--linked a {
  display: block;
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-kraft-dim);
  text-decoration: none;
  color: var(--color-ink);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.area-list--linked a:hover {
  color: var(--color-brick);
  border-bottom-color: var(--color-brick);
}


/* Footer checker: sizing only, colours come from the dark-surface rules above. */
.zipcheck--footer .zipcheck__input {
  font-size: var(--fs-body);
}

.zipcheck--footer .zipcheck__result {
  max-width: 34rem;
  font-size: var(--fs-small);
  padding: var(--space-4) var(--space-5);
}

.zipcheck--footer .zipcheck__headline {
  font-size: var(--fs-body);
}
