/* ============================================================
   BumperDoc Santee — Production Stylesheet
   ============================================================ */

/* --- Custom Properties --- */
/* NOTE: Hex/rgba fallbacks for Safari < 15.4 which lacks OKLCH support */
:root {
  --red: #cc0000;
  --red-hover: #a30000;
  --teal: #078580;
  --teal-hover: #066f6b;
  --navy: #0f1923;
  --navy-light: #1a2533;
  --white: #f7f4ef;
  --off-white: #ede7dd;
  --body-dark: #e3e3e6;
  --body-light: #444444;
  --muted-light: #4f5c6b;
  --border-subtle: #c2c2c6;
  --border-dark: #2d3a4a;
  --navy-overlay: rgba(15, 25, 35, 0.78);
  --footer-text: #a0a0a4;
  --footer-muted: #9a9aa0;
  --success: #3daa5c;
  --upload-hint: #6b6b72;
  --input-placeholder: #5a6570;
  --white-alpha-04: rgba(255, 255, 255, 0.04);
  --white-alpha-06: rgba(255, 255, 255, 0.06);
  --white-alpha-08: rgba(255, 255, 255, 0.08);
  --white-alpha-10: rgba(255, 255, 255, 0.1);
  --white-alpha-12: rgba(255, 255, 255, 0.12);
  --white-alpha-15: rgba(255, 255, 255, 0.15);
  --white-alpha-25: rgba(255, 255, 255, 0.25);
  --black-alpha-50: rgba(0, 0, 0, 0.5);
  --red-soft: rgba(204, 0, 0, 0.08);
  --red-focus: rgba(204, 0, 0, 0.1);
  --red-shadow: rgba(204, 0, 0, 0.3);
  --teal-soft: rgba(7, 133, 128, 0.04);
  --teal-focus: rgba(7, 133, 128, 0.15);
  --teal-ring: rgba(7, 133, 128, 0.14);
  --status-success-bg: #d4edda;
  --status-success-text: #155724;
  --status-success-border: #82c991;
  --status-error-bg: #f8d7da;
  --status-error-text: #721c24;
  --status-error-border: #d2322d;
  --mobile-menu-shadow: -20px 0 50px rgba(0, 0, 0, 0.22);
  --hero-overlay-main: linear-gradient(90deg, rgba(15, 25, 35, 0.98) 0%, rgba(15, 25, 35, 0.88) 42%, rgba(15, 25, 35, 0.42) 100%);
  --hero-overlay-soft: linear-gradient(0deg, rgba(15, 25, 35, 0.68), rgba(15, 25, 35, 0.08));
  --hero-overlay-mobile: linear-gradient(0deg, rgba(15, 25, 35, 0.98) 0%, rgba(15, 25, 35, 0.82) 58%, rgba(15, 25, 35, 0.48) 100%);
  --hero-overlay-home: linear-gradient(135deg, rgba(15, 25, 35, 0.94) 0%, rgba(15, 25, 35, 0.84) 28%, rgba(15, 25, 35, 0.5) 55%, rgba(15, 25, 35, 0.15) 82%, rgba(15, 25, 35, 0) 100%);
  --surface-glass: rgba(255, 255, 255, 0.06);
  --surface-card: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 22px 60px rgba(15, 25, 35, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Fluid spacing scale — eliminates the stair-step at 760px and gives
     each section role a real variant. See .section--tight/loose/inhale below. */
  --gap-section: clamp(3.5rem, 7vw, 7.5rem);
  --gap-section-tight: clamp(2rem, 4vw, 3.5rem);
  --gap-section-loose: clamp(5rem, 10vw, 10rem);
  --gap-section-asym-top: clamp(4.5rem, 9vw, 8.5rem);
  --gap-section-asym-bot: clamp(3rem, 5vw, 5rem);
  --gap-heading-content: clamp(1.5rem, 2.5vw, 2.5rem);
  --gap-inner: clamp(1.5rem, 2.5vw, 2.5rem);
  --container: min(94%, 1240px);
  --hero-home-min: 100svh;
  --hero-page-min: clamp(22rem, 42svh, 31rem);
  --hero-404-min: clamp(24rem, 60svh, 42rem);
  --hero-home-y: clamp(3.25rem, 6.5vw, 5.75rem);
  --hero-page-y: clamp(3rem, 5vw, 4.25rem);
}

/* DESIGN: OKLCH overrides for browsers that support it — richer color gamut */
@supports (color: oklch(0 0 0)) {
  :root {
    --red: oklch(0.52 0.207 28);
    --red-hover: oklch(0.45 0.207 28);
    --teal: oklch(0.52 0.11 190);
    --teal-hover: oklch(0.46 0.11 190);
    --navy: oklch(0.2 0.03 260);
    --navy-light: oklch(0.25 0.03 260);
    --white: oklch(0.975 0.014 80);
    --off-white: oklch(0.93 0.02 80);
    --body-dark: oklch(0.92 0.005 260);
    --body-light: oklch(0.38 0 0);
    --muted-light: oklch(0.43 0.015 250);
    --border-subtle: oklch(0.8 0.005 260);
    --border-dark: oklch(0.35 0.02 260);
    --navy-overlay: oklch(0.2 0.03 260 / 0.78);
    --footer-text: oklch(0.7 0.005 260);
    --footer-muted: oklch(0.65 0.005 260);
    --success: oklch(0.7 0.18 145);
    --upload-hint: oklch(0.55 0.01 260);
    --white-alpha-04: oklch(1 0 0 / 0.04);
    --white-alpha-06: oklch(1 0 0 / 0.06);
    --white-alpha-08: oklch(1 0 0 / 0.08);
    --white-alpha-10: oklch(1 0 0 / 0.1);
    --white-alpha-12: oklch(1 0 0 / 0.12);
    --white-alpha-15: oklch(1 0 0 / 0.15);
    --white-alpha-25: oklch(1 0 0 / 0.25);
    --black-alpha-50: oklch(0 0 0 / 0.5);
    --red-soft: oklch(0.52 0.207 28 / 0.08);
    --red-focus: oklch(0.52 0.207 28 / 0.1);
    --red-shadow: oklch(0.52 0.207 28 / 0.3);
    --teal-soft: oklch(0.45 0.1 190 / 0.04);
    --teal-focus: oklch(0.45 0.1 190 / 0.15);
    --teal-ring: oklch(0.45 0.1 190 / 0.14);
    --status-success-bg: oklch(0.92 0.08 145);
    --status-success-text: oklch(0.3 0.1 145);
    --status-success-border: oklch(0.7 0.12 145);
    --status-error-bg: oklch(0.92 0.08 27);
    --status-error-text: oklch(0.35 0.15 27);
    --status-error-border: oklch(0.7 0.15 27);
    --mobile-menu-shadow: -20px 0 50px oklch(0 0 0 / 0.22);
    --hero-overlay-main: linear-gradient(90deg, oklch(0.2 0.03 260 / 0.98) 0%, oklch(0.2 0.03 260 / 0.88) 42%, oklch(0.2 0.03 260 / 0.42) 100%);
    --hero-overlay-soft: linear-gradient(0deg, oklch(0.2 0.03 260 / 0.68), oklch(0.2 0.03 260 / 0.08));
    --hero-overlay-mobile: linear-gradient(0deg, oklch(0.2 0.03 260 / 0.98) 0%, oklch(0.2 0.03 260 / 0.82) 58%, oklch(0.2 0.03 260 / 0.48) 100%);
    --hero-overlay-home: linear-gradient(135deg, oklch(0.2 0.03 260 / 0.94) 0%, oklch(0.2 0.03 260 / 0.84) 28%, oklch(0.2 0.03 260 / 0.5) 55%, oklch(0.2 0.03 260 / 0.15) 82%, oklch(0.2 0.03 260 / 0) 100%);
    --surface-glass: oklch(1 0 0 / 0.06);
    --surface-card: oklch(0.995 0.006 80 / 0.9);
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.08);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.1);
    --shadow-lg: 0 8px 32px oklch(0 0 0 / 0.14);
    --shadow-xl: 0 22px 60px oklch(0.2 0.03 260 / 0.16);
  }
}

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

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

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body-light);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

