/* HouseRush Design System v2 - Refactored */
/* Brand: Fair, Transparent, Local */

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primary - Trust & Professionalism */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  
  /* Accent - Warmth & Value */
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;
  
  /* Neutrals */
  --dark: #0f172a;
  --dark-secondary: #1e293b;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  
  /* Type Scale (1.25 ratio) */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  
  /* Semantic */
  --success: #10b981;
  --error: #ef4444;
  --star-color: #F59E0B;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px;
}

img { max-width: 100%; height: auto; display: block; }

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 var(--space-6); 
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  text-wrap: pretty;
}

h1 { font-size: 48px; letter-spacing: -0.02em; line-height: 1.15; font-weight: 800; }
h2 { font-size: 36px; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 16px; }
h3 { font-size: 24px; letter-spacing: -0.005em; line-height: 1.3; font-weight: 600; }
h4 { font-size: 22px; letter-spacing: -0.005em; line-height: 1.3; }

p { margin-bottom: 1em; max-width: 65ch; }
p:last-child { margin-bottom: 0; }

/* ===== HEADER ===== */
header {
  padding: 20px 0;
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-100);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  outline: none;
  border: none;
}

.logo img {
  height: 48px;
  width: auto;
  border: none;
  outline: none;
}

header .logo {
  flex: 0 0 170px;
}

header nav {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}

nav a {
  min-width: max-content;
  text-align: center;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

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

nav a.nav-active,
nav a.active {
  color: var(--primary);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.header-phone {
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: var(--primary);
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.phone-link:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.phone-link svg {
  width: 16px;
  height: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 48px;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  width: 100%;
}

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

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

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

.btn-white:hover {
  background: var(--gray-50);
}

.btn-xl {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-white:hover {
  border-color: white;
}

.nav-btn {
  padding: 10px 20px;
  background: var(--dark);
  font-size: 13px;
}

.nav-btn:hover {
  background: var(--gray-900);
}

.back-link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 15px;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 8px;
  text-align: center;
  width: 100%;
}

.back-link-btn:hover {
  text-decoration: underline;
}

/* ===== TRUST BADGES ===== */
/* ===== PROMISE GRID ===== */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.promise-item {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}

.promise-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.promise-item p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .promise-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .promise-item {
    padding: 24px 20px;
  }
}

.mobile-arrow {
  display: none;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: inline;
  }
}

.trust-bar {
  background: var(--gray-50);
  padding: 20px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.trust-bar .container,
.trust-bar-inner {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-bar-inner {
  width: 100%;
}

@media (max-width: 768px) {
  .trust-bar .container {
    display: block;
    padding: 0 24px;
  }
  .trust-bar-inner,
  .trust-bar .container:not(:has(.trust-bar-inner)) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
  }
  .trust-item {
    font-size: 12px;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

.trust-item .stars {
  display: flex;
  gap: 2px;
}

.trust-item .stars svg {
  width: 16px;
  height: 16px;
  fill: var(--star-color);
  stroke: none;
}

.trust-item a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ===== CTA BUTTONS ===== */
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
}

.cta-buttons .btn-white {
  padding: 16px 32px;
  font-size: 16px;
}

.cta-buttons .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  padding: 16px 32px;
  font-size: 16px;
}

.cta-buttons .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
  font-size: 15px;
}

.form-input,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 16px;
  transition: border-color 0.15s ease;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-900);
  min-height: 48px;
}

.form-input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 12px;
  text-align: center;
  justify-content: center;
}

.privacy-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.or-call {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--gray-600);
}

.or-call a {
  color: var(--primary);
  text-decoration: none;
}

.or-call a:hover {
  text-decoration: underline;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
}

.form-note {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 0;
}

.gray-bg,
section.gray-bg {
  background: var(--gray-50);
}

section.dark-bg {
  background: var(--dark);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-500);
  font-weight: 400;
}

