/* ============================================================================
   SCOTT DRYWALL — 417drywall.com
   Design system + styles. Hand-authored, zero-dependency, fast, SEO-friendly.
   Fonts: Oswald (display) + Inter (body) — loaded in <head>.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Brand palette — charcoal (industrial) + steel blue (trust) + safety orange (action) */
  --ink:        #1e293b;   /* slate — dark sections, footer, headings */
  --ink-2:      #273449;   /* raised surface on dark */
  --ink-3:      #3a4a61;   /* borders/dividers on dark */

  --blue:       #2563eb;   /* primary — trust, links */
  --blue-700:   #1d4ed8;
  --blue-900:   #1e3a8a;   /* deep navy for headings/accents */
  --blue-050:   #eef4ff;   /* tinted surface */

  --accent:     #2563eb;   /* accent / CTA — steel blue */
  --accent-600: #1d4ed8;   /* CTA hover */
  --accent-050: #e8f0fe;   /* light blue tint (icon chips, feature icon bg) */
  --accent-light: #60a5fa; /* accent on dark / slate backgrounds */

  --white:      #ffffff;
  --paper:      #f6f8fb;   /* page alt surface */
  --surface:    #ffffff;   /* cards */
  --muted:      #eef1f5;   /* chips, subtle fills */
  --border:     #dbe2ea;   /* light borders */
  --border-2:   #c8d2dd;

  --text:       #182430;   /* body text on light */
  --text-soft:  #45566a;   /* secondary text */
  --text-faint: #6b7c8f;   /* captions */

  --success:    #17803d;
  --danger:     #c92a2a;
  --star:       #f5a623;

  /* Typography */
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (fluid) */
  --fs-hero: clamp(2.5rem, 6.2vw, 4.75rem);
  --fs-h1:   clamp(2.1rem, 4.6vw, 3.4rem);
  --fs-h2:   clamp(1.7rem, 3.4vw, 2.6rem);
  --fs-h3:   clamp(1.25rem, 2vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-body: 1.0625rem;   /* ~17px */
  --fs-sm:   0.9375rem;
  --fs-xs:   0.8125rem;

  /* Spacing scale (8pt) */
  --sp-1: 0.5rem;  --sp-2: 1rem;    --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;    --sp-6: 4rem;    --sp-7: 6rem;    --sp-8: 8rem;

  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(20, 24, 29, 0.06), 0 1px 3px rgba(20, 24, 29, 0.08);
  --sh-2: 0 4px 12px rgba(20, 24, 29, 0.08), 0 2px 4px rgba(20, 24, 29, 0.06);
  --sh-3: 0 12px 32px rgba(20, 24, 29, 0.12), 0 4px 8px rgba(20, 24, 29, 0.06);
  --sh-accent: 0 8px 24px rgba(37, 99, 235, 0.28);

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --header-h: 76px;

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

/* ---------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--blue-700); }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}
p { text-wrap: pretty; }

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

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--r-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------------------------------------------------------------------------
   3. LAYOUT HELPERS
   ------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: var(--ink); color: #d7dde4; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.8rem; color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.section--dark .eyebrow { color: #60a5fa; }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 0.85rem; }
.section-head p { font-size: var(--fs-lead); color: var(--text-soft); }
.section--dark .section-head p { color: #aeb8c4; }

.lead { font-size: var(--fs-lead); color: var(--text-soft); }

/* ---------------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; font-size: 0.95rem;
  padding: 0.95rem 1.6rem; border-radius: var(--r-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap; cursor: pointer; border: 2px solid transparent;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--white); box-shadow: var(--sh-accent); }
.btn--primary:hover { background: var(--accent-600); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,99,235,0.40); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--white); transform: translateY(-2px); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }

.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------------
   5. HEADER / NAV
   ------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease);
}
.header.is-stuck { box-shadow: var(--sh-2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand__badge { width: 46px; height: 46px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: 0.02em; color: var(--ink); text-transform: uppercase; }
.brand__tag { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  font-weight: 600; font-size: 0.93rem; color: var(--text); padding: 0.5rem 0.72rem; border-radius: var(--r-sm);
  white-space: nowrap;
}
.nav a:hover { color: var(--blue); background: var(--blue-050); }

.header__cta { display: flex; align-items: center; gap: 0.75rem; }
.header__phone { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); letter-spacing: 0.02em; white-space: nowrap; }
.header__phone svg { width: 18px; height: 18px; color: var(--accent); }
.header__phone:hover { color: var(--accent); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero {
  position: relative; color: #e9edf2; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(30,41,59,0.80) 0%, rgba(30,41,59,0.90) 60%, rgba(23,32,48,0.96) 100%),
    linear-gradient(115deg, #1e293b 0%, #2b3b53 55%, #1a2334 100%);
}
/* subtle diagonal "drywall seam" texture */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: repeating-linear-gradient(125deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 42px);
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%;
  background: radial-gradient(closest-side, rgba(27,79,214,0.22), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.hero__eyebrow { color: #60a5fa; }

.hero h1 {
  color: var(--white); font-size: var(--fs-hero); font-weight: 700; letter-spacing: 0.005em;
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub { font-size: var(--fs-lead); color: #b9c2ce; max-width: 46ch; margin-bottom: 1.9rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); font-weight: 600; color: #cfd7e0; }
.chip svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* Hero side card (estimate) */
.hero__card {
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 2.5vw, 2.1rem);
  backdrop-filter: blur(6px); box-shadow: var(--sh-3);
}
.hero__card h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.35rem; }
.hero__card p { color: #b9c2ce; font-size: var(--fs-sm); margin-bottom: 1.25rem; }

/* Big 417 watermark badge inside hero card */
.hero__badge-417 {
  display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.1rem;
}
.hero__badge-417 .num { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 0.8; color: var(--accent); letter-spacing: 0.02em; }
.hero__badge-417 .lbl { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: #aeb8c4; }

/* ---------------------------------------------------------------------------
   6b. PAGE HERO (service sub-pages) + BREADCRUMB
   ------------------------------------------------------------------------- */
.page-hero { position: relative; color: #e9edf2; background: var(--ink); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(30,41,59,0.94) 0%, rgba(30,41,59,0.83) 50%, rgba(30,41,59,0.64) 100%);
}
.page-hero__inner { position: relative; z-index: 2; padding-block: clamp(2.75rem, 6vw, 5rem); max-width: 780px; }
.page-hero h1 { color: var(--white); font-size: var(--fs-h1); margin-bottom: 1.1rem; }
.page-hero h1 .accent { color: var(--accent); }
.page-hero__sub { font-size: var(--fs-lead); color: #c2cbd6; max-width: 60ch; margin-bottom: 1.75rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; font-size: var(--fs-sm); margin-bottom: 1.15rem; }
.breadcrumb a { color: #cfd7e0; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: #60a5fa; }
.breadcrumb .sep { color: #6c7885; }

/* ---------------------------------------------------------------------------
   7. TRUST BAR (stats)
   ------------------------------------------------------------------------- */
.trustbar { background: var(--ink-2); border-top: 1px solid var(--ink-3); }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.75rem; }
.stat { text-align: center; color: #cdd5df; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--white); line-height: 1; }
.stat__num .plus { color: var(--accent); }
.stat__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: #93a0af; margin-top: 0.4rem; }
.stat + .stat { border-left: 1px solid var(--ink-3); }

/* ---------------------------------------------------------------------------
   8. SERVICES
   ------------------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.service-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.5vw, 2.1rem);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  overflow: hidden;
}
.service-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform var(--dur) var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--border-2); }
.service-card:hover::after { transform: scaleY(1); }

.service-card__icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-050); color: var(--blue); margin-bottom: 1.15rem;
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; color: var(--ink); }
.service-card p { color: var(--text-soft); font-size: var(--fs-sm); margin-bottom: 1rem; }
.service-card ul { display: grid; gap: 0.5rem; }
.service-card li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: var(--fs-sm); color: var(--text); }
.service-card li svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* Pricing card price line */
.price-line { display: flex; align-items: baseline; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; border-top: 1px dashed var(--border-2); }
.service-card .price-line { margin-top: 1rem; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: 0.01em; }
.price-unit { font-size: var(--fs-xs); color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-note { text-align: center; max-width: 62ch; margin: 2rem auto 0; font-size: var(--fs-sm); color: var(--text-faint); }
#pricing .service-card { display: flex; flex-direction: column; }

/* ---------------------------------------------------------------------------
   9. FEATURE / WHY-US SPLIT
   ------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.feature-list { display: grid; gap: 1.4rem; margin-top: 1.5rem; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.feature__icon { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--accent-050); color: var(--accent-600); display: flex; align-items: center; justify-content: center; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.25rem; color: var(--ink); }
.feature p { color: var(--text-soft); font-size: var(--fs-sm); }

/* Media placeholder frame */
.media-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--ink);
  aspect-ratio: 4/3; box-shadow: var(--sh-3);
  display: flex; align-items: center; justify-content: center;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .placeholder { color: #6d7a89; text-align: center; padding: 2rem; font-size: var(--fs-sm); }
.media-frame .placeholder svg { width: 54px; height: 54px; margin: 0 auto 0.75rem; color: #3c4756; }
.media-frame__tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: var(--accent); color: #fff; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.78rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: var(--r-pill);
}
.media-frame--portrait { aspect-ratio: 4 / 5; max-width: 480px; margin-inline: auto; }
.media-frame--portrait img { object-position: center 22%; }

/* Quote CTA card (pricing section) */
.quote-cta {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3.5vw, 2.75rem); box-shadow: var(--sh-2);
  max-width: 940px; margin-inline: auto;
  border-top: 4px solid var(--accent);
}
.quote-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(1.5rem, 3vw, 2.5rem); flex-wrap: wrap; }
.quote-cta__text { flex: 1 1 340px; }
.quote-cta__text h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; color: var(--ink); }
.quote-cta__text p { color: var(--text-soft); font-size: var(--fs-sm); max-width: 48ch; }
.quote-cta__actions { display: flex; flex-direction: column; gap: 0.75rem; flex: 0 0 auto; }
@media (max-width: 560px) {
  .quote-cta__actions { width: 100%; }
  .quote-cta__actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   10. PROCESS STEPS
   ------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.75rem); counter-reset: step; }
.step { position: relative; }
.step__num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  width: 48px; height: 48px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.section--dark .step__num { background: var(--accent); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { font-size: var(--fs-sm); color: var(--text-soft); }
.section--dark .step p { color: #aeb8c4; }
.step:not(:last-child)::before {
  content: ""; position: absolute; top: 24px; left: 60px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-2) 0 8px, transparent 8px 14px);
}
.section--dark .step:not(:last-child)::before { background: repeating-linear-gradient(90deg, var(--ink-3) 0 8px, transparent 8px 14px); }

/* ---------------------------------------------------------------------------
   11. SERVICE AREA
   ------------------------------------------------------------------------- */
.area-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.area-towns { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.town-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--white); border: 1px solid var(--border); color: var(--text);
  padding: 0.55rem 1rem; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.town-chip svg { width: 15px; height: 15px; color: var(--accent); }
.town-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.town-chip--primary { background: var(--ink); color: var(--white); border-color: var(--ink); }

.area-map {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/11;
  background: radial-gradient(120% 120% at 30% 20%, #2b3b53 0%, #1a2334 70%); box-shadow: var(--sh-3);
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink-3);
}
.area-map .big-417 { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 12vw, 9rem); color: rgba(37,99,235,0.98); letter-spacing: 0.04em; line-height: 0.85; text-align: center; }
.area-map .big-417 small { display: block; font-size: 0.15em; letter-spacing: 0.28em; color: #aeb8c4; margin-top: 0.7rem; text-transform: uppercase; }

/* Service-area photo variant */
.area-map--photo { padding: 0; background: var(--ink); }
.area-map--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.area-map__overlay { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, rgba(23,32,48,0.34) 0%, rgba(23,32,48,0.76) 100%); }
.area-map--photo .big-417 { text-shadow: 0 2px 18px rgba(0,0,0,0.5); }
.area-map--photo .big-417 small { color: #eef2f6; }

/* ---------------------------------------------------------------------------
   12. GALLERY / BEFORE-AFTER
   ------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--muted); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item .placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-faint); font-size: var(--fs-xs); text-align: center; padding: 1rem; }
.gallery__item .placeholder svg { width: 40px; height: 40px; margin-bottom: 0.5rem; color: var(--border-2); }
.gallery__label { position: absolute; left: 0.75rem; top: 0.75rem; background: rgba(20,24,29,0.82); color: #fff; font-size: var(--fs-xs); font-weight: 600; padding: 0.3rem 0.7rem; border-radius: var(--r-sm); }

/* Commercial / Residential path cards */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
.path-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden;
  color: var(--text); box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--border-2); color: var(--text); }
.path-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted); }
.path-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.path-card:hover .path-card__media img { transform: scale(1.05); }
.path-card__tag {
  position: absolute; left: 1rem; top: 1rem; z-index: 1;
  background: var(--accent); color: #fff; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: var(--r-pill);
}
.path-card__body { padding: clamp(1.4rem, 2.5vw, 1.9rem); display: flex; flex-direction: column; flex: 1; }
.path-card__body h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; color: var(--ink); }
.path-card__body p { color: var(--text-soft); font-size: var(--fs-sm); margin-bottom: 1.15rem; flex: 1; }
.path-card__link { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; color: var(--accent); }
.path-card__link svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.path-card:hover .path-card__link svg { transform: translateX(4px); }
@media (max-width: 760px) { .path-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   13. REVIEWS
   ------------------------------------------------------------------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--sh-1); }
