/* Responsive CSS for 3D-Printed Musical Instrument Accessories */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  /* Hero Section */
  #hero h1 {
    font-size: 2.5rem;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  /* Hero Section */
  #hero h1 {
    font-size: 3rem;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Reviews Grid */
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* FAQ Grid */
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Reviews Grid */
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile Specific Styles (up to 767px) */
@media (max-width: 767px) {
  /* NO ANIMATIONS ON MOBILE - as per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    padding-top: 80px;
    text-align: center;
  }
  
  #hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  #hero p {
    font-size: 0.9rem;
  }
  
  /* Hide decorative elements on mobile */
  .hero-decorative {
    display: none;
  }
  
  /* Section padding mobile */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Service cards mobile */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Price cards mobile */
  .price-card {
    margin-bottom: 2rem;
    transform: none !important;
  }
  
  .price-card.featured {
    transform: none !important;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Footer mobile */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Typography mobile */
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  /* Button mobile */
  .btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }
  
  /* Form mobile */
  .form-control {
    margin-bottom: 1rem;
  }
}

/* Tablet specific styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  /* Hero section tablet */
  #hero h1 {
    font-size: 2.25rem;
  }
  
  /* Services grid tablet */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Team grid tablet */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Price plan tablet */
  .price-card.featured {
    transform: scale(1.02);
  }
}

/* High resolution displays */
@media (min-width: 1200px) {
  /* Container max width */
  .container {
    max-width: var(--content-max-width);
  }
  
  /* Typography for large screens */
  h1 {
    font-size: 3.5rem;
  }
  
  /* Hero section large screens */
  #hero {
    min-height: 100vh;
  }
  
  /* Enhanced spacing for large screens */
  .section-padding {
    padding: 6rem 0;
  }
}

/* Print styles */
@media print {
  /* Remove fixed elements */
  #header {
    position: static;
  }
  
  /* Simplify colors for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  /* Hide interactive elements */
  .btn,
  .navbar-toggler,
  form {
    display: none !important;
  }
  
  /* Optimize spacing for print */
  .section-padding {
    padding: 2rem 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --background-light: #ffffff;
    --neutral-dark: #000000;
    --background-dark: #cccccc;
  }
  
  .btn-primary {
    border: 2px solid var(--neutral-dark);
  }
  
  .service-card,
  .review-card,
  .blog-card {
    border: 1px solid var(--neutral-dark);
  }
}

/* Dark mode preference support */

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
}

.skip-to-content:focus {
  top: 6px;
}

/* Improved text readability */
@media (max-width: 767px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }
  
  /* Ensure touch targets are at least 44px */
  .btn,
  .nav-link,
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Grid fallbacks for older browsers */
@supports not (display: grid) {
  .gallery-grid,
  .services-grid,
  .features-grid,
  .team-grid,
  .reviews-grid,
  .faq-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .gallery-grid > *,
  .services-grid > *,
  .features-grid > *,
  .team-grid > *,
  .reviews-grid > *,
  .faq-grid > * {
    flex: 1 1 300px;
  }
} 