/* ==========================================================================
   D'BROS EXTERIORS — BRAND CSS SYSTEM
   Industrial blue-collar confidence. Navy + safety orange.
   Mobile-first. No frameworks. Lightweight.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Reserve space for the scrollbar always — prevents horizontal content shift
     when scrollbar appears/disappears. */
  scrollbar-gutter: stable;
  /* The off-canvas mobile menu is parked at translateX(100%); `clip` keeps it
     from being a sideways-scroll target without creating a scroll container
     (so it won't break the sticky header the way overflow-x: hidden can). */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---------- 2. DESIGN TOKENS ---------- */
:root {
  /* Type */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Navy palette */
  --navy-900: #060f26;
  --navy-800: #0b1b3f;
  --navy-700: #112651;
  --navy-600: #1a3168;
  --navy-500: #2a447f;

  /* Orange palette */
  --orange-700: #c44a0c;
  --orange-600: #d85710;
  --orange-500: #f26b1f;
  --orange-400: #ff8534;
  --orange-300: #ffa566;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8f9fb;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 27, 63, 0.08);
  --shadow-md: 0 4px 16px rgba(11, 27, 63, 0.10);
  --shadow-lg: 0 12px 32px rgba(11, 27, 63, 0.16);
  --shadow-xl: 0 24px 60px rgba(11, 27, 63, 0.22);
  --shadow-orange: 0 12px 28px rgba(242, 107, 31, 0.32);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 96px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 3. TYPOGRAPHY ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate-700);
}

.lede {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.55;
  color: var(--slate-600);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: var(--space-4);
}

/* ---------- 4. LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

.section {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}

.section-tight {
  padding-block: clamp(var(--space-8), 4vw, var(--space-12));
}

.bg-navy {
  background: var(--navy-800);
  color: var(--white);
}

.bg-navy-deep {
  background: var(--navy-900);
  color: var(--white);
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy-deep h1,
.bg-navy-deep h2,
.bg-navy-deep h3 {
  color: var(--white);
}

.bg-navy p,
.bg-navy-deep p {
  color: rgba(255, 255, 255, 0.78);
}

/* Global heading color fix for ALL dark navy sections */
.lead-section h1,
.lead-section h2,
.lead-section h3,
.lead-section h4,
.financing h1,
.financing h2,
.financing h3,
.financing h4,
.quote-banner h1,
.quote-banner h2,
.quote-banner h3,
.quote-banner h4,
.second-cta h1,
.second-cta h2,
.second-cta h3,
.second-cta h4,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5 {
  color: var(--white);
}

/* Global .accent helper — used for orange-highlighted words inside headings */
.accent {
  color: var(--orange-500);
}

.bg-off {
  background: var(--off-white);
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 1.125rem 1.875rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease-out),
              box-shadow 0.2s var(--ease-out),
              background 0.2s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: var(--orange-400);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(242, 107, 31, 0.42);
}

