/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 40px 0;
    --section-padding-sm: 30px 0;
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
  }
  
  /* No animations on mobile */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .service-card,
  .review-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .price-featured {
    transform: none;
  }
  
  .process-number {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --section-padding: 50px 0;
    --section-padding-sm: 40px 0;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .service-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --section-padding: 60px 0;
    --section-padding-sm: 45px 0;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .service-card,
  .review-card {
    margin-bottom: 0;
  }
}

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

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 120vh;
  }
  
  :root {
    --section-padding: 40px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .gallery-section {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
  }
  
  .service-card,
  .review-card,
  .faq-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-high-contrast: high) {
  .service-card,
  .review-card,
  .faq-card,
  .team-member,
  .blog-card {
    border: 2px solid #000 !important;
  }
  
  .btn-primary {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
  }
}

/* Focus improvements for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .navbar-nav .nav-link:focus {
    outline: 3px solid var(--sage-dark);
    outline-offset: 2px;
  }
}

/* Container spacing adjustments */
@media (max-width: 767.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
} 

.hero-content {
    padding-top: 225px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