main {
  flex: 1;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.35rem, 5vw + 1rem, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-rendering: optimizeLegibility;
}

h2 {
  font-size: clamp(1.85rem, 2.2vw + 1rem, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
}

p {
  max-width: 70ch;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted-light);
  margin-top: 1rem;
  max-width: 60ch;
}

@media (min-width: 760px) {
  h3 {
    font-size: 1.35rem;
  }

  .lede {
    font-size: 1.18rem;
  }
  /* Spacing tokens are fluid now — no breakpoint step needed. */
}

/* --- Layout --- */
.container {
  width: var(--container);
  margin-inline: auto;
  min-width: 0;
}

section {
  padding-block: var(--gap-section);
}

.hero--home + #services {
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
}

/* Section density variants — apply on top of the default. */
.section--tight  { padding-block: var(--gap-section-tight); }
.section--loose  { padding-block: var(--gap-section-loose); }
.section--inhale { padding-block: var(--gap-section-asym-top) var(--gap-section-asym-bot); }

section[id],
.service-detail[id] {
  scroll-margin-top: 80px;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 100;
  background: var(--navy-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--white-alpha-06);
  transition: background 0.3s var(--ease-out);
}

.nav-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 0;
  min-height: 5rem;
  min-width: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.brand-logo {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  padding: 0.2rem;
  border-radius: 0.9rem;
  background: var(--white);
  object-fit: contain;
  box-shadow: 0 0 0 1px var(--white-alpha-25), 0 10px 28px rgba(0, 0, 0, 0.16);
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  min-width: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}

