/**
 * HomeQuoteCheck Master Unified Stylesheet
 * Version: 2.5.0 Pro
 * Jamstack & GitHub Pages Production CSS
 */

:root {
  /* Brand Navy & Deep Tech Shades */
  --brand-navy-950: #060d1a;
  --brand-navy-900: #091e42;
  --brand-navy-800: #0f2b5c;
  --brand-navy-700: #1a3d7c;
  
  /* Vibrant Electric Accents */
  --brand-blue: #2563eb;
  --brand-blue-glow: #38bdf8;
  --brand-blue-soft: #eff6ff;
  --brand-cyan: #06b6d4;
  --brand-indigo: #4f46e5;
  
  /* Trust & Status Accents */
  --accent-emerald: #059669;
  --accent-emerald-glow: #10b981;
  --accent-emerald-light: #ecfdf5;
  --accent-amber: #d97706;
  --accent-amber-light: #fffbeb;
  --accent-rose: #e11d48;
  --accent-rose-light: #fff1f2;

  /* Neutrals & Surfaces */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  --bg-dark-surface: #0f172a;
  --bg-dark-card: #1e293b;
  
  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Legacy aliases for compatibility */
  --ink: #091e42;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-2: #0f2b5c;
  --soft: #eff6ff;
  --soft-2: #f8fafc;
  --warm: #fffbeb;

  /* Borders & Lines */
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-dark: #334155;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  --radius: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 18px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 30px -8px rgba(15, 23, 42, 0.12), 0 8px 12px -4px rgba(15, 23, 42, 0.06);
  --shadow: 0 14px 34px rgba(23, 43, 77, 0.08);
  --shadow-glow-blue: 0 0 30px -5px rgba(37, 99, 235, 0.25);
  --shadow-glow-emerald: 0 0 30px -5px rgba(16, 185, 129, 0.25);

  --max: 1240px;
  --max-width: 1240px;
  --header-height: 74px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-body);
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover {
  color: #1d4ed8;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Typography & Accents
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-navy-900);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.15rem;
  color: var(--text-secondary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-navy-900) 0%, var(--brand-blue) 60%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 48rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
  border: 1px solid #bfdbfe;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.eyebrow-emerald {
  color: var(--accent-emerald);
  background: var(--accent-emerald-light);
  border-color: #a7f3d0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 850;
  color: var(--brand-navy-900);
  text-decoration: none;
  letter-spacing: -0.035em;
}

.brand::before {
  content: "⌂";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--brand-navy-900) 0%, var(--brand-blue) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(15, 43, 92, 0.2);
}

.site-header nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-header nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.site-header nav a:hover {
  color: var(--brand-navy-900);
  background-color: var(--bg-subtle);
}

.site-header nav a.active {
  color: var(--brand-blue);
  background-color: var(--brand-blue-soft);
  font-weight: 750;
}

/* ==========================================================================
   Hero & Sections
   ========================================================================== */

main {
  min-height: 75vh;
  flex: 1 0 auto;
}

.hero, .section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 1.2rem;
  color: var(--brand-navy-900);
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 44rem;
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--brand-navy-900);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover, .btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.button.primary, .btn-primary {
  background: linear-gradient(135deg, var(--brand-navy-900) 0%, var(--brand-blue) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(15, 43, 92, 0.25);
}

.button.primary:hover, .btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-navy-800) 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow-blue);
}

.estimate-panel {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  padding: 2.25rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
  position: relative;
  overflow: hidden;
}

.estimate-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-navy-900) 0%, var(--brand-blue) 50%, var(--brand-cyan) 100%);
}

.estimate-panel strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--brand-navy-900);
  margin: 0.4rem 0;
}

.kicker {
  display: block;
  font-size: 0.78rem;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 850;
}

/* ==========================================================================
   Grids & Cards
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin: 1.75rem 0;
}

.card {
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card h2, .card h3 {
  margin: 0.2rem 0 0.5rem;
  letter-spacing: -0.025em;
  color: var(--brand-navy-900);
  font-size: 1.35rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.card-link:hover {
  color: #1d4ed8;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-strip div {
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.feature-strip strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-navy-900);
  font-size: 1.05rem;
}

.trust-band {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.trust-band strong {
  color: #065f46;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   Two-Column Tool Layout & Side Nav
   ========================================================================== */