.stars { display: flex; gap: 2px; margin-bottom: 0.9rem; }
.stars svg { width: 20px; height: 20px; color: var(--star); }
.review-card blockquote { font-size: var(--fs-body); color: var(--text); margin-bottom: 1.1rem; }
.review-card__author { display: flex; align-items: center; gap: 0.75rem; }
.avatar { width: 42px; height: 42px; border-radius: var(--r-pill); background: var(--blue-900); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; }
.review-card__name { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.review-card__meta { font-size: var(--fs-xs); color: var(--text-faint); }

/* ---------------------------------------------------------------------------
   14. FAQ (accordion)
   ------------------------------------------------------------------------- */
.faq { max-width: var(--container-narrow); margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  text-align: left; padding: 1.4rem 0.25rem; font-family: var(--font-display); font-weight: 500;
  font-size: 1.2rem; color: var(--ink);
}
.faq__q:hover { color: var(--blue); }
.faq__icon { flex-shrink: 0; width: 26px; height: 26px; color: var(--accent); transition: transform var(--dur) var(--ease); }
.faq__item[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height var(--dur) var(--ease); }
.faq__a-inner { padding: 0 0.25rem 1.5rem; color: var(--text-soft); font-size: var(--fs-body); max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .faq__a { transition: none; } }

/* ---------------------------------------------------------------------------
   15. CTA BAND + CONTACT
   ------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff; border-radius: var(--r-xl);
  padding: clamp(2.25rem, 5vw, 3.5rem); text-align: center;
  box-shadow: var(--sh-3);
}
.cta-band h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: 0.6rem; }
.cta-band p { color: rgba(255,255,255,0.92); font-size: var(--fs-lead); max-width: 52ch; margin: 0 auto 1.75rem; }
.cta-band .btn--dark { background: var(--ink); }
.cta-band .btn--dark:hover { background: #000; }
.cta-band .btn--outline-light { border-color: rgba(255,255,255,0.7); }

/* Contact section */
.contact-wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-info { display: grid; gap: 1.5rem; }
.contact-row { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.contact-row__icon { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--blue-050); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.contact-row__icon svg { width: 26px; height: 26px; }
.contact-row h3 { font-size: 1.05rem; margin-bottom: 0.15rem; color: var(--ink); }
.contact-row a, .contact-row p { color: var(--text-soft); font-size: var(--fs-body); }
.contact-row a:hover { color: var(--blue); }

/* Form */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--sh-2); }
.form-card h3 { font-size: var(--fs-h3); margin-bottom: 0.3rem; }
.form-card > p { color: var(--text-soft); font-size: var(--fs-sm); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-body); color: var(--text);
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--border-2); border-radius: var(--r-md);
  background: var(--white); width: 100%; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27,79,214,0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field__hint { font-size: var(--fs-xs); color: var(--text-faint); }
