/* ==========================================================================
   © 2026 Albert LaMotte. All rights reserved. · Restoration Contractors MN & USA
   Restoration Contractors MN & USA — Unified Design System (v3.1)
   Brand Palette: Deep Navy (#0A1628), Cobalt/Electric Blue (#126DFA / #4A9EFF), Gold (#F59E0B)
   WCAG 2.1 Level AA+ Contrast Verified Across 375px, 768px & 1440px
   ========================================================================== */

:root {
  --navy-950: #060e1a;
  --navy-900: #0A1628;
  --navy-800: #112645;
  --navy-700: #193866;
  --brand-cobalt: #126DFA;
  --brand-cobalt-hover: #0D56CC;
  --brand-electric: #4A9EFF;
  --brand-gold: #F59E0B;
  --brand-gold-dark: #92400E;
  --brand-accent: #0D56CC;
  --brand-accent-hover: #0A46A8;
  --brand-orange: var(--brand-accent);
  --brand-orange-hover: var(--brand-accent-hover);
  --brand-amber-soft: #FFFBEB;
  --brand-amber-border: #FDE68A;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;
  --blue-600: #0D56CC;
  --blue-soft: #eff6ff;
  --danger-700: #b91c1c;
  --danger-soft: #fef2f2;
  --danger-border: #fecaca;
  --slate-900: #0A1628;
  --slate-700: #2b3a4e;
  --slate-600: #3e4f65;
  --slate-500: #475569;
  --slate-400: #526277;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 20px 44px rgba(10, 22, 40, 0.16);
  --max-w: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-700);
  background: var(--slate-50);
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  color: var(--slate-900);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-top: 0;
}

a {
  color: var(--navy-800);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-cobalt-hover);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brand-cobalt);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Trust Bar & Header --- */
.trust-bar {
  background: var(--navy-950);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.trust-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-pills {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 98px;
  gap: 12px;
  max-width: 1380px;
}
.brand-logo {
  flex-shrink: 0;
}
.brand-logo img {
  height: 80px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: nowrap;
}
.main-nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.83rem;
  color: var(--slate-700);
  white-space: nowrap;
}
.main-nav a.btn {
  white-space: nowrap;
}
@media (max-width: 1220px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0;
    border-top: 1px solid var(--slate-200);
  }
  .main-nav.open {
    display: flex;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 20px;
  }
}
.main-nav a:not(.btn):hover {
  color: var(--brand-orange);
}
.header-right-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--slate-50);
  color: var(--slate-900);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.lang-btn:hover {
  border-color: var(--navy-700);
  background: var(--white);
}
.lang-flag-slot {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.lang-flag-svg {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  max-width: calc(100vw - 24px);
  max-height: 70dvh;
  overflow-y: auto;
  z-index: 150;
}
[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-900);
}
.lang-option:hover,
.lang-option.active {
  background: var(--brand-amber-soft);
  color: var(--brand-orange-hover);
  font-weight: 700;
}
.lang-name {
  flex: 1;
}
.lang-opt-code {
  font-size: 0.74rem;
  color: var(--slate-500);
  font-weight: 700;
}
.nav-toggle {
  display: none;
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.sub-service-bar {
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sub-service-bar::-webkit-scrollbar {
  display: none;
}
.sub-service-links {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  max-width: 1380px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
}
.sub-service-links a {
  color: var(--slate-700);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}
.sub-service-links a:hover {
  color: var(--brand-cobalt-hover);
  border-color: #93c5fd;
  background: var(--blue-soft);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.88rem;
}
.btn-primary {
  background: var(--brand-cobalt);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(18, 109, 250, 0.32);
}
.btn-primary:hover {
  background: var(--brand-cobalt-hover);
  color: var(--white);
}
.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-800);
  color: var(--white);
}
.btn-emerald {
  background: var(--emerald-600);
  color: var(--white);
}
.btn-emerald:hover {
  background: var(--emerald-700);
  color: var(--white);
}
.btn-outline {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--slate-300);
}
.btn-outline:hover {
  border-color: var(--navy-800);
  color: var(--navy-900);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}
