:root {
  --bg: #F7F8F6;
  --surface: #FFFFFF;
  --surface-2: #F1F4F1;
  --surface-3: #E2E8F0;
  --accent: #D9622B;
  --accent-soft: #FDF3ED;
  --accent-hover: #BF4F1D;
  --accent-cool: #3A5A6B;
  --accent-cool-soft: #EEF4F7;
  --accent-cool-hover: #2D4755;
  --text: #12171C;
  --text-muted: #334155;
  --text-faint: #475569;
  --border: #CBD5E1;
  --border-subtle: #E2E8F0;
  --warn: #D97706;
  --radius: 6px;
  --radius-sm: 4px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 20px 80px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 246, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  width: 100%;
}
.site-header .inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 52px; max-height: 56px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
nav.main-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
nav.main-nav a { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s ease; display: inline-flex; align-items: center; gap: 4px; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--accent); font-weight: 600; }
nav.main-nav svg { width: 14px; height: 14px; }

/* ---------- Navigation Dropdown ---------- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--accent);
  font-weight: 600;
}
.dropdown-caret {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.nav-dropdown.open .dropdown-caret,
.nav-dropdown:hover .dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  padding: 4px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  list-style: none;
  min-width: 260px;
  z-index: 100;
  display: none;
  overflow: hidden;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
  width: 100%;
}
.nav-dropdown-menu a {
  display: block;
  width: 100%;
  padding: 12px 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background-color: var(--surface-2);
  color: var(--accent);
  font-weight: 600;
}

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
@media(max-width: 860px) {
  .site-header .inner { padding: 12px 16px; }
  .brand img { height: 44px; }
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; padding: 16px 20px; gap: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); z-index: 99;
  }
  nav.main-nav.open, nav.main-nav.show { display: flex; }
  nav.main-nav a { padding: 12px 0; width: 100%; display: block; border-bottom: 1px solid var(--border); }
  nav.main-nav a:last-child { border-bottom: none; }

  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown-toggle {
    width: 100%;
    padding: 12px 0;
    justify-content: space-between;
    font-size: 14.5px;
  }
  .nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    margin-top: 0;
    padding: 0 0 8px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 100%;
    width: 100%;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
  }
  .nav-dropdown-menu a {
    padding: 8px 0;
    font-size: 13.5px;
    border-bottom: none;
  }

  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero-section { padding: 16px 0 32px; }
.hero-compact { text-align: center; margin-bottom: 24px; }
.hero-compact-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; margin: 0 0 6px; color: var(--text); }
.hero-compact-sub { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.trust-bullets { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }
.trust-bullets span { display: flex; align-items: center; gap: 6px; }
.trust-bullets svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ---------- Layout Grid ---------- */
.calculator-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: flex-start;
  text-align: left;
}
.calculator-grid.advisor-full-view {
  grid-template-columns: 1fr !important;
  max-width: 1040px !important;
}
.calculator-grid.advisor-full-view .calc-sidebar,
.calculator-grid.advisor-full-view .top-progress-card {
  display: none !important;
}
@media(max-width: 760px) {
  .calculator-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-compact {
    margin-bottom: 16px !important;
  }
  .top-progress-card {
    padding: 12px 16px !important;
    gap: 10px !important;
  }
  .top-progress-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
  .calc-sidebar {
    display: none !important;
  }
}
.calculator-col { display: flex; flex-direction: column; }

/* ---------- Card ---------- */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 36px;
  position: relative;
  margin-bottom: 24px;
  border: 1.5px solid var(--border);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.02);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:focus-within {
  border-color: rgba(217, 98, 43, 0.4);
  box-shadow: 0 15px 35px -5px rgba(217, 98, 43, 0.12), 0 0 0 1px rgba(217, 98, 43, 0.08);
}
@media(max-width: 560px) {
  .card { padding: 20px 16px; }
}

