/* Backyard Cinema Template - Responsive Styles */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .service-card,
  .feature-card,
  .price-card,
  .team-member {
    margin-bottom: 1.5rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Disable autoplay and effects on mobile for Swiper */
  .swiper-slide {
    transition: none !important;
  }
  
  .swiper-wrapper {
    transform: none !important;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Disable autoplay and effects on mobile for Swiper */
  .swiper-slide {
    transition: none !important;
  }
  
  .swiper-wrapper {
    transform: none !important;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  .hero-section {
    text-align: left;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-nav .nav-link {
    margin-left: 1rem;
  }
  
  /* Enable Swiper effects on tablets and above */
  .swiper-slide {
    transition: all 0.3s ease !important;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card,
  .feature-card {
    min-height: 300px;
  }
  
  .price-card {
    min-height: 400px;
  }
  
  .team-member {
    min-height: 320px;
  }
}

/* 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-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .service-card,
  .feature-card {
    min-height: 320px;
  }
  
  .price-card {
    min-height: 450px;
  }
  
  .team-member {
    min-height: 350px;
  }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-decorative,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  body {
    padding-top: 0;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
  }
  
  .service-card,
  .feature-card,
  .price-card,
  .team-member {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .team-photo,
  .gallery-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .feature-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .gallery-item:hover .gallery-image {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .service-card,
  .feature-card,
  .price-card,
  .team-member,
  .review-card,
  .blog-card,
  .faq-item {
    border: 2px solid var(--gray-800);
  }
  
  .btn-primary {
    border: 2px solid var(--white);
  }
}

/* Dark Theme Detection (for future use) */
@media (prefers-color-scheme: dark) {
  /* Note: Dark mode styles are excluded as per requirements */
  /* This media query is here for future reference only */
}

/* Focus Management */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus,
.faq-question:focus {
  outline: 2px solid var(--primary-forest);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-forest);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
} 