.brand-text em {
  font-style: normal;
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.32rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--body-dark);
  transition: color 0.2s var(--ease-out);
  position: relative;
  padding: 0.65rem 0.65rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0.28rem;
  left: 0.44rem;
  right: 0.44rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.nav-links a[aria-current="page"] {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  margin-left: 0.45rem;
  padding: 0.62rem 0.84rem;
  background: var(--red);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 18px rgba(210, 50, 45, 0.18);
  transition: background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-back);
}

.nav-cta:hover {
  background: var(--red-hover);
  box-shadow: 0 12px 24px rgba(210, 50, 45, 0.24);
  transform: translateY(-1px);
}

.nav-cta svg {
  width: 0.95rem;
  height: 0.95rem;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  background: var(--white-alpha-06);
  border: 1px solid var(--white-alpha-12);
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

@media (max-width: 768px) {
  .nav-inner {
    min-height: 4rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    background: var(--navy);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 99;
    box-shadow: var(--mobile-menu-shadow);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.05rem;
    line-height: 1.2;
    padding: 0.9rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border-dark);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1.25rem;
    margin-left: 0;
    width: 100%;
    justify-content: center;
    min-height: 3rem;
    padding: 0.86rem 1rem;
    font-size: 0.98rem;
  }

  body.nav-open .site-header {
    background: var(--navy);
  }

}

/* Mobile drawer scrim. Lives at body level (NOT inside .site-header)
   because .site-header has backdrop-filter, which traps fixed-positioned
   descendants inside an 80px containing block. */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black-alpha-50);
  z-index: 98;
  pointer-events: none;
}

.mobile-overlay.active {
  display: block;
  pointer-events: auto;
}

@media (max-width: 420px) {
  .nav-brand {
    gap: 0.5rem;
  }

  .nav-brand .brand-logo {
    width: 2.38rem;
    height: 2.38rem;
  }

  .nav-brand .brand-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    font-size: 0.95rem;
  }

  .nav-brand .brand-text em {
    font-size: 0.82rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: var(--hero-page-min);
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: clamp(4.25rem, 8vw, 5rem);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 28%, rgba(210, 50, 45, 0.22), transparent 28%),
    radial-gradient(circle at 84% 24%, rgba(7, 133, 128, 0.16), transparent 24%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: var(--container);
  margin-inline: auto;
  padding-block: var(--hero-page-y);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  max-width: 1240px;
}

.hero h1 {
  color: var(--white);
  max-width: 22ch;
  font-size: clamp(2.5rem, 3.6vw + 1rem, 5rem);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-transform: none;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(15, 25, 35, 0.55);
}

.hero--short .hero-inner,
.hero--mid .hero-inner {
  max-width: 780px;
  margin-inline: max(5vw, calc((100vw - 1140px) / 2)) auto;
}

