:root {
  --primary: #0077B6;
  --primary-hover: #005F92;
  --primary-light: #E0F2FE;
  --secondary: #90E0EF;
  --dark: #03045E;
  --dark-surface: #0F172A;
  --emerald: #10B981;
  --emerald-light: #ECFDF5;
  --orange: #F97316;
  --orange-hover: #EA580C;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 119, 182, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 35px -10px rgba(3, 4, 94, 0.15);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font);
  color: var(--gray-800);
  background-color: var(--gray-50);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px; /* Space for fixed sticky header */
  padding-bottom: 72px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 4.5rem 0;
}

/* Header & Sticky Navigation (Hide on scroll down, show on scroll up) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-text-highlight {
  color: var(--primary);
}

.logo-text-sub {
  font-weight: 400;
  color: var(--gray-600);
}

.logo-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* Desktop Navigation (5-6 items) */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.95rem;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  font-family: var(--font);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active, .nav-item.active > .nav-link {
  color: var(--primary);
  font-weight: 700;
}

/* Visual Active Indicator */
.nav-link.active::after, .nav-item.active > .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

/* Dropdown Menus (Hover & Click) */
.nav-dropdown {
  position: relative;
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1050;
}

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

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  min-height: 44px; /* touch target */
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-800);
  transition: all 0.2s ease;
}

.dropdown-item i {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.dropdown-item:hover, .dropdown-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* Header Search Form */
.header-search {
  position: relative;
  width: 220px;
}

.header-search input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  background: var(--gray-50);
  outline: none;
  transition: all 0.2s;
  height: 42px;
}

.header-search input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.header-search .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1100;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  color: var(--gray-800);
  min-height: 44px;
}

.search-result-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-toggle-btn .icon-close {
  display: none;
}

/* Mobile Full-Screen Overlay Navigation */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  overflow-y: auto;
}

body.mobile-menu-open {
  overflow: hidden !important;
}

.mobile-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mobile-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  color: var(--gray-800);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-close-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-search-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.mobile-search-wrap input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  font-size: 1rem;
  outline: none;
  background: var(--gray-50);
  height: 48px;
}

.mobile-search-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  min-height: 52px; /* Large touch target min 44x44px */
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.mobile-nav-link i {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1rem;
  min-height: 52px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font);
}

.mobile-dropdown-label {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-dropdown-label i {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.mobile-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.mobile-dropdown-group.open .mobile-arrow {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  list-style: none;
  padding-left: 2.5rem;
  margin-top: 0.25rem;
}

.mobile-dropdown-group.open .mobile-submenu {
  display: block;
}

.mobile-submenu-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  min-height: 48px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
}

.mobile-submenu-link:hover, .mobile-submenu-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.btn-block {
  width: 100%;
  min-height: 52px;
}

.mobile-footer-note {
  font-size: 0.8rem;
  text-align: center;
  color: var(--gray-600);
  margin-top: 0.75rem;
}

/* Breadcrumbs Styling */
.breadcrumb-container {
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.88rem;
  color: var(--gray-600);
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  color: var(--gray-600);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb-sep {
  width: 14px;
  height: 14px;
  color: var(--gray-300);
  flex-shrink: 0;
}

.breadcrumb-current {
  color: var(--primary);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
  max-width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.45);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-orange:hover {
  background: var(--orange-hover);
  color: #fff;
  transform: translateY(-2px);
}

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  min-height: 40px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #03045E 0%, #0077B6 60%, #0096C7 100%);
  color: #fff;
  padding: 4.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(144, 224, 239, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--secondary);
}

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-feature-item i {
  color: var(--emerald);
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

/* Quick Search Box in Hero */
.search-card {
  background: #fff;
  color: var(--gray-900);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.search-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.hero-search-input-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.hero-search-input-wrap input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
  height: 52px;
}

.hero-search-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.15);
}

.hero-search-input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.2rem;
}

.city-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.city-pill {
  font-size: 0.8rem;
  background: var(--gray-100);
  color: var(--gray-800);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.city-pill:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
}

/* Calculator Section & Widget */
.calc-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: #fff;
  outline: none;
  font-family: var(--font);
  transition: all 0.2s;
  min-height: 48px;
}

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

.calc-results-box {
  background: linear-gradient(135deg, var(--emerald-light) 0%, #D1FAE5 100%);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  border: 1px solid #A7F3D0;
}

.calc-savings-big {
  font-size: 2.8rem;
  font-weight: 900;
  color: #065F46;
  line-height: 1;
  margin: 0.5rem 0;
}

/* Local City Directory List */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.location-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
  min-height: 52px;
}

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

.location-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.location-info span {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.location-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Stats Counter */
.stats-banner {
  background: var(--dark-surface);
  color: #fff;
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--gray-300);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  min-height: 52px;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  display: none;
}

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

/* Footer */
.footer {
  background: var(--dark-surface);
  color: var(--gray-300);
  padding-top: 4.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 340px;
}

.footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
  display: inline-block;
  padding: 0.2rem 0;
  min-height: 36px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray-300);
}

