/* ══════════════════════════════════════════════
   WORKS BY JD — Shared Stylesheet v1.0
   Beverly, MA · Design-Build · Since 2001
   Warm Craft · Luxury Contractor
══════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   0. DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Ember — brand orange */
  --ember-950: #3D1203;
  --ember-900: #6B2106;
  --ember-800: #8F3010;
  --ember-700: #B5431A;
  --ember-600: #C2571A;
  --ember-500: #D4692B;
  --ember-400: #E07B3A;
  --ember-300: #EDA070;
  --ember-200: #F5C9A8;
  --ember-100: #FAE4D2;
  --ember-50:  #FDF4EE;

  /* Forge — deep charcoal */
  --forge-950: #080808;
  --forge-900: #111111;
  --forge-800: #1A1A1A;
  --forge-700: #252525;
  --forge-600: #3A3A3A;
  --forge-500: #555555;
  --forge-400: #737373;
  --forge-300: #9A9A9A;
  --forge-200: #C4C4C4;
  --forge-100: #E3E3E3;
  --forge-50:  #F5F5F4;

  /* Stone — warm neutral */
  --stone-900: #2C2521;
  --stone-800: #44392F;
  --stone-700: #5C4D3E;
  --stone-600: #7A6555;
  --stone-500: #9A8070;
  --stone-400: #B8A090;
  --stone-300: #D0BFB0;
  --stone-200: #E4D8CE;
  --stone-100: #F0E8E0;
  --stone-50:  #FAF7F4;

  /* Semantic */
  --color-heading:       #111111;
  --color-primary:       #D4692B;
  --color-primary-dark:  #B5431A;
  --color-primary-light: #FAE4D2;
  --color-body:          #1A1A1A;
  --color-body-muted:    #555555;
  --color-body-subtle:   #9A9A9A;
  --color-border:        #E3E3E3;
  --color-surface:       #FFFFFF;
  --color-bg:            #FAF7F4;

  --color-success:    #2D7A3A;
  --color-success-bg: #D6EFD9;
  --color-warning:    #B5860A;
  --color-warning-bg: #FEF3C7;
  --color-danger:     #C0392B;
  --color-danger-bg:  #FDDBD8;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  /* Radius */
  --r-xs:   2px;
  --r-sm:   3px;
  --r-md:   4px;
  --r-lg:   6px;
  --r-xl:   8px;
  --r-2xl:  12px;
  --r-pill: 4px;

  /* Shadows */
  --shadow-card:       0 1px 3px rgba(26,10,0,0.06), 0 4px 14px rgba(26,10,0,0.04);
  --shadow-card-hover: 0 4px 16px rgba(26,10,0,0.10), 0 12px 32px rgba(26,10,0,0.07);
  --shadow-clay-sm:    0 4px 0 #EDA070;
  --shadow-clay-md:    0 6px 0 #E07B3A, inset 0 1px 0 rgba(255,255,255,0.25);
  --shadow-clay-lg:    0 10px 0 #C2571A, inset 0 1px 0 rgba(255,255,255,0.2);
  --shadow-clay-dark:  0 6px 0 #080808, inset 0 1px 0 rgba(255,255,255,0.04);
  --shadow-btn-ember:  0 4px 0 #8F3010;
  --shadow-btn-dark:   0 4px 0 #080808;
  --shadow-btn-stone:  0 4px 0 #B8A090;
  --shadow-nav:        0 2px 16px rgba(26,10,0,0.08);

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Nav height */
  --nav-h: 80px;
}

/* ─────────────────────────────────────────────
   1. RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  background: var(--color-bg);
  cursor: url('/images/cursor-hammer.svg') 16 4, auto;
}

*, *::before, *::after {
  cursor: inherit;
}

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; cursor: url('/images/cursor-hammer-hit.svg') 4 4, pointer; }
button { font-family: var(--font-body); cursor: url('/images/cursor-hammer-hit.svg') 4 4, pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: var(--font-body); cursor: url('/images/cursor-hammer.svg') 16 4, text; }

/* Hammer-hit cursor for all interactive elements */
a:hover,
button:hover,
[role="button"]:hover,
label:hover,
summary:hover,
.btn:hover,
select:hover {
  cursor: url('/images/cursor-hammer-hit.svg') 4 4, pointer;
}

/* Catch-all: override any remaining cursor: pointer */
*[style*="cursor"],
[onclick],
.faq-question,
.hamburger,
.nav-link,
.dropdown-menu a,
.mobile-nav-link,
.quote-dot {
  cursor: url('/images/cursor-hammer-hit.svg') 4 4, pointer;
}

/* ─────────────────────────────────────────────
   2. LAYOUT
───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.container-sm {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 48px;
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-pad  { padding: var(--space-24) 0; }
.section-pad-sm { padding: var(--space-16) 0; }
.section-pad-lg { padding: 120px 0; }

/* ─────────────────────────────────────────────
   3. NAVIGATION
───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow: visible;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  border-bottom-color: transparent;
}

.navbar .container {
  height: 100%;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--ember-500);
  box-shadow: var(--shadow-btn-ember);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-body);
  line-height: 1;
}

.nav-wordmark span { color: var(--ember-500); }

.nav-tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-body-subtle);
  margin-top: 3px;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--forge-600);
  padding: 8px 12px;
  border-radius: var(--r-md);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--ember-50);
}

.nav-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown .dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.nav-dropdown:hover .nav-link svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(26,10,0,0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--forge-600);
  border-radius: var(--r-md);
  transition: color 0.12s, background 0.12s;
}

.dropdown-menu a:hover {
  color: var(--color-primary);
  background: var(--ember-50);
}

.dropdown-menu .dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 6px 8px;
}

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: url('/images/cursor-hammer-hit.svg') 4 4, pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-body);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  overflow-y: auto;
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-body);
  border-radius: var(--r-lg);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-link:hover { background: var(--ember-50); color: var(--color-primary); }

.mobile-nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-body-subtle);
  padding: 16px 16px 8px;
}

.mobile-cta {
  margin-top: 20px;
}

/* Page offset for fixed nav */
.nav-offset {
  height: var(--nav-h);
}

