/* Mobile First Approach */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero section */
  .hero-section {
    padding: 2rem 0;
    min-height: 70vh;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none; /* Hide decorative elements on very small screens */
  }
  
  /* Cards */
  .custom-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 2rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form */
  .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog posts */
  .blog-content {
    padding: 1rem;
  }
  
  /* FAQ items */
  .faq-item {
    padding: 1rem;
  }
  
  /* No animations on mobile for better performance */
  .custom-card:hover,
  .blog-post:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Disable scroll animations on mobile */
  [data-sal] {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero section */
  .hero-section {
    min-height: 75vh;
  }
  
  /* Team photos */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Service cards in 2 columns */
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 85vh;
  }
  
  /* Cards */
  .custom-card {
    padding: 1.75rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full hero section */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Team photos */
  .team-photo {
    width: 190px;
    height: 190px;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 240px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max width */
  .container {
    max-width: 1140px;
  }
  
  /* Hero section full height */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Team photos full size */
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 250px;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Larger decorative elements */
  .hero-section::before {
    width: 250px;
    height: 250px;
  }
  
  .hero-section::after {
    width: 200px;
    height: 200px;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and footer for printing */
  .navbar,
  .footer {
    display: none;
  }
  
  /* Remove backgrounds and shadows */
  .hero-section,
  .custom-card,
  .service-card,
  .review-card {
    background: white !important;
    box-shadow: none !important;
  }
  
  /* Ensure text is black */
  body,
  h1, h2, h3, h4, h5, h6,
  p, span, div {
    color: #000 !important;
  }
  
  /* Remove decorative elements */
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Disable scroll animations */
  [data-sal] {
    transform: none !important;
    opacity: 1 !important;
  }
  
  /* Disable hover effects */
  .custom-card:hover,
  .blog-post:hover,
  .gallery-item:hover img,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  /* Increase contrast for better accessibility */
  .custom-card,
  .service-card,
  .review-card,
  .faq-item {
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
}

/* Dark mode support */

.hero-content {
    padding-top: 100px;
}