/* FastFix Auto - Responsive Design System */
/* Mobile-first responsive layout for dark theme */

/* ============================================
   MOBILE FIRST - BASE STYLES (320px+)
   ============================================ */

/* Container and Grid System */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Typography Responsive */
h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

/* Hero Section Mobile */
.hero-section {
  padding: 2rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.highlight-item {
  background: rgba(215, 38, 56, 0.1);
  border: 1px solid rgba(215, 38, 56, 0.3);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

/* Button System */
.cta-primary,
.btn-primary {
  display: inline-block;
  background: var(--cta-color, #e30613);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px; /* WCAG touch target */
  min-width: 44px;
}

.cta-primary:hover,
.btn-primary:hover {
  background: var(--cta-hover-color, #00a6ed);
  color: white;
  transform: translateY(-2px);
}

.cta-secondary,
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--cta-color, #e30613);
  padding: 12px 24px;
  border: 2px solid var(--cta-color, #e30613);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
}

.cta-secondary:hover,
.btn-secondary:hover {
  background: var(--cta-color, #e30613);
  color: white;
}

.btn-emergency {
  background: var(--alert-color, #ffd166);
  color: #1a1f25;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.3);
}

.btn-emergency:hover {
  background: #ffcc33;
  color: #1a1f25;
  transform: translateY(-2px);
}

/* Navigation Mobile */
.main-nav {
  background: var(--background, #1a1f25);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--background, #1a1f25);
  border-top: 1px solid rgba(229, 229, 229, 0.15);
  z-index: 1000;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 1rem 16px;
  color: var(--text-primary, #e5e5e5);
  text-decoration: none;
  border-bottom: 1px solid rgba(229, 229, 229, 0.1);
}

.nav-menu a:hover {
  background: rgba(215, 38, 56, 0.1);
  color: var(--cta-color, #e30613);
}

/* Service Cards Mobile */
.services-grid,
.coverage-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card,
.coverage-area,
.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(229, 229, 229, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover,
.coverage-area:hover,
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(215, 38, 56, 0.3);
}

/* Forms Mobile */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control,
input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(229, 229, 229, 0.3);
  border-radius: 6px;
  color: var(--text-primary, #e5e5e5);
  font-size: 16px; /* Prevent zoom on iOS */
  min-height: 44px;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--cta-color, #e30613);
  outline-offset: 2px;
  border-color: var(--cta-color, #e30613);
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   TABLET - 768px and up
   ============================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .hero-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background: transparent;
    border: none;
  }

  .nav-menu li {
    margin-left: 2rem;
  }

  .nav-menu a {
    padding: 0.5rem 0;
    border: none;
  }

  .hero-section {
    padding: 4rem 0;
    min-height: 70vh;
  }

  .cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* ============================================
   DESKTOP - 1024px and up
   ============================================ */
@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .hero-highlights {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .services-grid,
  .coverage-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero-section {
    padding: 6rem 0;
    min-height: 80vh;
  }
}

/* ============================================
   LARGE DESKTOP - 1200px and up
   ============================================ */
@media (min-width: 1200px) {
  .services-grid,
  .coverage-grid,
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .coverage-area,
  .review-card {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.5);
  }

  .cta-primary,
  .btn-primary {
    border: 2px solid var(--cta-color, #e30613);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible support */
@supports selector(:focus-visible) {
  *:focus {
    outline: none;
  }

  *:focus-visible {
    outline: 2px solid var(--cta-color, #e30613);
    outline-offset: 2px;
  }
}

/* Mobile CTA Bar */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 31, 37, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  z-index: 9999;
  border-top: 1px solid rgba(229, 229, 229, 0.15);
}

.mobile-cta-content {
  display: flex;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-cta .btn-primary,
.mobile-cta .btn-secondary {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
}

/* Hide mobile CTA on larger screens */
@media (min-width: 768px) {
  .mobile-cta {
    display: none;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .mobile-cta,
  .nav-menu,
  .btn-primary,
  .btn-secondary,
  .cta-primary,
  .cta-secondary {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}