/* Sticky Bottom Bar */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border-top: 3px solid var(--orange);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  padding: 0.75rem 0;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.sticky-cta-bar.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.sticky-cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sticky-cta-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.sticky-cta-badge {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #F97316 0%, #E11D48 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  animation: pulse-glow 2.5s infinite;
  min-height: 44px;
}

.sticky-cta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.75), 0 0 0 3px rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #EA580C 0%, #BE123C 100%);
}

.sticky-cta-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--gray-300);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.sticky-cta-close:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 4px 28px rgba(249, 115, 22, 0.85), 0 0 0 4px rgba(249, 115, 22, 0.3);
  }
}

/* Scroll Animation Class */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--gray-300);
  color: var(--gray-800);
  font-weight: 700;
  font-size: 0.9rem;
}

.page-link.active, .page-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
  .header-search {
    width: 180px;
  }
  
  .logo-badge {
    display: none;
  }
}

@media (max-width: 992px) {
  .desktop-nav, .header-search {
    display: none;
  }

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

  .hero-grid, .grid-3, .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .header-cta-btn {
    display: none;
  }

  .sticky-cta-container {
    gap: 0.6rem;
  }

  .desktop-only {
    display: none;
  }

  .sticky-cta-badge {
    display: none;
  }

  .sticky-cta-text {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .sticky-cta-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    margin-right: 0.35rem;
  }
}

@media (max-width: 600px) {
  .grid-4, .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Un libellé de bouton long ne doit jamais forcer la page à s'élargir */
  .btn {
    white-space: normal;
    text-align: center;
  }

  .sticky-cta-text, .sticky-cta-container {
    min-width: 0;
  }

  .sticky-cta-text span {
    overflow-wrap: break-word;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .calc-card {
    padding: 1.5rem;
  }

  body {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   Pillar page components: table of contents, timeline, stepper, bar chart
   ========================================================================== */

/* Table of contents (sommaire) */
.toc-box {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}

.toc-title {
  font-weight: 800;
  color: var(--dark);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.toc-list {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

.toc-list a {
  color: var(--gray-800);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toc-list a:hover {
  color: var(--primary);
}

.toc-list a i {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .toc-list {
    columns: 1;
  }
}

/* Timeline */
.timeline {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.timeline-item {
  flex: 1;
  position: relative;
  padding-top: 2.25rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gray-200);
}

.timeline-item:first-child::before {
  left: 50%;
}

.timeline-item:last-child::before {
  right: 50%;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 1;
}

.timeline-item.is-current .timeline-dot {
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--orange);
  width: 26px;
  height: 26px;
}

.timeline-year {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--dark);
  text-align: center;
  margin-bottom: 0.35rem;
}

.timeline-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  text-align: center;
}

.timeline-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 0.4rem;
}

.timeline-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
    gap: 0;
  }
  .timeline-item {
    padding-top: 0;
    padding-left: 2.25rem;
    padding-bottom: 1.5rem;
  }
  .timeline-item::before {
    top: 0;
    bottom: 0;
    left: 10px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .timeline-item:first-child::before {
    top: 10px;
  }
  .timeline-item:last-child::before {
    bottom: calc(100% - 10px);
  }
  .timeline-dot {
    top: 0;
    left: 10px;
  }
  .timeline-year, .timeline-card {
    text-align: left;
  }
}

/* Stepper (procédure numérotée) */
.stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stepper-item {
  display: flex;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 2rem;
}

.stepper-item:last-child {
  padding-bottom: 0;
}

.stepper-item::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 19px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.stepper-item:last-child::before {
  display: none;
}

.stepper-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  z-index: 1;
}

.stepper-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0.35rem 0 0.4rem;
}

.stepper-content p {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

/* Bar chart (comparatif coût banque / délégation) */
.chart-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.chart-svg-wrap {
  display: flex;
  justify-content: center;
}

.chart-bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  fill: var(--gray-800);
}

.chart-value-label {
  font-size: 1rem;
  font-weight: 900;
  fill: var(--gray-900);
}

.chart-bar {
  transition: opacity 0.15s ease;
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 0.85;
}

.chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.chart-table th, .chart-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.chart-table th {
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.chart-table td strong {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .chart-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Page ville : contenu principal + sidebar */
.ville-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
}

.ville-garanties-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  color: var(--gray-800);
  font-size: 0.95rem;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .ville-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .ville-garanties-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Comparison table (contrat groupe vs délégation) */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare-table th, .compare-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.compare-table thead th {
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.compare-table thead th:first-child {
  border-top-left-radius: var(--radius-md);
}

.compare-table thead th:last-child {
  border-top-right-radius: var(--radius-md);
}

.compare-table tbody th {
  color: var(--gray-800);
  font-weight: 700;
  background: var(--gray-50);
  width: 30%;
}

.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th {
  border-bottom: none;
}

.compare-table .cell-good {
  color: var(--emerald);
  font-weight: 700;
}

.compare-table .cell-bad {
  color: #DC2626;
  font-weight: 700;
}