.btn-primary:active {
  background: var(--orange-600);
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.btn-outline:hover {
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.25rem 2.25rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ---------- 6. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 15, 38, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: var(--header-h);
  transition: background 0.3s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(6, 15, 38, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .header-inner {
    padding-inline: var(--space-8);
  }
}

@media (min-width: 1400px) {
  .header-inner {
    gap: var(--space-10);
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
}

.logo img {
  height: 64px;
  width: auto;
  max-width: none;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

@media (min-width: 768px) {
  .logo img {
    height: 72px;
  }
}

/* Horizontal wordmark beside the mascot */
.logo-mark {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.logo-mark .d {
  color: var(--orange-500);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.logo-mark .e {
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-top: 3px;
}

@media (min-width: 768px) {
  .logo-mark .d {
    font-size: 1.75rem;
  }
  .logo-mark .e {
    font-size: 0.8rem;
  }
}

/* Wordmark stays visible at all widths — only hide on the tiniest phones
   where the mascot + hamburger + phone icon leaves no room. */
@media (max-width: 380px) {
  .site-header .logo-mark {
    display: none;
  }
}

/* Footer logo slightly larger than header for brand presence */
.site-footer .logo img {
  height: 88px;
}

.site-footer .logo-mark .d {
  font-size: 2rem;
}

.site-footer .logo-mark .e {
  font-size: 0.95rem;
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
  flex-shrink: 0;
}

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

@media (min-width: 1600px) {
  .nav-desktop {
    gap: var(--space-8);
  }
}

.nav-desktop a {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding-block: var(--space-2);
  transition: color 0.2s var(--ease-out);
  white-space: nowrap;
}

@media (min-width: 1300px) {
  .nav-desktop a {
    font-size: 0.875rem;
    letter-spacing: 0.06em;
  }
}

.nav-desktop a:hover {
  color: var(--orange-400);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-out);
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
}

/* Service area dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--space-2);
  transition: color 0.2s var(--ease-out);
  white-space: nowrap;
}

@media (min-width: 1300px) {
  .dropdown-trigger {
    font-size: 0.875rem;
    letter-spacing: 0.06em;
  }
}

.dropdown-trigger:hover {
  color: var(--orange-400);
}

.dropdown-trigger svg {
  transition: transform 0.2s var(--ease-out);
}

.has-dropdown:hover .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: min(520px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.has-dropdown.open .dropdown-trigger svg {
  transform: rotate(180deg);
}

/* Not a heading — it's a menu-group label inside the nav, so it must not
   inject an <h5> into the document outline ahead of the page <h1>. */
.dropdown-col-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-400);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.dropdown-col a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.78);
  padding: 0;
}

.dropdown-col a::after {
  display: none;
}

.dropdown-col a:hover {
  color: var(--orange-400);
}

/* Header phone CTA */
.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--orange-500);
    color: var(--white);
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s var(--ease-out);
    box-shadow: 0 6px 16px rgba(242, 107, 31, 0.32);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .header-cta:hover {
    background: var(--orange-400);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(242, 107, 31, 0.4);
  }
}

.header-cta-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--orange-500);
  color: var(--white);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(242, 107, 31, 0.4);
}

@media (min-width: 768px) {
  .header-cta-mobile {
    display: none;
  }
}

/* Hamburger */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  gap: 5px;
  margin-left: var(--space-3);
}

@media (min-width: 1100px) {
  .hamburger {
    display: none;
  }
}

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

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-900);
  padding: var(--space-8) var(--space-6);
  transform: translateX(100%);
  /* Hidden when closed so the off-canvas links are out of the tab order and
     the screen-reader tree, not just visually off-screen. Visibility flips
     after the slide-out finishes (discrete transition delayed to the end). */
  visibility: hidden;
  transition: transform 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
  overflow-y: auto;
  z-index: 99;
}

.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
}

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

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

.nav-mobile > ul > li > a,
.nav-mobile > ul > li > .mobile-section-title {
  display: block;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-section-title {
  color: var(--orange-400) !important;
  font-size: 1rem !important;
  letter-spacing: 0.12em !important;
  padding-top: var(--space-6) !important;
}

.nav-mobile .sub {
  padding-left: var(--space-4);
  margin-top: var(--space-2);
}

.nav-mobile .sub a {
  display: block;
  padding: var(--space-2) 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
  border: none;
}

.nav-mobile .sub a:hover {
  color: var(--orange-400);
}

.nav-mobile-cta {
  margin-top: var(--space-8);
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  /* Sticky header sits above hero in the document flow, so we subtract it from min-height */
  min-height: calc(clamp(560px, 82vh, 780px) - var(--header-h));
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 15, 38, 0.85) 0%, rgba(11, 27, 63, 0.78) 50%, rgba(6, 15, 38, 0.92) 100%);
}

