@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-light: #eef2ff;
  --indigo-border: #c7d2fe;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --green: #10b981;
  --green-light: #ecfdf5;
  --green-border: #a7f3d0;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;
  --blue-600: #2563eb;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--slate-100);
  color: var(--slate-900);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ───────────────────────────────────── */
header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo a { text-decoration: none; display: flex; align-items: center; gap: 10px; }

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--indigo);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: white;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.logo-name,
.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
  display: block;
  margin: 0;
}

.logo-sub,
.logo-text span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
}

nav { display: flex; gap: 2px; flex-wrap: nowrap; align-items: center; overflow: visible; }

nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

nav a:hover { background: rgba(255,255,255,0.08); color: white; }
nav a.active { background: var(--indigo); color: white; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  color: white;
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79,70,229,0.2);
  border: 1px solid rgba(79,70,229,0.4);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero h1 span { color: #818cf8; }

.hero p {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 480px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat .stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.hero-stat .stat-label {
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 500;
}

.hero-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  align-self: center;
}

/* ── Page hero ────────────────────────────────── */
.page-hero {
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
  color: white;
  padding: 40px 24px 44px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.breadcrumb {
  font-size: 0.75rem;
  color: var(--slate-400);
  margin-bottom: 14px;
  font-weight: 500;
}

.breadcrumb a { color: var(--slate-400); text-decoration: none; }
.breadcrumb a:hover { color: white; }

.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.page-hero p { font-size: 1rem; color: #94a3b8; max-width: 560px; margin-bottom: 20px; }
.page-hero p strong { color: #c7d2fe; font-weight: 700; }

/* Hero CTA button inside page hero */
.hero-cta-btn {
  display: inline-block;
  background: var(--indigo);
  color: white;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  letter-spacing: 0.1px;
}

.hero-cta-btn:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
}

/* ── Trust strip ──────────────────────────────── */
.trust-strip {
  background: white;
  border-bottom: 1px solid var(--slate-200);
  border-top: 1px solid var(--slate-200);
  padding: 10px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.trust-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-500);
  min-height: 44px;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.trust-highlight {
  background: var(--indigo-light);
  border: 1px solid var(--indigo-border);
  color: var(--indigo);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.75rem;
}

/* ── Main layout ──────────────────────────────── */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
}

.sticky-sidebar-top {
  position: sticky;
  top: 80px;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  /* On mobile, sidebar appears after prose */
  .sidebar { order: 2; }
  .prose { order: 1; }
  /* On mobile, lead form renders above calculator */
  .quote-widget { order: -1; }
  .calc-widget  { order: 0; }
  /* Sticky calc doesn't work on mobile */
  .sticky-sidebar-top { position: static; }
  .header-inner { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  main { padding: 24px 16px 100px; }
}

/* ── Cards ────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid var(--slate-200);
}

.card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--slate-900);
  letter-spacing: -0.2px;
}

/* ── Quote card ───────────────────────────────── */
.quote-card {
  border: 2px solid var(--indigo-border);
  background: linear-gradient(160deg, #fff 0%, #f8f9ff 100%);
}

.quote-trust-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--indigo);
  background: var(--indigo-light);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  margin-bottom: 16px;
}

.form-privacy {
  font-size: 0.72rem;
  color: var(--slate-400);
  text-align: center;
  margin-top: 10px;
}

.btn-cta {
  background: var(--indigo);
  font-size: 1rem;
  padding: 14px 16px;
  letter-spacing: 0.1px;
}

/* ── Prose ────────────────────────────────────── */
.prose .card { padding: 28px 32px; }

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--slate-900);
  letter-spacing: -0.3px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 6px;
  color: var(--slate-700);
}

.prose p {
  color: var(--slate-600);
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.prose a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose ul {
  margin: 0 0 16px 20px;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.prose ul li { margin-bottom: 8px; line-height: 1.6; }

/* ── Cost table ───────────────────────────────── */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 8px;
  font-size: 0.875rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.cost-table thead tr { background: #f8faff; }

.cost-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--slate-700);
  border-bottom: 2px solid var(--slate-200);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cost-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-600);
}

.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:hover td { background: var(--slate-100); }

.table-note {
  font-size: 0.78rem !important;
  color: var(--slate-400) !important;
  margin-top: 4px !important;
  margin-bottom: 20px !important;
}

/* ── Page link cards ──────────────────────────── */
.page-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.page-link-card {
  background: var(--slate-100);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--slate-900);
  transition: all 0.15s;
  display: block;
}

.page-link-card:hover {
  background: var(--indigo-light);
  border-color: var(--indigo-border);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.page-link-card .link-title {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 3px;
  color: var(--slate-900);
}

.page-link-card .link-sub {
  font-size: 0.77rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ── Calculator ───────────────────────────────── */
.calc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.calc-icon {
  width: 34px;
  height: 34px;
  background: var(--indigo-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.calc-header h2 { margin-bottom: 0; }
.calc-sub { font-size: 0.8rem; color: var(--slate-500); margin-bottom: 14px; }

.field { margin-bottom: 12px; }

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--slate-700);
  letter-spacing: 0.2px;
}

input, select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--slate-900);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

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

button.btn-primary {
  width: 100%;
  padding: 12px 16px;
  background: var(--indigo);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  margin-top: 4px;
  font-family: inherit;
  letter-spacing: 0.1px;
}

button.btn-primary:hover {
  background: var(--indigo-dark);
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
  transform: translateY(-1px);
}

button.btn-primary:active { transform: translateY(0); }

button.btn-primary:disabled {
  background: #a5b4fc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.result-box {
  display: none;
  background: linear-gradient(135deg, var(--indigo-light) 0%, #f0f0ff 100%);
  border: 1.5px solid var(--indigo-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 16px;
}

.result-box.visible { display: block; }

.result-box .result-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--indigo);
  margin-bottom: 4px;
}

.result-box .cost {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--indigo);
  letter-spacing: -1px;
  line-height: 1.1;
}

.result-box .range {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 5px;
  font-weight: 500;
}

.result-box .meta {
  font-size: 0.73rem;
  color: var(--slate-400);
  margin-top: 5px;
}

.error-msg {
  color: #dc2626;
  font-size: 0.825rem;
  margin-top: 10px;
  display: none;
  font-weight: 500;
}

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

.success-msg {
  background: var(--green-light);
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #065f46;
  font-size: 0.875rem;
  margin-top: 14px;
  display: none;
  font-weight: 500;
}

.success-msg.visible { display: block; }

/* ── Market note card ─────────────────────────── */
.market-note-card {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 18px 0;
}

.market-note-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.market-note-card p {
  color: #78350f !important;
  font-size: 0.875rem !important;
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}

/* ── Tier 3 inline permit note ────────────────── */
.permit-note {
  background: #f0f4ff;
  border-left: 3px solid #4f46e5;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 16px;
  margin: 20px 0;
  font-size: 0.875rem;
  color: var(--slate-700);
  line-height: 1.6;
}

/* ── Regulatory card ──────────────────────────── */
.regulatory-card {
  background: #f0f4ff;
  border: 1.5px solid #c7d2fe;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.reg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.reg-icon { font-size: 1.1rem; }

.regulatory-card h2 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #312e81 !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.regulatory-card > p {
  color: #3730a3 !important;
  font-size: 0.875rem !important;
  line-height: 1.7 !important;
  margin-bottom: 14px !important;
}

.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

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

.reg-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #4338ca;
  margin-bottom: 4px;
}

