/* Responsive CSS for Gluten-Free Bakery Truck Website */

/* Mobile First Approach */
@media (max-width: 575.98px) {
  /* Extra Small Devices */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .service-card,
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  .custom-card img {
    height: 150px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Disable animations on mobile for better performance */
  .custom-card:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  /* Small Devices */
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .custom-card img {
    height: 180px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Medium Devices */
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .custom-card img {
    height: 200px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Large Devices */
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
}

@media (min-width: 1200px) {
  /* Extra Large Devices */
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Landscape Phone Orientation */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 1.5rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .custom-card,
  .service-card,
  .team-card {
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
  }
}

/* Print Styles */
@media print {
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .custom-card:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .navbar,
  .footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
    overflow-x: hidden;
}
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before,
  .hero-section::after {
    animation: none;
  }
  
  .custom-card,
  .service-card,
  .team-card,
  .blog-card,
  .gallery-item img {
    transition: none;
  }
  
  .custom-card:hover,
  .service-card:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* Dark Mode Support (if needed) */

/* Container Adjustments */
@media (max-width: 1199.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    margin: 0;
  }
}

/* Form Responsive */
@media (max-width: 767.98px) {
  .contact-form .form-control {
    margin-bottom: 1rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

/* Grid Adjustments for Cards */
@media (max-width: 767.98px) {
  .row > [class*='col-'] {
    margin-bottom: 1rem;
  }
}

/* Team Section Responsive */
@media (max-width: 575.98px) {
  .team-img {
    width: 100px;
    height: 100px;
  }
  
  .team-card {
    padding: 1.5rem;
  }
}

/* Gallery Responsive */
@media (max-width: 575.98px) {
  .gallery-item {
    margin-bottom: 0.5rem;
  }
} 