/* ==========================================================================
   Carlsbad Mobil Gas & Smog Station - Modern Vanilla Design System
   Address: 945 Tamarack Ave, Carlsbad, CA 92008
   Phone: (760) 729-8012
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --color-primary: #002d62;         /* Mobil Heritage Navy */
  --color-primary-dark: #001938;    /* Deep Navy */
  --color-primary-light: #0a468e;   /* Accent Navy */
  --color-accent: #da291c;          /* Mobil Signature Red */
  --color-accent-dark: #b31c11;     /* Dark Red */
  --color-accent-light: #ff4d3d;    /* Light Accent Red */
  
  /* Trust & Status Colors */
  --color-star: #eab308;            /* STAR Certification Amber/Gold */
  --color-star-bg: #fefce8;
  --color-star-border: #fde047;
  --color-success: #15803d;
  --color-success-bg: #f0fdf4;
  --color-success-border: #bbf7d0;

  /* Surfaces & Backgrounds */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-subtle: #f1f5f9;
  --color-surface-muted: #e2e8f0;
  --color-card-bg: #ffffff;

  /* Typography Colors (WCAG AA Compliance) */
  --color-text: #0f172a;            /* High Contrast Primary Text (> 14:1) */
  --color-text-muted: #475569;      /* Secondary Text (> 5:1 on light) */
  --color-text-light: #64748b;
  --color-text-inverse: #ffffff;
  --color-text-inverse-muted: #cbd5e1;

  /* Borders & Dividers */
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e1;

  /* Spacing Scale (Strict: 4 / 8 / 16 / 24 / 32 / 48 / 64) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  /* Typography Scale (Fluid clamp) */
  --font-h1: clamp(1.85rem, 4vw + 1rem, 3rem);
  --font-h2: clamp(1.5rem, 2.5vw + 0.75rem, 2.25rem);
  --font-h3: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
  --font-h4: clamp(1.05rem, 1vw + 0.35rem, 1.25rem);
  --font-body: clamp(0.975rem, 0.4vw + 0.85rem, 1.075rem);
  --font-small: 0.875rem;
  --font-tiny: 0.75rem;

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

  /* Elevation / Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 35px rgba(15, 23, 42, 0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Accessible Focus States */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-3);
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  z-index: 9999;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-3);
}

/* --------------------------------------------------------------------------
   3. Typography Scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }
h4 { font-size: var(--font-h4); }

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

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

/* --------------------------------------------------------------------------
   4. Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }
}

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

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

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

.section-dark h2,
.section-dark h3 {
  color: var(--color-text-inverse);
}

.section-dark p {
  color: var(--color-text-inverse-muted);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-6);
}

.section-header .eyebrow {
  display: inline-block;
  font-size: var(--font-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

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

.section-header p {
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   5. Top Utility Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--color-primary-dark);
  color: var(--color-text-inverse-muted);
  font-size: var(--font-small);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-inverse-muted);
}

.top-bar-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.top-bar-item a {
  color: var(--color-text-inverse);
  font-weight: 600;
}

.top-bar-item a:hover {
  color: var(--color-accent-light);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-weight: 600;
  font-size: var(--font-tiny);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

.badge-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   6. Main Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-height);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.brand-title .red-o {
  color: var(--color-accent);
}

.brand-tagline {
  font-size: var(--font-tiny);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-text-muted);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile Hamburger Toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  cursor: pointer;
}

.menu-toggle:hover {
  background-color: var(--color-surface-muted);
}

.menu-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 991px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-surface);
    display: flex;
    flex-direction: column;
    padding: var(--space-5) var(--space-4);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border);
  }

  .nav-wrapper.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    width: 100%;
    margin-bottom: var(--space-5);
  }

  .nav-link {
    font-size: 1.15rem;
    padding: var(--space-3) 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta-group {
    flex-direction: column;
    width: 100%;
    gap: var(--space-3);
  }

  .nav-cta-group .btn {
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   7. Buttons & Touch Targets (Strictly >= 44px)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  border: 2px solid var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: #ffffff;
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

/* --------------------------------------------------------------------------
   8. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #001f44 0%, #002d62 50%, #083c7d 100%);
  color: #ffffff;
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(218, 41, 28, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

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

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

.hero-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-small);
  font-weight: 700;
  border-radius: var(--radius-full);
}

.hero-badge-star {
  background-color: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.hero-badge-live {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero h1 {
  color: #ffffff;
  margin-bottom: var(--space-3);
  line-height: 1.15;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-5);
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero-location-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-small);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  display: inline-flex;
}

.hero-location-chip svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
}

/* Hero Media Card */
.hero-media-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl);
}

