/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, 575px and down) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Remove decorative elements on small screens */
  }
  
  /* NO animations on mobile per requirements */
  .card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(45, 90, 74, 0.1);
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
  }
  
  .price-card.featured {
    transform: none; /* Remove scale on mobile */
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 75vh;
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  /* Reduced animations on small devices */
  .card:hover {
    transform: translateY(-2px);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .col-md-6 .service-card {
    height: 350px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card {
    height: 320px;
  }
  
  .price-card {
    height: 450px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .service-card {
    height: 340px;
  }
  
  .price-card {
    height: 480px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--primary-charcoal);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-charcoal);
  }
  
  .form-control {
    border: 2px solid var(--primary-charcoal);
  }
}

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .hero-decorative {
    animation: none;
  }
}

/* Dark mode support */

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

/* Custom grid adjustments for specific breakpoints */
@media (min-width: 768px) {
  .row-cols-md-2 > * {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .row-cols-md-3 > * {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 992px) {
  .row-cols-lg-3 > * {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .row-cols-lg-4 > * {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
} 

.hero-section h1 {
    padding-top: 200px;
}