/* ==========================================================================
   Gaston Crawl Space Solutions — global stylesheet
   Design preset A: Industrial Navy & Amber
   Navy #0F172A · Amber #D97706 · crisp 4px radii · split hero · horizontal
   comparison table.
   --------------------------------------------------------------------------
   Contents
   01. Tokens
   02. Reset & base
   03. Helpers (container, section, headings, icons)
   04. Buttons & text links
   05. Header & navigation
   06. Hero + lead form shell
   07. Trust strip
   08. Cards: local factors & services
   09. Comparison table & cost table
   10. Case studies
   11. Process steps
   12. FAQ accordion
   13. CTA band
   14. Footer
   15. Sticky mobile call bar
   16. Forms
   17. Responsive
   18. Motion & print
   19. Inner pages: breadcrumbs, related cards, callouts
   ========================================================================== */

/* 01. Tokens --------------------------------------------------------------- */
:root {
  --navy-950: #0b1222;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;

  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --white: #ffffff;
  --green-700: #15803d;
  --green-50: #f0fdf4;
  --green-200: #bbf7d0;
  --red-700: #b91c1c;
  --red-50: #fef2f2;
  --red-200: #fecaca;

  --radius: 4px;
  --container: 1180px;
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
  --shadow-lg: 0 30px 60px -30px rgba(15, 23, 42, 0.55);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* 02. Reset & base --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Chromium treats `overflow-x: hidden` on both html and body as a scroll
   container, which detaches the sticky header. `clip` clips the same way
   without that side effect; hidden stays as the fallback. */
@supports (overflow-x: clip) {
  body {
    overflow-x: clip;
  }
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Long labels, placeholders and addresses should wrap rather than widen the
   page on narrow phones. */
h1,
h2,
h3,
h4,
p,
li,
a,
td,
th {
  overflow-wrap: break-word;
}

a[href^="mailto:"],
a[href^="tel:"],
[data-email] {
  overflow-wrap: anywhere;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--amber-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber-600);
  outline-offset: 2px;
}

::selection {
  background: var(--amber-100);
  color: var(--navy-900);
}

/* 03. Helpers -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.section {
  /* Adjacent sections stack their top and bottom padding, so keep this
     deliberately compact: 40 + 40 reads as one continuous page rather than
     two islands with a white band between them. */
  padding-block: 40px;
}

.section--alt {
  background: var(--slate-50);
  border-block: 1px solid var(--slate-200);
}

section[id],
#quote {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* `html` already reserves scroll-padding for the sticky header. Without this,
   the two offsets stack and anchor jumps to the quote card land too low. */
#quote {
  scroll-margin-top: 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 2.5vw, 2rem);
}

.section-head--wide {
  max-width: 54rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  margin-bottom: 0.85rem;
}

.section-head > p:not(.eyebrow) {
  color: var(--slate-600);
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-800);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber-600);
  flex: none;
}

.eyebrow--on-dark {
  color: var(--amber-500);
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--amber-600);
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
}

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

/* 04. Buttons & text links ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.btn .icon {
  width: 1.05em;
  height: 1.05em;
}

.btn--primary {
  background: var(--amber-600);
  border-color: var(--amber-700);
  color: var(--navy-900);
}

.btn--primary:hover {
  background: var(--amber-700);
  border-color: var(--amber-700);
  color: var(--white);
}

.btn--dark {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
}

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

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

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--amber-800);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-600);
  padding-bottom: 1px;
}

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

.text-link .icon {
  width: 0.95em;
  height: 0.95em;
}

/* 05. Header & navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.site-header.is-scrolled {
  box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--amber-600);
  color: var(--navy-900);
}

.brand-mark .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.brand-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.brand-loc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
}

/* Top-level navigation list only. Using a descendant selector here would
   also catch .nav-menu and outrank its own rules (same for gap/align-items),
   which collapsed the dropdown into a squeezed row. */
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 0.45rem 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--amber-600);
}

.main-nav > ul > li > a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--amber-600);
}

.nav-item {
  position: relative;
}

.nav-parent {
  display: inline-flex !important;
  align-items: center;
  gap: 0.32rem;
}