.reg-item p {
  font-size: 0.82rem !important;
  color: #4338ca !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

/* ── Tip card variants ────────────────────────── */
.tip-card {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1.5px solid;
}

.tip-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.tip-card p { font-size: 0.83rem; margin-bottom: 0; line-height: 1.6; }

.tip-amber { background: #fffbeb; border-color: #fde68a; }
.tip-amber .tip-title { color: #92400e; }
.tip-amber p { color: #78350f; }

.tip-green { background: #f0fdf4; border-color: #bbf7d0; }
.tip-green .tip-title { color: #14532d; }
.tip-green p { color: #166534; }

.tip-blue { background: #eff6ff; border-color: #bfdbfe; }
.tip-blue .tip-title { color: #1e40af; }
.tip-blue p { color: #1d4ed8; }

/* ── Nav card ─────────────────────────────────── */
.nav-card { padding: 20px 24px; }

.nav-link {
  display: block;
  color: var(--indigo);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 1px solid var(--slate-100);
  transition: color 0.12s;
}

.nav-link:last-child { border-bottom: none; }
.nav-link:hover { color: var(--indigo-dark); }

/* ── Section label ────────────────────────────── */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--indigo);
  margin-bottom: 8px;
}

/* ── Mobile sticky CTA bar ────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-cta-bar.visible { transform: translateY(0); }

.mobile-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-cta-text {
  display: flex;
  flex-direction: column;
}

.mobile-cta-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
}

.mobile-cta-text span {
  font-size: 0.72rem;
  color: var(--slate-400);
}

.mobile-cta-btn {
  background: var(--indigo);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .mobile-cta-bar { display: block; }
}

/* ── Footer ───────────────────────────────────── */
footer {
  background: var(--navy);
  color: var(--slate-400);
  padding: 48px 24px 32px;
  font-size: 0.825rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
}

.footer-brand .logo-icon { margin-bottom: 12px; }
.footer-brand p { color: var(--slate-400); line-height: 1.6; margin-top: 8px; }
.footer-brand .brand-name { font-size: 1rem; font-weight: 700; color: white; }

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate-400);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--slate-400);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.85rem;
  transition: color 0.15s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.775rem;
  color: var(--slate-500);
}

/* ── State hub page styles ────────────────────── */
.hub-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hub-table th { text-align: left; padding: 10px 14px; font-weight: 600; background: #f8faff; border-bottom: 2px solid var(--slate-200); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--slate-700); }
.hub-table td { padding: 10px 14px; border-bottom: 1px solid var(--slate-200); color: var(--slate-600); }
.hub-table tr:last-child td { border-bottom: none; }
.hub-table tr:hover td { background: var(--slate-100); }
.hub-table a { color: var(--indigo); text-decoration: none; font-weight: 600; }
.hub-table a:hover { text-decoration: underline; }

/* ── Homepage clickable category bar ─────────────── */
a.trust-item.cat-link {
  text-decoration: none;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  border: 1px solid transparent;
  font-size: 0.81rem;
  font-weight: 600;
  transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.14s;
  cursor: pointer;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
a.trust-item.cat-link:hover,
a.trust-item.cat-link:focus {
  background: var(--indigo-light);
  border-color: var(--indigo-border);
  color: var(--indigo);
  transform: translateY(-1px);
  outline: none;
}

/* ── "Why NumeralQ" homepage section ─────────────── */
.why-nq {
  background: linear-gradient(180deg, #fafafe 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--slate-200);
  padding: 60px 24px 56px;
}
.why-nq-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.why-nq-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 8px 0 12px;
  line-height: 1.25;
}
.why-nq-sub {
  font-size: 0.92rem;
  color: var(--slate-500);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: left;
}
.why-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--indigo-border);
}
.why-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--indigo-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
  line-height: 1;
}
.why-icon { font-size: 1.35rem; margin-bottom: 10px; line-height: 1; }
.why-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
  line-height: 1.3;
}
.why-card p { font-size: 0.82rem; color: var(--slate-500); line-height: 1.65; margin: 0; }
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-nq { padding: 40px 20px 36px; }
}
@media (max-width: 420px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ── Footer disclaimer ────────────────────────────── */
.footer-disclaimer {
  font-size: 0.71rem;
  color: var(--slate-500);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0 0;
  margin-top: 12px;
  line-height: 1.72;
}

/* ── FAQ Accordion (details/summary) ──────────────── */
.faq-list { border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
details.faq-item { border-bottom: 1px solid var(--slate-200); }
details.faq-item:last-child { border-bottom: none; }
summary.faq-q {
  cursor: pointer;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-900);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  user-select: none;
  transition: background 0.12s;
}
summary.faq-q::-webkit-details-marker { display: none; }
summary.faq-q::after { content: '+'; font-size: 1.1rem; font-weight: 400; color: var(--indigo); flex-shrink: 0; line-height: 1; }
details.faq-item[open] > summary.faq-q { background: var(--indigo-light); }
details.faq-item[open] > summary.faq-q::after { content: '−'; }
summary.faq-q:hover { background: var(--slate-100); }
.faq-body { padding: 4px 16px 16px; background: #fff; }
.faq-body p { font-size: 0.875rem; color: var(--slate-700); line-height: 1.75; margin: 0; }

/* ── Material cost comparison chart ───────────────── */
.chart-module {
  background: var(--slate-100);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
}
.chart-module-header {
  margin-bottom: 14px;
}
.chart-module-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
}
.chart-bars-list { display: flex; flex-direction: column; gap: 11px; }
.chart-bar-row {
  display: grid;
  grid-template-columns: 155px 1fr 80px;
  align-items: center;
  gap: 10px;
}
.chart-bar-label { min-width: 0; }
.chart-mat-name {
  display: block;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart-mat-note {
  display: block;
  font-size: 0.68rem;
  color: var(--slate-400);
  margin-top: 1px;
}
.chart-bar-track {
  height: 10px;
  background: var(--slate-200);
  border-radius: 5px;
  overflow: hidden;
}
.chart-bar-fill { height: 100%; border-radius: 5px; }
.chart-bar-val {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--slate-700);
  text-align: right;
  white-space: nowrap;
}
.chart-footnote {
  font-size: 0.7rem;
  color: var(--slate-400);
  margin-top: 12px;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .chart-bar-row { grid-template-columns: 110px 1fr 68px; gap: 7px; }
  .chart-mat-name { font-size: 0.75rem; }
}

/* ── Methodology trust badge ──────────────────────── */
.methodology-badge {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--indigo-light);
  border: 1px solid var(--indigo-border);
  border-radius: var(--radius);
  padding: 15px 18px;
  margin: 22px 0;
}
.methodology-badge-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.methodology-badge-body strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 5px;
}
.methodology-badge-body p { font-size: 0.81rem; color: var(--slate-600); line-height: 1.65; margin: 0; }
.methodology-link { color: var(--indigo); font-weight: 600; text-decoration: none; }
.methodology-link:hover { text-decoration: underline; }

/* ── Labor insight callout ────────────────────────── */
.labor-insight-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0fdf4;
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  margin: 14px 0;
}
.labor-insight-icon { flex-shrink: 0; font-size: 0.95rem; margin-top: 2px; }
.labor-insight-card p { margin: 0; font-size: 0.85rem; color: var(--slate-700); line-height: 1.65; }