/* Decorative orange bar at the top of the hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500) 0%, var(--orange-400) 50%, var(--orange-500) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4.25rem);
  margin-bottom: var(--space-6);
  text-wrap: balance;
  color: var(--orange-500);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero h1 .in-state {
  display: block;
  color: var(--white);
  margin-top: var(--space-2);
  font-size: 0.78em;
}

.hero p.lede {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-6);
  max-width: 640px;
  margin-inline: auto;
  text-wrap: pretty;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
}

@media (min-width: 540px) {
  .hero-ctas {
    flex-direction: row;
  }
}

/* Hero scroll cue */
.scroll-cue {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  z-index: 2;
}

@media (min-width: 768px) {
  .scroll-cue {
    display: flex;
  }
}

.scroll-cue.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.scroll-cue::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--orange-500), transparent);
  animation: scrollCue 2s var(--ease-in-out) infinite;
}

@keyframes scrollCue {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.4); transform-origin: top; }
}

/* ---------- 8. TRUST BAR ---------- */
.trust-bar {
  background: var(--navy-900);
  padding: var(--space-8) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--white);
  text-align: left;
}

@media (min-width: 768px) {
  .trust-item {
    justify-content: center;
    text-align: center;
  }
}

.trust-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  border-radius: var(--radius-md);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(242, 107, 31, 0.3);
}

.trust-icon svg {
  width: 26px;
  height: 26px;
}

.trust-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .trust-item {
    flex-direction: column;
    gap: var(--space-3);
  }
  .trust-text {
    font-size: 1.25rem;
  }
}

/* ---------- 8b. INSTANT QUOTE BANNER ---------- */
.quote-banner {
  background: var(--navy-800);
  padding: var(--space-10) 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quote-banner h2 {
  color: var(--white);
  font-size: clamp(1.625rem, 3.6vw, 2.5rem);
  margin-bottom: var(--space-5);
}

.quote-banner h2 .accent {
  color: var(--orange-500);
}

/* ---------- 8c. ABOUT / 5-STAR SECTION ---------- */
.about-section {
  background: var(--white);
  text-align: center;
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.about-inner {
  max-width: 760px;
  margin-inline: auto;
}

.about-section h2 {
  color: var(--navy-800);
  margin-bottom: var(--space-5);
  text-wrap: balance;
}

.about-section h2 .accent {
  color: var(--orange-500);
}

.about-section p {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

/* ---------- 9. LEAD CAPTURE FORM ---------- */
.lead-section {
  background: var(--navy-800);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.lead-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 107, 31, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(26, 49, 104, 0.5) 0%, transparent 50%);
}

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

@media (min-width: 900px) {
  .lead-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-12);
  }
}

.lead-copy h2 {
  margin-bottom: var(--space-5);
  text-wrap: balance;
}

.lead-copy h2 .accent {
  color: var(--orange-500);
}

.lead-copy .lede {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-6);
}

.value-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.value-stack li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.value-stack li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  background: var(--orange-500);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.lead-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-xl);
  border-top: 5px solid var(--orange-500);
}

@media (min-width: 540px) {
  .lead-form {
    padding: var(--space-10) var(--space-8);
  }
}

.lead-form .form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: var(--space-2);
}

.lead-form .form-sub {
  font-size: 0.9375rem;
  color: var(--slate-600);
  margin-bottom: var(--space-6);
}

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

.field label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-800);
}

.field input,
.field select,
.field textarea {
  padding: 0.875rem 1rem;
  background: var(--off-white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--slate-900);
  font-size: 1rem;
  transition: all 0.2s var(--ease-out);
  width: 100%;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230b1b3f' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(242, 107, 31, 0.12);
}

.form-fineprint {
  font-size: 0.8125rem;
  color: var(--slate-500);
  text-align: center;
  margin-top: var(--space-4);
}

/* ---------- 10. SERVICES SECTION ---------- */
.services-head {
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 720px;
  margin-inline: auto;
}

