/* ==========================================================================
   Rapid Restoration & Repair — design system
   Dark charcoal industrial / safety orange emergency accent / deep blue secondary
   Display: Barlow Condensed (all-caps, tight tracking) · Body: Barlow
   ========================================================================== */

:root {
  --ink: #0f0f0f;
  --charcoal: #191919;
  --charcoal-2: #232323;
  --charcoal-3: #2d2d2d;
  --line-dark: #363636;
  --paper: #ffffff;
  --paper-warm: #f4f2ee;
  --muted-light: #b9b6b0;
  --muted-dark: #6b6862;
  --accent: #ff6026;
  --accent-hot: #ff9f2f;
  --accent-deep: #e04a12;
  --blue: #123dbd;
  --blue-dark: #0d2c8a;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
  --utility-h: 38px;
  --mobilebar-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--utility-h) + 16px); }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--accent);
  flex: none;
}
.eyebrow--blue { color: var(--blue); }
.eyebrow--blue::before { background: var(--blue); }

.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; }

.small { font-size: 0.9rem; }

/* ---------- Layout helpers ---------- */

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--dark { background: var(--charcoal); color: #fff; }
.section--ink { background: var(--ink); color: #fff; }
.section--warm { background: var(--paper-warm); }
.section--dark .lead, .section--ink .lead { color: var(--muted-light); }
.section--dark p, .section--ink p { color: var(--muted-light); }
.section--dark h2, .section--ink h2 { color: #fff; }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin: 14px 0 16px; }

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

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }

.btn--outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--charcoal); }

.btn--outline-dark { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn--outline-dark:hover { background: var(--charcoal); color: #fff; }

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }

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

.btn svg { width: 20px; height: 20px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Utility bar (desktop) ---------- */

.utility-bar {
  background: var(--ink);
  color: var(--muted-light);
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 60;
}
.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--utility-h);
}
.utility-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.utility-bar .util-status { display: flex; align-items: center; gap: 8px; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
  flex: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 96, 38, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(255, 96, 38, 0); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: var(--utility-h);
  z-index: 59;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--header-h);
  max-width: 1400px;
}