/* ===== TABULAR NUMBERS ===== */
td, th, .price, .amount {
  font-variant-numeric: tabular-nums;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== STICKY CTA BAR (used globally) ===== */
.sticky-cta {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 16px 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  z-index: 50;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-column p {
  font-size: 15px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

footer h3.footer-heading,
footer h4 {
  color: #f3f4f6;
  font-size: 13px;
  margin-bottom: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: var(--space-3);
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-400);
}

footer a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

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

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: var(--space-4);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--dark-secondary);
  text-align: center;
  font-size: 14px;
}
.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== PAGE HERO (shared by all inner pages) ===== */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #e0f2fe 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
}

.page-hero h1 span {
  color: var(--primary);
}

.page-hero p {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn {
  min-width: 200px;
}

/* ===== TESTIMONIAL CAROUSEL (shared) ===== */
.testimonials {
  background: var(--gray-50);
}

.testimonial-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-track {
  flex: 1;
  position: relative;
  min-height: 280px;
}

.testimonial-track .testimonial-card {
  display: none;
  animation: fadeIn 0.3s ease;
}

.testimonial-track .testimonial-card.active,
.testimonial-track .testimonial-card.desktop-visible {
  display: block;
}

@media (min-width: 769px) {
  .testimonial-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    min-height: auto;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.testimonial-stars,
.stars {
  color: var(--star-color);
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.65;
  font-style: italic;
  color: #1e293b;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-900);
}

.testimonial-location {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

@media (min-width: 769px) {
  .carousel-btn,
  .carousel-dots {
    display: none;
  }
}

.carousel-btn {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--gray-50);
  border-color: var(--primary);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  color: var(--gray-600);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  pointer-events: none;
  cursor: default;
  display: inline-block;
  transition: all 0.15s ease;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 5px;
  background: var(--primary);
}

/* ===== CTA SECTION (shared) ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 36px;
  opacity: 0.95;
  max-width: none;
}

/* ===== NAVIGATION DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 12px;
  min-width: 200px;
  z-index: 1000;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--gray-50);
}

.nav-dropdown-menu a::after {
  display: none;
}

/* ===== MENU TOGGLE (mobile) ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--dark);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
}

/* ===== RESPONSIVE BASE ===== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 { font-size: 32px; line-height: 1.25; }
  h2 { font-size: 28px; line-height: 1.3; }
  h3 { font-size: 20px; line-height: 1.35; }
  
  .cta-section h2 { font-size: 32px; }

  .container {
    padding: 0 20px;
  }

  section {
    padding: 60px 0;
  }

  nav {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }

  .testimonial-carousel {
    gap: 12px;
  }

  .page-hero {
    padding: 100px 0 48px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .hero-cta {
    display: none;
  }

  .step-visual {
    display: none !important;
  }
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

::placeholder {
  color: #9ca3af;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Prevent layout shift from scrollbar */
html {
  overflow-y: scroll;
}

/* ==========================================
   MOBILE OPTIMIZATION SECTION
   ========================================== */

/* 1. MOBILE NAV FIX */
@media (max-width: 768px) {
  .mobile-nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 99;
  }
  
  .mobile-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: background 0.15s;
  }
  
  .mobile-nav a:hover {
    background: var(--gray-100);
  }
  
  .mobile-nav .btn {
    margin-top: 8px;
    text-align: center;
    color: white;
  }
}

/* 1b. MOBILE NAV SECTIONS */
.mobile-nav-section {
  padding: 8px 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 8px;
}

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
  transition: background 0.15s;
}

.mobile-nav-toggle:hover {
  background: var(--gray-100);
}

.mobile-nav-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-nav-links {
  display: none;
}

.mobile-nav-links.open {
  display: block;
}

.mobile-nav-links a {
  padding-left: 24px;
  font-size: 14px;
}