.services-head h2 {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

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

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

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: left;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-500);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-800);
  color: var(--orange-500);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  transition: all 0.3s var(--ease-out);
}

.service-card:hover .service-icon {
  background: var(--orange-500);
  color: var(--white);
  transform: rotate(-4deg);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-3);
  color: var(--navy-800);
  text-wrap: balance;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--slate-600);
  margin-bottom: var(--space-6);
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-top: auto;
  transition: gap 0.2s var(--ease-out);
}

.service-card:hover .service-link {
  gap: var(--space-3);
}

/* ---------- 11. FINANCING CALLOUT ---------- */
.financing {
  background: var(--navy-900);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

.financing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(242, 107, 31, 0.12) 0%, transparent 60%);
}

.financing::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 60px,
      rgba(255, 255, 255, 0.02) 60px,
      rgba(255, 255, 255, 0.02) 61px
    );
}

.financing-inner {
  max-width: 760px;
  margin-inline: auto;
}

.financing h2 {
  margin-bottom: var(--space-5);
  text-wrap: balance;
}

.financing p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  margin-bottom: var(--space-8);
  max-width: 640px;
  margin-inline: auto;
}

/* ---------- 12. WHY US ---------- */
.why-head {
  max-width: 720px;
  margin-bottom: var(--space-8);
}

.why-head h2 {
  margin-bottom: var(--space-3);
  text-wrap: balance;
}

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

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

.why-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--white);
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.why-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-800);
  color: var(--orange-500);
  border-radius: var(--radius-md);
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

/* Semantically h3 (sits under the section h2) but keeps the prior h4 look,
   so the visual hierarchy is unchanged while the heading order is valid. */
.why-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.1875rem;
  color: var(--navy-800);
  margin-bottom: var(--space-2);
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* ---------- 13. SECOND CTA ---------- */
.second-cta {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  color: var(--white);
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.second-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 60px,
      rgba(0, 0, 0, 0.04) 60px,
      rgba(0, 0, 0, 0.04) 61px
    );
}

.second-cta h2 {
  color: var(--white);
  margin-bottom: var(--space-8);
  text-wrap: balance;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.second-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
  justify-content: center;
  max-width: 540px;
  margin-inline: auto;
}

@media (min-width: 600px) {
  .second-cta-buttons {
    flex-direction: row;
  }
}

.second-cta .btn-primary {
  background: var(--white);
  color: var(--orange-600);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.second-cta .btn-primary:hover {
  background: var(--navy-900);
  color: var(--white);
}

.second-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
}

.second-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- 14. FOOTER ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-12) 0 var(--space-6);
  border-top: 4px solid var(--orange-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.6fr;
  }
}

.footer-brand .logo {
  margin-bottom: var(--space-5);
}

.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-5);
  max-width: 320px;
}

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

.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s var(--ease-out);
}

.footer-contact a:hover {
  color: var(--orange-400);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--orange-500);
  flex-shrink: 0;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s var(--ease-out);
}

.footer-col a:hover {
  color: var(--orange-400);
}

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

.footer-area-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-400);
  margin-bottom: var(--space-2);
}

.footer-area-block span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--white);
  transition: all 0.2s var(--ease-out);
}

.footer-social a:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 720px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- 15. SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 16. UTILITIES ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}

/* ---------- ACCESSIBILITY ---------- */
/* Visible keyboard focus everywhere. :focus-visible only shows the ring for
   keyboard/AT users, not mouse clicks, so it doesn't change the mouse UX. */
:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link: off-screen until focused, then pinned top-left over the header. */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  margin: var(--space-2);
  padding: 0.75rem 1.25rem;
  background: var(--orange-500);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* The skip target is programmatically focusable but shouldn't show a ring. */
#main-content:focus,
#main-content:focus-visible {
  outline: none;
}

/* ---------- 17. INNER PAGE HERO ---------- */
.page-hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 4px solid var(--orange-500);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 10%, rgba(242, 107, 31, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(26, 49, 104, 0.6) 0%, transparent 55%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
}

