/* ==========================================================================
   THE CHARLES CONNOLLY AGENCY (MYVALORAGENT.COM)
   Modern Production-Grade Stylesheet - Lead UI/UX Engineering
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --primary: #772432;           /* Heritage Burgundy */
  --primary-dark: #561823;      /* Deep Wine */
  --primary-darker: #3d1018;    /* Dark Charcoal Wine */
  --primary-light: #9a3547;     /* Bright Crimson Accent */
  --primary-soft: #fbf4f5;      /* Warm Subtle Burgundy Tint */
  --primary-subtle: #f3e6e8;    /* Border & Hover Subtleties */

  --accent-gold: #c8963e;       /* Warm Authority Gold */
  --accent-gold-light: #e4bc71; /* Highlight Gold */
  --accent-gold-dark: #a27429;  /* Deep Gold */

  /* Neutral Tones */
  --color-text: #1a1e24;        /* Rich Ink Black - WCAG AAA 14:1 on white */
  --color-text-muted: #4a5568;  /* Neutral Slate */
  --color-text-light: #718096;  /* Light Slate */
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;      /* Clean Off-White */
  --color-bg-card: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #edf2f7;

  /* State Colors */
  --color-success: #15803d;
  --color-success-bg: #f0fdf4;
  --color-info: #0369a1;
  --color-info-bg: #f0f9ff;
  --color-warning: #b45309;
  --color-warning-bg: #fffbeb;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Fluid Typography Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.6vw, 1.45rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 1vw, 1.85rem);
  --text-3xl: clamp(1.85rem, 1.6rem + 1.5vw, 2.35rem);
  --text-4xl: clamp(2.25rem, 1.9rem + 2vw, 3.15rem);

  /* Spacing System (8pt Grid) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Shadows & Elevations */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 8px 24px rgba(119, 36, 50, 0.25);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout Containers */
  --container-max: 1240px;
  --container-pad: clamp(1rem, 3vw, 2rem);
  --header-height: 84px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Document Defaults
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip; /* Clip horizontal overflow without disabling sticky header */
}

/* Media defaults preventing CLS and overflow */
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

/* Accessible Skip-to-Content Link */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: var(--space-4);
  z-index: 9999;
  background: var(--primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: top var(--transition-normal);
}

.skip-link:focus {
  top: var(--space-4);
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Accessible Visually Hidden Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Main Container Helper */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --------------------------------------------------------------------------
   3. Typography & Headings
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  border: 1px solid var(--primary-subtle);
}

.section-eyebrow.gold {
  color: var(--accent-gold-dark);
  background: #fef8ee;
  border-color: #f6e6cb;
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 680px;
}

.section-header {
  margin-bottom: var(--space-10);
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-subtitle {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-normal);
  min-height: 48px; /* Strict Ergonomic Touch Target */
  min-width: 48px;
  line-height: 1;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(119, 36, 50, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-secondary {
  background-color: var(--accent-gold);
  color: #1c1404;
  box-shadow: 0 4px 12px rgba(200, 150, 62, 0.25);
}

.btn-secondary:hover {
  background-color: var(--accent-gold-light);
  color: #1c1404;
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--primary);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--color-white);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: var(--color-bg-alt);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  min-height: 40px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
  min-height: 52px;
}

/* --------------------------------------------------------------------------
   5. Pinned Sticky Header & Navigation (Direct Child of Body)
   -------------------------------------------------------------------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal);
}

header.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* Utility Top Bar */
.header-topbar {
  background-color: var(--primary-darker);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-xs);
  padding-block: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.85);
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-gold-light);
  flex-shrink: 0;
}

.topbar-item a {
  color: var(--color-white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.topbar-item a:hover {
  color: var(--accent-gold-light);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link:hover {
  background: var(--primary-light);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Main Navbar Navigation */
.header-main {
  padding-block: var(--space-3);
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* Brand Logo */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
  height: 52px;
  aspect-ratio: 600 / 208;
  object-fit: contain;
}

/* Desktop Navigation Menu */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  min-height: 48px; /* Touch ergonomic */
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
  background-color: var(--primary-soft);
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-soft);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: var(--space-3);
  inset-inline-end: var(--space-3);
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  transition: transform var(--transition-fast);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 260px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-normal);
  z-index: 1050;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.dropdown-item a:hover {
  background-color: var(--primary-soft);
  color: var(--primary);
  padding-inline-start: var(--space-4);
}

.dropdown-icon {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  flex-shrink: 0;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  border: 1px solid var(--primary-subtle);
  color: var(--primary);
  padding: 0;
  z-index: 1100;
}

.mobile-nav-toggle:focus-visible {
  outline: 3px solid var(--accent-gold);
}

.hamburger-line {
  width: 24px;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  bottom: 0;
  width: min(85vw, 380px);
  background: var(--color-white);
  z-index: 1050;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  padding: var(--space-6);
}

[dir="rtl"] .mobile-drawer {
  transform: translateX(-100%);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
}

.drawer-close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.drawer-close-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-md);
  min-height: 48px;
}