/* ── Info / static page layout ────────────────────── */
.info-page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.info-page-wrap .card { padding: 32px 36px; }
.info-page-wrap h2 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--slate-900); }
.info-page-wrap h3 { font-size: 0.95rem; font-weight: 700; margin: 20px 0 8px; color: var(--slate-700); }
.info-page-wrap p { font-size: 0.9rem; color: var(--slate-700); line-height: 1.8; margin-bottom: 14px; }
.info-page-wrap ul { padding-left: 20px; margin-bottom: 14px; }
.info-page-wrap ul li { font-size: 0.875rem; color: var(--slate-700); line-height: 1.75; margin-bottom: 5px; }
.info-page-wrap .lead-para { font-size: 1rem; color: var(--slate-600); line-height: 1.8; border-left: 3px solid var(--indigo); padding-left: 16px; margin: 20px 0 24px; }
.info-page-wrap .info-callout {
  background: var(--indigo-light);
  border: 1px solid var(--indigo-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.875rem;
  color: var(--slate-700);
  line-height: 1.7;
}
@media (max-width: 600px) {
  .info-page-wrap .card { padding: 20px; }
}

/* ── Hero two-column layout (desktop) ────────────── */
.hero-layout {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { text-align: left; }
.hero-content .hero-badge { display: inline-flex; margin-bottom: 22px; }
.hero-content h1 { margin: 0 0 18px; max-width: 520px; }
.hero-content p { margin: 0 0 32px; max-width: 440px; }
.hero-content .hero-stats { justify-content: flex-start; }

/* ── Hero pricing panel ──────────────────────────── */
.hero-price-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 22px 22px 18px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.panel-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(148,163,184,0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.panel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.panel-row:last-of-type { border-bottom: none; }
.panel-city {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.panel-range {
  font-size: 0.74rem;
  color: rgba(148,163,184,0.8);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.panel-badge {
  font-size: 0.63rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.panel-high { background: rgba(245,158,11,0.18); color: #fbbf24; }
.panel-near { background: rgba(99,102,241,0.18); color: #a5b4fc; }
.panel-low  { background: rgba(16,185,129,0.18); color: #34d399; }
.panel-link {
  display: block;
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #818cf8;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 11px;
  transition: color 0.15s;
}
.panel-link:hover { color: #a5b4fc; }

@media (max-width: 880px) {
  .hero-layout { grid-template-columns: 1fr; gap: 0; }
  .hero-price-panel { display: none; }
  .hero-content { text-align: center; }
  .hero-content h1 { margin: 0 auto 18px; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-content .hero-stats { justify-content: center; }
}

/* ── Market snapshot strip ───────────────────────── */
/* ── Regional Pricing Index (redesigned two-column section) ── */
.rpi-section {
  background: white;
  border-bottom: 1px solid var(--slate-200);
  padding: 52px 24px;
}
.rpi-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.rpi-left .section-label { margin-bottom: 12px; }
.rpi-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.4px;
  margin: 0 0 14px;
  line-height: 1.25;
}
.rpi-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin: 0 0 22px;
}
.rpi-cta-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--indigo);
  text-decoration: none;
  margin-bottom: 20px;
}
.rpi-cta-link:hover { text-decoration: underline; }
.rpi-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rpi-tag {
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--slate-600);
  text-decoration: none;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  padding: 3px 9px;
  white-space: nowrap;
  transition: background 0.13s, border-color 0.13s, color 0.13s;
}
.rpi-tag:hover { background: var(--indigo-light); border-color: var(--indigo-border); color: var(--indigo); }
.rpi-rows { display: flex; flex-direction: column; gap: 16px; }
.rpi-row {
  display: grid;
  grid-template-columns: 130px 1fr 52px;
  align-items: center;
  gap: 14px;
}
.rpi-city {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-800);
}
.rpi-bar-wrap {
  height: 8px;
  background: var(--slate-100);
  border-radius: 99px;
  overflow: hidden;
}
.rpi-bar { height: 100%; border-radius: 99px; background: var(--indigo); }
.rpi-bar-neutral { background: var(--slate-300); }
.rpi-bar-low { background: var(--green); }
.rpi-pct {
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}
.rpi-pct-high { color: #d97706; }
.rpi-pct-near { color: var(--slate-500); }
.rpi-pct-low  { color: var(--green); }
.rpi-caption {
  font-size: 0.69rem;
  color: var(--slate-400);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
}
@media (max-width: 820px) {
  .rpi-inner { grid-template-columns: 1fr; gap: 28px; }
  .rpi-section { padding: 36px 20px; }
}
@media (max-width: 480px) {
  .rpi-row { grid-template-columns: 100px 1fr 46px; gap: 10px; }
  .rpi-section { padding: 28px 16px; }
  .rpi-heading { font-size: 1.2rem; }
}

/* Legacy .market-snapshot alias (keep for any pages still using old class) */
.market-snapshot { display: none; }

/* ── Mobile UX pass ──────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 44px 20px 40px; }
  .hero h1 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .hero p { font-size: 0.95rem; }
  .trust-strip { padding: 8px 16px; }
  a.trust-item.cat-link { padding: 6px 12px; font-size: 0.77rem; }
  .why-nq-heading { font-size: 1.35rem; }
  .why-card { padding: 22px 18px; }
}

/* ── Market Trends section ───────────────────────── */
.trends-section {
  padding: 28px 24px;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}
.trends-inner { max-width: 1200px; margin: 0 auto; }
.trends-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.trends-title { font-size: 0.95rem; font-weight: 800; color: var(--slate-900); }
.trends-sub { font-size: 0.72rem; color: var(--slate-400); }
.trends-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
a.trend-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}
a.trend-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--indigo-border); }
.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.trend-up { background: rgba(239,68,68,0.08); color: #dc2626; }
.trend-down { background: rgba(16,185,129,0.1); color: #059669; }
.trend-watch { background: var(--indigo-light); color: var(--indigo); }
a.trend-card h4 { font-size: 0.84rem; font-weight: 700; color: var(--slate-900); margin-bottom: 6px; line-height: 1.3; }
a.trend-card p { font-size: 0.77rem; color: var(--slate-500); line-height: 1.6; margin: 0 0 10px; }
.trend-link { font-size: 0.73rem; font-weight: 600; color: var(--indigo); }
.trend-market { font-size: 0.68rem; color: var(--slate-400); margin-top: 8px; font-weight: 500; display: block; }
@media (max-width: 720px) { .trends-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .trends-grid { grid-template-columns: 1fr; } .trends-section { padding: 22px 16px; } }

/* ── State hub components ────────────────────────── */
.state-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.state-stat-item { background: var(--slate-100); border-radius: var(--radius-sm); padding: 14px 12px; text-align: center; }
.state-stat-value { font-size: 1.05rem; font-weight: 800; color: var(--slate-900); line-height: 1; margin-bottom: 4px; }
.state-stat-label { font-size: 0.67rem; color: var(--slate-500); font-weight: 600; }
.city-price-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.83rem; }
.city-price-table th { background: var(--slate-100); padding: 8px 10px; text-align: left; font-size: 0.73rem; font-weight: 700; color: var(--slate-600); border-bottom: 2px solid var(--slate-200); }
.city-price-table td { padding: 8px 10px; border-bottom: 1px solid var(--slate-200); color: var(--slate-700); vertical-align: middle; }
.city-price-table tr:last-child td { border-bottom: none; }
.city-price-table tr:hover td { background: var(--slate-100); }
.city-price-table a { color: var(--indigo); text-decoration: none; font-weight: 600; }
.city-price-table a:hover { text-decoration: underline; }
.vs-bar { height: 5px; border-radius: 99px; background: var(--slate-200); margin-top: 5px; overflow: hidden; width: 72px; display: inline-block; vertical-align: middle; }
.vs-bar-fill { height: 100%; border-radius: 99px; background: var(--indigo); }
.vs-bar-fill.above { background: #f59e0b; }
.vs-bar-fill.below { background: var(--green); }
.pct-badge { font-size: 0.64rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.pct-above { background: rgba(245,158,11,0.12); color: #d97706; }
.pct-near  { background: var(--indigo-light); color: var(--indigo); }
.pct-below { background: var(--green-light); color: #059669; }
.climate-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin: 2px; }
.climate-hot   { background: rgba(239,68,68,0.08); color: #dc2626; }
.climate-humid { background: rgba(59,130,246,0.08); color: #2563eb; }
.climate-hail  { background: rgba(168,85,247,0.08); color: #7c3aed; }
.climate-coastal { background: rgba(16,185,129,0.08); color: #059669; }
.climate-dry   { background: rgba(245,158,11,0.08); color: #d97706; }
.climate-mild  { background: rgba(20,184,166,0.08); color: #0d9488; }

/* ── City search widget ───────────────────────────── */
.city-search-wrap {
  background: var(--navy);
  padding: 18px 24px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.city-search-inner { max-width: 660px; margin: 0 auto; }
.city-search-label { font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.city-search-box { display: flex; gap: 8px; position: relative; }
.city-search-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  font-family: inherit;
}
.city-search-input::placeholder { color: rgba(255,255,255,0.38); }
.city-search-input:focus { border-color: rgba(124,107,245,0.7); background: rgba(255,255,255,0.11); }
.city-search-btn {
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--indigo);
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: inherit;
}
.city-search-btn:hover { background: #6a5cf5; }
.city-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
}
.city-search-results li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--slate-900);
  font-size: 0.85rem;
  transition: background 0.1s;
  gap: 8px;
}
.city-search-results li a:hover { background: var(--slate-100); }
.city-search-results .sr-city { font-weight: 700; }
.city-search-results .sr-state { color: var(--slate-500); font-weight: 400; }
.city-search-results .sr-pct { font-size: 0.68rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; flex-shrink: 0; }
.city-search-results .sr-empty { padding: 10px 14px; font-size: 0.82rem; color: var(--slate-500); display: block; }
@media (max-width: 540px) {
  .city-search-wrap { padding: 14px 16px 20px; }
  .city-search-box { flex-direction: column; }
  .city-search-btn { width: 100%; text-align: center; }
}

/* ── Popular markets ─────────────────────────────── */
.popular-markets { padding: 40px 24px 32px; background: white; border-bottom: 1px solid var(--slate-200); }
.popular-inner { max-width: 1200px; margin: 0 auto; }
.popular-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.popular-heading { font-size: 1.1rem; font-weight: 800; color: var(--slate-900); margin: 4px 0 16px; }
.market-cities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
a.market-city-card {
  display: block;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  text-decoration: none;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s, background 0.16s;
}
a.market-city-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--indigo-border); background: white; }
.city-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.city-card-name { font-size: 0.88rem; font-weight: 700; color: var(--slate-900); line-height: 1.2; }
.city-card-state { font-size: 0.69rem; color: var(--slate-500); font-weight: 600; margin-top: 2px; }
.city-card-pct { font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; }
.city-card-climate { font-size: 0.71rem; color: var(--slate-500); margin-top: 6px; }
.city-card-cta { font-size: 0.72rem; font-weight: 600; color: var(--indigo); margin-top: 8px; display: block; }
.popular-footer { display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 4px; flex-wrap: wrap; }
a.browse-all-link { font-size: 0.84rem; font-weight: 700; color: var(--indigo); text-decoration: none; padding: 10px 22px; border: 1.5px solid var(--indigo-border); border-radius: var(--radius); background: var(--indigo-light); transition: background 0.15s, border-color 0.15s; }
a.browse-all-link:hover { background: white; border-color: var(--indigo); }
@media (max-width: 720px) { .market-cities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .popular-markets { padding: 22px 16px 18px; } }

/* ── State → City browser ────────────────────────── */
.state-browser { margin: 20px 0 0; padding: 18px 20px; background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: var(--radius); }
.state-browser-label { font-size: 0.79rem; font-weight: 700; color: var(--slate-600); margin-bottom: 10px; }
.state-browser-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.state-browser-controls select {
  flex: 1;
  min-width: 140px;
  padding: 9px 12px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  font-size: 0.84rem;
  background: white;
  color: var(--slate-700);
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.state-browser-controls select:focus { border-color: var(--indigo); }
.state-browser-controls select:disabled { opacity: 0.45; cursor: not-allowed; background: var(--slate-100); }
.state-browser-btn {
  padding: 9px 18px;
  background: var(--slate-400);
  color: white;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: not-allowed;
  pointer-events: none;
  transition: background 0.15s;
  display: inline-block;
}
.state-browser-btn.active { background: var(--indigo); cursor: pointer; pointer-events: auto; }
.state-browser-btn.active:hover { background: #6a5cf5; }
@media (max-width: 540px) { .state-browser-controls { flex-direction: column; } .state-browser-controls select,.state-browser-btn { width: 100%; } }

/* ── Locations page ──────────────────────────────── */
.locations-body { max-width: 880px; margin: 0 auto; padding: 28px 24px 48px; }
.locations-search-wrap { background: var(--slate-100); border-radius: var(--radius); border: 1px solid var(--slate-200); padding: 16px 18px; margin-bottom: 24px; }
.locations-search-wrap .city-search-input { background: white; color: var(--slate-900); border-color: var(--slate-200); }
.locations-search-wrap .city-search-input::placeholder { color: var(--slate-400); }
.locations-search-wrap .city-search-input:focus { border-color: var(--indigo); }
.locations-service-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.loc-service-tab { padding: 5px 12px; background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--slate-600); text-decoration: none; transition: background 0.14s, border-color 0.14s, color 0.14s; }
.loc-service-tab:hover, .loc-service-tab.active { background: var(--indigo-light); border-color: var(--indigo-border); color: var(--indigo); }
.state-section { margin-bottom: 28px; }
.state-section-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; padding-bottom: 8px; border-bottom: 2px solid var(--slate-200); }
.state-section-name { font-size: 0.95rem; font-weight: 800; color: var(--slate-900); text-decoration: none; }
a.state-section-name:hover { color: var(--blue-600); text-decoration: underline; }
.state-section-count { font-size: 0.73rem; color: var(--slate-400); font-weight: 600; }
.state-hub-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.state-hub-link { font-size: 0.68rem; font-weight: 600; color: var(--blue-600); background: var(--indigo-light); border: 1px solid var(--indigo-border); border-radius: 999px; padding: 2px 9px; text-decoration: none; white-space: nowrap; transition: background 0.12s; }
.state-hub-link:hover { background: var(--blue-600); color: #fff; }
.state-cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
a.state-city-link { display: block; background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 10px 12px; text-decoration: none; transition: background 0.13s, border-color 0.13s; }
a.state-city-link:hover { background: var(--indigo-light); border-color: var(--indigo-border); }
.scl-name { font-size: 0.83rem; font-weight: 700; color: var(--slate-900); }
.scl-meta { font-size: 0.68rem; color: var(--slate-500); margin-top: 2px; }
@media (max-width: 600px) { .state-cities-grid { grid-template-columns: repeat(2, 1fr); } .locations-body { padding: 20px 16px 36px; } }

/* ── Search Module (homepage) ────────────────────── */
.search-module {
  background: var(--slate-100);
  padding: 32px 24px 40px;
  border-bottom: 1px solid var(--slate-200);
}
.search-module-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.search-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 6px rgba(0,0,0,0.04);
  padding: 28px 32px 30px;
}
.search-card-header {
  margin-bottom: 20px;
}
.search-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.search-card-sub {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.5;
}
.search-card-sub strong { color: var(--slate-700); font-weight: 600; }
.search-text-wrap {
  position: relative;
  margin-bottom: 16px;
}
.search-text-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon-prefix {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  z-index: 1;
  pointer-events: none;
  line-height: 1;
}
.search-text-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--slate-900);
  background: var(--slate-100);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}
.search-text-input:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  background: white;
}
.search-text-input::placeholder { color: var(--slate-400); }
.search-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.search-or-divider::before,
.search-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}
.search-dropdowns {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.search-select {
  flex: 1;
  min-width: 160px;
  padding: 11px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: white;
  color: var(--slate-700);
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: auto;
  height: 44px;
}
.search-select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.search-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--slate-100);
}
.search-cta-btn {
  padding: 11px 24px;
  background: var(--slate-300);
  color: var(--slate-500);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: not-allowed;
  pointer-events: none;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 44px;
  letter-spacing: 0.1px;
}
.search-cta-btn.active {
  background: var(--indigo);
  color: white;
  cursor: pointer;
  pointer-events: all;
}
.search-cta-btn.active:hover {
  background: var(--indigo-dark);
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}
@media (max-width: 860px) {
  .search-dropdowns { flex-wrap: wrap; }
  .search-select { min-width: calc(50% - 5px); flex: none; }
  .search-cta-btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .search-module { padding: 22px 16px 28px; }
  .search-card { padding: 20px 18px 22px; }
  .search-card-title { font-size: 1.05rem; }
  .search-select { min-width: 100%; flex: none; }
  .search-cta-btn { width: 100%; justify-content: center; }
}

/* ── Why card mobile: 2-col at 640px, 1-col at 400px ── */
@media (max-width: 640px) {
  .why-nq { padding: 36px 16px 32px; }
  .why-card { padding: 18px 16px; }
  .why-nq-heading { font-size: 1.3rem; }
}

/* ── Market snapshot responsive ──────────────────── */
@media (max-width: 860px) {
  .market-snapshot { padding: 16px 20px; }
}

/* ── Trends section responsive ───────────────────── */
@media (max-width: 600px) {
  .trends-section { padding: 22px 16px; }
  .trends-header { flex-direction: column; gap: 4px; }
}

/* ── Popular markets city grid ───────────────────── */
@media (max-width: 960px) {
  .market-cities-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .market-cities-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   RESEARCH MEGA-MENU
═══════════════════════════════════════════════════ */

.nav-research-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
}

.nav-research-toggle {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: default;
  user-select: none;
  height: auto;
  align-self: center;
}
.nav-research-toggle:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-research-toggle.active { background: var(--indigo); color: white; }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 760px;
  max-width: calc(100vw - 40px);
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  padding-top: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

/* Hover bridge — prevents dropdown from closing when moving from trigger to panel */
.nav-research-wrap::after,
.nav-drop-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 14px;
  display: none;
}
.nav-research-wrap:hover::after,
.nav-drop-wrap:hover::after { display: block; }

.nav-research-wrap:hover .nav-dropdown,
.nav-research-wrap:focus-within .nav-dropdown,
.nav-research-wrap.nav-menu-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 16px;
}

.nav-mega-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-mega-heading {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.22);
  padding: 8px 0 7px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-mega-card {
  display: block;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 7px;
  transition: background 0.11s;
}

.nav-mega-card:hover {
  background: rgba(255,255,255,0.07);
}

.nav-mega-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
  margin-bottom: 1px;
}

.nav-mega-desc {
  font-size: 0.64rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.4;
}

.nav-mega-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.nav-mega-cta {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #818cf8;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 5px;
  transition: color 0.12s, background 0.12s;
}
.nav-mega-cta:hover {
  color: #a5b4fc;
  background: rgba(129,140,248,0.08);
}

@media (max-width: 980px) {
  .nav-mega-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
}

@media (max-width: 760px) {
  .nav-dropdown { display: none !important; visibility: hidden !important; }
  nav a, .nav-research-toggle, .nav-drop-toggle { padding: 6px 7px; font-size: 0.74rem; }
}

/* ── Remodeling / Exterior generic dropdown wraps ── */
.nav-drop-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
}

