/* Responsive CSS - Bootstrap 5 Compatible */
/* Mobile-first approach */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
  
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.23rem;
  }
  
  .gallery-item img {
    height: 180px;
  }
  
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  /* Typography adjustments for mobile */
  h1 { font-size: 1.61rem; }
  h2 { font-size: 1.41rem; }
  h3 { font-size: 1.27rem; }
  
  .service-price {
    font-size: 1.28rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: block;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.65rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .service-card {
    margin-bottom: 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section::before {
    width: 400px;
    height: 400px;
  }
  
  .hero-section::after {
    width: 300px;
    height: 300px;
  }
  
  .gallery-item img {
    height: 260px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .hero-section::before {
    width: 500px;
    height: 500px;
  }
  
  .hero-section::after {
    width: 350px;
    height: 350px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
}

/* High DPI displays */
@media (min-resolution: 192dpi) {
  .gallery-item img,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .service-card,
  .review-card,
  .team-card {
    box-shadow: none;
    border: 1px solid #dedede;
  }
  
  .gallery-section {
    display: none;
  }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .gallery-item {
    transition: none;
  }
  
  .service-card:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Dark mode support */

.hero-content {
    padding-top: 225px;
}