/* ============================================
   Best Local Dumpster – Premium Visual Design
   Phase 1–4: Top 3 ranking, SEO, UX, Monetization
   ============================================
   THEME GURU: Single dark theme end-to-end.
   - Accent: --accent-primary (Vivid Red)
   - Gold/Silver/Bronze: Metallic Gradients
   - Glassmorphism 2.0: Rich blurs and noise
   ============================================ */

:root {
  /* --- Palette: Black, Red, White --- */
  --bg-deep: #000000;
  --bg-subtle: #0a0a0a;
  --surface-1: #111111;
  --surface-2: #1a1a1a;
  --surface-3: #222222;

  /* --- Glassmorphism --- */
  --glass-base: rgba(10, 10, 10, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);

  /* --- Typography & Text --- */
  --text-main: #ffffff;
  --text-muted: #e0e0e0;
  --text-dim: #a0a0a0;

  /* --- Brand Accents --- */
  --accent-primary: #FF0000;
  /* Vivid Red */
  --accent-secondary: #FFFFFF;
  /* Pure White */
  --gradient-brand: linear-gradient(135deg, #FF0000, #990000);
  --accent-glow: rgba(255, 0, 0, 0.6);

  /* --- Status --- */
  --color-gold: #FF0000;
  /* Remapped to Red */
  --color-gold-glow: rgba(255, 0, 0, 0.3);
  --color-silver: #FFFFFF;
  --color-bronze: #333333;
  --color-success: #00FF00;
  --color-error: #FF0000;

  /* --- Fonts (Fluid Type) --- */
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  /* --- UI Tokens --- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.8);
  --shadow-neon: 0 0 20px var(--accent-glow), 0 0 40px rgba(255, 0, 0, 0.15);

  --t-fast: 0.15s ease;
  --t-smooth: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) var(--bg-deep);
}

/* Custom Scrollbar */
*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

*::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-deep);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-deep);
  /* Striking Red/Black theme */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(0, 0, 0, 0.8) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary);
  color: white;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--t-fast);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---- Header: Glassmorphism ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--t-smooth), box-shadow var(--t-smooth);
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.9);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

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

.logo img {
  height: 60px;
  width: auto;
  margin-top: 10px;
  filter: brightness(0) invert(1);
  /* Ensure logo is white */
  transition: opacity var(--t-fast);
}

.logo:hover img {
  opacity: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  transition: all var(--t-fast);
  border: 1px solid transparent;
}

.nav a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  cursor: pointer;
}

.menu-icon-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 5px 0;
  transition: var(--t-fast);
}

/* ---- Hero: Premium Glass & Neon ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(100%) contrast(1.2) brightness(0.4);
  transform: scale(1.05);
  animation: breathe 30s ease-in-out infinite alternate;
}

@keyframes breathe {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.15);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(5, 5, 5, 0.4) 0%, var(--bg-deep) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.8) 0%, var(--bg-deep) 95%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Premium Gradient Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin: 0 0 1.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: var(--radius-full);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeUp var(--t-bounce) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeUp var(--t-bounce) 0.1s both;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  font-weight: 400;
  animation: fadeUp var(--t-bounce) 0.2s both;
}

.hero-trust {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 2rem auto 0;
  animation: fadeUp var(--t-bounce) 0.4s both;
}

/* Glass Search Form */
.search-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  animation: fadeUp var(--t-bounce) 0.3s both;
}

.search-form:focus-within {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-neon), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.search-input-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-input {
  width: 100%;
  height: 56px;
  padding: 0 1.5rem;
  font-size: 1.1rem;
  font-family: inherit;
  color: #fff;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  transition: all var(--t-fast);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-input:focus {
  outline: none;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 100;
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
}

.autocomplete-item {
  padding: 0.8rem 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1px solid var(--surface-1);
  transition: background var(--t-fast);
}