.nav-drop-toggle {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: default;
  user-select: none;
  height: auto;
  align-self: center;
}
.nav-drop-toggle:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-drop-toggle.active { background: var(--indigo); color: white; }

.nav-drop-wrap:hover .nav-dropdown,
.nav-drop-wrap:focus-within .nav-dropdown,
.nav-drop-wrap.nav-menu-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Narrow 2-column dropdown variant */
.nav-dropdown.nav-drop-sm {
  width: 580px;
}

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

@media (max-width: 980px) {
  .nav-mega-grid-2col { grid-template-columns: 1fr; }
  .nav-dropdown.nav-drop-sm { width: calc(100vw - 40px); }
}

@media (max-width: 760px) {
  .nav-drop-toggle { padding: 6px 7px; font-size: 0.74rem; }
}

/* ═══════════════════════════════════════════════════
   RESEARCH PAGE LAYOUT
═══════════════════════════════════════════════════ */
.research-hub-hero {
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  color: white;
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}
.research-hub-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.research-hub-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.research-hub-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79,70,229,0.2);
  border: 1px solid rgba(79,70,229,0.4);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.research-hub-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: white;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  max-width: 640px;
}
.research-hub-hero p {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 500px;
  line-height: 1.7;
  margin: 0;
}
.research-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}
.research-section-header {
  margin: 40px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--slate-200);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.research-section-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0;
  letter-spacing: -0.3px;
}
.research-section-header a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--indigo);
  text-decoration: none;
}
.research-section-header a:hover { text-decoration: underline; }
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.research-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.research-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
a.research-link-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: var(--shadow-sm);
}
a.research-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--indigo-border);
}
.rlc-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--indigo);
  margin-bottom: 8px;
  display: block;
}
.rlc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 6px;
  line-height: 1.3;
}
.rlc-desc {
  font-size: 0.79rem;
  color: var(--slate-500);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.rlc-arrow {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--indigo);
  margin-top: 12px;
  display: block;
}
.research-featured-card {
  background: linear-gradient(135deg, var(--indigo-light) 0%, #ebebff 100%);
  border: 1px solid var(--indigo-border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.15s;
}
.research-featured-card:hover { box-shadow: var(--shadow-lg); }
.research-featured-card .rlc-title { font-size: 1.05rem; }
.research-featured-card .rlc-desc { font-size: 0.875rem; color: var(--slate-600); }
/* Research tag pills */
.research-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 5px;
  margin-bottom: 5px;
}
.tag-roofing  { background: rgba(239,68,68,0.08); color: #dc2626; }
.tag-hvac     { background: rgba(59,130,246,0.08); color: #2563eb; }
.tag-kitchen  { background: rgba(245,158,11,0.08); color: #d97706; }
.tag-bath     { background: rgba(20,184,166,0.08); color: #0d9488; }
.tag-deck     { background: rgba(16,185,129,0.08); color: #059669; }
.tag-siding   { background: rgba(168,85,247,0.08); color: #7c3aed; }
.tag-windows  { background: rgba(14,165,233,0.08); color: #0284c7; }
.tag-climate  { background: rgba(79,70,229,0.08); color: var(--indigo); }
.tag-national { background: var(--indigo-light); color: var(--indigo); }
/* Research article two-column layout */
.research-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 28px;
  align-items: start;
}
.research-main { min-width: 0; }
.research-aside {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.research-aside .card { padding: 18px 20px; }
.research-aside .card h3 { font-size: 0.84rem; font-weight: 700; color: var(--slate-900); margin: 0 0 10px; }
.research-aside .nav-link { font-size: 0.8rem; }
.research-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 10px 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.77rem;
  color: var(--slate-500);
  font-weight: 500;
}
.research-meta-bar strong { color: var(--slate-700); }
.research-prose { }
.research-prose h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 32px 0 10px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.research-prose h2:first-child { margin-top: 0; }
.research-prose h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-700);
  margin: 22px 0 8px;
}
.research-prose p {
  font-size: 0.95rem;
  color: var(--slate-600);
  margin-bottom: 14px;
  line-height: 1.75;
}
.research-prose a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; }
.research-prose ul, .research-prose ol {
  margin: 0 0 16px 22px;
  color: var(--slate-600);
  font-size: 0.94rem;
}
.research-prose li { margin-bottom: 6px; line-height: 1.65; }
.research-callout {
  background: var(--indigo-light);
  border: 1px solid var(--indigo-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}
.research-callout-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--indigo);
  margin-bottom: 8px;
}
.research-callout p { font-size: 0.875rem; color: var(--slate-700); margin: 0; line-height: 1.65; }
.research-callout ul { margin: 8px 0 0 18px; font-size: 0.86rem; color: var(--slate-700); }
.research-callout li { margin-bottom: 4px; line-height: 1.55; }
.findings-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
}
.findings-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #14532d;
  margin-bottom: 10px;
}
.findings-box ul { margin: 0 0 0 18px; font-size: 0.875rem; color: #166534; }
.findings-box li { margin-bottom: 5px; line-height: 1.6; }
.research-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 0.875rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.research-table thead tr { background: #f8faff; }
.research-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--slate-700);
  border-bottom: 2px solid var(--slate-200);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.research-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-600);
  vertical-align: middle;
}
.research-table tr:last-child td { border-bottom: none; }
.research-table tr:hover td { background: var(--slate-100); }
.research-table td strong { color: var(--slate-900); font-weight: 600; }
.research-table td a { color: var(--indigo); text-decoration: none; font-weight: 600; }
.research-table td a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .research-article { grid-template-columns: 1fr; }
  .research-aside { position: static; }
  .research-grid { grid-template-columns: 1fr; }
  .research-grid-3 { grid-template-columns: 1fr 1fr; }
  .research-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .research-grid-3 { grid-template-columns: 1fr; }
  .research-grid-4 { grid-template-columns: 1fr; }
  .research-body { padding: 24px 16px 60px; }
  .research-hub-hero { padding: 36px 16px 32px; }
  .research-article { padding: 22px 16px 60px; }
}