.nav-parent .icon {
  width: 0.8em;
  height: 0.8em;
  stroke-width: 2.2;
  opacity: 0.7;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -0.9rem;
  z-index: 20;
  min-width: 280px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--amber-600);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease),
    visibility 0.15s;
}

.nav-item:hover > .nav-menu,
.nav-item:focus-within > .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-bottom: 0;
  border-radius: var(--radius);
  color: var(--navy-800);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: var(--amber-50);
  color: var(--amber-800);
  border-bottom-color: transparent;
}

/* The current page stays visible inside the white dropdown. Without this it
   inherits the top-level white current-page color and disappears. */
.nav-menu a[aria-current="page"] {
  background: var(--amber-50);
  color: var(--amber-800);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone .icon {
  width: 1rem;
  height: 1rem;
  color: var(--amber-600);
}

.header-phone:hover {
  color: var(--amber-500);
}

.header-cta {
  padding: 0.62rem 1rem;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--amber-600);
  color: var(--amber-500);
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.nav-toggle .icon-close {
  display: none;
}

.site-header.is-open .nav-toggle .icon-close {
  display: block;
}

.site-header.is-open .nav-toggle .icon-menu {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy-950);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.mobile-nav-inner {
  padding-block: 0.5rem 1.25rem;
}

.mobile-nav-group + .mobile-nav-group {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-label {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-500);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav a:hover {
  color: var(--amber-500);
}

.mobile-nav .mobile-call {
  margin-top: 1rem;
  color: var(--navy-900);
}

.mobile-nav .mobile-call:hover {
  color: var(--navy-900);
}

/* 06. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow-x: hidden;
  /* Laptop-first: keep the hero + quote card inside a 768px-tall viewport. */
  padding-block: clamp(2.25rem, 3vw, 2.75rem);
  background: radial-gradient(
      900px 420px at 84% -12%,
      rgba(217, 119, 6, 0.2),
      transparent 62%
    ),
    linear-gradient(180deg, #0f172a 0%, #111c33 58%, #0f172a 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      rgba(148, 163, 184, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* Grid items default to `min-width: auto`, which lets long words or fixed
   controls widen the track. Keep every hero child inside its column. */
.hero-inner > *,
.hero-copy,
.hero-form,
.hero .form-card {
  min-width: 0;
  max-width: 100%;
}

.hero .eyebrow {
  margin-bottom: 0.65rem;
}

.hero .crumbs {
  margin-bottom: 0.8rem;
}

.hero h1 {
  max-width: 22ch;
  margin-bottom: 0.85rem;
  color: var(--white);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero .lead {
  max-width: 36rem;
  color: var(--slate-300);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.55;
}

.hero-proof {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.15rem;
  list-style: none;
}

.hero-proof li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero-proof .icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.22rem;
  color: var(--amber-600);
  stroke-width: 2.4;
}

.hero-call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.5rem;
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.hero-phone:hover {
  color: var(--amber-500);
}

.hero-phone .icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--amber-600);
  stroke-width: 2.2;
}

.hero-call-meta {
  display: grid;
  gap: 0.1rem;
  font-size: 0.84rem;
  color: var(--slate-400);
}

.hero-call-meta strong {
  color: var(--white);
  font-size: 0.9rem;
}

.hero-note {
  max-width: 34rem;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--slate-400);
}

/* Mobile-only shortcut: the quote card stacks below the copy, so give small
   screens a one-tap jump instead of a long scroll. Hidden on desktop. */
.hero-jump {
  display: none;
  margin: 0 0 1rem;
}

.hero-jump.btn {
  padding: 0.62rem 1.05rem;
  font-size: 0.88rem;
}

/* Hero photography: full-bleed background behind the copy and the form. */
.hero--photo::before {
  display: none; /* the technical grid would muddy the photo */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  pointer-events: none;
}

/* Navy scrim: darkest behind the copy, lighter behind the white form card,
   with the preset's amber glow kept in the top-right corner. */