/* ─────────────────────────────────────────────
   4. BUTTONS
───────────────────────────────────────────── */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: url('/images/cursor-hammer-hit.svg') 4 4, pointer;
  border-radius: var(--r-md);
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.15s;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

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

.btn-primary {
  background: var(--ember-500);
  color: white;
  box-shadow: var(--shadow-btn-ember);
}
.btn-primary:hover { background: var(--ember-600); }
.btn-primary:active { box-shadow: 0 1px 0 #6B2106; }

.btn-outline {
  background: white;
  color: var(--ember-600);
  border: 1.5px solid var(--ember-300);
  box-shadow: 0 4px 0 var(--ember-200);
}
.btn-outline:hover { background: var(--ember-50); }
.btn-outline:active { box-shadow: 0 1px 0 var(--ember-200); }

.btn-dark {
  background: var(--forge-800);
  color: white;
  box-shadow: var(--shadow-btn-dark);
}
.btn-dark:hover { background: var(--forge-900); }
.btn-dark:active { box-shadow: 0 1px 0 #080808; }

.btn-stone {
  background: var(--stone-100);
  color: var(--stone-800);
  box-shadow: var(--shadow-btn-stone);
}
.btn-stone:hover { background: var(--stone-200); }

.btn-ghost {
  background: transparent;
  color: var(--ember-600);
  border: 1.5px solid var(--ember-300);
}
.btn-ghost:hover { background: var(--ember-50); }

.btn-outline-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
  box-shadow: none;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.65); }
.btn-outline-light:active { box-shadow: none; }

.btn-sm  { padding: 7px 16px; font-size: 11px; }
.btn-lg  { padding: 15px 32px; font-size: 14px; }
.btn-xl  { padding: 18px 40px; font-size: 15px; }
.btn-full { width: 100%; }

/* ─────────────────────────────────────────────
   5. BADGES
───────────────────────────────────────────── */
.badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  display: inline-block;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-ember   { background: var(--ember-100); color: var(--ember-800); }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-danger  { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-neutral { background: var(--forge-100); color: var(--forge-500); }
.badge-dark    { background: var(--forge-800); color: var(--forge-300); }

/* ─────────────────────────────────────────────
   6. SECTION HEADERS
───────────────────────────────────────────── */
.section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ember-500);
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--color-body);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-title-lg {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--color-body);
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-body-muted);
  max-width: 580px;
}

.section-body-wide {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-body-muted);
}

.section-header {
  margin-bottom: 56px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 56px;
}

.section-header-center .section-body {
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   7. HERO — HOMEPAGE
───────────────────────────────────────────── */
.hero {
  background: white;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-video {
  display: none;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  animation: none;
}

.hero-slide.hero-slide-active {
  opacity: 1;
  animation: kenBurnsOut 6s ease-in-out forwards;
}

@keyframes kenBurnsOut {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.82) 0%,
    rgba(255,255,255,0.75) 60%,
    rgba(255,255,255,0.88) 100%
  );
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 60%, rgba(212,105,43,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero-center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
}

.hero-center .hero-cta-group {
  justify-content: center;
}

.hero-center .hero-creds {
  justify-content: center;
}

.hero-ribbon {
  position: absolute;
  right: 160px;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 100px;
  background: transparent;
}

.hero-ribbon-cards {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 190px;
  background: white;
  border: 2px solid var(--ember-500);
  border-radius: var(--r-xl);
  padding: 8px 0;
  overflow: hidden;
}

.hero-ribbon-card {
  background: white;
  border-radius: 0;
  text-align: center;
  padding: 20px 16px;
  box-shadow: none;
}

.hero-ribbon-card .hero-vstat-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--ember-600);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-ribbon-card .hero-vstat-value .stat-accent {
  color: var(--ember-500);
  font-style: italic;
}

.hero-ribbon-card .hero-vstat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone-700);
  margin-bottom: 3px;
}

.hero-ribbon-card .hero-vstat-sub {
  font-size: 11px;
  color: var(--stone-500);
  font-style: italic;
}

/* Services menu section (immediately below hero) */
.svc-menu-section {
  background: var(--stone-50);
  padding: clamp(48px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--color-border);
}

.svc-menu-header {
  text-align: center;
  margin-bottom: clamp(28px, 3vw, 44px);
}

.svc-menu-section .hero-svc-grid {
  grid-auto-rows: auto;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  width: 100%;
  padding: clamp(60px, 8vw, 120px) 0 clamp(48px, 6vw, 80px);
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--ember-600);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ember-500);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--forge-900);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--ember-600);
}

.hero-body {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  color: var(--forge-500);
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust-row {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--forge-500);
}

.hero-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember-500);
  flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-img-main {
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #3D1203 0%, #8F3010 30%, #C2571A 60%, #EDA070 100%);
  position: relative;
}

.hero-img-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(26,26,26,0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-img-label-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember-400);
  margin-bottom: 4px;
}

.hero-img-label-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.hero-img-badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-stat-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--forge-900);
  letter-spacing: -1px;
}

.hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--forge-400);
  margin-top: 4px;
}

