/* Mobile-first responsive design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.75rem;
    padding-top: 125px;
}
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  .decorative-shape-1,
  .decorative-shape-2 {
    display: none;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  /* No scroll animations on mobile */
  .sal-animate,
  [data-sal] {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2rem;
    padding-top: 125px;
}
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card,
  .price-card {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.25rem;
    padding-top: 125px;
}
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .decorative-shape {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    overflow-x: hidden;
}
  
  .section-padding {
    padding: 1rem 0;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-fabric: #000080;
    --secondary-textile: #008000;
    --accent-thread: #FF6600;
    --neutral-linen: #FFFFFF;
    --dark-cotton: #000000;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .faq-card {
    border: 2px solid #000000;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .case-study-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .navbar-nav .nav-link,
  .footer a,
  .blog-link {
    transition: none;
  }
}

/* Dark mode support */

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-fabric);
  outline-offset: 2px;
}

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

.skip-link:focus {
  top: 6px;
} 