.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      900px 420px at 84% -12%,
      rgba(217, 119, 6, 0.2),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(9, 14, 26, 0.15) 0%,
      rgba(9, 14, 26, 0.62) 100%
    ),
    linear-gradient(
      95deg,
      rgba(9, 14, 26, 0.86) 0%,
      rgba(9, 14, 26, 0.62) 40%,
      rgba(9, 14, 26, 0.42) 100%
    );
}

/* 07. Trust strip ---------------------------------------------------------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.35rem 1.5rem;
  border-left: 1px solid var(--slate-200);
}

.trust-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust-item:last-child {
  padding-right: 0;
}

.trust-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  background: var(--amber-50);
  color: var(--amber-800);
}

.trust-icon .icon {
  width: 20px;
  height: 20px;
}

.trust-item strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.96rem;
  line-height: 1.35;
}

.trust-item span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--slate-600);
}

/* 08. Cards: local factors & services -------------------------------------- */
.factor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.factor {
  padding: 1.35rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--amber-600);
  border-radius: var(--radius);
  min-width: 0;
}

/* Numbered card header, shared by local-factor and process-step cards. */
.factor-num,
.step-num {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.16em;
  color: var(--amber-800);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  min-width: 0;
}

.card-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  background: var(--amber-50);
  color: var(--amber-800);
}

.card-icon .icon {
  width: 36px;
  height: 36px;
  max-width: 100%;
  stroke-width: 1.75;
}

.card-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.factor .card-heading h3,
.step .card-heading h3 {
  margin-bottom: 0;
  overflow-wrap: break-word;
}

.factor h3 {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
  line-height: 1.3;
}

.factor p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--slate-600);
}

/* Photo-header variant of the factor card: a 16:9 image sits flush to the card
   edges and the numbered heading keeps the shared .card-head markup. Grid
   rows already stretch, so every card in a row is the same height. */
.factor--media {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.factor-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}

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

.factor-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.2rem 1.3rem 1.35rem;
  min-width: 0;
}

.factor--media .card-head {
  margin-bottom: 0.6rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.service-card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}

.service-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

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

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem 1.05rem 1.15rem;
}

.service-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  background: var(--amber-50);
  color: var(--amber-800);
}

.service-icon .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.service-card h3 {
  font-size: 0.98rem;
  line-height: 1.3;
}

.service-card p {
  flex: 1;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--slate-600);
}

.service-card .text-link {
  font-size: 0.82rem;
}

/* 09. Comparison & cost tables --------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus-visible {
  outline-offset: 3px;
}

.cmp {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cmp caption {
  caption-side: bottom;
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  color: var(--slate-500);
}

.cmp th,
.cmp td {
  padding: 0.8rem 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--slate-200);
}

.cmp thead th {
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-bottom: 0;
  vertical-align: bottom;
}

.cmp thead th small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate-300);
}

.cmp thead th.is-featured {
  background: var(--amber-700);
  color: var(--white);
}

.cmp thead th.is-featured small {
  color: #fde68a;
}

.cmp tbody th {
  width: 190px;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--slate-50);
}

.cmp tbody td {
  color: var(--slate-600);
}

.cmp tbody td.is-featured {
  background: var(--amber-50);
  color: var(--navy-800);
}

.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td {
  border-bottom: 0;
}

.cmp .spec-good {
  color: var(--green-700);
  font-weight: 700;
}

.cmp .price {
  font-weight: 800;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--slate-500);
}

.scroll-hint {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.cost-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.55;
  background: var(--white);
}

.cost-table caption {
  caption-side: bottom;
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  color: var(--slate-500);
}

.cost-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cost-table th[scope="row"],
.cost-table td {
  padding: 0.85rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
}

.cost-table th[scope="row"] {
  width: 34%;
  font-weight: 700;
  color: var(--navy-900);
}

.cost-table th[scope="row"] span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--slate-500);
}

.cost-table td.cost {
  width: 18%;
  font-weight: 800;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cost-table td.drivers {
  font-size: 0.86rem;
  color: var(--slate-600);
}

.cost-table tbody tr:last-child th,
.cost-table tbody tr:last-child td {
  border-bottom: 0;
}

.split-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.panel {
  padding: 1.3rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

.panel--dark {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--slate-300);
}

.panel h3 {
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.panel--dark h3 {
  color: var(--amber-500);
}

.check-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--slate-600);
}

.panel--dark .check-list li {
  color: #cbd5e1;
}

.check-list .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.24rem;
  color: var(--green-700);
  stroke-width: 2.4;
}

.check-list--muted .icon {
  color: var(--slate-400);
}

.check-list strong {
  color: var(--navy-900);
}

.panel--dark .check-list strong {
  color: var(--white);
}

/* 10. Case studies --------------------------------------------------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Photo header for a case card: a 16:9 image sits flush to the card edges,
   directly above the navy case-top block. The fixed ratio plus object-fit
   keeps both cards in a row the same height whatever the crop. */