/* ═══════════════════════════════════════════════════
   HUB PAGE LAYOUT (new service pages)
═══════════════════════════════════════════════════ */

/* Trust bar alias (hub pages use .trust-bar, existing pages use .trust-strip) */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  padding: 10px 24px;
}
.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Estimator two-column layout */
.estimator-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 28px;
  align-items: start;
}
.estimator-main { min-width: 0; }
.estimator-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section wrappers */
.cost-overview-section,
.material-section,
.cost-factors-section,
.regional-section,
.faq-section,
.related-links-section {
  margin-bottom: 40px;
}
.cost-overview-section h2,
.material-section h2,
.material-section h3,
.cost-factors-section h2,
.regional-section h2,
.faq-section h2,
.related-links-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 14px;
  letter-spacing: -0.3px;
}
.material-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-700);
  margin: 24px 0 8px;
}
.cost-overview-section p,
.material-section p,
.cost-factors-section p,
.regional-section p,
.faq-section p,
.related-links-section p {
  font-size: 0.94rem;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Cost cards — low / avg / high */
.cost-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 24px;
}
.cost-card {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 18px 16px;
  background: #fff;
  text-align: center;
}
.cost-card-low  { border-top: 3px solid #10b981; }
.cost-card-avg  { border-top: 3px solid var(--indigo); }
.cost-card-high { border-top: 3px solid #f59e0b; }
.cost-card-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate-400);
  margin-bottom: 6px;
}
.cost-card-range {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.cost-card-desc {
  font-size: 0.76rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* Factors list */
.factors-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.factors-list li {
  font-size: 0.93rem;
  color: var(--slate-600);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.factors-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-size: 0.75rem;
  top: 3px;
}
.factors-list li strong { color: var(--slate-800); }

/* Regional pricing grid */
.regional-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.regional-card {
  background: #f8faff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.regional-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 4px;
}
.regional-range {
  font-size: 1rem;
  font-weight: 800;
  color: var(--indigo);
  margin-bottom: 4px;
}
.regional-note {
  font-size: 0.74rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* FAQ (div-based, no <details>) */
.faq-list {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
}
.faq-item {
  border-bottom: 1px solid var(--slate-200);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--slate-800);
  padding: 14px 16px;
  background: #fff;
  cursor: default;
}
.faq-answer {
  padding: 4px 16px 16px;
  background: var(--slate-50, #f8fafc);
}
.faq-answer p {
  font-size: 0.875rem !important;
  color: var(--slate-600) !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

/* Related links */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.related-card {
  display: block;
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.related-card:hover {
  border-color: var(--indigo);
  box-shadow: 0 2px 12px rgba(79,70,229,0.08);
}
.related-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 4px;
}
.related-sub {
  font-size: 0.76rem;
  color: var(--slate-500);
  line-height: 1.45;
}

/* Sidebar components */
.sidebar-cta {
  background: linear-gradient(160deg, var(--indigo) 0%, #4338ca 100%);
  border-radius: var(--radius);
  padding: 22px 20px;
  color: #fff;
}
.sidebar-cta-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.sidebar-cta p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 14px;
  line-height: 1.55;
}
.sidebar-links {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.sidebar-links a {
  display: block;
  font-size: 0.82rem;
  color: var(--indigo);
  text-decoration: none;
  font-weight: 600;
  margin-top: 6px;
}
.sidebar-links a:hover { text-decoration: underline; }
.sidebar-links-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--slate-400);
  margin-bottom: 8px;
}
.sidebar-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px;
  background: #f8faff;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
}
.sidebar-trust .trust-item {
  font-size: 0.78rem;
  color: var(--slate-600);
}

/* a.btn-primary (links styled as buttons) */
a.btn-primary {
  display: inline-block;
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
a.btn-primary:hover { background: #4338ca; color: #fff; }

/* Hub page responsive */
@media (max-width: 900px) {
  .estimator-content { grid-template-columns: 1fr; padding: 24px 16px 60px; }
  .estimator-sidebar { position: static; }
  .cost-cards { grid-template-columns: 1fr 1fr; }
  .regional-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cost-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   RESEARCH ARTICLE v2 LAYOUT (gen-research-v2 pages)
═══════════════════════════════════════════════════ */

.research-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 48px 24px 44px;
}
.research-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}
.research-hero h1 {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 10px 0 14px;
}
.research-hero-sub {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}
.research-hero .breadcrumb { margin-bottom: 10px; }
.research-hero .breadcrumb a { color: #94a3b8; }

.research-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 284px;
  gap: 28px;
  align-items: start;
}
.research-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Research meta row */
.research-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.8rem;
  color: var(--slate-500);
  font-weight: 500;
}
.research-meta strong { color: var(--slate-700); }
.research-meta .research-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--indigo-light);
  color: var(--indigo);
}