.btn-danger-outline {
  background: var(--white);
  color: var(--danger-700);
  border-color: var(--danger-border);
}
.btn-block {
  width: 100%;
}

/* --- Hero Split Section --- */
.hero-split {
  background: radial-gradient(circle at 84% 16%, rgba(18, 109, 250, 0.16) 0%, var(--navy-900) 54%, var(--navy-950) 100%);
  color: var(--white);
  padding: 56px 0 68px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--brand-gold);
  border: 1px solid rgba(245, 158, 11, 0.45);
  margin-bottom: 18px;
}
.eyebrow-light {
  background: var(--blue-soft);
  color: var(--brand-cobalt-hover);
  border-color: #bfdbfe;
}
.hero-split h1 {
  color: var(--white);
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  margin-bottom: 18px;
}
.hero-split h1 span {
  color: #7CC4FF;
}
.hero-split h1 [data-i18n="hero_h1_top"] {
  color: var(--white);
}
.hero-lead {
  font-size: 1.12rem;
  color: #e2e8f0;
  margin-bottom: 26px;
  max-width: 590px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(74, 158, 255, 0.28);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-badge-gold {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--navy-900);
  font-weight: 800;
}
.gold-star {
  color: var(--brand-gold);
}
.hero-photo-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-photo-strip img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* --- Cards, Sections & Grids --- */
.section {
  padding: 68px 0;
}
.section-white {
  background: var(--white);
}
.section-soft {
  background: var(--slate-100);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.section-header p {
  color: var(--slate-600);
  font-size: 1.06rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-elevated {
  box-shadow: var(--shadow-lg);
}
.card-hover {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #94a3b8;
}

/* --- Badges & Alerts --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.badge-exclusive {
  background: var(--emerald-soft);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-border);
}
.badge-shared {
  background: var(--blue-soft);
  color: var(--blue-600);
  border: 1px solid #bfdbfe;
}
.badge-emergency {
  background: var(--danger-soft);
  color: var(--danger-700);
  border: 1px solid var(--danger-border);
}
.badge-amber {
  background: var(--brand-amber-soft);
  color: var(--brand-gold-dark);
  border: 1px solid var(--brand-gold);
}
.badge-neutral {
  background: var(--slate-100);
  color: var(--slate-700);
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-weight: 500;
  border-left: 4px solid var(--navy-800);
  background: var(--blue-soft);
  color: var(--slate-900);
}
.alert-success {
  background: var(--emerald-soft);
  border-left-color: var(--emerald-600);
  color: #064e3b;
}
.alert-error, .alert-danger {
  background: var(--danger-soft);
  border-left-color: var(--danger-700);
  color: #7f1d1d;
}
.alert-warning {
  background: var(--brand-amber-soft);
  border-left-color: var(--brand-orange);
  color: #7c2d12;
}

/* --- Forms & Interactive Mode Cards --- */
.form-card {
  background: var(--white);
  color: var(--slate-900);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}
.form-group {
  margin-bottom: 16px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-900);
  margin-bottom: 6px;
}
.field-hint {
  font-size: 0.81rem;
  color: var(--slate-500);
  margin-top: 4px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--slate-900);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea {
  min-height: 92px;
  resize: vertical;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(30, 66, 122, 0.14);
}

.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.choice-card {
  position: relative;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  cursor: pointer;
  background: var(--slate-50);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.choice-card:has(input:checked) {
  border-color: var(--brand-cobalt);
  background: var(--blue-soft);
}
.choice-card strong {
  display: block;
  font-size: 0.93rem;
  color: var(--slate-900);
}
.choice-card span {
  display: block;
  font-size: 0.79rem;
  color: var(--slate-600);
  margin-top: 3px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.check-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
}
.check-tile input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.check-tile:has(input:checked) {
  border-color: var(--navy-700);
  background: var(--blue-soft);
}

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

/* --- Tables & Pricing Matrix --- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background: var(--white);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.92rem;
  vertical-align: middle;
}
th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--slate-50);
}

/* --- Dashboard KPIs & Offer Cards --- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.kpi-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
}
.kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
}
.kpi-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 4px;
}

.lead-offer-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.lead-price-box {
  text-align: right;
  background: var(--slate-50);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  min-width: 220px;
}
.lead-price-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
}

/* --- Service Photo Cards & FAQ --- */
.service-photo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-photo-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}
.service-photo-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq-list summary {
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
}
.faq-list details p {
  margin: 12px 0 0;
  color: var(--slate-600);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-900);
  color: #cbd5e1;
  padding: 56px 0 36px;
  margin-top: 64px;
  border-top: 3px solid var(--brand-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 8px;
}
.site-footer a {
  color: #e2e8f0;
  font-size: 0.9rem;
}
.site-footer a:hover {
  color: var(--brand-electric);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .lead-offer-card {
    grid-template-columns: 1fr;
  }
  .lead-price-box {
    text-align: left;
  }
}

  @media (max-width: 768px) {
  .trust-bar {
    font-size: 0.76rem;
    padding: 6px 0;
  }
  .trust-bar-inner {
    gap: 8px;
  }
  .trust-pills > span:not(:first-child) {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.86rem;
  }
  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 16px;
    border-top: 1px solid var(--slate-200);
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav a:not(.btn) {
    min-height: 46px;
    padding: 8px 6px;
    font-size: 0.96rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--slate-100);
  }
  .main-nav a.btn {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
    min-height: 48px;
    font-size: 0.96rem;
  }
  .main-nav.open {
    display: flex;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 8px 16px;
    min-height: 70px;
    gap: 8px;
  }
  .brand-logo img {
    height: 52px;
    max-width: min(176px, 46vw);
    object-fit: contain;
  }
  .lang-btn {
    padding: 6px 9px;
    min-height: 42px;
    font-size: 0.78rem;
  }
  .choice-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .form-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }
  .card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }
  .btn-sm {
    min-height: 44px;
  }
  .mobile-sticky-cta {
    display: flex;
  }
  .mobile-sticky-cta.keyboard-open {
    display: none;
  }
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