.page-hero .eyebrow {
  color: var(--orange-400);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  margin-bottom: var(--space-5);
  text-wrap: balance;
}

.page-hero h1 .accent {
  color: var(--orange-500);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

/* ---------- 18. PROSE / CONTENT SECTIONS ---------- */
.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose p {
  margin-bottom: var(--space-5);
}

.prose ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.prose ul li {
  position: relative;
  padding-left: var(--space-8);
  font-size: 1rem;
  color: var(--slate-700);
  line-height: 1.55;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  background: var(--orange-500);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- 19. AREA LIST (service-areas page) ---------- */
.area-block {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--slate-200);
}

.area-block:last-child {
  border-bottom: none;
}

.area-block h3 {
  color: var(--navy-800);
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.area-block p {
  color: var(--slate-600);
  font-size: 1rem;
}

.area-state-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin: var(--space-10) 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--orange-500);
}

.area-state-heading:first-child {
  margin-top: 0;
}

/* ---------- 20. FORM REQUIRED INDICATOR ---------- */
.field label .req {
  color: var(--orange-500);
  margin-left: 2px;
}

/* ---------- 21. HOW IT WORKS (3-step) ---------- */
.how-it-works {
  background: var(--off-white);
  position: relative;
  isolation: isolate;
}

.steps-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-10);
}

.steps-head h2 {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1100px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
  .steps-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }
}

.step-card {
  position: relative;
  padding: var(--space-8) var(--space-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  text-align: left;
  counter-increment: step;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-500);
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--orange-500);
  opacity: 0.16;
  letter-spacing: 0.02em;
}

.step-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-800);
  color: var(--orange-500);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step-card h3 {
  font-size: 1.25rem;
  color: var(--navy-800);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* ---------- 22. 3D RENDERING FEATURE ---------- */
.feature-3d {
  background: var(--navy-900);
  color: var(--white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.feature-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 20%, rgba(242, 107, 31, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(26, 49, 104, 0.55) 0%, transparent 55%);
}

.feature-3d-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .feature-3d-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-12);
  }
}

.feature-3d-copy h2 {
  color: var(--white);
  text-wrap: balance;
  margin-bottom: var(--space-5);
}

.feature-3d-copy h2 .accent {
  color: var(--orange-500);
}

.feature-3d-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.feature-3d-copy ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.feature-3d-copy ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.feature-3d-copy ul li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  background: var(--orange-500);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-3d-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(242, 107, 31, 0.18), rgba(26, 49, 104, 0.45)),
    var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.feature-3d-visual::before,
.feature-3d-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(800px) rotateX(55deg) translateY(15%);
  transform-origin: center bottom;
}

.feature-3d-visual::after {
  background-image:
    linear-gradient(rgba(242, 107, 31, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 107, 31, 0.18) 1px, transparent 1px);
  background-size: 80px 80px;
}

.feature-3d-house {
  position: relative;
  z-index: 2;
  width: 56%;
  max-width: 280px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
}

.feature-3d-badge {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--orange-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

/* ---------- 23. FAQ ---------- */
.faq {
  background: var(--white);
}

.faq-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-10);
}

.faq-head h2 {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.faq-item[open] {
  border-color: var(--orange-500);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.35;
  transition: color 0.2s var(--ease-out);
}

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

.faq-item summary:hover { color: var(--orange-500); }

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--off-white);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f26b1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s var(--ease-out);
}

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

.faq-item .faq-body {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--slate-700);
  font-size: 0.9375rem;
  line-height: 1.65;
}


/* ==========================================================================
   24. PAGE HERO PHOTO OVERLAYS
   ========================================================================== */