.hero--services {
  --hero-image: url("images/services/paint-refinish-booth-01.jpg");
  --hero-position: center;
}

.hero--contact {
  --hero-image: url("images/shop/bumperdoc-santee-work-bay-01.jpg");
  --hero-position: center 42%;
}

/* Secondary-page heroes share the home hero's TYPE SYSTEM and overlay
   TREATMENT, but a shorter min-height so the form/services list stays
   near the fold. See .hero--home for the canonical hero rules. */
.hero--mid,
.hero--short {
  min-height: clamp(28rem, 60svh, 38rem);
}

.hero--mid .hero-bg::after,
.hero--short .hero-bg::after {
  background: var(--hero-overlay-home);
}

.hero--contact h1 {
  max-width: 15ch;
}

.hero h1 .accent {
  color: var(--red);
  display: block;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.6;
  font-weight: 600;
  color: var(--body-dark);
  max-width: 56ch;
  text-shadow: 0 1px 12px rgba(15, 25, 35, 0.45);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  :root {
    --gap-section: 4rem;
    --gap-section-tight: 3.25rem;
    --gap-heading-content: 2rem;
    --hero-page-min: clamp(20rem, 58svh, 28rem);
  }

  .hero:not(.hero--home) {
    align-items: flex-end;
    padding-top: 4.25rem;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .hero:not(.hero--home) .hero-bg::after {
    background: var(--hero-overlay-mobile);
  }

  .hero.hero--home {
    padding-top: clamp(4.25rem, 11vw, 5rem);
  }

  .hero-inner {
    padding-block: 4.5rem 3rem;
    min-width: 0;
  }

  .hero--short .hero-inner,
  .hero--mid .hero-inner {
    margin-inline: auto;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 8.5vw, 3.1rem);
    line-height: 1;
    max-width: 100%;
  }

  .hero-sub {
    max-width: 42ch;
    font-size: 1rem;
  }

  .hero-ctas .btn {
    width: 100%;
    min-height: 3rem;
    padding-inline: 1rem;
  }

}

@media (max-width: 520px) {
  .nav-inner,
  .hero-inner {
    width: calc(100% - 2rem);
    margin-inline: auto;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.82rem 1.3rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(210, 50, 45, 0.18);
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(210, 50, 45, 0.24);
}

.btn-ghost {
  background: var(--white-alpha-06);
  color: var(--white);
  border: 1px solid var(--white-alpha-25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-ghost:hover {
  background: var(--white-alpha-12);
  border-color: var(--white-alpha-25);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   SECTIONS — LIGHT & DARK ALTERNATING
   ============================================================ */
.section-light {
  background: var(--white);
  color: var(--body-light);
}

.section-dark {
  background: var(--navy);
  color: var(--body-dark);
}

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

.section-dark h2 {
  color: var(--white);
}

.section-dark .lede {
  color: var(--body-dark);
}

.section-off {
  background: var(--off-white);
  color: var(--body-light);
}

/* When #trust sits directly under the dark navy hero, bump its background
   one step lighter so the page breathes instead of stacking two identical
   navy bands. The cards still read because their alpha treatments are
   relative to the section bg. */
#trust.section-dark {
  background: var(--navy-light);
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: var(--gap-heading-content);
}

@media (min-width: 920px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 1.6vw, 1.5rem);
  }
}

.service-card {
  position: relative;
  padding: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow-sm);
  container-type: inline-size;
}

.reputation-card::before,
.contact-info-card::before,
.map-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  background: var(--teal);
  border-radius: 0 0 3px 3px;
  opacity: 0.75;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(210, 50, 45, 0.18), inset 0 1px 0 var(--white-alpha-25);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  overflow: hidden;
  line-height: 0;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}

.service-card:hover .service-card-media img {
  transform: scale(1.055);
  filter: saturate(1.06) contrast(1.04);
}

.service-card-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(0deg, rgba(15, 25, 35, 0.72), transparent);
}

.service-card-media figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.85rem;
  z-index: 1;
  padding: 0.35rem 0.62rem;
  color: var(--white);
  background: rgba(15, 25, 35, 0.62);
  border: 1px solid var(--white-alpha-15);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.service-card-kicker {
  width: fit-content;
  margin-bottom: 0.65rem;
  color: var(--muted-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--red);
}