/* ─────────────────────────────────────────────
   8. PAGE HERO (inner pages)
───────────────────────────────────────────── */
.page-hero {
  background: white;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(212,105,43,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ember-800), var(--ember-500), var(--ember-300), var(--ember-500), var(--ember-800));
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.breadcrumb a, .breadcrumb span {
  font-size: 12px;
  font-weight: 500;
  color: var(--forge-400);
}

.breadcrumb a:hover { color: var(--ember-600); }

.breadcrumb-sep {
  color: var(--forge-200);
  font-size: 12px;
}

.page-hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ember-600);
  margin-bottom: 16px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--forge-900);
  line-height: 1.05;
  margin-bottom: 16px;
}

.page-hero-title em {
  font-style: italic;
  color: var(--ember-600);
}

.page-hero-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--forge-500);
  max-width: 560px;
  margin-bottom: 32px;
}

/* Page hero with side stats */
.page-hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.page-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--forge-900);
  border-radius: var(--r-xl);
  padding: 8px 0;
  box-shadow: var(--shadow-clay-dark);
  border: 1px solid var(--forge-700);
  min-width: 220px;
}

.page-hero-stat {
  text-align: center;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-hero-stat:last-child {
  border-bottom: none;
}

.page-hero-stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.page-hero-stat-value .stat-accent {
  color: var(--ember-400);
  font-style: italic;
}

.page-hero-stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.page-hero-stat-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  font-style: italic;
}

/* ─────────────────────────────────────────────
   9. TRUST BAR
───────────────────────────────────────────── */
.trust-bar {
  background: var(--stone-50);
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 28px;
  border-right: 1px solid var(--color-border);
}

.trust-bar-item:last-child {
  border-right: none;
}

.trust-bar-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--ember-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

.trust-bar-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--forge-800);
}

.trust-bar-text span {
  font-size: 11px;
  color: var(--forge-400);
}

/* ─────────────────────────────────────────────
   10. SERVICES
───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: white;
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-top-color 0.18s ease;
  text-decoration: none;
  display: block;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-top-color: var(--ember-500);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  background: var(--ember-50);
  border: 1px solid var(--ember-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

/* Service card with image variant */
.service-card-has-img {
  padding: 0;
  border-top: none;
  overflow: hidden;
}

.service-card-img {
  height: 180px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-card-content {
  padding: 20px 28px 28px;
}

.service-card-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--color-body);
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-body-muted);
  margin-bottom: 16px;
}

.service-card-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ember-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card-link::after {
  content: '→';
  transition: transform 0.15s ease;
}

