/* Responsive CSS for 3D-Printed Musical Instrument Accessories Template */

/* Mobile-First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Section padding for mobile */
  section {
    padding: 2rem 0;
  }
  
  /* Hero section mobile adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Services cards stack properly */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Contact form full width */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery images full width with margin */
  .gallery-image {
    margin-bottom: 1rem;
    height: 200px;
  }
  
  /* Feature cards mobile spacing */
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  /* Price cards mobile spacing */
  .price-card {
    margin-bottom: 1.5rem;
  }
  
  .price-card.featured {
    transform: none; /* Remove scaling on mobile */
  }
  
  /* Review cards mobile spacing */
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  /* Blog cards mobile spacing */
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  /* FAQ cards mobile spacing */
  .faq-card {
    margin-bottom: 1rem;
  }
  
  /* Case study cards mobile spacing */
  .case-card {
    margin-bottom: 1.5rem;
  }
  
  /* Process steps mobile layout */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* Footer mobile adjustments */
  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* NO ANIMATIONS ON MOBILE - Respect prefers-reduced-motion */
  /* Remove all hover effects and transforms on mobile */
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .review-card:hover,
  .blog-card:hover,
  .case-card:hover,
  .team-photo:hover,
  .gallery-image:hover,
  .btn-primary:hover {
    transform: none;
  }
  
  /* Disable all transitions on mobile */
  * {
    transition: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .navbar-brand {
    font-size: 1.375rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  #hero {
    min-height: 90vh;
  }
  
  .team-photo {
    width: 175px;
    height: 175px;
  }
  
  .gallery-image {
    height: 225px;
  }
  
  /* Reduced animations on small mobile */
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .review-card:hover,
  .blog-card:hover,
  .case-card:hover,
  .team-photo:hover,
  .gallery-image:hover {
    transform: translateY(-2px);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  section {
    padding: 3.5rem 0;
  }
  
  #hero {
    min-height: 95vh;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .gallery-image {
    height: 240px;
  }
  
  /* Moderate animations on tablets */
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .feature-card:hover,
  .price-card:hover,
  .review-card:hover,
  .blog-card:hover,
  .case-card:hover {
    transform: translateY(-3px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  h1 {
    font-size: 2.375rem;
  }
  
  h2 {
    font-size: 1.9375rem;
  }
  
  .navbar-brand {
    font-size: 1.45rem;
  }
  
  #hero {
    min-height: 100vh;
  }
  
  .team-photo {
    width: 190px;
    height: 190px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Full animations and effects for desktop */
  .container {
    max-width: 1140px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Increase spacing for ultra-wide screens */
  section {
    padding: 5rem 0;
  }
  
  .hero-decorative {
    width: 300px;
    height: 300px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decorative {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }
  
  p, div {
    widows: 3;
    orphans: 3;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #ff0000;
    --accent-color: #008000;
    --text-color: #000000;
    --text-light: #333333;
    --neutral-light: #ffffff;
    --neutral-dark: #cccccc;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .review-card,
  .blog-card,
  .case-card,
  .faq-card {
    border: 2px solid #000000;
  }
}

/* Reduced motion support - Critical for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
  
  /* Remove all hover transforms */
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .review-card:hover,
  .blog-card:hover,
  .case-card:hover,
  .team-photo:hover,
  .gallery-image:hover,
  .btn-primary:hover {
    transform: none;
  }
  
  /* Remove decorative animations */
  .hero-decorative {
    animation: none;
  }
}

/* Focus states for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Dark mode support */

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* Container width adjustments for better content flow */
@media (min-width: 1200px) {
  .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* Grid adjustments for better mobile experience */
@media (max-width: 767.98px) {
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Image responsiveness improvements */
@media (max-width: 575.98px) {
  img {
    max-width: 100%;
    height: auto;
  }
  
  .service-image,
  .blog-image {
    height: 180px;
  }
}

/* Table responsiveness */
@media (max-width: 767.98px) {
  table {
    font-size: 0.875rem;
  }
  
  .table-responsive {
    border: none;
  }
} 

.hero-content {
    padding-top: 100px;
}