.service-card h3 {
  margin-bottom: 0.65rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted-light);
  margin-bottom: 1.25rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: auto;
  width: fit-content;
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.service-card-link::after {
  content: '→';
  transform: translateX(0);
  transition: transform 0.25s var(--ease-out);
}

.service-card-link:hover {
  color: var(--red-hover);
  transform: translateX(2px);
}

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

/* ============================================================
   WORK PREVIEW
   ============================================================ */
.work-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-inner);
  margin-top: var(--gap-heading-content);
}

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

.work-shot {
  position: relative;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  line-height: 0;
}

.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

/* Portrait-source variant: framed headshot stays centered without cropping
   the face when squeezed into the 4:3 card. */
.work-shot--portrait img {
  object-fit: contain;
  background: var(--navy);
}

.work-shot:hover img {
  transform: scale(1.04);
}

.work-shot figcaption {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.82rem 0.9rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  background: rgba(15, 25, 35, 0.68);
  border: 1px solid var(--white-alpha-15);
  border-radius: 0.85rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ============================================================
   SERVICE DETAIL SECTIONS (services.html)
   ============================================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-inner);
  align-items: center;
}

@media (min-width: 768px) {
  .service-detail {
    grid-template-columns: 5fr 4fr;
  }

  .service-detail.reverse {
    grid-template-columns: 4fr 5fr;
  }

  .service-detail.reverse .service-detail-content {
    order: 2;
  }

  .service-detail.reverse .service-detail-image {
    order: 1;
  }
}

.service-detail-content h2,
.service-detail-content h3 {
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

@media (min-width: 760px) {
  .service-detail-content h2,
  .service-detail-content h3 {
    font-size: 1.8rem;
  }
}

.service-detail-content p {
  margin-bottom: 1rem;
  color: var(--muted-light);
}

.service-detail-image {
  aspect-ratio: 4 / 3;
  background: var(--navy);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  line-height: 0;
}

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

.service-detail-image figcaption {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.82rem 0.9rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  background: rgba(15, 25, 35, 0.68);
  border: 1px solid var(--white-alpha-15);
  border-radius: 0.85rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* DESIGN: 2-up service pair — kills the "5 alternating slabs" drumbeat on the
   services page by pairing two related services side-by-side in compact form. */
.service-detail-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-inner);
}

@media (min-width: 880px) {
  .service-detail-pair {
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .service-detail-pair .service-detail {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 1.25rem;
    align-items: stretch;
  }

  .service-detail-pair .service-detail.reverse .service-detail-content {
    order: 0;
  }

  .service-detail-pair .service-detail.reverse .service-detail-image {
    order: 1;
  }

  .service-detail-pair .service-detail-image {
    aspect-ratio: 16 / 10;
    order: 0;
  }

  .service-detail-pair .service-detail-content {
    order: 1;
  }

  .service-detail-pair .service-detail-content h2,
  .service-detail-pair .service-detail-content h3 {
    font-size: 1.5rem;
  }

  .service-detail-pair .service-detail-content p {
    font-size: 0.97rem;
  }
}

/* ============================================================
   TRUST SECTION
   ============================================================ */
/* DESIGN: Overlap modifier — section pulls up over the one above, creating a
   visual bridge instead of a stacked drumbeat. Rounded top edges + soft shadow
   reinforce the "floating card" feel. Mobile drops the overlap. */
.section-overlap {
  position: relative;
  z-index: 2;
}

@media (min-width: 760px) {
  .section-overlap {
    margin-top: clamp(-5rem, -7vw, -7rem);
    border-radius: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.18);
  }
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.trust-item {
  padding: 1.25rem;
  border: 1px solid var(--white-alpha-10);
  border-radius: var(--radius-md);
  background: var(--white-alpha-04);
}

.trust-number {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.trust-word {
  font-size: 1.7rem;
}

.trust-label {
  font-size: 0.9rem;
  color: var(--body-dark);
  font-weight: 600;
}

@media (min-width: 760px) {
  .trust-number {
    font-size: 3rem;
  }

  .trust-word {
    font-size: 1.85rem;
  }
}

/* ============================================================
   REPUTATION
   ============================================================ */
.reputation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--gap-inner);
  margin-top: var(--gap-heading-content);
}