/* 2. STICKY BOTTOM CTA BAR */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 16px;
    gap: 8px;
    align-items: center;
  }
  
  .mobile-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    min-height: 48px;
    transition: all 0.15s ease;
  }
  
  .mobile-bar-call {
    background: var(--dark);
    color: white;
  }
  
  .mobile-bar-call:hover {
    background: var(--gray-900);
  }
  
  .mobile-bar-offer {
    background: var(--primary);
    color: white;
  }
  
  .mobile-bar-offer:hover {
    background: var(--primary-dark);
  }
  
  body {
    padding-bottom: 72px;
  }
}

/* 3. TOUCH TARGETS */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
  }
  
  a, button, [role="button"] {
    min-height: 44px;
  }
  
}

/* 3b. HIDE THIRD OFFER CARD ON MOBILE */
@media (max-width: 768px) {
  .offer-card-third {
    display: none !important;
  }
}

/* 4. TESTIMONIALS MOBILE - single card carousel with swipe */
@media (max-width: 768px) {
  .testimonial-track {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    touch-action: pan-y;
  }
  
  .testimonial-track .testimonial-card {
    display: none;
  }
  
  .testimonial-track .testimonial-card.active {
    display: block !important;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  
  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* 5. COMPARISON TABLE MOBILE */
@media (max-width: 768px) {
  .mini-comparison {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mini-comparison table {
    font-size: 13px;
    min-width: 300px;
  }

  .mini-comparison td,
  .mini-comparison th {
    padding: 8px 10px !important;
  }
}

/* 6. FORM INPUTS MOBILE */
@media (max-width: 768px) {
  .form-row,
  .cta-section form > div[style*="flex"],
  .cta-section form > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .form-row > *,
  .cta-section form input[type="tel"],
  .cta-section form input[type="email"] {
    width: 100% !important;
    flex: none !important;
  }
  
  input,
  textarea,
  select,
  .form-input {
    min-height: 48px;
    font-size: 16px !important;
  }
}

/* 7. FAQ ACCORDION — moved to FAQ PAGE section below */

/* 8. GLOBAL MOBILE FIXES (all pages) */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }
  
  /* Responsive media */
  svg, img, video, iframe {
    max-width: 100%;
    height: auto;
  }
  
  /* Map container */
  #wa-map-container {
    max-width: 100%;
  }
  
  /* All inline grid styles */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ===== FAQ PAGE ===== */
.faq-category {
  margin-bottom: 48px;
}

.faq-category h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: white;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: white;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--gray-100);
}

.faq-question svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  max-width: 20px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-answer-inner p {
  margin-bottom: 12px;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

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

@media (max-width: 768px) {
  .faq-question {
    font-size: 16px;
    padding: 16px 20px;
  }
  
  .faq-answer-inner {
    padding: 0 20px 16px;
    font-size: 15px;
  }
}

/* ===== HOMEPAGE ===== */
.hero {
  min-height: calc(100vh - 80px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 20px 0 0;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #e0f2fe 100%);
}

.hero > .container {
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--gray-700);
}

.hero-benefit svg {
  width: 24px;
  height: 24px;
  color: var(--success);
  flex-shrink: 0;
}

.hero-form {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-xl);
}

.hero-form h3 {
  font-size: 24px;
  margin-bottom: 8px;
  text-align: center;
}

.form-testimonial {
  background: #eff6ff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
  border: 1px solid #dbeafe;
}

.form-testimonial .stars {
  color: var(--star-color);
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: 3px;
}

.form-testimonial .quote {
  font-size: 17px;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.5;
}

.form-testimonial .author {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 600;
}

.situations-strip {
  background: #334155;
  padding: 14px 0;
  text-align: center;
  margin-top: auto;
}

.situations-strip p {
  color: var(--gray-300);
  font-size: 16px;
  margin: 0;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.situations-strip span {
  color: var(--white);
  font-weight: 500;
}

.situations-strip .sep {
  color: var(--gray-300);
  font-weight: 400;
}

.situations-strip strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--gray-600);
  font-size: 15px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

.why-content h2 {
  margin-bottom: 20px;
}

