/* Responsive Styles for Zero-Waste Party Supplies Rental */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Section padding */
  section {
    padding: 2rem 0;
  }
  
  /* Hero section */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .process-step,
  .career-card,
  .info-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Footer */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    text-align: center;
    margin-bottom: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  #hero {
    min-height: 80vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  section {
    padding: 3rem 0;
  }
  
  #hero {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team cards in rows of 2 */
  .team-cards .col-md-6 {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Full animations enabled on desktop */
  section {
    padding: 4rem 0;
  }
  
  #hero {
    min-height: 100vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Services grid - 3 columns */
  .services-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Features grid - 2 columns */
  .features-grid .col-lg-6 {
    margin-bottom: 2rem;
  }
  
  /* Price plans - 3 columns */
  .price-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Team - 5 members in a row, responsive wrapping */
  .team-grid .col-lg-2 {
    margin-bottom: 2rem;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Hero content optimization */
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.125rem;
  }
}

/* Extra Extra Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  #footer,
  .btn {
    display: none !important;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #2d5016;
    --primary-green-dark: #1a3009;
    --secondary-sage: #4a6741;
    --accent-coral: #f5f5f5;
    --earth-brown: #8b2500;
  }
  
  .btn-primary {
    border: 2px solid currentColor;
  }
  
  .form-control {
    border: 2px solid currentColor;
  }
}

/* Dark mode support */

/* Container adjustments for better spacing */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 576px) {
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 768px) {
  .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 992px) {
  .container-fluid {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Utility classes for responsive design */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
}

/* Responsive text alignment */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: left;
  }
}

/* Responsive margins and paddings */
.mb-mobile {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .mb-mobile {
    margin-bottom: 0;
  }
} 

body {
    overflow-x: hidden;
}