.reputation-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reputation-card h3 {
  margin-bottom: 0.75rem;
}

.reputation-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-light);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-section {
  position: relative;
  overflow: hidden;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
  margin-top: var(--gap-heading-content);
  counter-reset: process;
}

.process-card {
  position: relative;
  min-height: 100%;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--teal));
  opacity: 0.86;
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(210, 50, 45, 0.16);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
}

.process-card h3 {
  margin-bottom: 0.6rem;
}

.process-card p {
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-inner);
  align-items: start;
}

@media (min-width: 768px) {
  .map-section {
    grid-template-columns: 1fr 1fr;
  }
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-info h3 {
  margin-bottom: 1rem;
}

.map-info {
  position: relative;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.map-info-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.map-info-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  color: var(--red);
  font-weight: 700;
}

.map-info a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-info a:hover {
  color: var(--red-hover);
}

.service-area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.service-area-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.62rem;
  color: var(--navy);
  background: var(--teal-soft);
  border: 1px solid var(--teal-ring);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.map-info .btn {
  color: var(--white);
  text-decoration: none;
}

.map-info .btn:hover {
  color: var(--white);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin-top: var(--gap-heading-content);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--body-light);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--red);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 48rem;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted-light);
}

.faq-answer a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: var(--red-hover);
}

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-inner);
  align-items: start;
  min-width: 0;
}

#quote-form-section {
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 5fr 4fr;
  }
}

.quote-card {
  width: 100%;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.quote-card h2 {
  margin-bottom: 0.5rem;
}

.quote-card .text-muted,
.quote-card .contact-lead {
  margin-bottom: 2rem;
  line-height: 1.55;
}

.contact-lead strong {
  font-weight: 700;
  color: var(--body-light);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label,
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: var(--surface-card);
  color: var(--body-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--input-placeholder);
  opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-focus);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* A11Y: Visible validation feedback for submitted forms */
.form-group input:user-invalid,
.form-group textarea:user-invalid,
.form-group select:user-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-focus);
}

.form-group .required {
  color: var(--red);
}

.text-link {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--red-hover);
}

.form-honeypot {
  display: none;
}

/* Photo instruction panel */
.upload-zone {
  position: relative;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.upload-zone--disabled {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  cursor: default;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--teal-soft), rgba(210, 50, 45, 0.035));
  border: 1px solid var(--teal-ring);
}

.upload-zone--disabled:hover,
.upload-zone--disabled.dragover {
  border-color: var(--teal-ring);
  background: linear-gradient(135deg, var(--teal-soft), rgba(210, 50, 45, 0.035));
}

.upload-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.upload-title {
  font-weight: 800;
  color: var(--body-light) !important;
}

.upload-zone p {
  font-size: 0.95rem;
  color: var(--muted-light);
  max-width: 100%;
}

.upload-zone .upload-hint {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--upload-hint);
  margin-top: 0.5rem;
}

.upload-zone .upload-hint a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.contact-info-card {
  min-width: 0;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding-block: var(--gap-section-tight);
  background:
    radial-gradient(circle at 22% 12%, rgba(210, 50, 45, 0.10), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(7, 133, 128, 0.18), transparent 32%),
    linear-gradient(135deg, var(--navy), var(--navy));
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-banner .btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* DESIGN: Mid-page CTA break — tighter than a full CTA banner. Used to break
   the monotony of stacked service detail blocks on services.html. */
.cta-banner--break {
  padding-block: clamp(2.5rem, 6vh, 4rem);
}

.cta-banner--break h2 {
  font-size: clamp(1.6rem, 2.2vw + 0.5rem, 2.25rem);
  text-wrap: balance;
}

.cta-banner--break p {
  max-width: 56ch;
  margin-bottom: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--body-dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--white-alpha-12);
}

.footer-grid {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--gap-inner);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--white-alpha-08);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 100%;
}

.footer-brand .brand-logo {
  width: 3.25rem;
  height: 3.25rem;
}

.footer-brand .brand-text {
  font-size: 1rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--footer-text);
}

.footer-col .footer-brand {
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
}

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

