/* Sound Merch Template - Responsive CSS */

/* Bootstrap 5 Breakpoints */
/* xs: <576px */
/* sm: >=576px */
/* md: >=768px */
/* lg: >=992px */
/* xl: >=1200px */
/* xxl: >=1400px */

/* Large screens (xl and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.08rem;
  }
  
  .section-padding {
    padding: 100px 0;
  }
}

/* Medium to large screens (lg) */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.02rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium screens (md) */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.54rem;
  }
  
  .hero-subtitle {
    font-size: 1.23rem;
  }
  
  .section-title {
    font-size: 2.12rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small to medium screens (sm to md) */
@media (max-width: 767.98px) {
  /* Disable Swiper autoplay and effects on mobile */
  .swiper-slide {
    transition: none !important;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.12rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
  }
  
  .hero-desc {
    font-size: 1.08rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.89rem;
  }
  
  .section-subtitle {
    font-size: 1.23rem;
  }
  
  .navbar-brand {
    font-size: 1.33rem;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1.18rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
  
  .services-grid,
  .team-grid,
  .about-features,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .contact-form {
    margin: 0 1rem;
    padding: 2rem;
  }
  
  .service-card,
  .team-member,
  .review-item {
    padding: 1.5rem;
  }
  
  h1, .h1 {
    font-size: 1.89rem;
  }
  
  h2, .h2 {
    font-size: 1.61rem;
  }
  
  h3, .h3 {
    font-size: 1.33rem;
  }
  
  .btn-primary-custom {
    padding: 10px 25px;
    font-size: 1.08rem;
  }
}

/* Extra small screens (xs) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.89rem;
  }
  
  .section-title {
    font-size: 1.61rem;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card,
  .team-member,
  .review-item {
    padding: 1rem;
  }
  
  .contact-form {
    margin: 0 0.5rem;
    padding: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.23rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .service-icon,
  .feature-icon {
    font-size: 2.12rem;
  }
  
  .hero-content {
  padding-top: 100px !important;
    padding: 0 1rem;
  }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet Landscape */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .hero-title {
    font-size: 3.55rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../YIJ_images/hero-bg@2x.webp');
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: auto;
    background: none !important;
  }
  
  .hero-title,
  .section-title {
    color: #000 !important;
  }
  
  * {
    box-shadow: none !important;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .swiper-slide,
  .service-card,
  .team-member,
  .blog-item,
  .gallery-item img,
  .btn-primary-custom {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  
  .hero-section::before {
    animation: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .service-card,
  .team-member,
  .review-item,
  .blog-item {
    border: 2px solid var(--text-dark);
  }
  
  .btn-primary-custom {
    border: 2px solid var(--dark-orange);
  }
  
  .form-control {
    border-width: 3px;
  }
}