/* Research content sections */
.research-section {
  margin-bottom: 36px;
}
.research-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}
.research-section p {
  font-size: 0.94rem;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 14px;
}
.research-section ul, .research-section ol {
  margin: 0 0 16px 22px;
  color: var(--slate-600);
  font-size: 0.93rem;
}
.research-section li { margin-bottom: 6px; line-height: 1.65; }
.research-section li strong { color: var(--slate-800); }

/* Key takeaways list */
.research-takeaways {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.research-takeaways li {
  font-size: 0.9rem;
  color: var(--slate-700);
  line-height: 1.65;
  padding: 12px 14px 12px 38px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  position: relative;
}
.research-takeaways li::before {
  content: '✓';
  position: absolute;
  left: 12px;
  top: 12px;
  color: #059669;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Sidebar: related research/services */
.sidebar-related {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.sidebar-related-link {
  display: block;
  font-size: 0.82rem;
  color: var(--indigo);
  text-decoration: none;
  font-weight: 600;
  padding: 5px 0;
  border-bottom: 1px solid var(--slate-100);
}
.sidebar-related-link:last-child { border-bottom: none; }
.sidebar-related-link:hover { text-decoration: underline; }

/* Research layout responsive */
@media (max-width: 900px) {
  .research-layout { grid-template-columns: 1fr; padding: 24px 16px 60px; }
  .research-sidebar { position: static; }
  .research-hero { padding: 32px 16px 30px; }
  .research-hero h1 { font-size: 1.6rem; }
}

/* ═══════════════════════════════════════════════════
   UNIVERSAL CONVERSION FRAMEWORK (UCF) COMPONENTS
   Applied via inject-ucf.js to static pages,
   and via template literals in city/state templates.
═══════════════════════════════════════════════════ */

/* ── Base UCF card ──────────────────────────────── */
.ucf-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 14px;
}
.ucf-card-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--indigo);
  margin-bottom: 6px;
}
.ucf-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 12px;
  letter-spacing: -0.15px;
}

/* ── Contractor match card ──────────────────────── */
.ucf-contractor { border-top: 3px solid var(--indigo); }
.ucf-contractor-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ucf-field { display: flex; flex-direction: column; }
.ucf-input,
.ucf-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  color: var(--slate-700);
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.ucf-input:focus, .ucf-select:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 2px rgba(79,70,229,0.1);
}
.ucf-btn {
  width: 100%;
  background: var(--indigo);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin-top: 4px;
}
.ucf-btn:hover { background: #4338ca; }
.ucf-success {
  font-size: 0.82rem;
  color: #059669;
  font-weight: 600;
  padding: 6px 0 2px;
}
.ucf-disclaimer {
  font-size: 0.72rem;
  color: var(--slate-400);
  margin: 8px 0 0;
  line-height: 1.4;
}

/* ── Financing card ─────────────────────────────── */
.ucf-financing { border-top: 3px solid #10b981; }
.ucf-financing-copy {
  font-size: 0.84rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 12px;
}
.ucf-financing-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 1rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 12px;
}
.ucf-financing-pill span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #059669;
}
.ucf-text-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--indigo);
  font-weight: 600;
  text-decoration: none;
}
.ucf-text-link:hover { text-decoration: underline; }

/* ── Trust card ─────────────────────────────────── */
.ucf-trust { border-top: 3px solid #f59e0b; background: #fffdf5; }
.ucf-trust-list { display: flex; flex-direction: column; gap: 7px; }
.ucf-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--slate-600);
  font-weight: 500;
}
.ucf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

/* ── Research links card ────────────────────────── */
.ucf-research { border-top: 3px solid #8b5cf6; }
.ucf-research-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ucf-research-link {
  display: block;
  font-size: 0.8rem;
  color: var(--indigo);
  font-weight: 600;
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid var(--slate-100);
  line-height: 1.45;
}
.ucf-research-link:last-child { border-bottom: none; }
.ucf-research-link:hover { color: #4338ca; text-decoration: underline; }

/* ── Inline content CTA ─────────────────────────── */
.ucf-inline-cta {
  background: #f0f4ff;
  border-left: 3px solid var(--indigo);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin: 20px 0;
  max-width: 680px;
}
.ucf-inline-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--indigo);
  text-decoration: none;
}
.ucf-inline-link:hover { text-decoration: underline; }

/* ── Market insight card ────────────────────────── */
.ucf-market-insight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #0f172a;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
  max-width: 680px;
}
.ucf-insight-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.ucf-insight-body { flex: 1; min-width: 0; }
.ucf-insight-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.ucf-insight-text {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 860px) {
  .ucf-card { margin-top: 12px; }
  .ucf-market-insight, .ucf-inline-cta { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════
   LEAD FORM v2 — Pill-button project selector
═══════════════════════════════════════════════════ */
.lf2-card { /* extends .card */ }
.lf2-section { margin-bottom: 13px; }
.lf2-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--slate-400);
  margin-bottom: 7px;
}
.lf2-btn-group { display: flex; flex-wrap: wrap; gap: 6px; }
.lf2-btn {
  padding: 6px 13px;
  border: 1.5px solid var(--slate-200);
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--slate-600);
  background: white;
  cursor: pointer;
  transition: border-color 0.13s, color 0.13s, background 0.13s, box-shadow 0.13s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
}
.lf2-btn:hover {
  border-color: var(--indigo-border);
  color: var(--indigo);
  background: var(--indigo-light);
}
.lf2-btn.sel {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-light);
  box-shadow: 0 0 0 2px rgba(79,70,229,0.12);
}
.lf2-divider {
  height: 1px;
  background: var(--slate-100);
  margin: 14px 0 12px;
}

/* ═══════════════════════════════════════════════════
   v14 SIDEBAR UPGRADES — UCF improvements, financing
   widget, quick-nav hover, trust compact, fin-callout
═══════════════════════════════════════════════════ */