.service-card:hover .service-card-link::after {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────
   11. PORTFOLIO
───────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-grid-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.portfolio-card {
  background: white;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  display: block;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.portfolio-card-img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.portfolio-card-img-tall {
  aspect-ratio: 3/4;
}

.portfolio-card-img-wide {
  aspect-ratio: 16/9;
}

/* Gradient placeholder images */
.img-rockport { background: linear-gradient(135deg, #3D1203 0%, #8F3010 35%, #C2571A 65%, #EDA070 100%); }
.img-beverly  { background: linear-gradient(135deg, #44392F 0%, #7A6555 50%, #B8A090 100%); }
.img-gloucester { background: linear-gradient(135deg, #2C2521 0%, #5C4D3E 50%, #9A8070 100%); }
.img-tewksbury  { background: linear-gradient(135deg, #1A1A1A 0%, #555555 50%, #9A9A9A 100%); }
.img-kitchen  { background: linear-gradient(135deg, #6B2106 0%, #D4692B 50%, #F5C9A8 100%); }
.img-bathroom { background: linear-gradient(135deg, #2C2521 0%, #7A6555 50%, #D0BFB0 100%); }
.img-outdoor  { background: linear-gradient(135deg, #1E5728 0%, #2D7A3A 50%, #86EFAC 100%); }
.img-deck     { background: linear-gradient(135deg, #44392F 0%, #8F3010 50%, #EDA070 100%); }
.img-fullhome { background: linear-gradient(135deg, #080808 0%, #3A3A3A 50%, #737373 100%); }
.img-hero-bg  { background: linear-gradient(160deg, #8F3010 0%, #D4692B 40%, #EDA070 80%, #FAE4D2 100%); }

.portfolio-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
}

.portfolio-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
}

.portfolio-card-overlay-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.portfolio-card-body {
  padding: 18px 20px 20px;
}

.portfolio-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember-500);
  margin-bottom: 6px;
}

.portfolio-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-body);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.portfolio-card-desc {
  font-size: 13px;
  color: var(--color-body-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.portfolio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.portfolio-card-value {
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-body);
}

/* ─────────────────────────────────────────────
   12. PROCESS TIMELINE
───────────────────────────────────────────── */
.process-steps {
  display: flex;
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--ember-500), var(--ember-300), var(--ember-500), var(--ember-300));
  z-index: 0;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.process-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ember-500);
  box-shadow: 0 4px 0 var(--ember-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  font-family: var(--font-display);
  border: 3px solid var(--color-bg);
}

.process-step:nth-child(2) .process-step-num { background: var(--ember-600); box-shadow: 0 4px 0 var(--ember-800); }
.process-step:nth-child(3) .process-step-num { background: var(--ember-700); box-shadow: 0 4px 0 var(--ember-900); }
.process-step:nth-child(4) .process-step-num { background: var(--ember-800); box-shadow: 0 4px 0 var(--ember-950); }
.process-step:nth-child(5) .process-step-num { background: var(--forge-800); box-shadow: 0 4px 0 var(--forge-950); }

.process-step-content {
  text-align: center;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-body);
  margin-bottom: 4px;
}

.process-step-desc {
  font-size: 12px;
  color: var(--color-body-muted);
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   13. STATS
───────────────────────────────────────────── */
.stats-section {
  background: var(--forge-900);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(212,105,43,0.10) 0%, transparent 70%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-accent {
  color: var(--ember-400);
  font-style: italic;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.stat-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  font-style: italic;
  letter-spacing: 0;
}

/* ─────────────────────────────────────────────
   14. TESTIMONIALS
───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--stone-50);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--stone-200);
  position: relative;
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0.8;
  color: var(--ember-300);
  margin-bottom: 16px;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--stone-900);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--stone-200);
  padding-top: 16px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ember-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-body);
}

.testimonial-location {
  font-size: 11px;
  color: var(--color-body-subtle);
  margin-top: 1px;
}

.testimonial-stars {
  margin-left: auto;
  color: var(--ember-500);
  font-size: 14px;
  letter-spacing: 1px;
}

/* ─────────────────────────────────────────────
   15. FORMS
───────────────────────────────────────────── */
.form-card {
  background: white;
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--color-border);
}

.form-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-body);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--color-body-muted);
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.input-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-body-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.input {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--ember-200);
  background: white;
  color: var(--color-body);
  outline: none;
  width: 100%;
  box-shadow: 0 3px 0 var(--ember-200);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
  border-color: var(--ember-500);
  box-shadow: 0 3px 0 var(--ember-500);
}

.input::placeholder { color: var(--color-body-subtle); }

.select {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--ember-200);
  background: white;
  color: var(--color-body);
  outline: none;
  width: 100%;
  box-shadow: 0 3px 0 var(--ember-200);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  cursor: url('/images/cursor-hammer-hit.svg') 4 4, pointer;
}

.select:focus {
  border-color: var(--ember-500);
  box-shadow: 0 3px 0 var(--ember-500);
}

.textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--ember-200);
  background: white;
  color: var(--color-body);
  outline: none;
  width: 100%;
  box-shadow: 0 3px 0 var(--ember-200);
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.textarea:focus {
  border-color: var(--ember-500);
  box-shadow: 0 3px 0 var(--ember-500);
}

.form-license {
  font-size: 11px;
  color: var(--color-body-subtle);
  text-align: center;
  margin-top: 12px;
}

/* ─────────────────────────────────────────────
   16. CARDS
───────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.card-ember {
  background: var(--ember-50);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-clay-sm);
  border: 1px solid var(--ember-100);
}

.card-dark {
  background: var(--forge-900);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-clay-dark);
  border: 1px solid var(--forge-700);
}

.card-stone {
  background: var(--stone-50);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--stone-200);
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.card-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-body-muted);
}

/* ─────────────────────────────────────────────
   17. TRUST BADGES COMPONENT
───────────────────────────────────────────── */
.trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badge {
  background: white;
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-badge-dark {
  background: var(--forge-800);
  border-color: var(--forge-700);
}

.trust-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--ember-50);
  border: 1px solid var(--ember-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trust-badge-dark .trust-badge-icon {
  background: var(--ember-500);
  border-color: var(--ember-600);
}

.trust-badge-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-body);
}

.trust-badge-dark .trust-badge-name { color: white; }

.trust-badge-detail {
  font-size: 11px;
  color: var(--color-body-subtle);
  font-family: monospace;
}

.trust-badge-dark .trust-badge-detail { color: var(--forge-400); }

/* ─────────────────────────────────────────────
   18. WHY WORKS / DIFFERENTIATORS
───────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Healthy home 2-col layout */
.healthy-home-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.healthy-home-intro {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.healthy-home-intro .section-title {
  font-size: clamp(52px, 5.5vw, 76px);
  letter-spacing: -3px;
  line-height: 1.0;
  margin-bottom: 28px;
}

.healthy-word-1 {
  color: var(--ember-500);
}

.healthy-word-2 {
  font-style: italic;
  color: var(--ember-500);
}

.healthy-home-intro .section-body-wide {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.75;
}

.healthy-home-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.healthy-tag {
  display: inline-flex;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ember-600);
  background: var(--ember-50);
  border: 1px solid var(--ember-200);
  border-radius: 2px;
  padding: 4px 10px;
}

.why-card {
  background: white;
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ember-500), var(--ember-300));
}

.why-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  color: var(--ember-100);
  line-height: 1;
  margin-bottom: 4px;
}

.why-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-body);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.why-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-body-muted);
}

/* ─────────────────────────────────────────────
   19. FAQ ACCORDION
───────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.faq-item.open {
  box-shadow: var(--shadow-card);
  border-color: var(--ember-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: url('/images/cursor-hammer-hit.svg') 4 4, pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-body);
  font-family: var(--font-display);
  letter-spacing: -0.2px;
  transition: color 0.15s;
}

.faq-item.open .faq-question {
  color: var(--ember-700);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--forge-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.25s ease;
  font-size: 11px;
  color: var(--color-body-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--ember-100);
  color: var(--ember-700);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-body-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

/* ─────────────────────────────────────────────
   20. CTA SECTIONS
───────────────────────────────────────────── */
.cta-section {
  background: var(--forge-900);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(212,105,43,0.12) 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  text-align: center;
}

.cta-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--ember-400);
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: white;
  margin-bottom: 16px;
  line-height: 1.05;
}

.cta-title em {
  font-style: italic;
  color: var(--ember-400);
}

.cta-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--forge-300);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   21. FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--forge-950);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ember-800), var(--ember-500), var(--ember-300), var(--ember-500), var(--ember-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--ember-500);
  box-shadow: var(--shadow-btn-ember);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: white;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
}

.footer-wordmark span { color: var(--ember-500); }

