/* ==========================================================================
   Wayne Garage Door Repair Brighton - Core Stylesheet
   Modern, Compact, High-End, Mobile-First, Zero Dependencies
   ========================================================================== */

:root {
  --primary: #0f2438;
  --primary-light: #1e3a5f;
  --primary-dark: #081622;
  --primary-accent: #2563eb;
  
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-light: #fef3c7;
  --accent-dark: #92400e;

  --emergency-red: #dc2626;
  --emergency-hover: #b91c1c;
  --emergency-light: #fee2e2;

  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-subtle: #f1f5f9;
  --surface-card: #ffffff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-light: #f8fafc;

  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --border-focus: #3b82f6;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);

  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --container-max: 1200px;
  --header-height: 70px;
  --topbar-height: 36px;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--surface-alt);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 60px; /* Space for mobile emergency bar */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

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

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 10000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 15px;
}

/* Layout Utilities - Tight, Crisp Spacing */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding: 2.25rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

.section-sm {
  padding: 1.25rem 0;
}

.section-alt {
  background-color: var(--surface);
}

.section-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

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

/* Typography - Professional, Compact Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-primary h1,
.section-primary h2,
.section-primary h3 {
  color: var(--surface);
}

h1 {
  font-size: clamp(1.85rem, 3vw + 0.5rem, 2.75rem);
  margin-bottom: 0.65rem;
}

h2 {
  font-size: clamp(1.5rem, 2vw + 0.4rem, 2rem);
  margin-bottom: 0.45rem;
}

h3 {
  font-size: clamp(1.15rem, 1.2vw + 0.3rem, 1.35rem);
  margin-bottom: 0.35rem;
}

p {
  margin-bottom: 0.75rem;
}

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

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.section-header {
  margin-bottom: 1.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background-color: var(--accent-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.section-primary .section-subtitle {
  background-color: rgba(254, 243, 199, 0.15);
  color: #fbbf24;
}

/* Header & Navigation - Streamlined Heights */
.topbar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.825rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

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

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.topbar-phone {
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.topbar-phone:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .topbar {
    padding: 0.3rem 0;
    font-size: 0.75rem;
  }
  .topbar-content {
    justify-content: center;
    text-align: center;
  }
  .topbar-badges {
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
  }
  .topbar-contact {
    display: none; /* Mobile already has pinned emergency call bar at bottom */
  }
}

@media (max-width: 480px) {
  .topbar-badges {
    justify-content: center;
  }
  .topbar-item:nth-child(n+2) {
    display: none; /* Keep single primary badge on narrow mobile to guarantee 1 clean line */
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--primary);
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
}

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

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.35rem 0.2rem;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
}

.nav-dropdown-trigger:hover {
  color: var(--accent);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0;
  z-index: 100;
  list-style: none;
}

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

.dropdown-item a {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
}

.dropdown-item a:hover {
  background-color: var(--surface-subtle);
  color: var(--accent-dark);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--primary);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.2s ease;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
  .header-cta {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  background-color: var(--surface);
  z-index: 10001;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

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

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
}

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