.autocomplete-item:hover {
  background: var(--surface-3);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--t-smooth);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 0, 0, 0.5);
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Social Proof Ticker ---- */
.social-proof-ticker {
  background: var(--bg-subtle);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 4rem;
  animation: ticker 40s linear infinite;
}

.ticker-item {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.ticker-item::before {
  content: "•";
  color: var(--accent-primary);
  margin-right: 0.5rem;
  font-weight: bold;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---- Ranking Section ---- */
.main-content {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin: 0 0 1rem;
  color: #fff;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.ranking-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.5rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--t-fast);
}

.badge:hover {
  border-color: var(--accent-primary);
  color: #fff;
}

.top-three-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

/* ---- Business Card: Holographic ---- */
.business-card {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(20, 22, 28, 0.6) 0%, rgba(10, 12, 16, 0.8) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform var(--t-bounce), box-shadow var(--t-bounce);
  overflow: hidden;
}

.business-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-glow) inset;
  border-color: rgba(255, 255, 255, 0.15);
}

.business-card[data-rank="1"] {
  border: 1px solid rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.15);
}

.rank-pill {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.4rem 1rem;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.business-card[data-rank="1"] .rank-pill {
  background: linear-gradient(135deg, #FF0000 0%, #990000 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

.business-card[data-rank="2"] .rank-pill {
  background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
  color: #000;
}

.business-card[data-rank="3"] .rank-pill {
  background: linear-gradient(135deg, #444444 0%, #222222 100%);
  color: #fff;
}

.card-media {
  height: 100%;
  min-height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.business-card:hover .card-media img {
  transform: scale(1.1);
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.business-name {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.5rem;
  background: linear-gradient(90deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.business-summary {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.google-badge .stars {
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.rating-value {
  font-weight: 700;
  color: #fff;
}

.card-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--t-fast);
}

.card-link-website {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.card-link-website:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.card-link-directions {
  background: var(--surface-3);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.card-link-directions:hover {
  background: var(--surface-1);
  border-color: var(--text-muted);
}

/* ---- CTA & Footer ---- */
.cta-section {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--glass-border);
}

.cta-card {
  text-align: center;
  padding: 4rem 2rem;
  background: radial-gradient(circle at 50% 0%, rgba(20, 22, 28, 0.8) 0%, rgba(10, 12, 16, 1) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 800px;
  margin: 0 auto;
}

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  background: #020203;
  text-align: center;
}

.footer-links a {
  color: var(--text-muted);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: 0.2s;
}

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

/* ---- Utilities & Animations ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile Tweaks */
@media (max-width: 768px) {
  .hero {
    padding-top: 6rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .business-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .card-media {
    min-height: 180px;
  }

  .rank-pill {
    top: 1rem;
    right: 1rem;
    left: auto;
  }
}
}

/* =========================================
   RESTORED SECTIONS: How it Works, Interlinking, Overlays
   ========================================= */

/* ---- How It Works ---- */
.how-section {
  padding: 6rem 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-deep);
}

.how-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin: 0 0 3rem;
  color: var(--text-main);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.how-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 800px;
  display: grid;
  gap: 1.5rem;
}

.how-list li {
  padding: 2rem;
  border: 1px solid var(--glass-border);
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
}

.how-list li:hover {
  background: var(--surface-2);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.how-list li::before {
  content: counter(how);
  counter-increment: how;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--color-gold);
  line-height: 1;
  text-shadow: 0 0 15px var(--color-gold-glow);
}

.how-list {
  counter-reset: how;
}

.how-list strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* ---- Interlinking ---- */
.interlink-section {
  padding: 5rem 0;
  background: var(--surface-1);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.interlink-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.state-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.state-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--t-fast);
}

.state-links a:hover {
  border-color: var(--accent-primary);
  color: #fff;
  background: rgba(255, 0, 0, 0.1);
}

/* ---- Lead Capture Overlay (Modal) ---- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-smooth);
}

.overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.overlay-panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.95);
  transition: transform var(--t-bounce);
  max-height: 90vh;
  overflow-y: auto;
}

.overlay[aria-hidden="false"] .overlay-panel {
  transform: translateY(0) scale(1);
}

.overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--t-fast);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.overlay-close:hover {
  background: var(--surface-3);
  color: #fff;
}

.overlay-panel h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 1rem;
  color: var(--text-main);
  text-align: center;
}

.overlay-panel p {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* Form Styles within Modal */
.lead-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}

.lead-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  transition: var(--t-fast);
}

.lead-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.lead-form button[type="submit"] {
  width: 100%;
  margin-top: 2rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 1rem;
}

/* Fix Card Website Link Shine */
.card-link-website {
  position: relative;
  overflow: hidden;
}

.card-link-website::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.card-link-website:hover::before {
  left: 100%;
}

/* ---- Searching Overlay ---- */
.searching-overlay {
  z-index: 10000;
}

.searching-panel {
  text-align: center;
  max-width: 420px;
  padding: 3rem 2.5rem;
}

.searching-panel h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
}

.searching-animation {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.searching-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid var(--surface-3);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: searchSpin 1s linear infinite;
}

@keyframes searchSpin {
  to {
    transform: rotate(360deg);
  }
}

.searching-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.searching-dots span {
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: searchDotPulse 1.4s ease-in-out infinite;
}

.searching-dots span:nth-child(1) {
  animation-delay: 0s;
}

.searching-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.searching-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes searchDotPulse {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.searching-status {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.searching-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.searching-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.searching-step.active {
  opacity: 1;
  border-color: var(--accent-primary);
  background: rgba(255, 0, 0, 0.1);
}

.searching-step.completed {
  opacity: 0.8;
  border-color: var(--color-success);
}

.searching-step.completed .step-icon::after {
  content: ' ✓';
  color: var(--color-success);
}

.step-icon {
  font-size: 1.25rem;
}

.step-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.searching-step.active .step-text {
  color: #fff;
}

/* Searching overlay fade in/out */
.searching-overlay[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.searching-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================= */
/* ---- STATE PAGES: Premium Text Styling ---- */
/* ============================================= */

/* Breadcrumb Navigation */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

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

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

/* State Page Main Heading */
.main-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Section Description */
.main-content .section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 700px;
}

.main-content .section-desc a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 0, 0, 0.3);
  transition: border-color var(--t-fast);
}

.main-content .section-desc a:hover {
  border-color: var(--accent-primary);
}

/* SEO Content Section */
.seo-content {
  margin-bottom: 3rem;
}

.seo-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.seo-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.seo-content p a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 0, 0, 0.3);
  transition: all var(--t-fast);
}

.seo-content p a:hover {
  color: #fff;
  border-color: var(--accent-primary);
}

.seo-content strong {
  color: #fff;
  font-weight: 600;
}

/* Market Subdivision Box */
.market-subdivision {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--surface-2) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--glass-border) !important;
}

.market-subdivision h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.market-subdivision p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* City Grid Links */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.city-grid a {
  padding: 0.75rem 1rem;
  background: var(--surface-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--t-fast);
}

.city-grid a:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.faq-section>h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: all var(--t-fast);
}

.faq-item:hover {
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.faq-item p a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 0, 0, 0.3);
  transition: all var(--t-fast);
}

.faq-item p a:hover {
  color: #fff;
  border-color: var(--accent-primary);
}

/* Related Links Section */
.related-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.related-links h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.related-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-links li {
  margin: 0;
}

.related-links a {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--t-fast);
}

.related-links a:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* State Page Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.site-footer p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

/* State page responsive adjustments */
@media (max-width: 768px) {
  .main-content h1 {
    font-size: 2rem;
  }

  .seo-content h2,
  .faq-section>h2 {
    font-size: 1.5rem;
  }

  .faq-item {
    padding: 1.25rem;
  }

  .faq-item h3 {
    font-size: 1.05rem;
  }

  .city-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .related-links ul {
    flex-direction: column;
  }

  .related-links a {
    width: 100%;
    text-align: center;
  }
}