/* --- Trust Strip, Lead Form Enhancements & Progress Tracker --- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 22px 0;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.trust-icon {
  font-size: 1.35rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.trust-pillar strong {
  display: block;
  font-size: 0.92rem;
  color: var(--slate-900);
}
.trust-pillar span {
  display: block;
  font-size: 0.81rem;
  color: var(--slate-600);
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-800);
  margin: 14px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--slate-200);
}
.step-heading span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.quick-pill.active {
  background: var(--brand-amber-soft);
  border-color: var(--brand-orange);
  color: var(--brand-orange-hover);
}

.choice-card:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  font-weight: 800;
  color: var(--brand-orange);
}

.triage-preview {
  background: var(--brand-amber-soft);
  border: 1px solid var(--brand-amber-border);
  border-left: 4px solid var(--brand-orange);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.84rem;
}
.triage-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.triage-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.triage-tips {
  margin: 0;
  padding-left: 18px;
  color: var(--slate-700);
}
.triage-tips li {
  margin-bottom: 4px;
}

.photo-preview-bar {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  font-size: 0.82rem;
  color: var(--slate-700);
}
.photo-preview-bar .photo-warn {
  color: var(--danger-700);
  font-weight: 600;
}

.progress-tracker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-500);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}
.progress-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--slate-300);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.progress-step.done {
  color: var(--emerald-700);
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
}
.progress-step.done span {
  background: var(--emerald-600);
}

.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--slate-200);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
}
.mobile-sticky-cta a {
  flex: 1;
}

@media (max-width: 960px) {
  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .trust-strip-grid, .progress-tracker {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   v3.0 World-Class Marketplace Enhancements (Outperforming Angi & Thumbtack)
   ========================================================================== */

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--brand-gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.26);
  flex-shrink: 0;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.hero-metric-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(74, 158, 255, 0.22);
}
.hero-metric-card strong {
  display: block;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
}
.hero-metric-card span {
  display: block;
  color: #e2e8f0;
  font-size: 0.76rem;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.trust-svg-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Progressive 2-Step Homeowner Wizard */
.wizard-form-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 56px rgba(7, 17, 31, 0.28);
}
.form-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.form-card-subnote {
  font-size: 0.78rem;
  color: var(--slate-500);
  font-weight: 600;
}
.form-card-title {
  font-size: 1.45rem;
  margin-bottom: 4px;
}
.form-card-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin: 0 0 10px;
}
.intake-trust-microbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy-900);
}
.intake-trust-microbar span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  margin-bottom: 14px;
}
.wizard-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--slate-500);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 6px;
  cursor: pointer;
}
.wizard-tab.active {
  color: var(--slate-900);
}
.wizard-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--slate-200);
  color: var(--slate-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
}
.wizard-tab.active .wizard-num {
  background: var(--brand-cobalt);
  color: #ffffff;
}
.wizard-connector {
  flex: 1;
  height: 4px;
  background: var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
}
.wizard-bar-fill {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--brand-cobalt);
  transition: width 0.25s ease;
}

