/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-title-1 {
    font-size: 1.78rem;
  }
  
  .hero-subtitle-1 {
    font-size: 1.32rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .service-card,
  .feature-card,
  .price-card {
    margin-bottom: 1.63rem;
  }
  
  .team-image {
    width: 150px;
    height: 150px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero {
    min-height: 85vh;
  }
  
  .hero-title-1 {
    font-size: 2.02rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .service-card {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: 90vh;
  }
  
  .service-card {
    height: auto;
  }
  
  .team-image {
    width: 180px;
    height: 180px;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero {
    min-height: 100vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .service-card,
  .feature-card,
  .review-card {
    height: 100%;
  }
  
  .team-image {
    width: 200px;
    height: 200px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-content h1 {
  padding-top: 100px !important;
}

.hero-content {
  padding-top: 50px !important;
    padding-right: 2rem;
  }
  
  .section {
    padding: 5rem 0;
  }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero {
    min-height: 85vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Mobile Landscape */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-image,
  .service-image,
  .team-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact {
    display: none;
  }
  
  .hero {
    min-height: auto;
    page-break-after: always;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero::before {
    animation: none;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .gallery-item:hover .gallery-image {
    transform: none;
  }
}

/* Dark mode support (system preference) */
@media (prefers-color-scheme: dark) {
  /* Note: We're not implementing dark theme as per accessibility requirements */
  /* This is just a placeholder for future implementation if needed */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .feature-card,
  .price-card,
  .review-card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-mint);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-mint);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
} 