.brand { text-decoration: none; color: #fff; display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--accent); }
.brand-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: 4px;
  white-space: nowrap;
}

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e8e6e2;
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 4px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: left bottom 6px;
  background-size: 0% 2px;
  transition: background-size 0.25s, color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { background-size: 100% 2px; color: #fff; }

.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone {
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.header-phone span { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.24em; color: var(--accent); }
.header-cta .btn { padding: 12px 20px; font-size: 1rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: #fff;
  margin: 0 auto;
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; width: 26px; height: 3px;
  background: #fff;
  transition: transform 0.25s, top 0.25s;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Mobile top strip + bottom call bar ---------- */

.mobile-strip {
  display: none;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 16px;
  position: sticky;
  top: 0;
  z-index: 61;
}

.mobile-callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}
.mobile-callbar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  height: var(--mobilebar-h);
}
.mobile-callbar a svg { width: 20px; height: 20px; }
.mobile-callbar .mcb-call { background: var(--accent); }
.mobile-callbar .mcb-text { background: var(--charcoal-2); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,15,15,0.94) 8%, rgba(15,15,15,0.72) 45%, rgba(15,15,15,0.25) 100%);
}
.hero-inner { position: relative; padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 9vw, 120px); max-width: 860px; }
.hero h1 { margin: 18px 0 20px; }
.hero .hero-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 30px;
}
.hero .hero-sub strong { color: var(--accent-hot); font-weight: 700; }
.hero .btn-row { margin-bottom: 26px; }
.hero-services {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.hero-services b { color: #fff; font-weight: 600; }

/* ---------- Flood alert strip ---------- */

.alert-strip {
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  color: #fff;
}
.alert-strip .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.alert-strip h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); flex: none; }
.alert-strip p { max-width: 620px; font-size: 1.02rem; line-height: 1.5; }
.alert-strip p strong { display: block; }
.alert-strip .btn { flex: none; background: #fff; color: var(--accent-deep); }
.alert-strip .btn:hover { background: var(--ink); color: #fff; }

/* ---------- Service cards ---------- */

.svc-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-top: 3px solid var(--charcoal);
  background: var(--paper);
  padding: 28px 26px 30px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  position: relative;
}
.section--dark .svc-card, .section--ink .svc-card {
  background: var(--charcoal-2);
  border-top-color: var(--line-dark);
  color: #fff;
}
.svc-card:hover { border-top-color: var(--accent); transform: translateY(-4px); }
.section--dark .svc-card:hover, .section--ink .svc-card:hover { background: var(--charcoal-3); }
.svc-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 14px;
}
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { font-size: 0.98rem; flex: 1; }
.svc-link {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.svc-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.svc-card:hover .svc-link svg { transform: translateX(5px); }

/* ---------- Process steps ---------- */

.steps { counter-reset: step; }
.step {
  border-left: 3px solid var(--line-dark);
  padding: 6px 0 6px 28px;
  position: relative;
}
.step + .step { margin-top: 34px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -22px;
  top: 0;
  width: 42px; height: 42px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.step { padding-left: 40px; }
.step h3 { margin-bottom: 8px; color: #fff; }
.step p { max-width: 560px; }

/* ---------- Split feature (image + text) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-media { position: relative; }
.split-media img { border-radius: 4px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  pointer-events: none;
}
.split-tag {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 0 4px 0 4px;
}

/* ---------- Checklist chips (reconstruction) ---------- */

.chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0 34px; }
@media (max-width: 900px) { .chip-grid { grid-template-columns: repeat(2, 1fr); } }
.chip {
  background: var(--charcoal-2);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 15px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }

/* ---------- Proof bar ---------- */

.proof-bar { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.proof-bar .wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.proof-item {
  padding: 26px 18px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-left: 1px solid var(--line-dark);
}
.proof-item:first-child { border-left: 0; }
.proof-item b { color: var(--accent); font-weight: 700; }
@media (max-width: 900px) {
  .proof-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .proof-item { border-top: 1px solid var(--line-dark); }
}

/* ---------- Service areas ---------- */

.area-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 900px) { .area-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .area-cols { grid-template-columns: 1fr; } }
.area-col h3 { color: var(--accent); margin-bottom: 14px; font-size: 1.3rem; }
.area-col ul { list-style: none; }
.area-col li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-light);
  font-size: 1rem;
}
.area-col li a { color: #fff; text-decoration: none; font-weight: 600; }
.area-col li a:hover { color: var(--accent-hot); }

/* ---------- CTA band (page-ending conversion block) ---------- */

.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { margin: 16px 0 18px; }
.cta-band p { max-width: 640px; margin: 0 auto 32px; color: var(--muted-light); }
.cta-band .btn-row { justify-content: center; }
.cta-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-bottom: 26px;
}
.cta-phone:hover { color: var(--accent-hot); }

/* ---------- Breadcrumbs ---------- */

.crumbs {
  font-size: 0.85rem;
  color: var(--muted-light);
  padding: 14px 0 0;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--muted-dark); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted-light); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Interior page hero ---------- */

.page-hero { background: var(--charcoal); color: #fff; position: relative; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(25,25,25,0.96) 20%, rgba(25,25,25,0.6) 70%, rgba(25,25,25,0.35) 100%);
}
.page-hero .wrap { position: relative; padding: clamp(48px, 7vw, 88px) 24px clamp(44px, 6vw, 72px); }
.page-hero h1 { margin: 16px 0 18px; max-width: 880px; }
.page-hero .lead { max-width: 700px; color: var(--muted-light); margin-bottom: 28px; }

/* ---------- Content blocks on inner pages ---------- */

.rich h2 { margin: 0 0 18px; }
.rich h3 { margin: 34px 0 10px; }
.rich p { margin-bottom: 14px; max-width: 720px; }
.rich ul.bullet { margin: 6px 0 20px; padding-left: 0; list-style: none; max-width: 720px; }
.rich ul.bullet li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid #e6e3dd; }
.rich ul.bullet li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 9px; height: 9px;
  background: var(--accent);
}
.section--dark .rich ul.bullet li { border-bottom-color: var(--line-dark); }

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--paper-warm);
  border-left: 4px solid var(--accent);
  padding: 22px 26px;
  margin: 40px 0;
}
.section--dark .inline-cta { background: var(--charcoal-2); }
.inline-cta p { margin: 0; font-weight: 600; font-size: 1.05rem; max-width: 480px; }

/* ---------- Two-col content with sticky call card ---------- */

