/* Party Supplies Rental - Responsive CSS */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  
  /* Disable Swiper autoplay and effects on mobile as required */
  .swiper-container {
    --swiper-navigation-size: 0px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .swiper-pagination {
    position: static !important;
    margin-top: 1rem;
  }
  
  /* Typography adjustments */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-blob {
    display: none;
  }
  
  /* Services grid mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card img {
    height: 150px;
  }
  
  /* Team grid mobile */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-card img {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1rem;
    margin: 2rem 0;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  /* Price plans mobile */
  .price-plan-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .price-plan-card.featured {
    transform: none;
  }
  
  .price-plan-price {
    font-size: 2rem;
  }
  
  /* Section spacing mobile */
  .section {
    padding: 3rem 0;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Navigation mobile */
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  /* FAQ mobile */
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  /* Services grid tablet */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Team grid tablet */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Gallery tablet */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Price plans tablet */
  .price-plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .price-plan-card.featured {
    transform: scale(1.02);
  }
  
  /* Hero section tablet */
  .hero-section {
    min-height: 80vh;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  
  /* Services grid desktop */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team grid desktop */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Price plans desktop */
  .price-plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  
  .container {
    max-width: 1140px;
  }
  
  /* Services grid large desktop */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  /* Team grid large desktop */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Hero section large desktop */
  .hero-section {
    min-height: 100vh;
  }
}

/* High DPI displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
  
  /* Optimize images for retina displays */
  .service-card img,
  .team-card img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .hero-blob {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: none !important;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  .service-card,
  .team-card,
  .review-card,
  .faq-item {
    border: 2px solid var(--black);
  }
  
  .navbar {
    border-bottom: 2px solid var(--black);
  }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
  /* Note: Not implementing full dark mode as per conservative design approach,
     but respecting user preference with subtle adjustments */
  
  .navbar {
    background: rgba(33, 33, 33, 0.95) !important;
  }
  
  .navbar-nav .nav-link {
    color: var(--white) !important;
  }
}

/* Custom breakpoint for very small devices */
@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }
  
  .hero-section {
    min-height: 60vh;
    padding: 1rem 0;
  }
  
  .service-card,
  .team-card {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem 0.5rem;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  
  .navbar-brand {
    font-size: 1.1rem !important;
  }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary-custom:hover,
  .contact-form .btn:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .navbar-nav .nav-link {
    padding: 1rem 0.5rem;
  }
  
  .faq-question {
    padding: 1.5rem;
    min-height: 60px;
  }
}

/* Reduced motion for all animations */
@media (prefers-reduced-motion: reduce) {
  .hero-blob,
  .swiper-slide {
    animation: none !important;
  }
  
  .service-card,
  .team-card,
  .gallery-item,
  .btn-primary-custom,
  .contact-form .btn {
    transition: none !important;
  }
} 