/* Without JS, both panels stay visible; when JS initializes `.js-wizard-ready`, inactive panel hides */
.js-wizard-ready .wizard-panel[hidden] {
  display: none !important;
}
.wizard-only-control {
  display: none;
}
.js-wizard-ready .wizard-only-control {
  display: flex;
}
.wizard-back-row {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-200);
}
.wizard-link-btn {
  border: 0;
  background: transparent;
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0;
  cursor: pointer;
}
.wizard-link-btn:hover {
  text-decoration: underline;
}

.quick-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}
.quick-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 10px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quick-tile:hover {
  border-color: var(--brand-cobalt);
  color: var(--slate-900);
  background: #ffffff;
}
.quick-tile.active {
  background: var(--blue-soft);
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt-hover);
}
@media (max-width: 480px) {
  .quick-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.zip-live-badge {
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-700);
}
.zip-live-badge.warn {
  background: var(--brand-amber-soft);
  border-color: var(--brand-amber-border);
  color: #9a3412;
}
.wizard-inline-error {
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  color: var(--danger-700);
}

/* Interactive Cost & Insurance Estimator */
.estimator-shell {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .estimator-shell {
    grid-template-columns: 1fr;
  }
}
.estimator-disclaimer {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  font-size: 0.8rem;
  color: var(--slate-600);
}
.estimator-dark-card {
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.estimator-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.estimator-std-chip {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--brand-gold);
}
.estimator-total-box {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}
.estimator-kicker {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e2e8f0;
}
.estimator-total-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--brand-gold);
  line-height: 1.15;
  margin: 4px 0;
}
.estimator-timeline {
  display: block;
  font-size: 0.82rem;
  color: #e2e8f0;
}
.estimator-phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 540px) {
  .estimator-phase-grid {
    grid-template-columns: 1fr;
  }
}
.estimator-phase-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.estimator-phase-box span {
  display: block;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 3px;
}
.estimator-phase-box strong {
  font-size: 1.15rem;
  color: #ffffff;
}
.estimator-insurance-box {
  padding: 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-bottom: 16px;
}
.estimator-insurance-box strong {
  display: block;
  font-size: 0.82rem;
  color: #6ee7b7;
  margin-bottom: 4px;
}
.estimator-insurance-box p {
  margin: 0;
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.5;
}