.case-media {
  flex: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-100);
}

.case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-top {
  padding: 1.15rem 1.3rem 1rem;
  background: var(--navy-900);
  color: var(--white);
}

.case-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-500);
}

.case-top h3 {
  margin-top: 0.35rem;
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.3;
}

.case-body {
  flex: 1;
  padding: 1.15rem 1.3rem 1.2rem;
}

.case-body > p:not(.case-label) {
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--slate-600);
}

.case-label {
  margin: 0.9rem 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.case-body .case-label:first-of-type {
  margin-top: 0;
}

.spec-list {
  display: grid;
  gap: 0.3rem;
  list-style: none;
}

.spec-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--slate-600);
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  background: var(--amber-600);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
}

.case-stat {
  padding: 0.7rem 0.55rem 0.75rem;
  text-align: center;
  border-left: 1px solid var(--slate-200);
}

.case-stat:first-child {
  border-left: 0;
}

.case-stat b {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.35;
}

.case-stat span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.case-footer {
  margin-top: 1.5rem;
}

/* 11. Process steps -------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
}

.step {
  padding: 1.25rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  min-width: 0;
}

.step h3 {
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

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

/* Photo-header variant of the process card: a 16:9 image sits flush to the
   card edges and the padded body keeps the shared .card-head markup. Grid
   rows already stretch, so every card in a row is the same height. */
.step--media {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.step-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}

.step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.2rem 1.2rem 1.25rem;
  min-width: 0;
}

.step--media .card-head {
  margin-bottom: 0.6rem;
}

/* 12. FAQ ------------------------------------------------------------------ */
.faq {
  max-width: 54rem;
  border-top: 1px solid var(--slate-200);
}

.faq details {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.15rem 1.1rem 0;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::marker {
  content: "";
}

.faq-q {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy-900);
}

.faq summary:hover .faq-q {
  color: var(--amber-800);
}

.faq .faq-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  color: var(--amber-700);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.faq .faq-icon .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.faq details[open] .faq-icon {
  background: var(--amber-600);
  border-color: var(--amber-600);
  color: var(--navy-900);
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 47rem;
  padding: 0 2.5rem 1.25rem 0;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--slate-600);
}

.faq-answer p + p {
  margin-top: 0.65rem;
}

.faq-answer strong {
  color: var(--navy-900);
}

/* 13. CTA band ------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
  background: linear-gradient(120deg, #0f172a 0%, #16233d 62%, #0f172a 100%);
  color: var(--white);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    620px 320px at 88% 20%,
    rgba(217, 119, 6, 0.22),
    transparent 70%
  );
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.cta-copy {
  max-width: 40rem;
}

.cta-band h2 {
  margin-bottom: 0.6rem;
  color: var(--white);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.cta-band p {
  color: var(--slate-300);
  font-size: 0.98rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cta-actions .btn {
  white-space: nowrap;
}

/* 14. Footer --------------------------------------------------------------- */
.site-footer {
  padding-top: 3.25rem;
  background: var(--navy-950);
  color: var(--slate-400);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  color: var(--white);
  text-decoration: none;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.footer-brand .brand-name {
  font-size: 0.98rem;
}

.footer-about {
  max-width: 22rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-nap {
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  list-style: none;
}

.footer-nap li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-nap .icon {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.3rem;
  color: var(--amber-600);
}

.footer-nap a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.footer-nap a:hover {
  color: var(--amber-500);
}

.footer-h {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.footer-list a {
  color: var(--slate-400);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-area {
  font-size: 0.86rem;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: var(--slate-400);
}

.footer-bottom p {
  margin: 0;
}

/* 15. Sticky mobile call bar ----------------------------------------------- */
.call-bar {
  display: none;
}

/* 16. Forms ---------------------------------------------------------------- */
.form-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--amber-600), var(--amber-500));
}

.form-card-head {
  padding: clamp(1.25rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 1.5rem) 0;
}

.form-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-800);
}

