/* Bicycle Repair Shop Template - Responsive Styles */

/* Mobile First Approach */

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: var(--font-size-base) !important;
  }
  
  #hero h1 {
    font-size: var(--font-size-xl);
  }
  
  #hero p {
    font-size: var(--font-size-base);
  }
  
  .service-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper {
    --swiper-navigation-size: 24px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .faq-question,
  .faq-answer {
    padding: 0.75rem;
  }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-member img {
    width: 130px;
    height: 130px;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-brand {
    font-size: var(--font-size-lg) !important;
  }
  
  #hero h1 {
    font-size: var(--font-size-xxl);
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-member img {
    width: 140px;
    height: 140px;
  }
  
  /* Re-enable Swiper effects for tablets and larger */
  .swiper-button-next,
  .swiper-button-prev {
    display: flex;
  }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .service-card {
    margin-bottom: 0;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  section {
    padding: 5rem 0;
  }
  
  #hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    margin-bottom: 4rem;
  }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .service-card img,
  .team-member img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  footer,
  .btn,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  body {
  overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .btn-primary,
  #gallery img,
  .review-card {
    transition: none !important;
  }
  
  .swiper {
    --swiper-transition-duration: 0ms;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-gray: #E9ECEF;
    --primary-gray-light: #CED4DA;
    --primary-gray-dark: #F8F9FA;
    --white: #212529;
    --light-gray: #343A40;
    --medium-gray: #495057;
    --dark-gray: #ADB5BD;
  }
  
  body {
  overflow-x: hidden;
    background-color: var(--white);
    color: var(--primary-gray);
  }
  
  .navbar {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  }
  
  .service-card,
  .contact-form,
  .faq-item {
    background: var(--light-gray);
    border-color: var(--medium-gray);
  }
  
  .form-control {
    background-color: var(--white);
    border-color: var(--medium-gray);
    color: var(--primary-gray);
  }
}

/* Container Adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Navigation Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--medium-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Gallery Responsive Grid */
@media (max-width: 767.98px) {
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
}

/* Team Section Responsive */
@media (max-width: 991.98px) {
  .team-member {
    margin-bottom: 3rem;
  }
}

/* Services Grid Responsive */
@media (max-width: 767.98px) {
  .service-card {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md-6:nth-child(odd) .service-card {
    margin-bottom: 2rem;
  }
}

/* Contact Form Responsive */
@media (max-width: 767.98px) {
  .contact-form .row .col-md-6 {
    margin-bottom: 1rem;
  }
} 