.footer-bottom {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--footer-muted);
}

.footer-bottom--simple {
  border-top: none;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-credit svg {
  width: 14px;
  height: 18px;
  opacity: 0.6;
  display: inline-block;
}

.footer-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* DESIGN: progressive enhancement — if JS doesn't run, the html.js class is
   never added and reveals stay visible. Prevents blank-page failure mode. */
html:not(.js) .reveal,
html:not(.js) .reveal-stagger > * {
  opacity: 1;
  transform: none;
  transition: none;
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FORM STATUS
   ============================================================ */
.form-status {
  display: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.form-status.success {
  display: block;
  background: var(--status-success-bg);
  color: var(--status-success-text);
  border: 1px solid var(--status-success-border);
}

.form-status.error {
  display: block;
  background: var(--status-error-bg);
  color: var(--status-error-text);
  border: 1px solid var(--status-error-border);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .nav-cta:hover,
  .service-card:hover,
  .service-card-link:hover,
  .work-shot:hover img,
  .service-card:hover .service-card-media img {
    transform: none;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.eyebrow-accent { color: var(--red); }

.text-muted { color: var(--muted-light); }
@supports (color: oklch(0 0 0)) {
  .text-muted { color: var(--muted-light); }
}

/* Hero height variants for interior pages */
.hero--contact .hero-inner { padding-block: var(--hero-page-y); }
.hero--404 { min-height: var(--hero-404-min); text-align: center; }
.hero--404 .hero-inner { justify-items: center; }
.hero--404 .hero-sub { text-align: center; }

.btn--full { width: 100%; }
.btn--mt { margin-top: 1rem; }
.section-tight { padding-top: 0; padding-bottom: 2rem; }
.section-heading { margin-bottom: 0.5rem; }
.section-spaced { margin-top: 2.5rem; }

@media (max-width: 640px) {
  #quote-form-section .container {
    width: calc(100% - 2rem);
  }

  .quote-card,
  .contact-info-card,
  .contact-sidebar,
  .contact-layout {
    max-width: 100%;
  }

  .quote-card,
  .contact-info-card {
    padding: 1.25rem;
  }

  .quote-card h2 {
    font-size: 1.65rem;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .nav-toggle,
  .mobile-overlay,
  .hero-bg,
  .map-embed iframe,
  .upload-zone,
  .btn,
  .cta-banner {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .hero {
    min-height: auto;
    background: none;
    padding: 2rem 0;
  }

  .hero h1, .hero h1 .accent {
    color: #000;
  }

  .hero-sub, .lede {
    color: #333;
  }

  .container {
    width: 100%;
  }

  section {
    padding-block: 1.5rem;
    background: none !important;
    color: #000 !important;
  }

  h2, h3 {
    color: #000 !important;
  }

  .footer-grid {
    display: block;
  }

  .print-contact {
    display: block !important;
    padding: 1rem;
    border: 2px solid #000;
    margin-top: 1rem;
    font-size: 14pt;
  }
}

.print-contact {
  display: none;
}

/* ============================================================
   HOME HERO — single source of truth (consolidated 2026-05-15)
   Container-aligned with #services below. Lighter overlay so the
   storefront sign is visible. Step-based H1 sizing.
   ============================================================ */

.hero--home {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: var(--hero-home-min);
  padding-block: 0;
  padding-top: clamp(4.25rem, 8vw, 5rem);
  background: var(--navy);
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
}

.hero--home::before { display: none; }

.hero--home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  max-width: 100%;
  pointer-events: none;
}

.hero--home .hero-bg-img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 42%;
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

.hero--home::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--hero-overlay-home);
}

.hero--home .hero-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
  padding-block: var(--hero-home-y);
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.35rem);
  align-content: center;
  min-width: 0;
}

.hero--home h1 {
  margin: 0;
  font-size: clamp(2.5rem, 3.6vw + 1rem, 5rem);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-transform: none;
  text-wrap: balance;
  color: var(--white);
  max-width: 22ch;
  text-shadow: 0 2px 18px rgba(15, 25, 35, 0.55);
}

.hero--home h1 .accent {
  display: block;
  color: var(--red);
  margin-top: 0.1em;
}

.hero--home .hero-sub {
  margin: 0;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.6;
  font-weight: 600;
  color: var(--body-dark);
  max-width: 56ch;
  text-shadow: 0 1px 12px rgba(15, 25, 35, 0.45);
}

.hero--home .hero-ctas {
  margin-top: 0.15rem;
}

/* Marker strip directly under the hero CTAs — replaces the standalone
   #trust section. Reads at first sight so the hero earns the trust
   signal instead of stacking another dark band below. */
.hero-markers {
  list-style: none;
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(15, 25, 35, 0.5);
}

.hero-markers li {
  position: relative;
  padding-right: 1.1rem;
}

.hero-markers li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.85em;
  background: var(--white-alpha-25);
}