/* Comparison Table Highlights */
.comparison-table .rcmn-col-head {
  background: var(--navy-900);
  color: #ffffff;
}
.comparison-table .rcmn-col-cell {
  background: #f0fdf4;
  color: var(--slate-900);
}
.check-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald-600);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  margin-right: 4px;
}
.step-showcase-card {
  position: relative;
}
.step-num-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--brand-gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ==========================================================================
   ADA Title III / WCAG 2.1 Level AA Screen & Assistive-Technology Safeguards
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Distinguish inline text links without relying on color alone (WCAG SC 1.4.1) */
main p a:not(.btn):not(.badge),
main li a:not(.btn):not(.badge) {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

/* Respect OS Reduced Motion preference (WCAG SC 2.3.3) */
@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;
  }
}

/* Windows High Contrast / Forced Colors Mode support */
@media (forced-colors: active) {
  .btn, .card, .badge, .form-card, .kpi-card {
    border: 1px solid ButtonText;
  }
  :focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }
}

/* ==========================================================================
   Comprehensive Mobile & Small-Viewport Polish (320px – 1140px)
   ========================================================================== */
img, svg, video {
  max-width: 100%;
}

.table-wrap {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1140px) {
  .sub-service-links {
    justify-content: flex-start;
    gap: 8px;
    padding: 2px 16px;
    scroll-snap-type: x proximity;
  }
  .sub-service-links a {
    flex-shrink: 0;
    min-height: 38px;
    padding: 6px 12px;
    font-size: 0.81rem;
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section {
    padding: 40px 0;
  }
  .section-header {
    margin-bottom: 26px;
  }
  .section-header h2 {
    font-size: clamp(1.42rem, 5.6vw, 1.9rem);
  }
  .section-header p {
    font-size: 0.95rem;
  }
  .hero-split {
    padding: 24px 0 34px;
  }
  .hero-grid {
    gap: 24px;
  }
  .hero-split h1 {
    font-size: clamp(1.62rem, 6.2vw, 2.2rem);
    line-height: 1.18;
    margin-bottom: 12px;
  }
  .hero-lead {
    font-size: 0.96rem;
    line-height: 1.52;
    margin-bottom: 18px;
  }
  .hero-badges {
    gap: 7px;
    margin-bottom: 18px;
  }
  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 11px;
  }
  .hero-cta-row {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }
  .hero-cta-row .btn {
    width: 100%;
  }
  .hero-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }
  .hero-metric-card {
    padding: 10px 10px;
    text-align: left;
  }
  .hero-metric-card strong {
    font-size: 0.9rem;
  }
  .hero-metric-card span {
    font-size: 0.69rem;
    line-height: 1.3;
  }
  .hero-photo-strip {
    flex-direction: row;
    align-items: flex-start;
    padding: 12px;
    gap: 12px;
    margin-top: 16px;
  }
  .hero-photo-strip img {
    width: 56px;
    height: 56px;
  }
  /* Prevent iOS Safari zoom on input focus across all forms & portals */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="url"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
  .quick-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .quick-tile {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 0.82rem;
    justify-content: flex-start;
  }
  .wizard-progress {
    padding: 7px 8px;
    gap: 6px;
  }
  .wizard-tab {
    font-size: 0.76rem;
    min-height: 38px;
    padding: 4px;
  }
  .wizard-back-row {
    flex-wrap: wrap;
  }
  .estimator-total-num {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }
  .lead-price-box {
    min-width: 0;
    width: 100%;
  }
  .table-wrap table {
    min-width: 520px;
  }
  th, td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .kpi-card {
    padding: 14px;
  }
  .kpi-value {
    font-size: 1.45rem;
  }
  .site-footer {
    padding: 40px 0 28px;
    margin-top: 40px;
  }
  .footer-grid {
    gap: 22px;
  }
}

