/* Zero-Waste Party Supplies Rental - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 100vh;
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Section padding adjustments */
  .section-padding {
    padding: 60px 0;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 30px;
    padding: 25px;
  }
  
  .service-price {
    font-size: 1.75rem;
  }
  
  /* Price cards */
  .price-card {
    margin-bottom: 30px;
    padding: 30px 20px;
  }
  
  .price-card.featured {
    transform: none;
    margin-bottom: 30px;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 30px 20px;
    margin-bottom: 30px;
  }
  
  .contact-info {
    padding: 30px 20px;
  }
  
  /* Process steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Blog cards */
  .blog-card {
    margin-bottom: 30px;
  }
  
  /* Footer */
  #footer {
    padding: 40px 0 20px;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 30px;
  }
  
  /* FAQ cards */
  .faq-card {
    margin-bottom: 15px;
    padding: 20px;
  }
  
  /* Info cards */
  .info-card {
    margin-bottom: 30px;
    padding: 25px 15px;
  }
  
  .info-icon {
    font-size: 2.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero Section */
  #hero {
    padding-top: 90px;
  }
  
  .hero-blob-1,
  .hero-blob-2 {
    opacity: 0.3;
  }
  
  /* Section padding */
  .section-padding {
    padding: 70px 0;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .gallery-item {
    height: 220px;
  }
  
  /* Price cards */
  .price-card.featured {
    transform: scale(1.02);
  }
  
  /* Team photos */
  .team-photo {
    width: 175px;
    height: 175px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  #hero {
    padding-top: 80px;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .gallery-item {
    height: 240px;
  }
  
  /* Service cards in 2 columns */
  .service-card {
    margin-bottom: 30px;
  }
  
  /* Process steps */
  .process-step {
    padding: 25px 15px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Hero decorative elements */
  .hero-blob-1 {
    width: 250px;
    height: 250px;
    right: -125px;
  }
  
  .hero-blob-2 {
    width: 180px;
    height: 180px;
    left: -90px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Full hero decorative elements */
  .hero-blob-1,
  .hero-blob-2 {
    opacity: 0.6;
  }
}

/* Specific Bootstrap 5 responsive utilities override prevention */
@media (max-width: 991.98px) {
  /* Ensure navbar toggler works properly */
  .navbar-collapse {
    background-color: var(--neutral-white);
    border-radius: 10px;
    margin-top: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid var(--neutral-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Print styles */
@media print {
  /* Hide non-essential elements when printing */
  #header,
  #footer,
  .btn,
  .hero-decorative {
    display: none;
  }
  
  /* Adjust colors for print */
  body {
    background: white;
    color: black;
    overflow-x: hidden;
}
  
  .section-padding {
    padding: 20px 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --sage-dark: #2d4a1e;
    --neutral-dark: #000000;
    --neutral-white: #ffffff;
  }
  
  .btn-primary-custom,
  .btn-outline-custom:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
  }
  
  .btn-outline-custom {
    border-color: #000000;
    color: #000000;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  .hero-decorative,
  .service-card,
  .blog-card,
  .gallery-item img,
  .btn-primary-custom,
  .btn-outline-custom {
    transition: none;
    transform: none;
  }
  
  .service-card:hover,
  .blog-card:hover,
  .btn-primary-custom:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 90vh;
    padding-top: 70px;
  }
  
  .section-padding {
    padding: 50px 0;
  }
}

/* Focus states for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--sage-dark);
    outline-offset: 2px;
  }
}

/* Dark mode support (if system preference) */

/* Container max-width adjustments for better readability */
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
  }
}

/* Ensure images don't overflow on small screens */
@media (max-width: 575.98px) {
  img {
    max-width: 100%;
    height: auto;
  }
  
  .blog-image,
  .gallery-item img,
  .team-photo {
    width: 100%;
    max-width: 100%;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
}

/* Navigation improvements for touch devices */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .btn,
  .footer-link {
    padding: 15px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
} 