/* Mobile: bottom-weighted scrim for headline + CTAs. */
@media (max-width: 640px) {
  :root {
    --hero-home-min: clamp(26rem, 72svh, 36rem);
    --hero-home-y: clamp(2.5rem, 8vw, 3.75rem);
  }

  .hero--home {
    align-items: flex-end;
    padding-top: clamp(4rem, 10vw, 4.75rem);
  }

  .hero--home::after {
    background: var(--hero-overlay-mobile);
  }

  .hero--home .hero-bg-img {
    object-position: 52% 32%;
    opacity: 0.88;
  }

  .hero--home .hero-inner {
    padding-block: clamp(2.25rem, 7vw, 3.25rem) clamp(2rem, 6vw, 2.75rem);
  }

  .hero--home h1 {
    font-size: clamp(2.3rem, 8.5vw, 3.1rem);
    line-height: 1;
    max-width: 100%;
  }

  .hero--home h1 .accent {
    margin-top: 0.12em;
  }

  .hero--home .hero-sub {
    max-width: 42ch;
    font-size: 1rem;
  }

  .hero--home .hero-ctas {
    width: 100%;
  }

  .hero--home .hero-ctas .btn {
    width: 100%;
    min-height: 3rem;
  }

  .hero-markers {
    gap: 0.5rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .hero-markers li {
    padding-right: 0.9rem;
  }
}

/* Extra-small phones: tighter header + smaller H1 so the hero still
   breathes on <=390px viewports. */
@media (max-width: 390px) {
  .nav-inner {
    padding-block: 0.75rem;
    min-height: 3.75rem;
  }

  .hero--home h1 {
    font-size: clamp(1.85rem, 8.2vw, 2.55rem);
  }
}

/* Wide screens: H1 grows for monitors. */
@media (min-width: 1280px) {
  .hero--home h1 {
    font-size: clamp(3.6rem, 4.4vw, 5.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--home .hero-bg-img {
    opacity: 0.85;
  }
}

/* Right-side cluster: holds nav-links (drawer at mobile), persistent CTA, hamburger.
   Keeps brand left, controls right at every viewport size. */
.nav-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 0;
}
@media (max-width: 768px) {
  .nav-cluster {
    gap: 0.4rem;
  }
}

/* Persistent phone CTA in header — visible at ALL viewport widths.
   Lifted OUT of the .nav-links drawer so mobile users never lose tap-to-call. */
.site-header .nav-cta-persistent {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 8px 18px var(--red-shadow);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-back), box-shadow 0.2s var(--ease-out);
}
.site-header .nav-cta-persistent:hover,
.site-header .nav-cta-persistent:focus-visible {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px var(--red-shadow);
}
.site-header .nav-cta-persistent svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}
@media (max-width: 420px) {
  .site-header .nav-cta-persistent {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    gap: 0.3rem;
  }
}

/* Hero background layer — consumes the --hero-image / --hero-position
   custom properties defined on .hero--services and .hero--contact.
   Renders the <div class="hero-bg"> elements present in services.html,
   contact.html, and 404.html. Home doesn't use this rule — home renders
   its own full-bleed <img class="hero-bg-img"> (see further below). */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-image, url("images/shop/bumperdoc-santee-work-bay-01.jpg"));
  background-position: var(--hero-position, center);
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay-main);
}
.hero-inner {
  z-index: 1;
}

/* Footer disclaimer — independent-business line below the contact info */
.footer-disclaimer {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--white-alpha-08);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--footer-muted);
  max-width: 60ch;
}