.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-media-wrapper:hover .hero-media-img {
  transform: scale(1.03);
}

.hero-media-caption {
  margin-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-small);
  color: rgba(255, 255, 255, 0.85);
  padding: 0 var(--space-1);
}

.hero-media-caption strong {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   9. Highlights / Trust Bar
   -------------------------------------------------------------------------- */
.highlights-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

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

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

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--color-surface-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

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

.highlight-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--color-primary);
}

.highlight-text p {
  font-size: var(--font-tiny);
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   10. Services Section
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

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

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

.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.service-card.featured {
  border: 2px solid var(--color-primary);
  position: relative;
}

.service-badge {
  position: absolute;
  top: -12px;
  right: var(--space-4);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--font-tiny);
  font-weight: 700;
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.service-card.featured .service-icon-wrap {
  background: rgba(0, 45, 98, 0.1);
  color: var(--color-primary);
}

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

.service-card h3 {
  font-size: var(--font-h3);
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.service-features-list {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-small);
  color: var(--color-text);
}

.service-features-list svg {
  width: 16px;
  height: 16px;
  fill: var(--color-success);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   11. Smog Check Information & Checklist
   -------------------------------------------------------------------------- */
.smog-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

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

.checklist-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

.checklist-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.checklist-item {
  display: flex;
  gap: var(--space-3);
}

.checklist-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-small);
  flex-shrink: 0;
}

.checklist-content h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.checklist-content p {
  font-size: var(--font-small);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. Photo Gallery (Real Business Images)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

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

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

.gallery-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.gallery-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-surface-muted);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.04);
}

.gallery-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: rgba(0, 45, 98, 0.9);
  color: #ffffff;
  font-size: var(--font-tiny);
  font-weight: 700;
  padding: 4px var(--space-2);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.gallery-body {
  padding: var(--space-4);
}

.gallery-body h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-1);
}

.gallery-body p {
  font-size: var(--font-small);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   13. Location, Map & Business Hours
   -------------------------------------------------------------------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

.hours-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

.hours-card h3 {
  margin-bottom: var(--space-4);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-5);
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table th,
.hours-table td {
  padding: var(--space-3) 0;
  font-size: var(--font-small);
}

.hours-table th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  width: 45%;
}

.hours-table td {
  text-align: right;
  color: var(--color-text-muted);
}

.hours-table tr.highlight-row {
  background-color: var(--color-surface-subtle);
}

.hours-table tr.highlight-row th,
.hours-table tr.highlight-row td {
  font-weight: 700;
  color: var(--color-primary);
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  height: 100%;
  min-height: 400px;
  position: relative;
}

.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* --------------------------------------------------------------------------
   14. Contact & Directions Callout
   -------------------------------------------------------------------------- */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

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

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-surface-subtle);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.contact-icon-bubble svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.contact-card p {
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-text-inverse-muted);
  padding-top: var(--space-7);
  padding-bottom: var(--space-5);
  margin-top: auto;
  border-top: 3px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

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

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

.footer-col h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-2);
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--color-accent);
}

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

.footer-links a {
  color: var(--color-text-inverse-muted);
  font-size: var(--font-small);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: var(--space-1);
}

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--font-small);
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--font-small);
  text-align: center;
}

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

.footer-legal-links {
  display: flex;
  gap: var(--space-4);
}

.footer-legal-links a {
  color: var(--color-text-inverse-muted);
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   16. Sticky Mobile Bottom Action Bar (Mobile-first UX conversion)
   -------------------------------------------------------------------------- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  padding: var(--space-2) var(--space-3);
}

@media (max-width: 767px) {
  .mobile-sticky-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  body {
    padding-bottom: 64px; /* Space for sticky bar */
  }
}

.mobile-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.mobile-bar-call {
  background-color: var(--color-accent);
  color: #ffffff;
}

.mobile-bar-directions {
  background-color: var(--color-primary);
  color: #ffffff;
}

.mobile-bar-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   17. Static Content Pages (Privacy, 404, etc.)
   -------------------------------------------------------------------------- */
.content-wrapper {
  max-width: 840px;
  margin: var(--space-6) auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .content-wrapper {
    padding: var(--space-7) var(--space-6);
  }
}

.content-wrapper h1 {
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.content-wrapper h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.content-wrapper ul {
  list-style: disc;
  margin-left: var(--space-5);
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

.content-wrapper li {
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   18. Print & Reduced Motion Media Queries
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .top-bar,
  .mobile-sticky-bar,
  .map-wrapper,
  .hero-cta-group {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .content-wrapper,
  .section {
    padding: 0;
    border: none;
    box-shadow: none;
  }
}