.footer-brand-desc {
  font-size: 13px;
  color: var(--forge-400);
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-contact-line {
  font-size: 12px;
  color: var(--forge-400);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-line strong {
  color: var(--forge-200);
}

.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--forge-400);
  margin-bottom: 20px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-link {
  font-size: 13px;
  color: var(--forge-400);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col-link:hover { color: var(--ember-400); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: var(--forge-600);
}

.footer-licenses {
  font-size: 11px;
  font-family: monospace;
  color: var(--forge-600);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   22. AREA PAGES / SERVICE AREAS
───────────────────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.area-chip {
  background: white;
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  display: block;
}

.area-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--ember-300);
}

.area-chip-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-body);
  margin-bottom: 3px;
}

.area-chip-dist {
  font-size: 11px;
  color: var(--color-body-subtle);
}

/* ─────────────────────────────────────────────
   23. TEAM
───────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: white;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.team-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.team-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ember-100);
  color: var(--ember-700);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 12px;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-body);
  padding: 10px 12px 2px;
}

.team-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ember-600);
  padding: 0 12px 12px;
}

.team-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.team-card-img {
  height: 200px;
  position: relative;
}

.team-card-body {
  padding: 20px;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-body);
  margin-bottom: 4px;
}

.team-card-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ember-600);
}

.team-card-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ember-600);
  margin-bottom: 12px;
}

.team-card-bio {
  font-size: 13px;
  color: var(--color-body-muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   24. INCLUDE / CHECKLIST
───────────────────────────────────────────── */
.includes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.include-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--color-body-muted);
  line-height: 1.5;
}

.include-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--color-success);
  font-weight: 700;
  margin-top: 1px;
}

/* ─────────────────────────────────────────────
   25. UTILITY CLASSES
───────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-ember   { color: var(--ember-500); }
.text-muted   { color: var(--color-body-muted); }
.text-subtle  { color: var(--color-body-subtle); }
.text-white   { color: white; }

.bg-bg        { background: var(--color-bg); }
.bg-white     { background: white; }
.bg-dark      { background: var(--forge-900); }
.bg-ember-50  { background: var(--ember-50); }
.bg-stone-50  { background: var(--stone-50); }

.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }

.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

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

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 32px 0;
}

.wood-bar {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--ember-600) 0px, var(--ember-500) 2px,
    var(--ember-700) 4px, var(--ember-600) 6px,
    var(--ember-500) 8px, var(--ember-800) 10px,
    var(--ember-600) 12px
  );
}

/* Callout */
.callout {
  padding: 16px 20px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  border-left: 3px solid var(--ember-500);
  background: var(--ember-50);
  font-size: 14px;
  color: var(--color-body-muted);
}

/* ─────────────────────────────────────────────
   27. NAV LOGO IMAGE
───────────────────────────────────────────── */
.nav-logo-img {
  height: 110px;
  width: auto;
  display: block;
  position: relative;
  top: 16px;
  background: #ffffff;
  padding: 10px 18px 16px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  box-shadow: 0 6px 0 var(--ember-600), 0 8px 20px rgba(26,10,0,0.12);
  border: 2px solid var(--ember-500);
  border-top: none;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 20px;
}

/* ─────────────────────────────────────────────
   28. HERO PILL BADGE & CREDENTIALS
───────────────────────────────────────────── */
.hero-pill {
  display: inline-flex;
  align-items: center;
  background: var(--ember-50);
  border: 1px solid var(--ember-200);
  border-radius: 2px;
  padding: 5px 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember-700);
  margin-bottom: 28px;
}

.hero-creds {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.hero-creds-item {
  font-size: 11px;
  font-family: monospace;
  color: var(--color-body-subtle);
  font-weight: 600;
}

.hero-creds-sep {
  color: var(--ember-300);
  font-size: 13px;
}

/* ─────────────────────────────────────────────
   29. HERO PROJECTS GRID
───────────────────────────────────────────── */
.hero-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-proj {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease;
}

.hero-proj:hover { transform: scale(1.02); }

.hero-proj-featured {
  grid-column: 1 / 3;
  aspect-ratio: 16 / 7;
}

.hero-proj-sm {
  aspect-ratio: 4 / 3;
}

.hero-proj-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 52px 16px 16px;
  background: linear-gradient(to top, rgba(8,8,8,0.88) 0%, transparent 100%);
}

.hero-proj-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember-300);
  margin-bottom: 3px;
}

.hero-proj-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: white;
}

/* ─────────────────────────────────────────────
   30. CREDENTIALS STRIP
───────────────────────────────────────────── */
.cred-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--stone-50);
}

.cred-strip-inner {
  display: flex;
  align-items: center;
  height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cred-strip-inner::-webkit-scrollbar { display: none; }

.cred-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 30px;
  border-right: 1px solid var(--color-border);
  flex-shrink: 0;
  white-space: nowrap;
}

.cred-strip-item:last-child { border-right: none; }

.cred-strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember-500);
  flex-shrink: 0;
}

.cred-strip-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--forge-500);
}

.cred-strip-text strong {
  color: var(--forge-800);
  font-weight: 700;
}

/* ─────────────────────────────────────────────
   31. SERVICE ROWS
───────────────────────────────────────────── */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-row {
  display: grid;
  grid-template-columns: 36px 1fr auto 28px;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: all 0.15s ease;
}

.svc-row:hover {
  border-left-color: var(--ember-500);
  box-shadow: var(--shadow-card-hover);
  transform: translateX(5px);
}

.svc-row-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ember-300);
}

.svc-row-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-body);
  letter-spacing: -0.3px;
}

.svc-row-price {
  font-size: 12px;
  font-family: monospace;
  color: var(--color-body-subtle);
  white-space: nowrap;
}