.with-aside { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .with-aside { grid-template-columns: 1fr; } }
.call-card {
  position: sticky;
  top: calc(var(--header-h) + var(--utility-h) + 20px);
  background: var(--charcoal);
  color: #fff;
  border-radius: 4px;
  padding: 28px 26px;
  border-top: 4px solid var(--accent);
}
.call-card h3 { margin-bottom: 10px; }
.call-card p { color: var(--muted-light); font-size: 0.95rem; margin-bottom: 20px; }
.call-card .btn { margin-bottom: 10px; }
.call-card .card-phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 18px;
}
.call-card .card-phone:hover { color: var(--accent-hot); }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid #cfccc5;
  border-radius: 4px;
  background: #fff;
  color: var(--charcoal);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfccc5;
  border-radius: 4px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}
.radio-pill input { width: auto; }
.form-note { font-size: 0.9rem; color: var(--muted-dark); }
.form-success {
  display: none;
  background: var(--charcoal);
  color: #fff;
  border-left: 4px solid var(--accent);
  padding: 28px;
  border-radius: 4px;
}
.form-success h3 { color: #fff; margin-bottom: 10px; }
.form-success p { color: var(--muted-light); }
.form-success a { color: var(--accent-hot); font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--muted-light); }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer-main h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-main ul { list-style: none; }
.footer-main li { margin-bottom: 9px; }
.footer-main a { color: var(--muted-light); text-decoration: none; font-size: 0.95rem; }
.footer-main a:hover { color: var(--accent-hot); }
.footer-brand p { font-size: 0.95rem; max-width: 320px; margin: 14px 0 18px; }
.footer-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff !important;
}
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding: 20px 0 calc(20px + 0px);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-legal a { color: var(--muted-light); text-decoration: none; margin-left: 18px; }
.footer-legal a:hover { color: #fff; }

/* ---------- Legal pages ---------- */

.legal-body h2 { margin: 36px 0 12px; font-size: 1.6rem; }
.legal-body p { margin-bottom: 14px; max-width: 760px; }
.legal-body ul { margin: 0 0 16px 22px; max-width: 740px; }
.legal-body li { margin-bottom: 6px; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive header behavior ---------- */

@media (max-width: 1380px) {
  .header-phone { display: none; }
}
@media (max-width: 1240px) {
  .main-nav a { padding: 10px 9px; font-size: 0.98rem; }
  .header-cta .btn { padding: 11px 16px; }
}
@media (max-width: 1020px) {
  .utility-bar { display: none; }
  .site-header { top: 46px; }
  .mobile-strip { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--charcoal);
    border-bottom: 2px solid var(--accent);
    flex-direction: column;
    padding: 10px 0 16px;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 24px; font-size: 1.2rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .header-cta .btn--text { display: none; }
  .header-cta .btn { padding: 11px 18px; }
  .site-header { position: sticky; }
  .site-header { top: 0; }
  body { padding-bottom: var(--mobilebar-h); }
  .mobile-callbar { display: flex; }
  :root { --utility-h: 0px; }
}
@media (max-width: 480px) {
  .brand-sub { letter-spacing: 0.18em; }
  .brand-name { font-size: 1.2rem; }
  .alert-strip .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .btn { width: 100%; }
  .btn-row { width: 100%; }
  .cta-band .btn-row .btn, .hero .btn-row .btn { width: 100%; }
  .inline-cta .btn { width: 100%; }
}

/* ==========================================================================
   Lead funnel — modal wizard, mini form, exit capture, lead magnet
   ========================================================================== */

.fn-locked { overflow: hidden; }

.fn-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  backdrop-filter: blur(4px);
}
.fn-modal.is-open { display: flex; }

.fn-card {
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  color: #fff;
}

.fn-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: 0;
  color: var(--muted-light);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  padding: 4px 8px;
}
.fn-close:hover { color: #fff; }

.fn-progress { height: 4px; background: var(--charcoal-3); }
.fn-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }

.fn-body { padding: 30px 30px 34px; }