.form-card .btn { margin-top: 0.5rem; }
.form-note { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 0.9rem; text-align: center; }
.form-success {
  display: none; background: #e9f7ee; border: 1px solid #b7e2c6; color: var(--success);
  padding: 1rem 1.25rem; border-radius: var(--r-md); font-weight: 600; margin-bottom: 1rem;
}
.form-success.is-visible { display: block; }

/* ---------------------------------------------------------------------------
   16. ABOUT
   ------------------------------------------------------------------------- */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.about-wrap .prose p { margin-bottom: 1rem; color: var(--text-soft); }
.about-wrap .prose p:first-of-type { font-size: var(--fs-lead); color: var(--text); }
.sig { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin-top: 0.5rem; }
.sig small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-sm); color: var(--text-faint); letter-spacing: 0; text-transform: none; }

/* ---------------------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------------------- */
.footer { background: var(--ink); color: #9aa6b4; padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin-top: 1rem; font-size: var(--fs-sm); max-width: 34ch; }
.footer h4 { font-family: var(--font-display); color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.1rem; }
.footer ul { display: grid; gap: 0.65rem; }
.footer a { color: #9aa6b4; font-size: var(--fs-sm); }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: var(--fs-sm); }
.footer__contact svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer__bottom { border-top: 1px solid var(--ink-3); padding-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--fs-xs); color: #6f7d8c; }
.footer__bottom a { color: #8895a4; }

/* ---------------------------------------------------------------------------
   18. FLOATING MOBILE CALL BAR
   ------------------------------------------------------------------------- */
.mobile-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink-3);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.mobile-callbar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; }
.mobile-callbar a svg { width: 19px; height: 19px; }
.mobile-callbar .call { background: var(--accent); color: #fff; }
.mobile-callbar .quote { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------------------
   19. REVEAL ANIMATION
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .service-card, .town-chip, .gallery__item img { transition: none !important; }
}

/* ---------------------------------------------------------------------------
   20. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 480px; }
  .split, .area-wrap, .contact-wrap, .about-wrap { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::before { display: none; }

  /* Collapse the primary nav to a hamburger; keep phone + estimate button visible */
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header.nav-open .nav {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--border); padding: 0.75rem; box-shadow: var(--sh-2);
  }
  .header.nav-open .nav a { padding: 0.9rem 1rem; border-radius: var(--r-sm); }
}
@media (max-width: 820px) {
  :root { --header-h: 66px; }
  .header__phone { display: none; }
  .services-grid, .gallery, .reviews-grid { grid-template-columns: 1fr; }
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .stat:nth-child(3) { border-left: none; }
  .stat + .stat { border-left: none; }
  .trustbar__grid { row-gap: 1.75rem; }
  .form-grid { grid-template-columns: 1fr; }
  .mobile-callbar { display: grid; }
  body { padding-bottom: 56px; } /* room for call bar */
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .brand__tag { display: none; }
}

/* Print */
@media print {
  .header, .mobile-callbar, .hero__actions, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; }
}