.svc-row-arrow {
  font-size: 18px;
  color: var(--ember-400);
  transition: transform 0.15s;
  text-align: center;
}

.svc-row:hover .svc-row-arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────────
   32. FEATURED PROJECT CARD
───────────────────────────────────────────── */
.feat-project {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 20px 64px rgba(26,10,0,0.10);
  border: 1px solid var(--color-border);
}

.feat-project-img {
  min-height: 480px;
  position: relative;
}

.feat-project-img-badge {
  position: absolute;
  top: 20px;
  left: 20px;
}

.feat-project-body {
  background: white;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feat-project-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ember-600);
  margin-bottom: 14px;
}

.feat-project-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--color-body);
  line-height: 1.1;
  margin-bottom: 16px;
}

.feat-project-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-body-muted);
  margin-bottom: 28px;
}

.feat-project-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.feat-stat {
  background: var(--stone-50);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  border: 1px solid var(--stone-200);
}

.feat-stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-body-subtle);
  margin-bottom: 4px;
}

.feat-stat-val {
  font-family: monospace;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-body);
}

/* ─────────────────────────────────────────────
   34. HERO SERVICE BOXES
───────────────────────────────────────────── */
.hero-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 0.8vw, 12px);
}

.hero-svc-box {
  overflow: hidden;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.hero-svc-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-svc-box:hover .hero-svc-img img {
  transform: scale(1.05);
}

.hero-svc-content {
  padding: clamp(12px, 1.5vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-svc-box:hover {
  border-left-color: var(--ember-500);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.hero-svc-num {
  font-family: var(--font-display);
  font-size: clamp(9px, 0.9vw, 12px);
  font-weight: 700;
  color: var(--ember-400);
  letter-spacing: 1px;
}

.hero-svc-name {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 700;
  color: var(--color-body);
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.hero-svc-price {
  font-size: clamp(9px, 0.85vw, 12px);
  font-family: monospace;
  color: var(--color-body-subtle);
}
.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.process-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-diagram img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 12px;
  cursor: url('/images/cursor-hammer-hit.svg') 4 4, zoom-in;
  transition: transform 0.4s ease;
}

.process-diagram:hover img {
  transform: scale(1.4);
}

.process-layout .timeline {
  transition: transform 0.4s ease;
}

.process-layout:has(.process-diagram:hover) .timeline {
  transform: translateX(-60px);
}

.timeline {
  max-width: 680px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  align-items: start;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-body-subtle);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-num-accent {
  background: var(--ember-500);
  border-color: var(--ember-500);
  color: white;
}

.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 48px;
  background: var(--color-border);
  margin: 8px 0;
}

.timeline-body {
  padding-bottom: 52px;
}

.timeline-item-last .timeline-body {
  padding-bottom: 0;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-body);
  margin-bottom: 14px;
}

.timeline-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-body-muted);
  max-width: 520px;
}

/* ─────────────────────────────────────────────
   33. TESTIMONIAL QUOTE
───────────────────────────────────────────── */
.quote-section {
  padding: 80px 0;
  background: var(--stone-50);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.quote-block {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--ember-200);
  line-height: 0.6;
  margin-bottom: 28px;
  display: block;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 30px);
  font-style: italic;
  font-weight: 600;
  color: var(--forge-800);
  line-height: 1.4;
  margin-bottom: 28px;
}

.quote-attribution {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-body);
}

.quote-attribution-sub {
  font-size: 12px;
  color: var(--color-body-subtle);
  margin-top: 4px;
}

/* Quote carousel */
.quote-carousel {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  min-height: 220px;
}

.quote-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.quote-slide-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.quote-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--forge-200);
  cursor: url('/images/cursor-hammer-hit.svg') 4 4, pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.quote-dot-active {
  background: var(--forge-800);
  transform: scale(1.15);
}