.why-content p {
  font-size: 17px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.why-list {
  list-style: none;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
}

.why-list svg {
  width: 24px;
  height: 24px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-image {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

.why-image svg {
  max-width: 100%;
  height: auto;
}

.situations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.situation-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.situation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.situation-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.situation-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.situation-card p {
  font-size: 14px;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 80px 0 0;
  }
  
  .hero > .container {
    flex: 1;
    display: flex;
    align-items: center;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 17px;
  }
  
  .hero-benefits {
    gap: 10px;
  }
  
  .hero-benefit {
    font-size: 15px;
  }
  
  .hero-benefit svg {
    width: 20px;
    height: 20px;
  }
  
  .hero-form {
    padding: 24px;
  }
  
  .hero-form h2 {
    font-size: 21px !important;
  }
  
  .steps-grid,
  .situations-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }

  .situations-strip {
    margin-top: 24px;
  }
  .situations-strip p {
    display: block;
    text-align: center;
    font-size: 14px;
    max-width: none;
  }
  .situations-strip .sep {
    margin: 0 4px;
  }
}

/* ===== LEGAL PAGES (privacy, terms) ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}
.legal-content h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.legal-content .last-updated {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 40px;
  margin-bottom: 16px;
}
.legal-content p, .legal-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 16px;
}
.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content li {
  margin-bottom: 8px;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.contact-info p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-detail .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail .icon svg {
  width: 22px;
  height: 22px;
}

.contact-detail .text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.contact-detail .text p {
  font-size: 15px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

.contact-detail .text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-detail .text a:hover {
  text-decoration: underline;
}

.contact-form-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 40px 32px;
}

.contact-form-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.contact-form-card > p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.map-container {
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .map-container iframe {
    height: 300px;
  }
}

/* ===== HOW IT WORKS PAGE ===== */
.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 60px;
}

.process-step.reverse .step-content {
  order: 2;
}

.process-step.reverse .step-visual {
  order: 1;
}

.step-label {
  display: block;
  color: var(--primary);
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1.1;
}

.step-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}

.step-content > p {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.step-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.5;
}

.step-details li svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-visual img,
.step-visual svg {
  max-width: 100%;
  height: auto;
  max-height: 360px;
}

.step-content-bordered {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  background: #f8fafc;
  position: relative;
  z-index: 2;
}

.mini-comparison {
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  background: white;
}

.mini-comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mini-comparison thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mini-comparison thead th:first-child {
  background: #f8fafc;
  color: var(--gray-500);
}

.mini-comparison thead th.cash-col {
  background: #eff6ff;
  color: var(--primary);
  text-align: center;
}

.mini-comparison thead th.list-col {
  background: #f0fdf4;
  color: #16a34a;
  text-align: center;
}

.mini-comparison tbody td {
  padding: 10px 16px;
  border-top: 1px solid #f1f5f9;
  color: var(--gray-700);
}

.mini-comparison tbody td:not(:first-child) {
  text-align: center;
  font-weight: 600;
}

.mini-comparison tfoot td {
  padding: 14px 16px;
  border-top: 2px solid #e5e7eb;
  font-weight: 800;
  font-size: 16px;
}

.mini-comparison tfoot td:not(:first-child) {
  text-align: center;
}

.mini-comparison tfoot td.cash-val {
  color: var(--primary);
}

.mini-comparison tfoot td.list-val {
  color: #16a34a;
}

.mini-comparison-note {
  padding: 16px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.path-card {
  background: #eff6ff;
  border: 2px solid #dbeafe;
  border-radius: 16px;
  padding: 32px;
}

.path-card.listing {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.path-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.path-card.listing .path-icon {
  background: #16a34a;
}

.path-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.path-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.path-card.listing .path-badge {
  background: #16a34a;
}

.path-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.path-best-for {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: 20px;
}

.path-card > p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 24px;
}

.path-features {
  list-style: none;
  padding: 0;
}

.path-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--gray-700);
}