@media (max-width: 390px) {
  .brand-logo img {
    height: 44px;
    max-width: 43vw;
  }
  .hero-status-pill,
  .eyebrow {
    font-size: 0.69rem;
    padding: 5px 10px;
  }
  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }
  .hero-metric-card {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Restoration Contractors USA — National Hub, US Corridor Map & Roster Meters
   ========================================================================== */
.usa-hero {
  background: radial-gradient(circle at 82% 25%, rgba(18, 109, 250, 0.28) 0%, transparent 48%),
              linear-gradient(135deg, #060e1a 0%, #0A1628 58%, #112645 100%);
  color: #f8fafc;
  padding: 56px 0 64px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.usa-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.usa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--brand-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.usa-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 14px;
}
.usa-h1 span {
  color: var(--brand-electric);
}
.usa-lead {
  font-size: 1.04rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 22px;
}
.usa-zip-box {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.usa-zip-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.usa-zip-row {
  display: flex;
  gap: 10px;
}
.usa-zip-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 10px;
  border: 1.5px solid #475569;
  background: #ffffff;
  color: #0f172a;
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 600;
}
.usa-zip-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.76rem;
  color: #94a3b8;
}
.usa-sample-zip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
}
.usa-sample-zip:hover {
  background: rgba(59, 130, 246, 0.32);
  border-color: #60a5fa;
  color: #ffffff;
}
.usa-zip-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  border-left: 4px solid #2563eb;
}
.usa-zip-result.is-live {
  border-left-color: #10b981;
  background: #ecfdf5;
}
.usa-zip-result-title {
  font-weight: 800;
  font-size: 0.94rem;
  color: #0f172a;
  margin-bottom: 4px;
}
.usa-zip-result-body {
  font-size: 0.84rem;
  color: #334155;
  margin: 0 0 10px;
  line-height: 1.5;
}
.usa-zip-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.usa-map-card {
  background: #0b172c;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}
.usa-map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.usa-map-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60a5fa;
}
.usa-map-header h3 {
  color: #ffffff;
  font-size: 1.08rem;
  margin: 2px 0 0;
}
.usa-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.usa-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}
.usa-corridor-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.usa-map-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.usa-map-kpis > div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  padding: 9px 8px;
  text-align: center;
}
.usa-map-kpis strong {
  display: block;
  font-size: 0.96rem;
  color: #ffffff;
}
.usa-map-kpis span {
  font-size: 0.69rem;
  color: #94a3b8;
}
.usa-state-card {
  display: flex;
  flex-direction: column;
}
.usa-state-selected {
  border: 2px solid #2563eb !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}
.usa-roster-meter {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 10px 12px;
}
.usa-progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.usa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 999px;
}
.usa-progress-fill.is-live {
  background: linear-gradient(90deg, #059669, #10b981);
}
.usa-estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.usa-est-output-card {
  background: linear-gradient(145deg, #0b1930, #132a4e) !important;
  color: #f8fafc !important;
  border: 1px solid #1e3a8a !important;
}
.usa-DualCapture-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 26px;
  align-items: start;
}
@media (max-width: 960px) {
  .usa-hero-grid,
  .usa-estimator-grid,
  .usa-DualCapture-grid {
    grid-template-columns: 1fr;
  }
  .usa-map-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .usa-zip-row {
    flex-direction: column;
  }
}

/* ==========================================================================
   Agency-Grade UX & System Polish (v3.2 — Wayfinding, States, Print & 8pt Rhythm)
   ========================================================================== */
.trust-bar-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-admin-link {
  color: var(--brand-gold);
  font-weight: 700;
}
.trust-track-link {
  color: #f8fafc;
  font-weight: 600;
}
.trust-sep {
  color: rgba(148, 163, 184, 0.55);
}
.flash-stack {
  margin-top: 16px;
}
.header-inner {
  min-height: 76px;
}
.brand-logo img {
  height: 58px;
  width: auto;
}
.main-nav a:not(.btn) {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  position: relative;
}
.main-nav a:not(.btn).is-active,
.main-nav a:not(.btn)[aria-current="page"] {
  color: var(--brand-cobalt-hover);
  background: var(--blue-soft);
  font-weight: 700;
}
.sub-service-links a.is-active,
.sub-service-links a[aria-current="page"] {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  font-weight: 700;
}
.hero-lead {
  max-width: 64ch;
}
.hero-photo-strip img {
  width: 120px;
  height: 84px;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}
.hero-photo-title {
  display: block;
  color: #ffffff;
  font-size: 0.96rem;
  margin-bottom: 4px;
}
.hero-photo-sub {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.service-photo-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.service-card-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.service-card-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 16px;
}
.service-card-cta {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-accent);
}
.scope-chip {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--navy-800);
  border: 1px solid rgba(18, 109, 250, 0.22);
}