.mobile-nav-links a {
  display: block;
  padding: 0.5rem 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.mobile-nav-links a:hover {
  background-color: var(--surface-subtle);
  color: var(--accent);
}

.mobile-sublinks {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-sublinks a {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Buttons - Professional, Sized for Precision */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-emergency {
  background-color: var(--emergency-red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.btn-emergency:hover {
  background-color: var(--emergency-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

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

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

.btn-outline-white {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

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

.btn-phone-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.btn-phone-large:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Hero Section - Clean, Controlled Proportions */
.hero {
  position: relative;
  background: linear-gradient(135deg, #091624 0%, #0f2438 65%, #1e3a5f 100%);
  color: #ffffff;
  padding: 2rem 0 2.25rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(254, 243, 199, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
  width: fit-content;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.hero p.hero-lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.hero-trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #e2e8f0;
  font-weight: 600;
}

.trust-item svg {
  width: 17px;
  height: 17px;
  color: #fbbf24;
  flex-shrink: 0;
}

.hero-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  padding: 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.hero-card-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hero-card-phone {
  display: block;
  background-color: var(--accent);
  color: #fff;
  text-align: center;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.hero-card-phone:hover {
  background-color: var(--accent-hover);
  color: #fff;
}

.hero-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card-features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-card-features svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Page Hero for Subpages */
.subpage-hero {
  background: linear-gradient(135deg, #091624 0%, #0f2438 80%, #1e3a5f 100%);
  color: #ffffff;
  padding: 1.85rem 0 2rem;
  position: relative;
}

.subpage-hero h1 {
  color: #ffffff !important;
  font-size: clamp(1.75rem, 5vw + 0.2rem, 2.5rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.subpage-hero p.lead,
.subpage-hero p {
  color: #e2e8f0;
  font-size: 1.025rem;
  line-height: 1.6;
}

.subpage-hero .lead {
  margin-bottom: 1.25rem;
  max-width: 48rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

.breadcrumbs a {
  color: #cbd5e1;
}

.breadcrumbs a:hover {
  color: #fbbf24;
}

.breadcrumbs span.current {
  color: #fbbf24;
  font-weight: 700;
}

@media (max-width: 640px) {
  .subpage-hero div[style*="display: flex"],
  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.65rem !important;
  }

  .subpage-hero .btn,
  .subpage-hero .btn-phone-large,
  .subpage-hero .btn-emergency,
  .hero-actions .btn,
  .hero-actions .btn-phone-large,
  .hero-actions .btn-emergency {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
    white-space: normal;
  }
}

/* Feature & Service Cards - Controlled, Tighter Gaps */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 40px;
  height: 40px;
  background-color: var(--surface-subtle);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.65rem;
  flex-grow: 1;
}

.card-list {
  list-style: none;
  margin-bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.card-list svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.card-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: var(--primary-light);
  margin-top: auto;
}

.card-link:hover {
  color: var(--accent);
}

/* Process Timeline - Streamlined */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.process-step {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.process-number {
  width: 30px;
  height: 30px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.process-title {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.process-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.45;
}

/* Local Highlights / Spotlight */
.local-spotlight {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.local-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.local-info-box {
  background-color: var(--surface-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border-left: 4px solid var(--accent);
}

.local-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

/* Service Areas Grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.area-pill {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.15s ease;
}

.area-pill:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.area-pill svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.area-pill-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.area-pill-sub {
  font-size: 0.775rem;
  color: var(--text-subtle);
}

/* FAQ Accordion - Compact & Clean */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: var(--border-dark);
}

.faq-question {
  width: 100%;
  padding: 0.75rem 1.15rem;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

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

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-subtle);
}

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

.faq-answer {
  padding: 0 1.15rem 0.75rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
}

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

/* CTA & Emergency Banners - Balanced Spacing */
.emergency-banner {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
  color: #ffffff;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.15rem 0;
  box-shadow: var(--shadow-md);
}

.emergency-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .emergency-banner-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.emergency-banner h3 {
  color: #fff;
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.emergency-banner p {
  color: #fecaca;
  font-size: 0.95rem;
  margin-bottom: 0;
  max-width: 36rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.4rem;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 1rem;
  max-width: 38rem;
  margin: 0 auto 1.1rem;
}

.cta-section {
  margin-bottom: 1.75rem;
}

/* Contact Page & Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.contact-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info-icon {
  width: 38px;
  height: 38px;
  background-color: var(--surface-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
}

.contact-info-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.925rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text-main);
  transition: border-color 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.map-container {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--surface-subtle);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Blog / Educational Guide Styles */
.blog-content {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.65;
  color: #334155;
}

.blog-content h2 {
  margin-top: 1.85rem;
  margin-bottom: 0.65rem;
  font-size: 1.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

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

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

.blog-content li {
  margin-bottom: 0.35rem;
}

.warning-callout {
  background-color: var(--emergency-light);
  border-left: 4px solid var(--emergency-red);
  padding: 1.15rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  color: #7f1d1d;
}

.warning-callout h4 {
  color: #991b1b;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
}

.info-callout {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 1.15rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  color: #1e3a8a;
}

.info-callout h4 {
  color: #1d4ed8;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.table-wrapper {
  overflow-x: auto;
  margin: 1.25rem 0;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.custom-table th, .custom-table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border: 1px solid var(--border);
}

.custom-table th {
  background-color: var(--surface-subtle);
  font-weight: 700;
  color: var(--primary);
}

.custom-table tr:nth-child(even) {
  background-color: var(--surface-alt);
}

/* Footer - Streamlined */
.site-footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding-top: 2rem;
  padding-bottom: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

.footer-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 3px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: #e2e8f0;
}

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

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Sticky Mobile Bottom Emergency Call Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-dark);
  border-top: 2px solid var(--accent);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 9999;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.25);
}

.mobile-sticky-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-sticky-label {
  font-size: 0.675rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mobile-sticky-city {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-sticky-btn {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-sticky-btn:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-sticky-bar {
    padding-bottom: calc(0.55rem + env(safe-area-inset-bottom));
  }
}

.mobile-sticky-btn svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 769px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Visual Illustration & Schematics Box */
.schematic-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.25rem 0;
  text-align: center;
}

.schematic-caption {
  font-size: 0.825rem;
  color: var(--text-subtle);
  margin-top: 0.5rem;
  font-style: italic;
}