.page-hero.hero-roofing::before {
  background:
    linear-gradient(rgba(6, 15, 38, 0.78), rgba(11, 27, 63, 0.86)),
    image-set(url('../images/hero-roofing.webp') type('image/webp'), url('../images/hero-roofing.jpg') type('image/jpeg')) center/cover no-repeat;
}
.page-hero.hero-siding::before {
  background:
    linear-gradient(rgba(6, 15, 38, 0.78), rgba(11, 27, 63, 0.86)),
    image-set(url('../images/hero-siding.webp') type('image/webp'), url('../images/hero-siding.jpg') type('image/jpeg')) center/cover no-repeat;
}
.page-hero.hero-windows-doors::before {
  background:
    linear-gradient(rgba(6, 15, 38, 0.78), rgba(11, 27, 63, 0.86)),
    image-set(url('../images/hero-windows-doors.webp') type('image/webp'), url('../images/hero-windows-doors.jpg') type('image/jpeg')) center/cover no-repeat;
}
.page-hero.hero-fences::before {
  background:
    linear-gradient(rgba(6, 15, 38, 0.78), rgba(11, 27, 63, 0.86)),
    image-set(url('../images/hero-fences.webp') type('image/webp'), url('../images/hero-fences.jpg') type('image/jpeg')) center/cover no-repeat;
}

/* ==========================================================================
   25. OWNER / TEAM PHOTO SLOT
   ========================================================================== */
.about-photo {
  margin: var(--space-8) auto 0;
  max-width: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--orange-500);
  display: block;
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   26. MANUFACTURER CERTIFICATION BADGES
   ========================================================================== */
.cert-bar {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  padding: var(--space-8) 0;
}
.cert-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.cert-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.cert-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8) var(--space-10);
  max-width: 960px;
}
.cert-logos img {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.cert-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ==========================================================================
   27. PROJECT GALLERY
   ========================================================================== */
.gallery {
  background: var(--off-white);
}
.gallery-head {
  text-align: center;
  margin-bottom: var(--space-10);
  max-width: 720px;
  margin-inline: auto;
}
.gallery-head h2 {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--slate-200);
  isolation: isolate;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 15, 38, 0.55));
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-caption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-3);
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   28. TESTIMONIALS
   ========================================================================== */
.testimonials { background: var(--white); }
.testimonials-head {
  text-align: center;
  margin-bottom: var(--space-10);
  max-width: 720px;
  margin-inline: auto;
}
.testimonials-head h2 {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 760px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--slate-200);
  position: relative;
  display: flex;
  flex-direction: column;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: var(--space-5);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--orange-500);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--orange-500);
  margin-bottom: var(--space-3);
}
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial-quote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-700);
  margin-bottom: var(--space-5);
  flex: 1;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.testimonial-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-800);
  color: var(--orange-400);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.testimonial-attrib {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-attrib strong {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-800);
  text-transform: none;
  letter-spacing: 0;
}
.testimonial-attrib span {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* ==========================================================================
   29. COUNTY HUB CARDS
   ========================================================================== */
.county-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .county-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .county-grid { grid-template-columns: repeat(3, 1fr); }
}
.county-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.county-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.county-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--navy-800);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.county-card p {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}
.county-card .county-link {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-500);
}

/* ==========================================================================
   30. COUNTY PAGE — TOWN PILLS
   ========================================================================== */
.town-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-6);
}
.town-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--off-white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: 0.01em;
}

/* Two-column intro on county pages */
.county-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-8);
}
@media (min-width: 640px) {
  .county-stats { grid-template-columns: repeat(3, 1fr); }
}
.county-stat {
  padding: var(--space-5);
  background: var(--off-white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--orange-500);
}
.county-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-800);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.county-stat span {
  font-size: 0.8125rem;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}


/* ==========================================================================
   31. AERIAL MEASUREMENTS FEATURE — uses .feature-3d-grid-reverse
   ========================================================================== */
@media (min-width: 900px) {
  .feature-3d-grid-reverse {
    grid-template-columns: 1fr 1.05fr;
  }
  .feature-3d-grid-reverse > .feature-3d-visual { order: 1; }
  .feature-3d-grid-reverse > .feature-3d-copy { order: 2; }
}