/* ── Form field improvements (Part 1) ────────────── */
.ucf-contractor-form { gap: 10px; }
.ucf-input,
.ucf-select {
  border-color: #cbd5e1;
  padding: 9px 11px;
}
.ucf-input:focus,
.ucf-select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
.ucf-card { box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.ucf-btn {
  padding: 11px 16px;
  letter-spacing: 0.1px;
  transition: background 0.15s, transform 0.12s;
}
.ucf-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

/* ── Trust strip under primary CTA (Part 1) ───────── */
.lf2-trust-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.lf2-trust-chip {
  font-size: 0.69rem;
  color: var(--slate-500);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.lf2-trust-chip::before {
  content: '✓';
  color: #10b981;
  font-weight: 800;
}

/* ── Financing widget upgrade (Part 3) ────────────── */
.ucf-fin-example {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ucf-fin-ex-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #059669;
}
.ucf-fin-ex-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #065f46;
  line-height: 1.4;
}
.ucf-fin-btn {
  width: 100%;
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.12s;
  margin-bottom: 8px;
}
.ucf-fin-btn:hover {
  background: #0d6b64;
  transform: translateY(-1px);
}
.ucf-fin-note {
  font-size: 0.69rem;
  color: var(--slate-400);
  text-align: center;
  line-height: 1.4;
}
.ucf-fin-success {
  font-size: 0.82rem;
  color: #059669;
  font-weight: 600;
  padding: 6px 0;
  line-height: 1.5;
}

/* ── Quick nav improvements (Part 4) ─────────────── */
.ucf-research { border-top: 3px solid #8b5cf6; }
.ucf-research .ucf-card-label { color: #7c3aed; }
.ucf-research-link {
  padding: 7px 6px;
  border-radius: 4px;
  transition: background 0.12s, padding-left 0.12s;
}
.ucf-research-link:hover {
  background: #f5f3ff;
  padding-left: 10px;
  color: #6d28d9;
  text-decoration: none;
}

/* ── Trust card compact style (Part 5) ───────────── */
.ucf-trust {
  border-top: 3px solid #10b981;
  background: #f8fafc;
}
.ucf-trust-list { gap: 6px; }
.ucf-trust-item {
  font-size: 0.77rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ── Financing callout — main content (Part 6) ────── */
.fin-callout {
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
}
.fin-callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.fin-callout-icon { font-size: 1.3rem; }
.fin-callout-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.1px;
}
.fin-callout-body {
  font-size: 0.87rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 14px;
}
.fin-callout-factors {
  font-size: 0.83rem;
  color: var(--slate-600);
  line-height: 1.8;
  padding-left: 18px;
  margin: 8px 0 14px;
}
.fin-callout-btn {
  display: inline-block;
  background: var(--indigo);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}
.fin-callout-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
@media (max-width: 640px) {
  .fin-callout { padding: 16px 18px; }
  .lf2-trust-strip { gap: 6px; }
}

/* ═══════════════════════════════════════════════════
   v15 CONVERSION REFINEMENT — Visual hierarchy,
   market insight bands, payment hints, trust signals
═══════════════════════════════════════════════════ */

/* ── PRIMARY: Contractor card — strongest emphasis ── */
.ucf-contractor {
  border-top: 4px solid var(--indigo) !important;
  box-shadow: 0 2px 10px rgba(79,70,229,0.10) !important;
  background: #fff !important;
}
.ucf-contractor .ucf-card-label {
  color: var(--indigo);
  letter-spacing: 0.9px;
}
.ucf-contractor .ucf-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.ucf-btn {
  font-size: 0.9rem !important;
  padding: 12px 16px !important;
  letter-spacing: 0.02em !important;
}

/* ── SECONDARY: Financing card — moderate emphasis ── */
.ucf-financing {
  border-top: 3px solid #10b981 !important;
  background: #fafffe !important;
  box-shadow: 0 1px 4px rgba(16,185,129,0.07) !important;
}
.ucf-financing .ucf-card-title {
  font-size: 0.97rem;
  font-weight: 700;
}

/* ── TERTIARY: Trust card — quiet, compact ─────── */
.ucf-trust {
  border-top: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
}
.ucf-trust .ucf-card-title { display: none; }
.ucf-trust .ucf-card-label {
  font-size: 0.6rem;
  color: #94a3b8;
  margin-bottom: 9px;
}
.ucf-trust-item {
  font-size: 0.78rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
}
.ucf-dot {
  width: 5px !important;
  height: 5px !important;
  background: #10b981 !important;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ── TERTIARY: Research card — quiet, compact ───── */
.ucf-research {
  border-top: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
}
.ucf-research .ucf-card-label {
  color: #94a3b8;
  font-size: 0.6rem;
}
.ucf-research .ucf-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 9px;
}
.ucf-research-link {
  font-size: 0.8rem !important;
  padding: 7px 0 !important;
  color: #4338ca !important;
  font-weight: 500 !important;
}
.ucf-research-link:hover {
  color: #3730a3 !important;
  padding-left: 2px !important;
  transition: padding 0.12s;
}

/* ── Card rhythm — breathing room between cards ─── */
.ucf-card + .ucf-card { margin-top: 8px; }
.ucf-trust + .ucf-research { margin-top: 6px; }

/* ── Market insight band ─────────────────────────── */
.market-insight-band {
  background: linear-gradient(135deg, #f5f7ff 0%, #eef2ff 100%);
  border-left: 3px solid var(--indigo);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 22px 0 18px;
  position: relative;
}
.market-insight-band .mib-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 5px;
  display: block;
}
.market-insight-band .mib-text {
  font-size: 0.87rem;
  color: #374151;
  line-height: 1.6;
  font-weight: 400;
}

/* ── Payment hint pill — inline in content ────────── */
.payment-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #065f46;
  font-weight: 600;
  background: #f0fdf4;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.8;
}
.payment-hint::before {
  content: '≈';
  font-weight: 700;
  color: #059669;
  font-size: 0.85em;
}

/* ── Trust signal strip — inline in hero/intro ───── */
.trust-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.trust-signal {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}
.trust-signal-dot {
  width: 5px;
  height: 5px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── UCF disclaimer text ─────────────────────────── */
.ucf-disclaimer { display: none; }

/* ── lf2-trust-chip refinement ───────────────────── */
.lf2-trust-chip {
  font-size: 0.68rem !important;
  color: #64748b !important;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── fin-callout visual upgrade ──────────────────── */
.fin-callout {
  border-left-color: #0d9488 !important;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%) !important;
}
.fin-callout-title { color: #0f766e !important; }
.fin-callout-btn {
  background: #0f766e !important;
}
.fin-callout-btn:hover { background: #0d6b64 !important; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .market-insight-band { margin: 16px 0 14px; padding: 12px 14px; }
  .payment-hint { display: none; }
  .trust-signal-row { gap: 8px 14px; }
}

/* ═══════════════════════════════════════════════════
   v16 UX REFINEMENT — Sidebar rhythm, fin-callout
   advisory tone, UCF step-2 expansion styles
═══════════════════════════════════════════════════ */

/* ── Sidebar card breathing room ─────────────────── */
.ucf-card + .ucf-card { margin-top: 20px !important; }
.ucf-trust + .ucf-research { margin-top: 20px !important; }

/* ── fin-callout: educational / advisory tone ────── */
.fin-callout {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
  border-left: 3px solid #9ca3af !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
}
.fin-callout-icon { font-size: 1.05rem !important; }
.fin-callout-title {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #374151 !important;
}
.fin-callout-body {
  font-size: 0.8rem !important;
  color: #6b7280 !important;
  line-height: 1.55 !important;
  margin-bottom: 8px !important;
}
.fin-callout-factors {
  gap: 3px !important;
  margin-bottom: 10px !important;
}
.fin-callout-factors li {
  font-size: 0.77rem !important;
  color: #6b7280 !important;
}
.fin-callout-btn {
  background: transparent !important;
  color: #374151 !important;
  border: 1.5px solid #d1d5db !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 7px 12px !important;
  box-shadow: none !important;
  width: auto !important;
}
.fin-callout-btn:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
  transform: none !important;
  box-shadow: none !important;
  color: #111827 !important;
}

/* ── UCF Step-2 expansion ────────────────────────── */
.ucf-step2 {
  padding: 12px 0 0;
  margin-top: 8px;
  border-top: 1px solid #e2e8f0;
  animation: ucf-s2-in 0.22s ease forwards;
}
@keyframes ucf-s2-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ucf-step2-headline {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
  line-height: 1.4;
}
.ucf-step2 .ucf-field { margin-bottom: 7px; }
.ucf-step2-note {
  font-size: 0.7rem;
  color: #94a3b8;
  margin: 0 0 8px;
  line-height: 1.4;
}
.ucf-step2 .ucf-btn {
  background: #1e293b !important;
  font-size: 0.84rem !important;
}
.ucf-step2 .ucf-btn:hover {
  background: #0f172a !important;
  transform: translateY(-1px) !important;
}
.ucf-step2 .ucf-btn:disabled {
  background: #94a3b8 !important;
  transform: none !important;
  cursor: not-allowed !important;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .fin-callout { padding: 12px 14px !important; }
}

/* ═══════════════════════════════════════════════════
   v17 RENOVATION INTELLIGENCE PANEL — Unified sidebar
   architecture, merged financing, de-emphasised nav
═══════════════════════════════════════════════════ */

/* ── Hide standalone financing card (now inside panel) ── */
.ucf-card.ucf-financing { display: none !important; }

/* ── Renovation Intelligence Panel — unified container ── */
.nq-intelligence-panel {
  border-top: 4px solid var(--indigo) !important;
  box-shadow: 0 4px 24px rgba(79,70,229,.11) !important;
  background: #fff !important;
}
.nq-intelligence-panel .ucf-card-label {
  color: var(--indigo);
  font-size: 0.59rem;
  letter-spacing: 1.1px;
}
.nq-intelligence-panel .ucf-card-title {
  font-size: 1.07rem;
  font-weight: 800;
  letter-spacing: -0.25px;
  margin-bottom: 14px;
}

/* ── Smooth result panel entrance ──────────────────── */
@keyframes ucfFadeUp {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ucf-results { animation: ucfFadeUp .28s cubic-bezier(.22,.68,0,1.2) both; }

/* ── ZIP localization hint ─────────────────────────── */
.ucf-zip-hint {
  font-size: 0.67rem;
  color: #6366f1;
  font-weight: 600;
  padding: 2px 0 3px;
  line-height: 1.45;
  animation: ucfFadeUp .18s ease both;
}

/* ── Step 3: softer contact wrapper ────────────────── */
.ucf-step3 {
  background: #f8fafc;
  border-radius: 10px;
  padding: 13px 14px 11px;
  margin-top: 12px;
  border: 1px solid #e8edf3;
}
.ucf-step3 .ucf-input {
  background: #fff;
  border-color: #dde3ec;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.84rem;
}
.ucf-step3 .ucf-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.ucf-step3-head {
  font-size: 0.83rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 2px;
  letter-spacing: -0.1px;
}
.ucf-step3-sub {
  font-size: 0.69rem;
  color: #94a3b8;
  margin: 0 0 9px;
  line-height: 1.4;
}
.ucf-step3-note {
  font-size: 0.65rem;
  color: #cbd5e1;
  margin: 2px 0 8px;
}
.ucf-step3 .ucf-btn {
  background: #1e293b !important;
}
.ucf-step3 .ucf-btn:hover {
  background: #0f172a !important;
  transform: translateY(-1px) !important;
}

/* ── Quick nav — greatly de-emphasised ─────────────── */
.ucf-card.ucf-research {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid #e8edf3 !important;
  box-shadow: none !important;
  padding: 12px 4px 4px !important;
  margin-top: 4px !important;
}
.ucf-research .ucf-card-label { display: none !important; }
.ucf-research .ucf-card-title {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  margin-bottom: 5px !important;
}
.ucf-research-link {
  font-size: 0.77rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
  padding: 3px 0 !important;
  border-bottom: none !important;
  display: block !important;
}
.ucf-research-link:hover { color: #4338ca !important; padding-left: 0 !important; }

/* ── Trust strip — even quieter ────────────────────── */
.ucf-card.ucf-trust {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid #e8edf3 !important;
  box-shadow: none !important;
  padding: 10px 4px 2px !important;
  margin-top: 2px !important;
}
.ucf-trust .ucf-card-label { display: none !important; }
.ucf-trust-item {
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

/* ── Card spacing in unified mode ──────────────────── */
.nq-intelligence-panel + .ucf-card { margin-top: 6px !important; }

/* ── Mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
  .ucf-step3 { padding: 12px 12px 10px; }
  .nq-intelligence-panel .ucf-card-title { font-size: 1.0rem; }
  .ucf-card.ucf-research,
  .ucf-card.ucf-trust { padding: 10px 2px 2px !important; }
}

/* ═══════════════════════════════════════════════════
   v18 UX / IA REFINEMENT — Services mega nav,
   search card elevation, estimate tool polish,
   financing subordination
═══════════════════════════════════════════════════ */

/* ── Part 2: Services mega dropdown — 5 columns ─── */
.nav-drop-services {
  width: 940px;
}
.nav-mega-grid-5col {
  grid-template-columns: repeat(5, 1fr);
  gap: 0 10px;
}
@media (max-width: 1060px) {
  .nav-drop-services { width: calc(100vw - 40px); }
  .nav-mega-grid-5col { grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
}
@media (max-width: 760px) {
  .nav-mega-grid-5col { grid-template-columns: repeat(2, 1fr); }
}

/* ── Part 1: Search module — primary interaction elevation ── */
.search-module {
  background: #eef1fa !important;
  padding: 36px 24px 46px !important;
}
.search-card {
  border-radius: 22px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.09), 0 2px 12px rgba(79,70,229,0.07) !important;
  border: 1px solid #e2e8f4 !important;
  padding: 30px 34px 32px !important;
}
.search-card-title {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 5px !important;
}
.search-card-sub {
  font-size: 0.855rem !important;
  color: #64748b !important;
}
.search-card-context {
  font-size: 0.78rem;
  color: #64748b;
  margin: 3px 0 0;
  line-height: 1.5;
}
.search-card-intel {
  font-size: 0.74rem;
  color: #6366f1;
  font-weight: 600;
  margin-top: 12px;
  padding: 6px 12px;
  background: #f5f3ff;
  border-radius: 8px;
  border-left: 2px solid #a5b4fc;
  line-height: 1.45;
  display: inline-block;
}
.search-text-input {
  border: 1.5px solid #dde3f0 !important;
  background: #fafbff !important;
  border-radius: 10px !important;
  font-size: 0.94rem !important;
}
.search-text-input:focus {
  border-color: var(--indigo) !important;
  background: white !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.10) !important;
}
.search-select {
  border: 1.5px solid #dde3f0 !important;
  border-radius: 9px !important;
}
.search-select:focus {
  border-color: var(--indigo) !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.09) !important;
}
@media (max-width: 860px) {
  .search-card { padding: 22px 20px 24px !important; border-radius: 16px !important; }
  .search-card-title { font-size: 1.1rem !important; }
  .search-module { padding: 24px 14px 32px !important; }
}

/* ── Part 4: Intelligence Panel — stronger prominence ── */
.nq-intelligence-panel {
  box-shadow: 0 6px 32px rgba(79,70,229,.13), 0 1px 6px rgba(79,70,229,.07) !important;
}
.nq-intelligence-panel .ucf-contractor-form {
  gap: 9px !important;
}
.nq-intelligence-panel .ucf-input,
.nq-intelligence-panel .ucf-select {
  border-color: #e2e8f0;
  border-radius: 9px !important;
  padding: 10px 12px !important;
  font-size: 0.855rem !important;
  background: #fafbff;
  transition: border-color 0.14s, box-shadow 0.14s, background 0.14s;
}
.nq-intelligence-panel .ucf-input:focus,
.nq-intelligence-panel .ucf-select:focus {
  border-color: #6366f1 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,.09) !important;
}
.nq-intelligence-panel .ucf-btn-s1 {
  padding: 11px 16px !important;
  font-size: 0.88rem !important;
  border-radius: 9px !important;
  letter-spacing: 0.02em !important;
}

/* ── Part 4: Results panel — premium analytical feel ── */
.ucf-res-eyebrow {
  font-size: 0.58rem !important;
  letter-spacing: 1.2px !important;
  color: #6366f1 !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}
.ucf-res-title {
  font-size: 1.04rem !important;
  letter-spacing: -0.02em !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}
.ucf-res-sub {
  font-size: 0.7rem !important;
  color: #94a3b8 !important;
}
.ucf-price-band {
  border-radius: 12px !important;
  padding: 12px 14px !important;
}
.ucf-price-band-val {
  font-size: 1.4rem !important;
  letter-spacing: -0.03em !important;
  font-weight: 900 !important;
}
.ucf-price-band-lbl {
  font-size: 0.62rem !important;
  letter-spacing: 0.07em !important;
}

/* ── Part 5: Financing teaser — soft green, financial-planning identity ── */
.ucf-fin-teaser {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 9px !important;
  padding: 9px 11px !important;
}
.ucf-fin-t-lbl {
  color: #166534 !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
.ucf-fin-t-val {
  font-size: 0.9rem !important;
  color: #14532d !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}
.ucf-fin-t-btn {
  font-size: 0.71rem !important;
  font-weight: 700 !important;
  color: #15803d !important;
  background: transparent !important;
  border: 1.5px solid #86efac !important;
  border-radius: 6px !important;
  padding: 5px 9px !important;
  transition: background 0.15s, border-color 0.15s !important;
}
.ucf-fin-t-btn:hover {
  background: #dcfce7 !important;
  border-color: #4ade80 !important;
  color: #15803d !important;
}
.ucf-fin-t-msg {
  font-size: 0.69rem !important;
  color: #166534 !important;
  line-height: 1.45 !important;
}
.ucf-fin-t-row {
  gap: 8px !important;
}

/* ── Signals list — tighter, more analytical ────────── */
.ucf-sig {
  font-size: 0.71rem !important;
  color: #475569 !important;
  line-height: 1.55 !important;
  padding: 1px 0 1px 12px !important;
}
.ucf-sig::before { color: #818cf8 !important; }
.ucf-sig-ctx { color: #1e293b !important; font-weight: 600 !important; }

/* ── Part 6 QA: Uniform card spacing ───────────────── */
.ucf-card + .ucf-card { margin-top: 10px !important; }

/* ═══════════════════════════════════════════════════
   v20 LOCALIZED INTELLIGENCE LAYER — Market intel
   section, research sidebar, tier-2 seasonal
═══════════════════════════════════════════════════ */

/* ── Market Intelligence section (Priority 1) ───── */
.market-intel-section {
  background: #f8faff;
  border: 1.5px solid #e0e7ff;
  border-radius: 14px;
  padding: 22px 24px 20px;
  margin: 28px 0 24px;
}
.mis-header { margin-bottom: 16px; }
.mis-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 3px;
}
.mis-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.mis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 14px;
}
.mis-cell {
  background: white;
  border: 1px solid #e8edf8;
  border-radius: 10px;
  padding: 13px 14px 12px;
}
.mis-cell-label {
  font-size: 0.64rem;
  font-weight: 700;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.mis-cell-text {
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) {
  .mis-grid { grid-template-columns: 1fr; }
  .market-intel-section { padding: 16px 16px 14px; margin: 20px 0 18px; }
}

/* ── Research sidebar card ─────────────────────── */
.research-sidebar-card { margin-top: 10px !important; }
.research-sidebar-card .section-label {
  color: #6366f1 !important;
  letter-spacing: 0.06em !important;
}
.research-sidebar-card .nav-link {
  color: #4f46e5 !important;
  font-size: 0.81rem !important;
}
.research-sidebar-card .nav-link:hover {
  background: #f5f3ff !important;
  color: #4338ca !important;
}

/* ── Compliance & disclosure typography ─────────── */
.compliance-note,
.form-consent {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-top: 8px;
  padding: 0 2px;
}
.form-consent a,
.compliance-note a { color: #64748b; text-decoration: underline; }
.form-consent a:hover,
.compliance-note a:hover { color: #475569; }

/* ── Policy / disclosure page links row ─────────── */
.policy-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.82rem;
}
.policy-nav-links a { color: #4f46e5; }
.policy-nav-links a:hover { color: #4338ca; }
.policy-sep { color: #cbd5e1; }

/* ── Financing disclosure page ───────────────────── */
.fin-disclosure-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 20px 0 28px;
  font-size: 0.88rem;
  color: #1e3a5f;
  line-height: 1.55;
}
.fin-disc-icon {
  font-size: 1.3rem;
  line-height: 1;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 1px;
}
.fin-disclosure-banner strong { color: #1e3a5f; }

/* ── Table note (small caption below tables) ─────── */
.table-note {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: 10px;
  font-style: italic;
}