.fn-mode {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.fn-title { color: #fff; font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 18px; }
.fn-sub { color: var(--muted-light); margin-bottom: 18px; line-height: 1.55; }
.fn-alt { color: var(--muted-light); font-size: 0.95rem; margin-top: 12px; }
.fn-alt a, .fn-callalt a { color: var(--accent-hot); font-weight: 600; }
.fn-note {
  background: rgba(255, 96, 38, 0.12);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.95rem;
  color: #ffd9c8;
}
.fn-callalt { margin-top: 16px; font-size: 0.9rem; color: var(--muted-dark); text-align: center; }

.fn-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
@media (max-width: 520px) { .fn-options { grid-template-columns: 1fr; } }
.fn-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--charcoal-2);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 13px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  transition: border-color 0.15s, background 0.15s;
}
.fn-option:hover { border-color: var(--accent); }
.fn-option input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.fn-option:has(input:checked) { border-color: var(--accent); background: rgba(255, 96, 38, 0.1); }

.fn-card .field { margin-bottom: 14px; }
.fn-card .field label { color: #fff; font-size: 0.92rem; }
.fn-card .field input, .fn-card .field select, .fn-card .field textarea {
  background: var(--charcoal-2);
  border-color: var(--line-dark);
  color: #fff;
}
.fn-card .field input::placeholder { color: var(--muted-dark); }
.fn-invalid { border-color: var(--accent) !important; outline: 1px solid var(--accent); }

.fn-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted-light);
  margin: 14px 0 0;
  cursor: pointer;
  line-height: 1.45;
}
.fn-consent input { margin-top: 3px; accent-color: var(--accent); flex: none; }

.fn-actions { display: flex; gap: 12px; margin-top: 22px; }
.fn-actions .fn-next { flex: 1; }
.fn-skip {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: 0;
  color: var(--muted-light);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}