.content-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2.5rem;
  padding: 1.5rem 1.5rem 3.5rem;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 5.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.side-nav-title {
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-navy-900);
  padding: 0 0.5rem 0.75rem;
  border-bottom: 2px solid var(--bg-subtle);
  margin-bottom: 0.65rem;
}

.side-nav-link {
  display: block;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
  transition: all 0.15s ease;
}

.side-nav-link:hover {
  background: var(--bg-subtle);
  color: var(--brand-navy-900);
}

.side-nav-link.active {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-weight: 800;
  border-left: 3px solid var(--brand-blue);
}

.tool-shell {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.tool-shell h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.85rem;
}

.notice {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--brand-blue);
  background: var(--brand-blue-soft);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.notice strong {
  color: var(--brand-navy-900);
}

/* ==========================================================================
   Tool Interactive Forms, Select Boxes & Input Controls
   ========================================================================== */

.tool-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}

.tool-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  text-align: left;
}

.field > span:first-child {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-navy-900);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.field-help {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.field input, 
.field select {
  width: 100%;
  height: 50px;
  padding: 0 1.15rem;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--brand-navy-900);
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  background-size: 1.15rem;
  padding-right: 2.75rem;
  cursor: pointer;
}

.field input:hover, 
.field select:hover {
  border-color: #94a3b8;
}

.field input:focus, 
.field select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  background-color: #ffffff;
}

/* Form Action Buttons */
.tool-card form button,
.tool-card button[type="submit"],
.tool-card .button.primary {
  width: 100%;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-navy-900) 0%, var(--brand-blue) 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.75rem;
}

.tool-card form button:hover,
.tool-card button[type="submit"]:hover,
.tool-card .button.primary:hover {
  background: linear-gradient(135deg, var(--brand-navy-800) 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Sidebar List & Soft Buttons in Tool Card */
.tool-card .content-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tool-card .content-list li {
  padding: 0.95rem 1.15rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border-left: 3.5px solid var(--brand-blue);
  border-top: none;
}

.tool-card .content-list li strong {
  display: block;
  font-size: 0.95rem;
  color: var(--brand-navy-900);
  margin-bottom: 0.2rem;
}

.tool-card .content-list li .muted {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.tool-card .button.soft {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tool-card .button.soft:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

/* Dynamic Result Box */
.result {
  margin-top: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(191, 219, 254, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
  position: relative;
  overflow: hidden;
}

.result::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-navy-900) 0%, var(--brand-blue) 100%);
}

.result strong {
  font-size: 1.1rem;
  color: var(--brand-navy-900);
}

.result .range {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-navy-900);
  margin: 0.5rem 0;
  line-height: 1.1;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.result-grid div {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.result-grid div strong {
  font-size: 1.15rem;
  color: var(--brand-blue);
  display: block;
}

.result-grid div span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Source Notes & FAQ Accordions */
.source-note {
  margin-top: 2.5rem;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.source-note h2 {
  margin-top: 0;
  color: var(--brand-navy-900);
  font-size: 1.4rem;
}

.source-note details {
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.source-note details:first-of-type {
  border-top: 0;
}

.source-note summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--brand-navy-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.source-note summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.source-note details[open] summary::after {
  content: "−";
}

.source-note details p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sidebar Call to Action */
.side-nav-cta {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--brand-blue-soft) 0%, #e0f2fe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
}

.side-nav-cta strong {
  display: block;
  color: var(--brand-navy-900);
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.side-nav-cta span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.side-nav-cta a {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-blue);
  text-decoration: none;
}

/* ==========================================================================
   Checklists, Radio Cards & Scope Verification Components
   ========================================================================== */

.checklist-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.check-item {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.65rem 2rem;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.check-item:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
}

.check-item legend {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--brand-navy-900);
  padding: 0 0.5rem;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-navy-900) 0%, var(--brand-blue) 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(15, 43, 92, 0.2);
}

.check-item p {
  margin: 0.5rem 0 1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.choice-row label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #f8fafc;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-navy-900);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.choice-row label:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  transform: translateY(-1px);
}

.choice-row input[type="radio"],
.choice-row input[type="checkbox"] {
  accent-color: var(--brand-blue);
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
}

/* Global Form Submit Buttons */
#quote-form button,
#repair-form button,
#hvac-repair-form button,
#hvac-quote-form button {
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 850;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-navy-900) 0%, var(--brand-blue) 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 1.5rem;
}