.path-features li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.path-card.listing .path-features li svg {
  color: #16a34a;
}

@media (max-width: 768px) {
  .process-step,
  .process-step.reverse {
    grid-template-columns: 1fr;
  }
  
  .process-step.reverse .step-content,
  .process-step.reverse .step-visual {
    order: unset;
  }
  
  .paths-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ABOUT PAGE ===== */
.story-section {
  padding: 80px 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gray-900);
}

.story-text p {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.team-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.team-header {
  text-align: center;
  margin-bottom: 48px;
}

.team-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.team-header p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--primary-light);
}

.team-card .initials {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.team-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.team-card .role {
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.team-card .license {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: block;
}

.team-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.testimonials-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.testimonials-header p {
  font-size: 18px;
  color: var(--gray-600);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonials-grid .testimonial-card {
  background: var(--white);
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.testimonials-grid .stars {
  color: var(--star-color);
  font-size: 20px;
  margin-bottom: 16px;
}

.testimonials-grid blockquote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 16px;
  font-style: italic;
}

.testimonials-grid .attribution {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.testimonials-grid .location {
  font-size: 14px;
  color: var(--gray-500);
}

.values-section {
  padding: 80px 0;
}

.values-header {
  text-align: center;
  margin-bottom: 48px;
}

.values-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.values-header p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.value-card {
  padding: 32px;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  background: var(--white);
}

.value-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.value-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.approach-section {
  padding: 80px 0;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .story-grid,
  .team-grid,
  .values-grid,
  .approach-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SITUATION PAGES (shared: foreclosure, divorce, inheritance, repairs, relocating, landlord) ===== */
.content-section {
  padding: 60px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gray-900);
}

.content-text p {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.content-text ul {
  list-style: none;
  margin: 24px 0;
}

.content-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--gray-700);
}

.content-text ul li svg {
  width: 24px;
  height: 24px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-box {
  background: #eff6ff;
  border: 2px solid #dbeafe;
  border-radius: 16px;
  padding: 32px;
  position: sticky;
  top: 100px;
}

.highlight-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.highlight-box p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 16px;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.related-link {
  display: block;
  padding: 20px 24px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  text-align: left;
  transition: all 0.15s ease;
}

.related-link:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.related-link strong {
  display: block;
  font-size: 18px;
  color: #0f172a;
  margin-bottom: 4px;
}

.related-link span {
  font-size: 15px;
  color: #6b7280;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .content-grid,
  .content-grid.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }
  
  .content-grid.reverse > * {
    direction: ltr;
  }
  
  .highlight-box {
    position: static;
  }
}

/* ===== REPAIRS PAGE (repair cost grid + testimonial boxes) ===== */
.repair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 40px auto 0;
}

.repair-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.repair-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.repair-card .cost {
  font-size: 24px;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 8px;
}

.repair-card p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* testimonial-box styles moved to reviews.css */

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

/* Fix "Day 1:" wrapping inside flex list items */
.content-text ul li strong {
  white-space: nowrap;
}

/* ===== CITY PAGES ===== */
.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* Typography for SEO pages (city, county, situation) */
.content-narrow h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.content-narrow h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}
.content-narrow a {
  color: var(--gray-900);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-300);
}
.content-narrow a:hover {
  border-bottom-color: var(--gray-900);
}
.content-narrow h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.content-narrow p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.content-narrow ul, .content-narrow ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-narrow li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.content-narrow strong {
  color: var(--gray-900);
}

.content-narrow hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2.5rem 0;
}

.content-narrow img {
  max-width: 100%;
  height: auto;
}

/* Clear floats after image sections */
.content-narrow::after {
  content: "";
  display: table;
  clear: both;
}

.city-hero-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 40px;
  object-fit: cover;
  max-height: 400px;
}

/* Market Stats */
.market-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.stat-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Neighborhood Tags */
.neighborhood-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.neighborhood-tag {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.15s ease;
}