.fn-skip:hover { color: #fff; }

.fn-final { text-align: center; }
.fn-final-call {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 26px 0 12px;
  font-size: 1.3rem;
}
.fn-final .btn { max-width: 420px; margin: 0 auto; }
.fn-exit { max-width: 440px; }

/* Inline wizard (embedded on emergency page) */
.fn-inline {
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
  color: #fff;
  padding: 30px 30px 34px;
}
.fn-inline .field { margin-bottom: 14px; }
.fn-inline .field label { color: #fff; font-size: 0.92rem; }
.fn-inline .field input, .fn-inline .field select, .fn-inline .field textarea {
  background: var(--charcoal-2);
  border-color: var(--line-dark);
  color: #fff;
}
.fn-inline .field input::placeholder { color: var(--muted-dark); }

/* Mini form above the fold (emergency page hero) */
.mini-form {
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
  padding: 24px;
  margin-top: 34px;
  max-width: 640px;
}
.mini-form h2 { color: #fff; font-size: 1.5rem; margin-bottom: 16px; }
.mini-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .mini-form-grid { grid-template-columns: 1fr; } }
.mini-form .field label { color: var(--muted-light); font-size: 0.85rem; }
.mini-form .field input, .mini-form .field select {
  background: var(--charcoal-2);
  border-color: var(--line-dark);
  color: #fff;
}
.mini-form .btn { grid-column: 1 / -1; }

/* Lead magnet section */
.magnet {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff;
}
.magnet .split { align-items: center; }
.magnet h2 { color: #fff; margin: 14px 0 16px; }
.magnet p, .magnet li { color: #d7e0ff; }
.magnet ul { list-style: none; margin: 14px 0 0; }
.magnet li { padding: 7px 0 7px 26px; position: relative; }
.magnet li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px; background: var(--accent-hot); }
.magnet-form {
  background: rgba(15, 15, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 26px;
}
.magnet-form h3 { color: #fff; margin-bottom: 14px; }
.magnet-form .field { margin-bottom: 12px; }
.magnet-form .field label { color: #d7e0ff; font-size: 0.85rem; }
.magnet-form .field input { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: #fff; }
.magnet-form .field input::placeholder { color: #8fa4e8; }
.magnet-success h3 { color: #fff; }
.magnet-success p { margin-bottom: 18px; }

/* Reconstruction upsell band on mitigation pages */
.recon-band {
  background: var(--paper-warm);
  border-top: 4px solid var(--blue);
}
.recon-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.recon-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.recon-band p { max-width: 560px; color: var(--muted-dark); margin-top: 8px; }

/* ==========================================================================
   Navigation dropdowns + configurable status pill + mobile menu groups
   ========================================================================== */

.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 6px 6px;
  padding: 8px 0;
  z-index: 80;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  color: #e8e6e2;
  background: none;
  border-radius: 0;
}
.dropdown a:hover { color: var(--accent-hot); background: var(--charcoal-2); }
.dropdown .drop-cta {
  margin-top: 8px;
  border-top: 1px solid var(--line-dark);
  padding-top: 14px;
  color: var(--accent);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdown .drop-cta svg { width: 15px; height: 15px; }
.nav-mobile-only { display: none; }

/* Status pill — configurable via data-emergency-status on <body> */
.status-pill { display: inline-flex; align-items: center; gap: 8px; }
body[data-emergency-status="limited"] .status-pill .pulse-dot { background: var(--accent-hot); animation: none; }
body[data-emergency-status="limited"] .status-active-label { display: none; }

/* Selector section cards */
.selector-section { background: var(--paper); }
.selector-card { border-top-color: var(--charcoal); }
.selector-card:hover { border-top-color: var(--accent); }

/* Alert strip safety note */
.alert-strip .alert-safety {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
  border-left: 3px solid rgba(255,255,255,0.6);
  padding-left: 14px;
  max-width: 460px;
  flex: none;
}
.alert-strip .alert-safety a { color: #fff; font-weight: 700; text-decoration: underline; }

/* Mobile nav: full-width groups, dropdowns become flat sub-lists */
@media (max-width: 1020px) {
  .has-drop .dropdown {
    display: block;
    position: static;
    border: 0;
    border-top: 0;
    background: var(--charcoal-2);
    border-radius: 0;
    padding: 0;
    min-width: 0;
  }
  .dropdown a { padding: 10px 24px 10px 40px; font-size: 1rem; }
  .dropdown .drop-cta { margin-top: 0; padding: 12px 24px 12px 40px; }
  .nav-item > a { display: flex; justify-content: space-between; }
  .nav-item > a svg { display: none; }
  .nav-mobile-only { display: block; }
  .nav-mobile-only a { color: var(--accent); }
  .mobile-callbar .mcb-call { flex: 1; }
}

/* Projects page */
.project-card { display: flex; flex-direction: column; border-top: 3px solid var(--line-dark); background: var(--charcoal-2); padding: 26px; }
.project-card h3 { margin-bottom: 8px; }
.project-card .project-meta { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.project-card p { color: var(--muted-light); font-size: 0.98rem; flex: 1; }

/* ---------- Homepage copy refresh additions ---------- */
.hero-areas {
  color: #c9cdd4;
  font-size: 1.02rem;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.steps-tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 30px;
}

/* Flood alert — full-width content block */
.alert-strip .alert-main { max-width: 900px; }
.alert-strip .alert-main h2 { margin-bottom: 14px; }
.alert-strip .alert-main h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: 0.04em;
  margin: 18px 0 6px;
}
.alert-strip .alert-24 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin: 22px 0 4px;
}
.alert-strip .cta-phone { margin: 0 0 18px; }
.alert-strip .cta-phone:hover { color: var(--ink); }
.alert-strip .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.alert-strip .btn--solid-light { background: #fff; color: var(--accent-deep); border-color: #fff; }
.alert-strip .btn--solid-light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.alert-strip .btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.alert-strip .btn--ink:hover { background: #000; }
.alert-strip .btn--outline-light:hover { background: #fff; color: var(--accent-deep); }

/* One Call section */
.duo h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 10px;
}
.duo-list { list-style: none; margin: 0; padding: 0; }
.duo-list li { padding: 7px 0 7px 22px; position: relative; color: #cfd3da; }
.duo-list li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 9px; height: 9px; background: var(--accent);
}
.duo-close { max-width: 760px; margin: 28px 0 8px; font-size: 1.08rem; color: #e8eaee; }

/* Magnet form note */
.magnet-note { margin-top: 12px; font-size: 0.92rem; color: #d7e0ff; }
.magnet-note a { color: #fff; font-weight: 700; }

/* Tighter header to fit Emergency Restoration + Contact + 2 buttons */
@media (max-width: 1460px) {
  .main-nav a { padding: 10px 10px; font-size: 0.96rem; letter-spacing: 0.06em; }
  .header-cta { gap: 10px; }
  .header-cta .btn { padding: 11px 16px; font-size: 0.94rem; }
}
@media (max-width: 1240px) {
  .main-nav a { padding: 10px 7px; font-size: 0.9rem; letter-spacing: 0.05em; }
  .header-cta .btn { padding: 10px 13px; font-size: 0.88rem; }
}
@media (max-width: 1020px) {
  .header-cta { display: none; }
}