#quote-form button:hover,
#repair-form button:hover,
#hvac-repair-form button:hover,
#hvac-quote-form button:hover {
  background: linear-gradient(135deg, var(--brand-navy-800) 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
}

/* Comparison Tables */
.comparison-table {
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.comparison-head {
  background: linear-gradient(135deg, var(--brand-navy-900) 0%, #1a3d7c 100%);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.comparison-head > * {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-top: 1px solid var(--border-subtle);
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-row > * {
  padding: 1.15rem 1.35rem;
  border-left: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comparison-row > *:first-child {
  border-left: 0;
  font-weight: 850;
  color: var(--brand-navy-900);
}

.comparison-row:hover {
  background-color: var(--brand-blue-soft);
}

/* Decision Grid & Cards */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.decision-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.decision-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.decision-title {
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--brand-navy-900);
  margin: 0.4rem 0 0.75rem;
}

/* Checklists Content */
.checklist-content {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.checklist-content li {
  position: relative;
  padding: 1.1rem 1.35rem 1.1rem 3.25rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.checklist-content li::before {
  content: "✓";
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-full);
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
}

/* ==========================================================================
   Visual Cards & SVGs
   ========================================================================== */

.visual-card {
  margin: 2rem 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-lg);
}

.visual-card svg, .visual-card img {
  display: block;
  width: 100%;
  height: auto;
}

.visual-card figcaption {
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1.5rem 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--brand-blue);
}

.crumb-sep {
  color: var(--border-strong);
}

.page-meta {
  display: none !important;
}

/* ==========================================================================
   Ultra-Premium Mega Footer (Fintech Dark Aesthetic)
   ========================================================================== */

footer.site-footer,
footer {
  position: relative;
  background: #060d1a;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 70%),
    radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #091e42 0%, #030712 100%);
  color: #94a3b8;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  padding: 5rem 1.5rem 2.5rem;
  margin-top: 4rem;
  text-align: left;
  overflow: hidden;
}

/* Top Glow Line */
footer.site-footer::before,
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8 50%, transparent);
  box-shadow: 0 0 12px #38bdf8;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

/* Column 1: Brand & Status Card */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
}

.footer-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 850;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 1.5rem;
  max-width: 320px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 750;
  color: #a7f3d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Category Column Titles */
.footer-title {
  font-size: 0.85rem;
  font-weight: 850;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 12px;
  background: var(--brand-blue);
  border-radius: 2px;
}

/* Link Stack with Micro-Interactions */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 550;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(4px);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Bottom Sub-Footer Bar */
.footer-bottom {
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.footer-disclaimer {
  font-size: 0.75rem !important;
  color: #475569 !important;
  margin-top: 0.4rem !important;
  max-width: 650px;
}

.footer-nav-bottom {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 750;
}

.footer-nav-bottom a {
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-nav-bottom a:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.footer-nav-bottom span {
  display: none;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav-bottom {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Google AdSense Dedicated Ad Slots & Layout Stability (Anti-CLS)
   ========================================================================== */

.ad-slot-container {
  position: relative;
  width: 100%;
  margin: 2.25rem 0;
  padding: 1.25rem 0.75rem;
  background: rgba(15, 23, 42, 0.02);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-lg);
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.ad-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  user-select: none;
}

.ad-slot-container ins.adsbygoogle {
  background: transparent;
  width: 100%;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
  .side-nav {
    position: static;
  }
}