/* City-Center Electric Car Station - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-name {
    font-size: 1.25rem;
  }
  
  .feature-name {
    font-size: 1.25rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .price-name {
    font-size: 1.25rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-blob {
    display: none; /* Hide decorative elements on mobile */
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-name {
    font-size: 1.375rem;
  }
  
  .feature-name {
    font-size: 1.375rem;
  }
  
  .team-photo {
    width: 175px;
    height: 175px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .gallery-image {
    height: 200px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .gallery-image {
    height: 220px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.75rem;
  }
  
  .gallery-image {
    height: 250px;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Mobile-specific rules for Swiper (autoplay/effects disabled on mobile <768px) */
@media (max-width: 767.98px) {
  .swiper-container {
    --swiper-navigation-size: 24px;
  }
  
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none; /* Hide navigation on mobile */
  }
}

/* Tablet and desktop Swiper styles */
@media (min-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    color: var(--primary-green);
  }
  
  .swiper-pagination-bullet-active {
    background: var(--primary-green);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-shapes,
  .btn,
  .swiper-pagination,
  .swiper-navigation {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
    color: black !important;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .service-card,
  .price-card,
  .review-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .service-card,
  .price-card,
  .review-card,
  .faq-item {
    border: 2px solid var(--primary-gray-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-white);
  }
  
  .form-control {
    border-width: 3px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-white: #1f2937;
    --primary-white-light: #374151;
    --primary-white-dark: #4b5563;
    --primary-gray: #e5e7eb;
    --primary-gray-light: #d1d5db;
    --primary-gray-dark: #f9fafb;
  }
  
  body {
    background-color: var(--primary-white);
    color: var(--primary-gray);
  }
  
  .navbar {
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--primary-white-light) 100%);
  }
  
  .service-card,
  .price-card,
  .review-card,
  .contact-form,
  .faq-item {
    background: var(--primary-white-light);
    border-color: var(--primary-white-dark);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
  .hero-blob {
    animation: float 6s ease-in-out infinite;
  }
  
  .service-card,
  .gallery-item,
  .price-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .btn-primary {
    transition: transform 0.3s ease;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-orange);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-gray-dark);
  color: var(--primary-white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
}

/* Orientation specific styles */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .gallery-item:hover,
  .price-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Larger touch targets */
  .btn,
  .nav-link,
  .faq-question {
    min-height: 44px;
    min-width: 44px;
  }
} 