.form-card-head h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.25;
}

.form-card-head p:not(.form-kicker) {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--slate-600);
}

.form-card-body {
  padding: 1.25rem clamp(1.25rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 1.4rem);
}

.field {
  margin-bottom: 0.6rem;
}

.field label {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--navy-800);
}

.field .req {
  color: var(--amber-700);
}

.field .hint {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--slate-500);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.field-row .field {
  margin-bottom: 0.6rem;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.select {
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--slate-400);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--slate-400);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--amber-600);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.textarea {
  /* The rows="2" attribute alone renders ~64px once input padding is added,
     which reads as three or four lines. Fix the box at two text rows so the
     quote card stays compact on a laptop screen. */
  height: 3.7rem;
  padding-block: 0.4rem;
  resize: vertical;
}

.field [aria-invalid="true"],
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--red-700);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.error {
  display: none;
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--red-700);
}

.error.is-visible {
  display: block;
}

.form-card-body .btn {
  padding-block: 0.72rem;
}

.form-fineprint {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--slate-500);
  text-align: center;
}

.form-status {
  display: none;
  margin-top: 0.9rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.form-status.is-visible {
  display: block;
}

.form-status.is-pending {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--navy-800);
}

.form-status.is-error {
  background: var(--red-50);
  border-color: var(--red-200);
  color: #991b1b;
}

.form-status.is-success {
  background: var(--green-50);
  border-color: var(--green-200);
  color: #166534;
}