.neighborhood-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

/* Dual Model Cards */
.dual-model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.model-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
}

.model-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary);
}

.model-card ul {
  list-style: none;
  padding: 0;
}

.model-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 16px;
  color: var(--gray-700);
  padding-left: 28px;
  position: relative;
}

.model-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.model-card ul li:last-child {
  border-bottom: none;
}

/* VS Comparison (we-buy-houses pages) */
.comparison-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

.vs-card {
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  background: var(--white);
}

.vs-card.highlighted {
  border-color: var(--primary);
  background: #f0f7ff;
}

.vs-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.vs-list {
  list-style: none;
  padding: 0;
}

.vs-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-100);
}

.vs-list li:last-child {
  border-bottom: none;
}

.vs-list.positive li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.vs-list.negative li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--error);
  font-weight: 700;
}

/* CTA Form (city pages) */
.cta-form .form-group {
  margin-bottom: 12px;
}

.cta-form .form-input {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.cta-form .form-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.cta-form .form-input:focus {
  border-color: var(--white);
  background: rgba(255,255,255,0.25);
}

.cta-form .btn {
  margin-top: 8px;
}

/* Section spacing */
.section {
  padding: 64px 0;
}

.bg-light {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* City page mobile */
@media (max-width: 768px) {
  .market-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 16px 20px;
  }
  
  .stat-number {
    font-size: 24px;
    margin-bottom: 0;
  }
  
  .dual-model-grid,
  .comparison-simple {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .neighborhood-tag {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .city-hero-img {
    border-radius: 12px;
    max-height: 250px;
  }
  
  .section {
    padding: 48px 0;
  }
}

/* ===== BLOG ===== */
/* Blog list layout */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.blog-list-item:first-child {
  padding-top: 0;
}

.blog-list-item:last-child {
  border-bottom: none;
}

.blog-list-item:hover {
  background: #f8f9fa;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 8px;
}

.blog-list-thumb {
  width: 120px;
  min-width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.blog-list-thumb-empty {
  background: #e8edf2;
}

.blog-list-content {
  flex: 1;
  min-width: 0;
}

.blog-list-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  color: var(--text);
  line-height: 1.3;
}

.blog-list-item:hover h2 {
  color: var(--primary);
}

.blog-list-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.35rem;
}

.blog-list-updated {
  color: var(--primary);
  font-weight: 500;
}

.blog-list-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .blog-list-thumb {
    width: 80px;
    min-width: 80px;
    height: 56px;
  }
  .blog-list-content h2 {
    font-size: 1rem;
  }
  .blog-list-content p {
    -webkit-line-clamp: 1;
  }
}

/* Legacy blog card styles (kept for reference) */
.blog-grid { display: grid; gap: 2rem; }
.blog-card a { display: block; text-decoration: none; color: inherit; border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s; }
.blog-card a:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.blog-card-img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-body time { font-size: 0.85rem; color: #666; }
.blog-card-body h2 { font-size: 1.25rem; margin: 0.5rem 0; color: var(--text); }
.blog-card-body p { font-size: 0.95rem; color: #555; line-height: 1.5; }

.blog-meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem;
}

.blog-meta a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

/* Override .page-hero's light gradient for blog posts with hero images */
.page-hero.blog-hero-bg {
  background: none;
}

.blog-hero-bg h1,
.blog-hero-bg h2,
.blog-hero-bg p,
.blog-hero-bg a,
.blog-hero-bg time {
  color: white !important;
}

.blog-hero-bg .blog-subtitle {
  color: rgba(255,255,255,0.85) !important;
}

.blog-hero-bg .blog-meta a {
  color: rgba(255,255,255,0.9) !important;
}

.blog-tagline {
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-top: 0.25rem;
}

.blog-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
}

.blog-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.blog-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.blog-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.blog-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.blog-content ul, .blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.blog-content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2.5rem 0;
}