/* Progressive Disclosure Optional Scope Drawer */
.optional-scope-drawer {
  margin: 12px 0 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--slate-50);
  overflow: hidden;
}
.optional-scope-drawer > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-800);
}
.optional-scope-drawer > summary::-webkit-details-marker {
  display: none;
}
.optional-scope-drawer .drawer-hint {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate-500);
  white-space: nowrap;
}
.optional-scope-drawer[open] > summary {
  border-bottom: 1px solid var(--slate-200);
  background: var(--white);
}
.optional-scope-body {
  padding: 16px;
}
.file-input-control {
  min-height: 44px;
  padding: 8px;
}

/* Contractor Signup Step Pills & Password Toggle */
.signup-section-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-200);
}
.signup-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.82rem;
  font-weight: 700;
}
.signup-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.72rem;
}
.signup-pill:hover,
.signup-pill.is-active {
  background: var(--blue-soft);
  border-color: var(--brand-cobalt);
  color: var(--navy-900);
}
.signup-step-heading {
  font-size: 1.25rem;
  margin-bottom: 16px;
  scroll-margin-top: 96px;
}
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrap input {
  padding-right: 68px;
}
.password-toggle-btn {
  position: absolute;
  right: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--slate-300);
  background: var(--slate-50);
  color: var(--slate-700);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.password-toggle-btn:hover {
  background: var(--white);
  border-color: var(--brand-cobalt);
}

/* Empty State Cards & Loading Button States */
.empty-state-card {
  text-align: center;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty-state-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--brand-cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.empty-state-card h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}
.empty-state-card p {
  max-width: 52ch;
  margin: 0 0 8px;
  color: var(--slate-600);
  font-size: 0.92rem;
}
.magic-link-box {
  background: var(--slate-50);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  font-size: 0.85rem;
}
.btn.is-loading {
  opacity: 0.82;
  cursor: wait;
  position: relative;
}
.btn.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -2px;
  animation: rcmn-spin 0.7s linear infinite;
}
@keyframes rcmn-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 640px) {
  .signup-section-pills {
    grid-template-columns: repeat(2, 1fr);
  }
  .optional-scope-drawer > summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Header Contractor Quick CTA, 2-Step Contractor Signup Wizard, /pros Filter Bar & Stacked Mobile Rate Cards */
.mobile-pro-join-btn {
  display: none;
  padding: 6px 11px;
  min-height: 40px;
  font-size: 0.78rem;
  white-space: nowrap;
}
@media (max-width: 1220px) {
  .mobile-pro-join-btn {
    display: inline-flex;
  }
}
.signup-wizard-pills {
  grid-template-columns: repeat(2, 1fr);
}
button.signup-pill {
  cursor: pointer;
  font-family: inherit;
}
.signup-flow-card.js-csignup-ready .csignup-nojs-sep {
  display: none;
}
.csignup-nav-row {
  margin-top: 18px;
}
.csignup-submit-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.csignup-submit-row .btn-block {
  flex: 1;
  min-width: 220px;
}
.pros-filter-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.pros-filter-bar input,
.pros-filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-900);
  font-size: 0.94rem;
}
@media (max-width: 720px) {
  .pros-filter-bar {
    grid-template-columns: 1fr;
  }
  .responsive-rate-table,
  .responsive-rate-table thead,
  .responsive-rate-table tbody,
  .responsive-rate-table tr,
  .responsive-rate-table td {
    display: block;
    width: 100%;
  }
  .responsive-rate-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .responsive-rate-table tr {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
  }
  .responsive-rate-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px dashed var(--slate-200);
    text-align: right;
  }
  .responsive-rate-table td:first-child {
    display: block;
    text-align: left;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--slate-200);
  }
  .responsive-rate-table td:last-child {
    border-bottom: 0;
  }
  .responsive-rate-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--slate-600);
    text-align: left;
    flex-shrink: 0;
  }
  .responsive-rate-table td:first-child::before {
    display: none;
  }
}

