/* Musical Instruments Store - Responsive Styles */

/* Mobile First Approach */

/* Extra Small Devices (phones, 0px and up) */
@media (max-width: 575.98px) {
  .hero h1 {
    font-size: var(--font-size-2xl);
  }
  
  .hero p {
    font-size: var(--font-size-base);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar-brand {
    font-size: var(--font-size-lg) !important;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper-container {
    --swiper-navigation-size: 0px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: var(--font-size-3xl);
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero {
    padding: 0 2rem;
  }
  
  /* Re-enable Swiper features on tablet and above */
  .swiper-button-next,
  .swiper-button-prev {
    display: flex;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero .row {
    align-items: center;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-image {
    order: 2;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
  
  .hero h1 {
    font-size: var(--font-size-4xl);
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Specific responsive adjustments */
@media (max-width: 767.98px) {
  .navbar-collapse {
    background: var(--cream-light);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero .row {
    flex-direction: column;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .faq-question {
    padding: 0.75rem 1rem;
    font-size: var(--font-size-sm);
  }
  
  .faq-answer {
    padding: 1rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../TRA_images/hero-bg@2x.webp');
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero,
  .footer {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .service-card,
  .team-member,
  .contact-form {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .bg-gradient-primary,
  .bg-gradient-secondary {
    background: #fff !important;
    color: #000 !important;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .hero,
  .service-card,
  .team-member,
  .gallery-item img,
  .btn-primary {
    transition: none;
  }
  
  .swiper-container {
    --swiper-transition-duration: 0ms;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --cream-light: #2C2C2C;
    --cream-dark: #1A1A1A;
    --charcoal-light: #E0E0E0;
    --charcoal-dark: #F5F5F5;
  }
  
  body {
  overflow-x: hidden;
    background-color: var(--cream-dark);
    color: var(--charcoal-light);
  }
  
  .navbar {
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--charcoal-dark) 100%);
  }
  
  .service-card,
  .team-member,
  .contact-form,
  .faq-item,
  .review-item {
    background: var(--cream-light);
    color: var(--charcoal-light);
  }
} 