.blog-toc {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.blog-toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.blog-toc ol {
  padding-left: 1.25rem;
  margin: 0;
}

.blog-toc li {
  margin-bottom: 0.25rem;
}

.blog-toc a {
  color: var(--primary);
  text-decoration: none;
}

.blog-toc a:hover {
  text-decoration: underline;
}

/* Tables inside content-narrow (markdown-rendered SEO pages) */
.content-narrow table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.content-narrow table td,
.content-narrow table th {
  padding: 0.6rem 1rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.content-narrow table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.content-narrow table thead th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.content-narrow table tr:nth-child(even) {
  background: #f8f9fa;
}

.content-narrow table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .content-narrow table {
    font-size: 0.85rem;
  }
  .content-narrow table td,
  .content-narrow table th {
    padding: 0.5rem 0.6rem;
  }
  .content-narrow table td:first-child {
    white-space: normal;
  }
}

/* Buyer comparison tables */
.buyer-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.buyer-table td, .buyer-table th {
  padding: 0.6rem 1rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.buyer-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.buyer-table tr:nth-child(even) {
  background: #f8f9fa;
}

.buyer-table td:first-child {
  width: 160px;
  white-space: nowrap;
}

.comparison-table td:first-child {
  font-weight: 600;
}

/* Blog FAQ items (non-accordion) */
.blog-content .faq-item {
  padding: 1.25rem 1.5rem;
}

.blog-content .faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.blog-content .faq-item p {
  margin-bottom: 0;
}

.blog-disclaimer {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .buyer-table {
    font-size: 0.85rem;
  }
  .buyer-table td, .buyer-table th {
    padding: 0.4rem 0.6rem;
  }
  .buyer-table td:first-child {
    width: auto;
  }
  .comparison-table {
    display: block;
    overflow-x: auto;
  }
}

/* Learn More Collapsible Sections */
.learn-more-section {
  padding: 60px 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}
.learn-more-section .container {
  max-width: 800px;
  margin: 0 auto;
}
.learn-more-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 24px;
  text-align: center;
}
.learn-more-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.learn-more-grid details {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.learn-more-grid details[open] {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.learn-more-grid summary {
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.learn-more-grid summary::-webkit-details-marker {
  display: none;
}
.learn-more-grid summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.learn-more-grid details[open] summary::after {
  content: "−";
}
.learn-more-grid .details-content {
  padding: 0 24px 24px;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}
.learn-more-grid .details-content p {
  margin-bottom: 12px;
}
.learn-more-grid .details-content p:last-child {
  margin-bottom: 0;
}
.learn-more-grid .details-content ul {
  margin: 8px 0 12px 20px;
  padding: 0;
}
.learn-more-grid .details-content li {
  margin-bottom: 6px;
}
.learn-more-grid .details-content strong {
  color: #0f172a;
}

/* Related Internal Links */
.related-links {
  border-top: 1px solid #e5e7eb;
  padding-top: 48px;
}
.related-links h2 {
  font-size: 24px;
  margin-bottom: 32px;
  color: #0f172a;
}
.related-group {
  margin-bottom: 28px;
}
.related-group h3 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.related-list li {
  margin: 0;
  padding: 0;
}
.related-list a {
  color: #2563eb;
  text-decoration: none;
  font-size: 15px;
  line-height: 2;
}
.related-list a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* ===== AUTHOR BIO BOX ===== */
.author-bio {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin: 32px 0;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.author-bio-img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.author-bio-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.author-bio-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.author-bio-info strong {
  font-size: 16px;
  color: #111827;
}
.author-bio-title {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}
.author-bio-divider {
  width: 1px;
  align-self: stretch;
  background: #d1d5db;
  flex-shrink: 0;
}
.author-bio-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 640px) {
  .author-bio { flex-wrap: wrap; }
  .author-bio-divider { display: none; }
  .author-bio-desc { border-top: 1px solid #e5e7eb; padding-top: 12px; width: 100%; }
}
