/* 3D-Printing Workshops Template - Responsive CSS */
/* Mobile-First Approach with Bootstrap 5 Grid System */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  /* Section spacing */
  .section-padding {
    padding: 2rem 0;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 70vh;
    padding-top: 2rem;
  }
  
  .hero-decoration {
    display: none;
  }
  
  /* Cards mobile spacing */
  .service-card,
  .feature-card,
  .team-card,
  .review-card,
  .price-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team photos mobile */
  .team-photo {
    height: 200px;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1.5rem;
    text-align: center;
  }
  
  /* Process/Timeline mobile */
  .process-number,
  .timeline-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  /* No animations on mobile when reduced motion preferred */
  @media (prefers-reduced-motion: reduce) {
    .service-card:hover,
    .price-card:hover,
    .gallery-item:hover img {
      transform: none;
    }
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 75vh;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .team-photo {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .team-photo {
    height: 240px;
  }
  
  /* Two column layout for medium screens */
  .review-card,
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  /* Full desktop experience */
  .gallery-item img {
    height: 250px;
  }
  
  .team-photo {
    height: 250px;
  }
  
  .blog-image {
    height: 200px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .section-description {
    max-width: 700px;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .section-description {
    max-width: 800px;
  }
}

/* Print styles */
@media print {
  .hero-decoration,
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  * {
    color: black;
    background: white;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .feature-card,
  .review-card,
  .price-card,
  .faq-card {
    border: 2px solid currentColor;
  }
  
  .btn-primary {
    border: 2px solid currentColor;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
  
  .service-card:hover,
  .price-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* Dark mode support (if user prefers) */

/* Focus management for accessibility */
.btn:focus,
.form-control:focus,
.navbar-toggler:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-to-content:focus {
  top: 6px;
}

/* Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-section h1 {
    padding-top: 100px;
}