/* Print Claim Summary Rules */
@media print {
  .trust-bar,
  .site-announcement-bar,
  .site-header,
  .sub-service-bar,
  .site-footer,
  .mobile-sticky-cta,
  .site-helper-widget,
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    break-inside: avoid;
  }
}

/* --- Sitewide Announcement Banner, Dynamic State Statutory Box & Interactive First-Time Helper --- */
.site-announcement-bar {
  background: linear-gradient(90deg, #0d56cc 0%, #126dfa 50%, #0a46a8 100%);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.site-announcement-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}
.site-announcement-cta {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
}
.site-announcement-cta:hover {
  background: var(--brand-amber-soft);
  color: var(--navy-900);
}

.state-law-dynamic-box {
  margin: 10px 0 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--brand-cobalt);
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--slate-700);
}
.state-law-dynamic-box[data-active-state="WI"] {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: var(--emerald-600);
}
.state-law-dynamic-box a {
  font-weight: 700;
  text-decoration: underline;
}

.nav-helper-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--blue-soft);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}
.nav-helper-btn:hover {
  border-color: var(--brand-cobalt);
  background: var(--white);
}
.nav-helper-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand-cobalt);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
}
@media (max-width: 640px) {
  .nav-helper-label {
    display: none;
  }
}

.footer-helper-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}
.footer-helper-btn:hover {
  border-color: #7cc4ff;
  color: #ffffff;
}

.site-helper-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 356px;
  max-width: calc(100vw - 28px);
  background: var(--white);
  color: var(--slate-900);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 140;
  overflow: hidden;
}
.site-helper-header {
  background: var(--navy-900);
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.site-helper-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.site-helper-badge {
  background: var(--brand-gold);
  color: var(--navy-900);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.site-helper-heading {
  font-size: 0.88rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-helper-icon-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}
.site-helper-icon-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}
.site-helper-body {
  padding: 14px 16px;
}
.site-helper-step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.site-helper-step-counter {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-cobalt);
}
.site-helper-dots {
  display: flex;
  gap: 6px;
}
.site-helper-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--slate-300);
  cursor: pointer;
}
.site-helper-dot.is-active {
  width: 20px;
  background: var(--brand-cobalt);
}
.site-helper-step-title {
  font-size: 0.98rem;
  margin: 0 0 6px;
  color: var(--slate-900);
}
.site-helper-step-desc {
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--slate-600);
  margin: 0 0 12px;
}
.site-helper-nav-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.site-helper-nav-row .btn {
  flex: 1;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.82rem;
}
.site-helper-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--slate-200);
  font-size: 0.78rem;
}
.site-helper-pdf-link {
  font-weight: 700;
  color: var(--navy-800);
}
.site-helper-off-btn {
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.site-helper-off-btn:hover {
  background: var(--danger-soft);
  color: var(--danger-700);
  border-color: var(--danger-border);
}
@media (max-width: 768px) {
  .site-helper-widget {
    right: 12px;
    bottom: 76px;
    width: calc(100vw - 24px);
  }
}