/* Subtle palette shift for the second feature so it doesn't read identical */
.feature-aerial {
  background: var(--navy-800);
}
.feature-aerial::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(242, 107, 31, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(26, 49, 104, 0.55) 0%, transparent 55%);
}

/* ==========================================================================
   32. COMPARISON DIAGRAM SECTION (Old Way vs D'Bros Way)
   ========================================================================== */
.comparison {
  background: var(--white);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.comparison-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.comparison-head h2 {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.comparison-figure {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--orange-500);
}
.comparison-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   33. PROCESS-DIAGRAM BANNER (sits above the 4-step cards in How It Works)
   ========================================================================== */
.process-banner {
  max-width: 1100px;
  margin: var(--space-6) auto var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
}
.process-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   34. SERVICE AREA MAP (sits on top of service-areas.html)
   ========================================================================== */
.service-map {
  background: var(--off-white);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.service-map-figure {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  background: var(--white);
}
.service-map-figure img {
  width: 100%;
  height: auto;
  display: block;
}


/* ==========================================================================
   35. PREP PREVIEW (homepage How-It-Works, under the process diagram)
   ========================================================================== */
.prep-preview {
  max-width: 880px;
  margin: var(--space-8) auto var(--space-12);
  text-align: center;
}
.prep-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}
.prep-preview figcaption {
  margin-top: var(--space-4);
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.55;
  max-width: 640px;
  margin-inline: auto;
  text-wrap: balance;
}

/* ==========================================================================
   36. AERIAL B-ROLL GALLERY (service-areas hub)
   "Properties we measure" band — 4-up grid of generic suburban aerials.
   ========================================================================== */
.aerial-band {
  background: var(--off-white);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.aerial-band-head {
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 720px;
  margin-inline: auto;
}
.aerial-band-head h2 {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.aerial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 1200px;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .aerial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .aerial-grid { grid-template-columns: repeat(4, 1fr); }
}
.aerial-card {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--slate-200);
}
.aerial-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.aerial-card:hover img {
  transform: scale(1.04);
}
.aerial-card figcaption {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-2);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

/* ==========================================================================
   37. SHORE-HERO PHOTO OVERLAY (Atlantic, Ocean, Cape May, Cumberland)
   Layered onto .page-hero just like the service-page heroes are.
   ========================================================================== */
.page-hero.hero-shore::before {
  background:
    linear-gradient(rgba(6, 15, 38, 0.72), rgba(11, 27, 63, 0.82)),
    image-set(url('../images/aerial-shore-home-01.webp') type('image/webp'), url('../images/aerial-shore-home-01.jpg') type('image/jpeg')) center/cover no-repeat;
}

/* ==========================================================================
   38. PRESS / BRAND ASSETS PAGE
   ========================================================================== */
.press-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.press-section {
  margin-bottom: var(--space-12);
}
.press-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-5);
  color: var(--navy-800);
}
.press-section h3 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
  margin-bottom: var(--space-3);
}
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .press-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .press-grid { grid-template-columns: repeat(4, 1fr); }
}
.press-asset {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.press-asset-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.press-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}
.press-asset-thumb.cover img { object-fit: cover; }
.press-asset-body {
  padding: var(--space-4) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.press-asset-name {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-800);
}
.press-asset-meta {
  font-size: 0.8125rem;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}
.press-asset-download {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-500);
  padding-top: var(--space-3);
  border-top: 1px solid var(--slate-200);
}
.press-asset-download:hover { color: var(--orange-400); }

.press-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--orange-500);
}
@media (min-width: 640px) {
  .press-contact { grid-template-columns: repeat(2, 1fr); }
}
.press-contact dt {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: var(--space-1);
}
.press-contact dd {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-800);
}
.press-contact dd a { color: var(--orange-500); }