.mobile-nav-item a:hover,
.mobile-nav-item a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.mobile-submenu {
  margin-inline-start: var(--space-4);
  padding-block: var(--space-1);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-submenu a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  min-height: 44px;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   6. Hero & Quoting Engines
   -------------------------------------------------------------------------- */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%);
  color: var(--color-white);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top right, rgba(200, 150, 62, 0.15), transparent 60%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  max-width: 640px;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-gold-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: var(--text-4xl);
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.hero-title span.highlight {
  color: var(--accent-gold-light);
}

.hero-desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero-feature-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-gold);
  flex-shrink: 0;
}

/* Quick Quote Box Glassmorphism Card */
.quote-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  box-shadow: var(--shadow-xl);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-card-header {
  margin-bottom: var(--space-5);
  text-align: center;
}

.quote-card-header h2 {
  font-size: var(--text-2xl);
  color: var(--primary-dark);
  margin-bottom: var(--space-1);
}

.quote-card-header p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.quote-form-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  min-height: 48px; /* Touch target minimum */
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(119, 36, 50, 0.15);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  text-align: center;
  margin-top: var(--space-2);
}

/* Page Inner Hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--color-white);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}

.page-hero-inner {
  max-width: 800px;
}

.breadcrumb-nav {
  margin-bottom: var(--space-3);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.breadcrumb-list a:hover {
  color: var(--color-white);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero h1 {
  font-size: var(--text-4xl);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.page-hero p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   7. Partner Carriers Carousel & Ticker
   -------------------------------------------------------------------------- */
.carriers-marquee-section {
  padding-block: var(--space-8);
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.carriers-marquee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.carriers-marquee-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.marquee-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-marquee-pause {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.btn-marquee-pause:hover {
  color: var(--color-text);
  background: var(--color-white);
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-width: 100%;
  animation: scrollMarquee 45s linear infinite;
}

.marquee-track.paused {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

[dir="rtl"] .marquee-track {
  animation-direction: reverse;
}

.carrier-logo-item {
  flex: 0 0 160px;
  height: 64px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carrier-logo-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.carrier-logo-img {
  max-height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter var(--transition-fast);
}

.carrier-logo-item:hover .carrier-logo-img {
  filter: grayscale(0%);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    overflow-x: auto;
  }
}

/* --------------------------------------------------------------------------
   8. Services Cards Grid
   -------------------------------------------------------------------------- */
.services-section {
  padding-block: var(--space-16);
  background-color: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-subtle);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--primary);
  transition: all var(--transition-fast);
}

.service-card:hover .service-card-icon-wrap {
  background: var(--primary);
  color: var(--color-white);
}

.service-card-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.service-card-features {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-3);
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-feature-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.service-feature-pill svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-gold);
  flex-shrink: 0;
}

.service-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

[dir="rtl"] .service-card:hover .service-card-link svg {
  transform: translateX(-4px);
}

/* --------------------------------------------------------------------------
   9. Agency Profile & "Culture of Care"
   -------------------------------------------------------------------------- */
.agency-overview-section {
  padding-block: var(--space-16);
  background-color: var(--color-bg-alt);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 992px) {
  .overview-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.overview-media {
  position: relative;
}

.overview-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-white);
}

.overview-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.overview-experience-badge {
  position: absolute;
  bottom: var(--space-4);
  inset-inline-start: var(--space-4);
  background: var(--primary);
  color: var(--color-white);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.experience-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--accent-gold-light);
}

.experience-label {
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-block: var(--space-6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-4);
}

.stat-item {
  text-align: center;
}

.stat-val {
  font-size: var(--text-2xl);
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.1;
}