/* ---------- Sidebar & Progress ---------- */
.calc-sidebar {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
  position: sticky;
  top: 90px;
}
.sidebar-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: not-allowed;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}
.sidebar-step#lbl4 { border-bottom: none; }
.sidebar-step.done { cursor: pointer; }
.sidebar-step.done:hover { background: var(--surface-2); }
.side-circ {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-faint);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--border);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.sidebar-step.done .side-circ { background: var(--surface-2); color: var(--text); border-color: #CBD5E1; }
.sidebar-step.active { background: var(--accent-soft); border-left: 4px solid var(--accent); }
.sidebar-step.active .side-circ { background: linear-gradient(135deg, #D9622B 0%, #BF4F1D 100%); color: #ffffff; border-color: var(--accent); box-shadow: 0 4px 12px rgba(217, 98, 43, 0.3); }
.side-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--text); line-height: 1.25; }
.side-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.sidebar-step.active .side-title { color: var(--accent); }
.sidebar-step.active .side-sub { color: #bf4f1d; }
.side-pointer {
  position: absolute; right: -8px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 16px; height: 16px; background: var(--accent-soft); border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent);
  opacity: 0; transition: opacity 0.2s ease; z-index: 5;
}
.sidebar-step.active .side-pointer { opacity: 1; }
.top-circle {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--text-faint);
  display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  z-index: 10;
}
.top-circle.done { background: var(--surface-2); color: var(--text); border-color: #CBD5E1; cursor: pointer; }
.top-circle.active { background: var(--accent); color: #ffffff; border-color: var(--accent); }

/* ---------- Sidebar Advisor Card (Step 5 only) ---------- */
.sidebar-advisor-card {
  border-top: 1px solid var(--border);
  padding: 20px 18px;
  animation: sidebarAdvisorFadeIn 0.4s ease-out;
}
@keyframes sidebarAdvisorFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sidebar-advisor-inner {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}
.sidebar-advisor-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.sidebar-advisor-avatars img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}
.sidebar-advisor-avatars img + img {
  margin-left: -10px;
}
.sidebar-advisor-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}
.sidebar-advisor-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 14px;
}
.sidebar-advisor-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  background: #ea580c;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.2);
}
.sidebar-advisor-cta:hover {
  background: #c2410c;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}
.sidebar-advisor-cta svg {
  flex-shrink: 0;
}


.calc-sidebar.advisor-only .sidebar-step {
  display: none !important;
}
.calc-sidebar.advisor-only .sidebar-advisor-card {
  border-top: none;
  padding: 20px 16px;
}
.calc-sidebar.advisor-only .sidebar-advisor-inner {
  padding: 24px 20px;
}
.calc-sidebar.advisor-only .sidebar-advisor-avatars img {
  width: 52px;
  height: 52px;
}
.calc-sidebar.advisor-only .sidebar-advisor-headline {
  font-size: 16px;
  margin-bottom: 8px;
}
.calc-sidebar.advisor-only .sidebar-advisor-sub {
  font-size: 13.5px;
  margin-bottom: 18px;
}
.calc-sidebar.advisor-only .sidebar-advisor-cta {
  padding: 13px 16px;
  font-size: 14.5px;
}

/* Large L x W inputs */
.sub-calc-row {
  display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e5e7eb;
}
.sub-calc-text { font-size: 13.5px; color: var(--text-muted); }
.sub-calc-inputs {
  display: flex; align-items: flex-end; gap: 12px;
}
.sub-input-group label { font-size: 11px; color: var(--text-faint); margin-bottom: 4px; display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.sub-input-group input { 
  width: 80px; padding: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 600; 
  border: 1.5px solid var(--border); border-radius: var(--radius); outline: none; text-align: center; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.sub-input-group input:focus { border-color: var(--accent); }
.sub-calc-inputs .times { font-size: 18px; color: var(--text-muted); padding-bottom: 12px; }
.sub-calc-result { font-size: 24px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--accent); padding-bottom: 4px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.sub-calc-tip { font-size: 12px; color: var(--text-muted); background: #fffbeb; padding: 10px 14px; border-radius: var(--radius); display: inline-block; margin-top: 8px; border: 1px solid #fef3c7; }
.sqft-main-input input { font-size: 32px !important; color: var(--text) !important; font-family: 'Space Grotesk', sans-serif !important; height: 64px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.step { display: none; }
.step.active {
  display: block;
  animation: stepSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 20px; margin: 0 0 4px; }
.step-sub { color: var(--text-muted); font-size: 13.5px; margin: 0 0 18px; }

/* ---------- Option cards ---------- */
.option-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media(max-width: 560px) { .option-grid { grid-template-columns: 1fr; } }
.option-grid.two { grid-template-columns: 1fr 1fr; }
@media(max-width: 560px) { .option-grid.two { grid-template-columns: 1fr; } }

.opt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
  color: var(--text);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}
.opt:hover {
  border-color: var(--accent);
  box-shadow: none;
}
.opt.selected {
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  padding: 17.5px 15.5px;
  box-shadow: none;
}
.opt .opt-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; display: block; color: var(--text); }
.opt.selected .opt-title { color: #9a3412; }
.opt .opt-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; display: block; }
.opt .opt-icon-svg {
  width: 26px; height: 26px; margin-bottom: 10px; display: block; color: var(--text-muted);
  transition: color .15s ease;
}
.opt:hover .opt-icon-svg,
.opt.selected .opt-icon-svg {
  color: var(--accent);
}

/* ---------- Form fields ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.num-input {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: all .2s ease;
}
.num-input input {
  flex: 1; background: transparent; border: none; outline: none; color: var(--text);
  font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 600; padding: 12px 14px; width: 100%;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.num-input .suffix { padding: 0 14px; color: var(--text-muted); font-size: 13px; font-family: 'IBM Plex Mono', monospace; border-left: 1px solid var(--border); }
.num-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ---------- Checkbox add-ons ---------- */
.addon-list { display: flex; flex-direction: column; gap: 8px; }
.addon {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 14px 14px;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
  box-shadow: none;
}
.addon:hover { border-color: var(--accent); box-shadow: none; background: var(--surface); }
.addon.checked {
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  padding: 13.5px 13.5px;
  box-shadow: none;
}
.addon.checked .addon-title { color: #9a3412; }
.addon input { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
.addon .addon-title { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.addon .addon-desc { font-size: 12px; color: var(--text-muted); }
.addon .addon-cost { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); white-space: nowrap; padding-left: 8px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* ---------- Contact field ---------- */
.contact-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}
.contact-field label {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.contact-field input, .contact-field select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: all .2s ease;
}
.contact-field input:focus, .contact-field select:focus {
  border-color: var(--accent);
}
.field-error {
  display: none;
  color: #dc2626;
  font-size: 12.5px;
  margin-top: 5px;
  font-weight: 500;
}
.field-error.show {
  display: block;
}

/* ---------- Nav buttons & CTAs ---------- */
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }

.submit-btn, .btn-primary {
  background: linear-gradient(135deg, #D9622B 0%, #BF4F1D 100%) !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 13px 26px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(217, 98, 43, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
}
.submit-btn:hover, .btn-primary:hover {
  background: linear-gradient(135deg, #F97316 0%, #D9622B 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(217, 98, 43, 0.45) !important;
}
.submit-btn:active, .btn-primary:active {
  transform: translateY(0) !important;
}

.back-btn, .btn-ghost {
  background: var(--surface-2) !important;
  color: var(--text-muted) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 20px !important;
  border-radius: 10px !important;
  border: 1.5px solid var(--border) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}
.back-btn:hover, .btn-ghost:hover {
  background: #E2E8F0 !important;
  color: var(--text) !important;
  border-color: #94A3B8 !important;
  transform: translateY(-1px) !important;
}
.btn:disabled, .submit-btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ---------- Results ---------- */
.result-hero { text-align: center; padding: 6px 0 20px; }
.result-eyebrow { 
  font-family: 'Inter', sans-serif; 
  font-size: 12px; 
  font-weight: 600; 
  color: var(--text-muted); 
  margin-bottom: 6px; 
}
.result-range {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(32px, 6vw, 46px); letter-spacing: -0.01em; line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.result-typical { color: var(--text-muted); font-size: 13.5px; margin-top: 6px; }
.result-typical strong { 
  color: var(--text); 
  font-family: 'Space Grotesk', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.breakdown { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 16px 0; }
.b-row { display: flex; justify-content: space-between; padding: 10px 2px; font-size: 13px; border-bottom: 1px solid var(--border); }
.b-row:last-child { border-bottom: none; }
.b-row .b-label { color: var(--text-muted); }
.b-row .b-val { 
  font-family: 'Inter', sans-serif; 
  font-weight: 600; 
  color: var(--text);
  font-variant-numeric: tabular-nums; 
  letter-spacing: 0.01em;
}

/* Data Tables */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 16px 0 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cost-table thead {
  background: #243b4a;
}
.cost-table th {
  background: #243b4a;
  color: #FFFFFF !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 13px 18px;
  border: none;
  text-align: left;
}
.cost-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: 14.5px;
  vertical-align: middle;
}
.cost-table tbody tr:last-child td {
  border-bottom: none;
}
.cost-table tbody tr:nth-child(even) {
  background: #F8FAF9;
}
.cost-table tbody tr:hover td {
  background: #EEF4F7;
}

/* Accordion (FAQ Section) */
.accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.accordion-item {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.accordion-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.accordion-heading {
  margin: 0 0 10px 0;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  line-height: 1.4;
}

.accordion-title {
  width: 100%;
  display: block;
  padding: 0;
  background: transparent !important;
  border: none;
  cursor: default !important;
  pointer-events: none !important;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.accordion-icon {
  display: none !important;
}

.accordion-content {
  display: block !important;
  max-height: none !important;
  opacity: 1 !important;
  padding: 0;
  background: transparent;
  color: var(--text-muted, #475569);
  font-size: 15px;
  line-height: 1.65;
}

.accordion-content p {
  margin: 0;
  color: inherit;
}

/* Content Sections Styling */
.content-section {
  max-width: 960px;
  margin: 40px auto 0;
  padding: 0 20px;
  text-align: left;
}
.content-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 16px;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 8px;
}
.content-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 600;
  color: var(--accent-cool-hover);
  margin: 24px 0 12px;
}
.content-section p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Loading animation */
.loader-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0 24px; text-align: center;
}
.loader-visual {
  position: relative; width: 90px; height: 90px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center;
}
.loader-ring {
  position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent-soft); animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.loader-pulse {
  position: absolute; width: 100%; height: 100%; background: var(--accent-soft); border-radius: 50%; animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite; z-index: 0;
}
.loader-icon { position: relative; z-index: 10; width: 36px; height: 36px; color: var(--accent); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse-ring { 0% { transform: scale(0.7); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }
.loading-status-text { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 12px; }

/* ZIP detection */
.zip-lookup-row { display: flex; flex-direction: column; gap: 8px; position: relative; }
.zip-input-row { display: flex; align-items: center; gap: 10px; position: relative; }
.zip-lookup-row input {
  flex: 1; min-width: 0; padding: 13px 50px 13px 44px; border: 1.5px solid var(--border); border-radius: 40px; font-size: 16px; font-family: 'IBM Plex Mono', monospace; font-weight: 600; letter-spacing: 0.08em; color: var(--text); background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.zip-lookup-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(217, 98, 43, 0.10); }
.zip-input-row::before {
  content: ''; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; pointer-events: none; z-index: 2;
}
.zip-detect-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--accent); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: all 0.2s; z-index: 2;
}
.zip-status { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 20px; white-space: nowrap; display: inline-block; align-self: flex-start; }
.zip-status--loading { color: #92400e; background: #fef3c7; }
.zip-status--success { color: #065f46; background: #d1fae5; }
.zip-status--error { color: #991b1b; background: #fee2e2; }

/* Zone detected card */
.zone-detected-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 12px; margin-bottom: 4px; border: 1.5px solid transparent; }
.zone-detected-card.zone-warm { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border-color: #fed7aa; }
.zone-detected-card.zone-hot { background: linear-gradient(135deg, #fff7ed 0%, #fee2d5 100%); border-color: #fca68a; }
.zone-detected-card.zone-mild { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #bbf7d0; }
.zone-detected-card.zone-cool { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color: #bfdbfe; }
.zone-detected-card.zone-cold { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); border-color: #c7d2fe; }

.zone-num-badge { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 800; flex-shrink: 0; color: #fff; }
.zone-warm .zone-num-badge { background: linear-gradient(135deg, #fb923c, #D9622B); }
.zone-hot .zone-num-badge { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.zone-mild .zone-num-badge { background: linear-gradient(135deg, #34d399, #16a34a); }
.zone-cool .zone-num-badge { background: linear-gradient(135deg, #60a5fa, #3A5A6B); }
.zone-cold .zone-num-badge { background: linear-gradient(135deg, #818cf8, #4338ca); }
.zone-card-info { flex: 1; min-width: 0; }
.zone-card-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px; }
.zone-card-name { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.2; }
.zone-card-code { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.zone-select {
  width: 100%; padding: 11px 36px 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; color: var(--text); background: #fff; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer;
}

#rvalueOptions.option-grid { gap: 12px; }
#rvalueOptions .opt { padding: 20px 16px 16px; border-radius: 10px; border-width: 1.5px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
#rvalueOptions .opt.selected { border-color: var(--accent); background: var(--accent-soft); }
#rvalueOptions .opt .opt-title { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 4px; color: var(--text); }
#rvalueOptions .opt.selected .opt-title { color: var(--accent); }
#rvalueOptions .opt .opt-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
#rvalueOptions .opt .rval-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; background: var(--surface-2); color: var(--text-faint); }
#rvalueOptions .opt.selected .rval-badge { background: rgba(217,98,43,0.12); color: var(--accent); }

/* ═══ Contractor Finder Section ═══ */
.contractor-finder {
  background: var(--accent-cool-soft);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: none;
  margin-top: 20px;
}
.cf-header { margin-bottom: 18px; }
.cf-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--text); margin: 0 0 6px;
}
.cf-sub { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.cf-search-row {
  display: flex; align-items: center; gap: 10px;
  max-width: 400px; margin: 0 auto;
}
.cf-input-wrap {
  flex: 1; position: relative; display: flex; align-items: center;
}
.cf-input-icon {
  position: absolute; left: 14px; color: #94a3b8;
  pointer-events: none; z-index: 1;
}
.cf-input-wrap input {
  width: 100%; padding: 11px 14px 11px 42px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 14px;
  font-weight: 500; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
  background: #fff; transition: border-color 0.15s ease;
  outline: none;
}
.cf-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 98, 43, 0.15);
}
.cf-search-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; border: none;
  padding: 11px 18px; border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease;
  box-shadow: none;
}
.cf-search-btn:hover { background: var(--accent-hover); }
.cf-search-btn:active { transform: translateY(1px); }

/* Step 6 Contractor Directory Header */
.cf-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cf-back-btn {
  background: none;
  border: none;
  color: var(--accent-cool);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.cf-back-btn:hover {
  color: var(--accent-cool-hover);
  text-decoration: underline;
}
.cf-live-badge, .cf-custom-badge {
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 100px;
}
.cf-results-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}
.cf-results-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

/* Matched Contractors Grid */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.step[data-step="6"] .business-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.business-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  transition: all 0.2s ease;
}
.business-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.05);
  transform: translateY(-1px);
}
.business-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.business-name {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.3;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #D1FAE5;
  color: #065F46;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.business-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.business-stars {
  color: #F59E0B;
}
.business-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}
.business-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.business-cta-row .btn {
  flex: 1;
  font-size: 12.5px;
  padding: 8px 12px;
  min-height: 38px;
}

/* Unserved ZIP Lead Capture Form */
.unserved-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
}
.unserved-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 10px;
}
.unserved-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 24px;
}
.unserved-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.unserved-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.unserved-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.unserved-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.unserved-field input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.unserved-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 98, 43, 0.15);
}
.unserved-summary {
  display: flex;
  gap: 24px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
}
.unserved-summary strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.unserved-submit {
  font-size: 15px !important;
  padding: 13px 24px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  width: 100%;
}
.unserved-success {
  background: #dcfce7;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.4;
}

/* R-value Visual Bars */
.rval-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 48px;
  margin-bottom: 12px;
}
.rval-visual .bar {
  width: 10px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  opacity: 0.25;
  transform-origin: bottom;
  animation: barGrow 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.rval-visual .bar:nth-child(1) { opacity: 0.30; animation-delay: 0.04s; }
.rval-visual .bar:nth-child(2) { opacity: 0.60; animation-delay: 0.12s; }
.rval-visual .bar:nth-child(3) { opacity: 1.00; animation-delay: 0.20s; }
@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* ═══ Result Section Divider ═══ */
.result-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

/* ═══ Contact Form Wrapper ═══ */
.contact-form-wrap {
  max-width: 480px;
  margin: 0 auto;
}

/* ═══ Attic Illustration Container ═══ */
.attic-illustration {
  text-align: center;
  overflow: hidden;
}

/* ═══ ZIP Button Loading / Success States ═══ */
.zip-detect-btn.is-loading {
  background: var(--accent-cool);
  cursor: wait;
}
.zip-detect-btn.is-success {
  background: #16a34a;
}
.zip-spinner {
  animation: spin 0.75s linear infinite;
}

/* ═══ Advisor Call Button (Step 3) ═══ */
/* COS-1 fix: was inline-only; CSS class enables hover states and future overrides */
.advisor-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  text-decoration: none;
  width: 100%;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.advisor-call-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(217, 98, 43, 0.25);
  color: #fff;
}

/* ---------- Data Tables & Pricing Comparison ---------- */
.comparison-table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: none;
  text-align: left;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comparison-table-wrapper h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

div[style*="overflow-x: auto"] {
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 16px 0 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cost-table thead {
  background: #243b4a;
}
.cost-table th {
  background: #243b4a;
  color: #FFFFFF !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 13px 18px;
  border: none;
  text-align: left;
}
.cost-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: 14.5px;
  vertical-align: middle;
}
.cost-table tbody tr:last-child td {
  border-bottom: none;
}
.cost-table tbody tr:nth-child(even) {
  background: #F8FAF9;
}
.cost-table tbody tr:hover td {
  background: #EEF4F7;
}
.cost-table td strong {
  color: #12171C;
  font-weight: 600;
}
.cost-val,
.cost-table td.cost-val {
  color: #9A3412 !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ==========================================================================
   Modern Premium Site Footer (Global Unified Styling)
   ========================================================================== */
footer.site-footer,
.site-footer {
  background: #0F172A !important;
  color: #94A3B8 !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  border-top: 3px solid var(--accent, #D9622B);
  padding: 64px 0 0 !important;
  margin-top: 80px;
  text-align: left;
}

footer.site-footer .site-footer-inner,
.site-footer .site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

footer.site-footer .footer-grid,
.site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 48px !important;
  padding-bottom: 48px !important;
  border-bottom: 1px solid #1E293B !important;
  margin-bottom: 0 !important;
}

footer.site-footer .footer-brand,
.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

footer.site-footer .footer-logo,
.site-footer .footer-logo {
  height: 44px !important;
  width: auto !important;
  display: inline-block !important;
  background: #FFFFFF !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

footer.site-footer a:hover .footer-logo,
.site-footer a:hover .footer-logo {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

footer.site-footer .footer-tagline,
.site-footer .footer-tagline {
  color: #94A3B8 !important;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
  max-width: 360px;
}

footer.site-footer .footer-col-title,
.site-footer .footer-col-title {
  color: #F8FAFC !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 20px 0;
}

footer.site-footer .footer-links,
.site-footer .footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

footer.site-footer .footer-links li,
.site-footer .footer-links li {
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

footer.site-footer .footer-links a,
.site-footer .footer-links a {
  color: #94A3B8 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

footer.site-footer .footer-links a:hover,
.site-footer .footer-links a:hover {
  color: #F8FAFC !important;
  transform: translateX(4px);
}

footer.site-footer .footer-links a svg,
.site-footer .footer-links a svg {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: var(--accent, #D9622B) !important;
}

footer.site-footer .footer-links a:hover svg,
.site-footer .footer-links a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

footer.site-footer .footer-bottom,
.site-footer .footer-bottom {
  padding: 24px 0 !important;
  border-top: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  font-size: 12.5px !important;
  color: #64748B !important;
}

footer.site-footer .footer-bottom a,
.site-footer .footer-bottom a {
  color: #64748B !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer.site-footer .footer-bottom a:hover,
.site-footer .footer-bottom a:hover {
  color: #94A3B8 !important;
}





@media (max-width: 900px) {
  footer.site-footer .footer-grid,
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 36px !important;
  }
  footer.site-footer .footer-brand,
  .site-footer .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  footer.site-footer,
  .site-footer {
    padding-top: 48px !important;
  }
  footer.site-footer .footer-grid,
  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  footer.site-footer .footer-brand,
  .site-footer .footer-brand {
    grid-column: span 1;
  }
  footer.site-footer .footer-bottom,
  .site-footer .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }
}

footer.site-footer .back-to-top,
.site-footer .back-to-top,
.back-to-top {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 9999 !important;
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #1E293B !important;
  color: #F8FAFC !important;
  border: 1.5px solid #334155 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

footer.site-footer .back-to-top:hover,
.site-footer .back-to-top:hover,
.back-to-top:hover {
  background: var(--accent, #D9622B) !important;
  color: #FFFFFF !important;
  border-color: var(--accent, #D9622B) !important;
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 12px 28px rgba(217, 98, 43, 0.45) !important;
}

footer.site-footer .back-to-top svg,
.site-footer .back-to-top svg,
.back-to-top svg {
  width: 18px !important;
  height: 18px !important;
}

/* ── Related Calculators Cards ── */
.calc-cards-section {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 26px;
  margin: 40px auto 0;
  max-width: 1040px;
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.04);
}
.calc-cards-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.calc-cards-lead {
  font-size: 14px;
  color: var(--text-faint);
  margin: 0 0 24px;
  line-height: 1.5;
}
.calc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.calc-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none !important;
  color: var(--text) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}
.calc-card:hover {
  box-shadow: 0 12px 30px -5px rgba(217, 98, 43, 0.15);
  transform: translateY(-3px);
  border-color: var(--accent);
  text-decoration: none !important;
}
.calc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.calc-icon-attic { background: var(--accent-soft); color: var(--accent); }
.calc-icon-blown { background: var(--accent-cool-soft); color: var(--accent-cool); }
.calc-icon-spray { background: #f0fdf4; color: #16a34a; }
.calc-icon-wall  { background: #f5f0ff; color: #7c3aed; }

.calc-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.calc-card-desc {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}
.calc-card-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none !important;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}
.calc-card:hover .calc-card-cta {
  transform: translateX(3px);
  color: #bf4f1d;
}