.form-status a {
  color: inherit;
  font-weight: 800;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 17. Responsive ----------------------------------------------------------- */
/* Phones and small tablets: 32px of section padding keeps the compact rhythm
   of the desktop 40px without crowding the content above the call bar. */
@media (max-width: 768px) {
  .section {
    padding-block: 32px;
  }
}

@media (max-width: 1080px) {
  .main-nav > ul {
    gap: 1rem;
  }

  .main-nav > ul > li > a {
    font-size: 0.88rem;
  }

  .header-actions {
    gap: 0.7rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .factor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop hero rhythm (900px and up). A 1366x768 laptop leaves the hero only
   about 680 CSS pixels after browser chrome, and both columns have to finish
   inside it: the four-item proof list and the phone/hours block on the left,
   the five-field quote card on the right. Trim the vertical gaps a little
   instead of cutting any copy. Everything here is scoped to >=900px, so the
   375px phone layout and the stacked tablet layout keep their own spacing.
   This also replaces the earlier >=1001px padding override, which was tighter
   than the base clamp but looser than the values below. */
@media (min-width: 900px) {
  .hero {
    padding-block: clamp(1.4rem, 1.85vw, 2rem);
  }

  .hero .crumbs {
    margin-bottom: 0.7rem;
  }

  .hero .eyebrow {
    margin-bottom: 0.55rem;
  }

  .hero h1 {
    margin-bottom: 0.55rem;
  }

  .hero .lead {
    line-height: 1.48;
  }

  .hero-proof {
    gap: 0.28rem;
    margin-top: 0.9rem;
  }

  .hero-call {
    margin-top: 0.95rem;
    padding-top: 0.8rem;
  }

  .hero-note {
    margin-top: 0.5rem;
  }

  /* Quote card: same fields, same tap targets, less air between the rows. */
  .hero .form-card-head {
    padding-top: clamp(1rem, 1.5vw, 1.25rem);
  }

  .hero .form-card-body {
    padding-block: clamp(0.95rem, 1.35vw, 1.1rem);
  }

  .hero .field {
    margin-bottom: 0.45rem;
  }

  /* 3.45rem still holds two full text rows (2 x 21.3px line boxes plus
     padding and border), just with less slack than the 3.7rem base. */
  .hero .textarea {
    height: 3.45rem;
    padding-block: 0.3rem;
  }

  .hero .form-fineprint {
    margin-top: 0.45rem;
  }
}

/* Short laptop viewports (about 820px of CSS height or less) take the last few
   pixels off the top and bottom of the hero and tighten the copy rhythm so the
   longest service H1 still ends above the fold; taller desktops keep the
   roomier spacing above. */
@media (min-width: 900px) and (max-height: 820px) {
  .hero {
    padding-block: 1.15rem 1.05rem;
  }

  .hero h1 {
    margin-bottom: 0.55rem;
    line-height: 1.03;
  }

  .hero .lead {
    line-height: 1.5;
  }

  .hero-proof {
    gap: 0.25rem;
    margin-top: 0.9rem;
  }

  .hero-proof li {
    line-height: 1.4;
  }

  .hero-call {
    margin-top: 0.95rem;
    padding-top: 0.8rem;
  }

  .hero-note {
    margin-top: 0.55rem;
    line-height: 1.5;
  }
}

/* Very short desktop viewports: a 1366x768 screen with normal browser chrome
   leaves roughly 620px for the page, so even the short-laptop rhythm above is
   not enough for the copy column. Scale the headline, lead and proof list down
   a notch and pull in every vertical gap so the phone/hours block — and the
   note beneath it — finish above the fold instead of being cut by the bottom
   edge. No copy is removed, and the quote card, header and sub-900px layouts
   keep their existing rules. */
@media (min-width: 900px) and (max-height: 720px) {
  .hero {
    padding-block: 0.7rem 0.6rem;
  }

  .hero .crumbs {
    margin-bottom: 0.45rem;
  }

  .hero .eyebrow {
    margin-bottom: 0.4rem;
    line-height: 1.45;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 2.85vw, 2.4rem);
    line-height: 1.03;
    margin-bottom: 0.4rem;
  }

  .hero .lead {
    font-size: clamp(0.98rem, 1.26vw, 1.04rem);
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .hero-proof {
    gap: 0.15rem;
    margin-top: 0.7rem;
  }

  .hero-proof li {
    font-size: 0.9rem;
    line-height: 1.34;
  }

  .hero-proof .icon {
    margin-top: 0.16rem;
  }

  .hero-call {
    margin-top: 0.55rem;
    padding-top: 0.5rem;
  }

  .hero-phone {
    font-size: clamp(1.25rem, 2vw, 1.45rem);
  }

  .hero-call-meta {
    gap: 0.05rem;
    line-height: 1.38;
  }

  .hero-note {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

@media (max-width: 1000px) {
  :root {
    --header-h: 66px;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-open .mobile-nav {
    display: block;
  }

  .header-phone .header-phone-text {
    display: none;
  }

  .header-phone {
    display: inline-flex;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
  }

  .header-phone .icon {
    width: 18px;
    height: 18px;
    color: var(--amber-500);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  /* The hero grows tall once the form stacks. Keep the photo as a band behind
     the copy and fade it into the navy instead of over-zooming it. */
  .hero-bg {
    bottom: auto;
    height: clamp(300px, 68vw, 460px);
    object-position: center 62%;
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 52%,
      transparent 100%
    );
    mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
  }

  /* Narrower viewports put full-width text over the photo, so even out the
     scrim instead of relying on the left-heavy desktop gradient. */
  .hero--photo::after {
    background:
      radial-gradient(
        600px 300px at 84% -12%,
        rgba(217, 119, 6, 0.18),
        transparent 62%
      ),
      linear-gradient(
        180deg,
        rgba(9, 14, 26, 0.72) 0%,
        rgba(9, 14, 26, 0.86) 45%,
        rgba(9, 14, 26, 0.94) 100%
      );
  }

  .hero h1 {
    max-width: 26ch;
  }

  .hero-form {
    max-width: 34rem;
    width: 100%;
  }

  .factor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding: 1.05rem 0;
    border-left: 0;
    border-top: 1px solid var(--slate-200);
  }

  .trust-item:first-child {
    border-top: 0;
  }

  .trust-item:last-child {
    padding-right: 0;
  }

  .split-lists {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .scroll-hint {
    display: flex;
  }
}

@media (max-width: 720px) {
  .header-cta {
    display: none;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-loc {
    font-size: 0.62rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .factor-grid {
    grid-template-columns: 1fr;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-body > p:not(.case-label) {
    font-size: 0.9rem;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1 1 auto;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cmp tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 1px 0 0 var(--slate-200);
  }

  .cmp thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.15);
  }

  .call-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .call-bar .btn {
    padding: 0.72rem 0.6rem;
    font-size: 0.9rem;
  }

  body {
    padding-bottom: 80px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero-note {
    font-size: 0.78rem;
  }
}

/* The hero stacks below 1000px; at phone widths it gets a compact rhythm and
   a quick jump to the quote card instead of a long scroll. */
@media (max-width: 767.98px) {
  .container {
    padding-inline: 18px;
  }

  .hero {
    padding-block: 24px;
  }

  /* Belt-and-braces for 375px phones: every hero text block and control is
     capped to the viewport, even if a future string has no spaces. */
  .hero h1,
  .hero h2,
  .hero h3,
  .hero p,
  .hero li,
  .hero a,
  .hero .lead,
  .hero .eyebrow,
  .hero .hero-note {
    min-width: 0;
    max-width: 100%;
  }

  .hero-call > *,
  .hero-proof > * {
    min-width: 0;
    max-width: 100%;
  }

  .hero h1 {
    line-height: 1.08;
    margin-bottom: 0.75rem;
  }

  .hero .eyebrow {
    margin-bottom: 0.55rem;
  }

  .hero .crumbs {
    margin-bottom: 0.65rem;
  }

  .hero .lead {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero-proof {
    gap: 0.4rem;
    margin-top: 0.95rem;
  }

  .hero-proof li {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hero-call {
    margin-top: 1.15rem;
    padding-top: 1rem;
  }

  .hero-note {
    margin-top: 0.75rem;
  }

  .hero-jump {
    display: none;
    margin: 0 0 0.9rem;
  }

  .form-card-head {
    padding-top: 20px;
  }

  .form-card-head,
  .form-card-body {
    padding-inline: 20px;
  }

  .form-card-body {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 0.55rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 0.87rem;
  }

  .brand-loc {
    letter-spacing: 0.1em;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .case-stats {
    grid-template-columns: 1fr;
  }

  .case-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-left: 0;
    border-top: 1px solid var(--slate-200);
    text-align: left;
  }

  .case-stat:first-child {
    border-top: 0;
  }

  .case-stat span {
    margin-top: 0;
  }

  .faq-answer {
    padding-right: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* 18. Motion & print ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .call-bar,
  .hero-form,
  .cta-band,
  .site-footer,
  .nav-toggle {
    display: none !important;
  }

  body {
    padding-bottom: 0;
    color: #000;
  }

  .hero {
    background: none !important;
    color: #000;
  }

  .hero h1,
  .hero .lead,
  .hero-proof li {
    color: #000;
  }

  .section--alt {
    background: none;
  }

  .table-wrap {
    overflow: visible;
  }
}

/* 19. Inner pages: breadcrumbs, related cards, callouts -------------------- */
/* Used by the service, city, projects and contact pages. Same tokens, same
   4px radii, same navy/amber palette as the homepage. */
.crumbs {
  margin: 0 0 1.2rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate-400);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.crumbs li + li::before {
  content: "/";
  font-weight: 400;
  color: rgba(148, 163, 184, 0.6);
}

.crumbs a {
  color: var(--slate-300);
  text-decoration: none;
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--amber-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.case-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.related-grid .factor {
  display: flex;
  flex-direction: column;
}

.related-grid .factor p {
  flex: 1;
}

.related-grid .text-link {
  margin-top: 0.9rem;
  font-size: 0.82rem;
}

.callout {
  margin-top: 1.6rem;
  padding: 1.2rem 1.35rem;
  background: var(--amber-50);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--amber-600);
  border-radius: var(--radius);
}

.callout h3 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.callout p {
  font-size: 0.91rem;
  line-height: 1.62;
  color: var(--slate-600);
}

.callout p + p {
  margin-top: 0.6rem;
}

@media (max-width: 1000px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .case-grid--two {
    grid-template-columns: 1fr;
  }

  .crumbs {
    margin-bottom: 1rem;
  }
}

@media (max-width: 520px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* 20. Project log (projects.html) ------------------------------------------ */
/* Five detailed case studies: the scope runs down the left, a real job photo
   or a labelled diagram plus the three headline numbers sit on the right.
   Same palette, tokens and 4px radii as every other card on the site. */
.log-list {
  display: grid;
  gap: 1.5rem;
}

.entry-top {
  padding: 1.25rem 1.35rem 1.15rem;
  background: var(--navy-900);
  color: var(--white);
}

.entry-top h3 {
  margin-top: 0.35rem;
  color: var(--white);
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  line-height: 1.25;
}

.entry-meta {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--slate-300);
}

.entry-meta b {
  font-weight: 800;
  color: var(--amber-500);
}

.entry-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
  padding: 1.3rem 1.35rem 1.4rem;
}

.entry-main {
  min-width: 0;
}

/* Match the body copy of a .case card without nesting the whole scope in a
   second .case-body wrapper. */
.entry-main > p:not(.case-label) {
  font-size: 0.89rem;
  line-height: 1.62;
  color: var(--slate-600);
}

.entry-main .case-label:first-of-type {
  margin-top: 0;
}

.entry-side {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

.entry-figure {
  margin: 0;
}

.entry-figure img,
.entry-figure .diagram {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--slate-50);
}

.entry-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.73rem;
  line-height: 1.5;
  color: var(--slate-500);
}

.entry-figure figcaption strong {
  color: var(--navy-900);
}

.entry-side .case-stats {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

.entry-side .case-stat b {
  font-size: 0.9rem;
}

.entry-note {
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--slate-600);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--amber-600);
  border-radius: var(--radius);
}

.entry-note strong {
  color: var(--navy-900);
}

/* Call to action under the "at a glance" list in the projects hero. */
.glance-cta {
  margin-top: 1.1rem;
}

/* Timing table follows the four-step grid on contact.html. */
.table-wrap--spaced {
  margin-top: 1.6rem;
}

/* Diagrams are SVG schematics, not photos: keep lettering in the site font
   and scaled off the viewBox so nothing spills on a 375px screen. */
.diagram text {
  font-family: var(--font);
}

@media (max-width: 900px) {
  .entry-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 520px) {
  .entry-top,
  .entry-body {
    padding-inline: 1.05rem;
  }
}

/* 20. Before / After comparison slider ------------------------------------- */
.ba-slider {
  margin-bottom: 1.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.ba-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
  z-index: 1;
}

.ba-badge {
  position: absolute;
  top: 0.85rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  backdrop-filter: blur(6px);
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}

.ba-badge--before {
  left: 0.85rem;
  background: rgba(15, 23, 42, 0.88);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ba-badge--after {
  right: 0.85rem;
  background: rgba(217, 119, 6, 0.94);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 2px;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(15, 23, 42, 0.55);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--navy-900);
  border: 2px solid var(--amber-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.45);
  transition: transform 150ms var(--ease), background-color 150ms var(--ease);
}

.ba-handle svg {
  width: 20px;
  height: 20px;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.ba-slider:hover .ba-handle {
  background: var(--navy-800);
  transform: translate(-50%, -50%) scale(1.06);
}

.ba-slider:has(.ba-range:focus-visible) .ba-handle {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .ba-badge {
    top: 0.6rem;
    padding: 0.26rem 0.55rem;
    font-size: 0.64rem;
    max-width: calc(50% - 0.9rem);
  }

  .ba-badge--before {
    left: 0.6rem;
  }

  .ba-badge--after {
    right: 0.6rem;
  }

  .ba-handle {
    width: 38px;
    height: 38px;
  }
}