/* ─────────────────────────────────────────────
   26. RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .container, .container-sm, .container-lg { padding: 0 32px; }

  .hero-title { font-size: clamp(32px, 6vw, 48px); }

  .feat-project { grid-template-columns: 1fr; }
  .feat-project-img { min-height: 320px; }
  .feat-project-body { padding: 40px 36px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .healthy-home-grid { grid-template-columns: 1fr; }
  .healthy-home-intro { position: static; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Override inline 2-col grids at tablet */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    gap: 40px !important;
  }
  [style*="grid-template-columns:1fr 480px"],
  [style*="grid-template-columns: 1fr 480px"],
  [style*="grid-template-columns:1fr 500px"],
  [style*="grid-template-columns: 1fr 500px"] {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .container, .container-sm, .container-lg { padding: 0 20px; }

  .section-pad    { padding: 56px 0; }
  .section-pad-sm { padding: 40px 0; }
  .section-pad-lg { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .hamburger { display: flex; }

  .nav-logo-img { height: 80px; top: 10px; }

  /* ── Override ALL inline grid layouts for mobile ── */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 480px"],
  [style*="grid-template-columns: 1fr 480px"],
  [style*="grid-template-columns:1fr 500px"],
  [style*="grid-template-columns: 1fr 500px"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:2fr 1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1.5fr 1fr"],
  [style*="grid-template-columns: 1.5fr 1fr"],
  [style*="grid-template-columns:1fr auto"],
  [style*="grid-template-columns: 1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Override inline repeat() grids */
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Fixed-height inline images/grids should auto-size on mobile */
  [style*="height:480px"] { height: auto !important; }
  [style*="height:380px"] { height: 240px !important; }
  [style*="height:360px"] { height: 220px !important; }
  [style*="height:340px"] { height: 220px !important; }
  [style*="height:280px"] { height: 200px !important; }

  /* Sticky sidebar override for mobile */
  [style*="position:sticky"],
  [style*="position: sticky"] {
    position: static !important;
  }

  /* ── Hero ── */
  .hero-center { padding: clamp(48px, 7vw, 72px) 0 clamp(40px, 5vw, 56px); }
  .hero-ribbon { position: static; width: auto; border-radius: 0; padding: 24px 0; }
  .hero-ribbon-cards { position: static; transform: none; width: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 12px 16px; border: 2px solid var(--ember-500); border-radius: var(--r-xl); }
  .hero-ribbon-card { flex: 1 1 140px; max-width: 180px; padding: 16px 12px; }
  .hero-ribbon-card .hero-vstat-value { font-size: 28px; }
  .hero-vstat-value { font-size: 26px; }
  .hero-vstat-label { font-size: 8px; letter-spacing: 1.5px; }
  .hero-vstat-sub { display: none; }
  .hero-title { font-size: clamp(28px, 7vw, 40px); letter-spacing: -1px; }
  .hero-body { font-size: 15px; margin-bottom: 28px; }
  .hero-pill { font-size: 9px; letter-spacing: 1.5px; padding: 4px 10px; margin-bottom: 20px; }

  /* ── Service grid ── */
  .hero-svc-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-svc-box { padding: 0; }
  .hero-svc-content { padding: 12px; }
  .hero-svc-name { font-size: 13px; }
  .hero-svc-price { font-size: 10px; }
  .hero-svc-num { font-size: 9px; }

  /* ── Credential strip ── */
  .cred-strip-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 0; }
  .cred-strip-item { padding: 8px 16px; border-right: none; border-bottom: 1px solid var(--color-border); width: 100%; }
  .cred-strip-item:last-child { border-bottom: none; }

  /* ── Section headers ── */
  .section-header { margin-bottom: 32px; }
  .section-header-center { margin-bottom: 32px; }
  .section-title { font-size: 26px; letter-spacing: -0.5px; }
  .section-title-lg { font-size: 30px; }
  .section-body { font-size: 15px; }

  /* ── Page hero ── */
  .page-hero { padding: 48px 0 40px; }
  .page-hero-title { font-size: 30px; letter-spacing: -1px; }
  .page-hero-body { font-size: 15px; }
  .page-hero-split { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-stats { flex-direction: row; min-width: 0; padding: 0 8px; }
  .page-hero-stat { padding: 20px 16px; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.08); flex: 1; }
  .page-hero-stat:last-child { border-right: none; }
  .page-hero-stat-value { font-size: 28px; }
  .page-hero-stat-label { font-size: 8px; letter-spacing: 1.5px; }
  .page-hero-stat-sub { font-size: 10px; }

  /* ── Stats ── */
  .stats-section { padding: 48px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 24px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stat-value { font-size: 40px; }
  .stat-label { font-size: 10px; letter-spacing: 1.5px; }
  .stat-sub { font-size: 11px; }

  /* ── Timeline / Process ── */
  .process-layout { grid-template-columns: 1fr; gap: 40px; }
  .process-diagram { order: -1; }
  .timeline-item { grid-template-columns: 48px 1fr; gap: 20px; }
  .timeline-num { width: 44px; height: 44px; font-size: 16px; }
  .timeline-title { font-size: 24px; }
  .timeline-desc { font-size: 14px; }
  .timeline-body { padding-bottom: 36px; }

  .process-steps { flex-direction: column; align-items: flex-start; gap: 20px; }
  .process-steps::before { display: none; }
  .process-step { flex-direction: row; align-items: flex-start; gap: 16px; }
  .process-step-num { width: 44px; height: 44px; font-size: 15px; flex-shrink: 0; }
  .process-step-content { text-align: left; }

  /* ── Grids ── */
  .svc-layout { grid-template-columns: 1fr !important; gap: 32px !important; }
  .svc-layout > div[style*="sticky"] { position: static !important; }
  .why-grid { grid-template-columns: 1fr; }
  .healthy-home-grid { grid-template-columns: 1fr; }
  .healthy-home-intro { position: static; }
  .healthy-home-intro .section-title { font-size: clamp(36px, 8vw, 52px); }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid-featured { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-grid-5 { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  /* ── Hero projects ── */
  .hero-projects-grid { grid-template-columns: 1fr; }
  .hero-proj-featured { grid-column: 1; aspect-ratio: 16/9; }

  /* ── Service rows ── */
  .svc-row { grid-template-columns: 28px 1fr auto; padding: 14px 16px; }
  .svc-row-arrow { display: none; }
  .svc-row-name { font-size: 16px; }

  /* ── Featured project ── */
  .feat-project { grid-template-columns: 1fr; }
  .feat-project-img { min-height: 240px; }
  .feat-project-body { padding: 24px 20px; }
  .feat-project-title { font-size: 24px; }
  .feat-project-stats { grid-template-columns: 1fr 1fr; }

  /* ── Forms ── */
  .form-card { padding: 24px; }
  .form-title { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group-full { grid-column: 1 / -1; }

  /* ── Trust badges ── */
  .trust-badges {
    grid-template-columns: 1fr !important;
    flex-direction: column;
  }
  .trust-badge { padding: 12px 14px; }

  /* ── Trust bar ── */
  .trust-bar-inner { flex-direction: column; gap: 0; }
  .trust-bar-item { border-right: none; border-bottom: 1px solid var(--color-border); width: 100%; }
  .trust-bar-item:last-child { border-bottom: none; }

  /* ── CTA sections ── */
  .cta-section { padding: 64px 0; }
  .cta-title { font-size: 28px; letter-spacing: -1px; }
  .cta-body { font-size: 15px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }

  /* ── Quote section ── */
  .quote-section { padding: 56px 0; }
  .quote-mark { font-size: 64px; margin-bottom: 20px; }
  .quote-text { font-size: clamp(18px, 4.5vw, 24px); }

  /* ── FAQ ── */
  .faq-question { padding: 16px 18px; font-size: 15px; gap: 14px; }
  .faq-answer-inner { padding: 0 18px 16px; font-size: 13px; }

  /* ── Cards ── */
  .why-card { padding: 24px 20px; }
  .card, .card-ember, .card-dark, .card-stone { padding: 20px; }

  /* ── Footer ── */
  .footer { padding: 48px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-logo-img { height: 40px; }

  /* ── Buttons ── */
  .btn-lg { padding: 13px 24px; font-size: 13px; }
  .btn-xl { padding: 15px 28px; font-size: 14px; }

  /* ── Career / Job cards inline override ── */
  [style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
  }
  /* Fix right-aligned salary/apply block after job card stacks */
  [style*="text-align:right"][style*="min-width:160px"] {
    text-align: left !important;
    min-width: 0 !important;
  }

  /* ── Inline button pairs: stack vertically ── */
  [style*="text-align:center"] > .btn {
    display: flex;
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 12px;
  }
  [style*="text-align:center"] > .btn:last-child {
    margin-bottom: 0;
  }

  /* ── Mobile menu polish ── */
  .mobile-menu { padding: 20px; gap: 2px; }
  .mobile-nav-link { padding: 12px 14px; font-size: 14px; }
  .mobile-nav-section { padding: 14px 14px 6px; }
  .mobile-cta { margin-top: 16px; padding: 0 4px; }

  /* ── Gallery grid child min-heights ── */
  .img-kitchen, .img-rockport, .img-beverly, .img-gloucester,
  .img-tewksbury, .img-outdoor, .img-deck, .img-fullhome,
  .img-bathroom, .img-hero-bg {
    min-height: 180px;
    border-radius: var(--r-xl);
  }

  /* ── Inline flex column children need min-height when parent height is auto ── */
  [style*="flex:1"][class*="img-"] {
    min-height: 140px;
  }
}

@media (max-width: 480px) {
  .container, .container-sm, .container-lg { padding: 0 16px; }

  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-creds { justify-content: center; }
  .hero-title { font-size: clamp(24px, 7vw, 32px); }

  .hero-svc-grid { grid-template-columns: 1fr 1fr; }
  .hero-svc-content { padding: 10px; }
  .hero-svc-name { font-size: 12px; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; }

  .areas-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .section-title { font-size: 24px; }
  .page-hero-title { font-size: 26px; }
  .cta-title { font-size: 24px; }

  .stat-value { font-size: 36px; }

  .timeline-title { font-size: 20px; }

  /* Inline 2-col grids that should stay 2-col: credential boxes */
  [style*="grid-template-columns:1fr 1fr"][style*="border:1px solid var(--forge-800)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Small card padding */
  .form-card { padding: 20px 16px; }
  .why-card { padding: 20px 16px; }

  /* Inline dark panels — use ';' suffix to avoid matching shorthand like padding:48px 0 */
  [style*="padding:56px;"],
  [style$="padding:56px"] { padding: 24px !important; }
  [style*="padding:48px;"],
  [style$="padding:48px"] { padding: 28px !important; }
  [style*="padding:40px;"],
  [style$="padding:40px"] { padding: 24px !important; }
  [style*="padding:36px;"],
  [style$="padding:36px"] { padding: 22px !important; }

  /* Inline large font sizes */
  [style*="font-size:72px"] { font-size: 56px !important; }
  [style*="font-size:48px"] { font-size: 36px !important; }
  [style*="font-size:28px"][style*="font-style:italic"] { font-size: 20px !important; }

  /* Inline large margins */
  [style*="margin-top:56px"] { margin-top: 32px !important; }

  /* Pricing flex rows — ensure wrap */
  [style*="justify-content:space-between"][style*="padding-bottom"] {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  /* Make inline repeat(4) → 2 columns at 480px for stat bars */
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  /* Inline repeat(3) → 1 col */
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Tighter section spacing */
  .section-pad { padding: 44px 0; }
  .section-pad-lg { padding: 56px 0; }
  .cta-section { padding: 48px 0; }

  /* Footer tighter */
  .footer { padding: 36px 0 0; }
  .footer-grid { gap: 24px; }
}

/* ═══════════════════════════════════════════
   GATE LOADER
   ═══════════════════════════════════════════ */
.gate-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: all;
}

.gate-loader-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #FAFAF9 url('/images/construction-pattern.svg') repeat;
  background-size: 120px 120px;
  border-right: none;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
  display: flex;
  align-items: center;
}

.gate-loader-left {
  left: 0;
  justify-content: flex-end;
  padding-right: 6px;
  box-shadow: 1px 0 0 var(--ember-200);
}

.gate-loader-right {
  right: 0;
  justify-content: flex-start;
  padding-left: 6px;
  box-shadow: -1px 0 0 var(--ember-200);
}

.gate-loader-logo {
  display: flex;
  align-items: center;
  gap: 0;
  user-select: none;
}

.gate-loader-icon {
  width: 38px;
  height: 38px;
  background: var(--ember-500);
  color: white;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.gate-loader-wordmark {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--forge-800);
  letter-spacing: 0.5px;
}

.gate-loader-wordmark span {
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gate-loader.open .gate-loader-left {
  transform: translateX(-100%);
}

.gate-loader.open .gate-loader-right {
  transform: translateX(100%);
}

.gate-loader.open {
  pointer-events: none;
}

.gate-loader.done {
  display: none;
}
