/* Mobile First Responsive Design */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.75rem;
    padding-top: 225px;
}
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Remove animations on mobile for performance */
  .service-card:hover,
  .blog-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 {
    min-height: 75vh;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  #hero {
    min-height: 85vh;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Tablet landscape orientation */
@media (max-width: 1024px) and (orientation: landscape) {
  #hero {
    min-height: 60vh;
  }
  
  .navbar-nav {
    text-align: center;
  }
}

/* Print styles */
@media print {
  .navbar,
  #footer,
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .review-card,
  .faq-card,
  .contact-form {
    border: 2px solid var(--neutral-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-dark);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .blog-card,
  .gallery-item img {
    transition: none;
  }
  
  .service-card:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* Focus management for accessibility */
@media (max-width: 768px) {
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 157, 0.5);
  }
  
  .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 157, 0.25);
  }
} 