.stat-lbl {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   10. "Insurance Made Simple" Feature Callout Banner
   -------------------------------------------------------------------------- */
.feature-callout-section {
  padding-block: var(--space-16);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.feature-callout-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .feature-callout-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.feature-callout-content h2 {
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.feature-callout-content p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

.feature-callout-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.case-study-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.case-study-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.case-study-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.savings-highlight {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.savings-amount {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--accent-gold-light);
  font-family: var(--font-display);
}

.savings-text {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   11. Client Testimonials Grid & Slider
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding-block: var(--space-16);
  background-color: var(--color-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-subtle);
  background: var(--color-white);
}

.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: var(--space-3);
  color: var(--accent-gold);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-quote {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.author-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   12. AEO & GEO FAQ Accordion (Generative & Voice Search Ready)
   -------------------------------------------------------------------------- */
.faq-section {
  padding-block: var(--space-16);
  background-color: var(--color-bg-alt);
}

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: start;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  min-height: 48px;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-4);
}

.faq-item.active .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   13. Tabular Data & Coverage Matrices (GEO Search Dense)
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
  margin-block: var(--space-6);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: var(--text-sm);
}

.data-table th,
.data-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  background-color: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

.badge-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge-required {
  background-color: #fef2f2;
  color: #991b1b;
}

.badge-recommended {
  background-color: #eff6ff;
  color: #1e40af;
}

.badge-included {
  background-color: #f0fdf4;
  color: #166534;
}

/* --------------------------------------------------------------------------
   14. Carrier Directory Page Specifics
   -------------------------------------------------------------------------- */
.carrier-search-bar {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .carrier-search-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.carrier-search-input-wrap {
  position: relative;
  flex: 1;
}

.carrier-search-input-wrap svg {
  position: absolute;
  top: 50%;
  inset-inline-start: var(--space-3);
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--color-text-light);
  stroke-width: 2;
  fill: none;
}

.carrier-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-inline-start: 2.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  min-height: 48px;
}

.carrier-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(119, 36, 50, 0.15);
}

.carrier-filter-pills {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  min-height: 38px;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: var(--color-white);
  border-color: var(--primary);
}

.carriers-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.carrier-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.carrier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-subtle);
}

.carrier-card-logo-wrap {
  height: 80px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-border-light);
}

.carrier-card-logo {
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.carrier-card-name {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  font-weight: 700;
}

.carrier-card-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  border-top: 1px solid var(--color-border-light);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.carrier-card-phone-number {
  font-weight: 700;
  color: var(--primary);
}

.carrier-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.carrier-card-actions .btn {
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 1rem;
}

/* Client Center Section */
.client-center-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-12);
  box-shadow: var(--shadow-xl);
}

.client-center-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .client-center-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.client-center-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-block: var(--space-4);
}

.client-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
}

.client-feature-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-gold);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   15. Contact Us & Consultation Forms
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-block: var(--space-12);
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr 1.25fr;
  }
}

.contact-info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-block: var(--space-6);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
}

.contact-item-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.contact-item-detail {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.map-wrapper {
  margin-top: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.map-iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
}

/* Quote Consultation Form */
.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-success-banner {
  display: none;
  background: var(--color-success-bg);
  border: 1px solid #bbf7d0;
  color: var(--color-success);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   16. Accessible Modal Dialog (Quote Builder)
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: var(--text-2xl);
  margin-bottom: 0;
  color: var(--primary-dark);
}

.modal-close-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

.modal-body {
  padding: var(--space-6);
}

/* --------------------------------------------------------------------------
   17. Comprehensive Multi-Column Footer
   -------------------------------------------------------------------------- */
footer.site-footer {
  background-color: var(--primary-darker);
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--space-16);
  margin-top: auto;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  max-width: 220px;
  height: auto;
  filter: brightness(0) invert(1); /* Sharp white on dark burgundy */
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.footer-badge-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--accent-gold-light);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-2);
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
}

.footer-links-list a:hover {
  color: var(--color-white);
  padding-inline-start: var(--space-2);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact-item a:hover {
  color: var(--accent-gold-light);
}

/* Footer Bottom Bar */
.footer-bottom {
  padding-block: var(--space-6);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   18. Back-To-Top Button (Fixed, >= 48px, Bottom-Right)
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  inset-inline-end: var(--space-6);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-normal);
  z-index: 990;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-primary);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* --------------------------------------------------------------------------
   19. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .primary-nav,
  .header-actions .btn-quote-desktop {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-layout {
    gap: var(--space-8);
  }
}

@media (max-width: 640px) {
  .topbar-info {
    justify-content: center;
    width: 100%;
  }

  .topbar-actions {
    display: none; /* Keep clean on small mobile */
  }

  .brand-logo {
    height: 42px;
  }

  .quote-card {
    padding: var(--space-5) var(--space-4);
  }

  .overview-stats {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .back-to-top {
    bottom: var(--space-4);
    inset-inline-end: var(--space-4);
  }
}
