/* ==========================================================================
   Responsive CSS - Mobile First Design
   Bootstrap 5 Compatible | No Animations on Mobile
   ========================================================================== */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Section padding adjustments */
  .section-padding {
    padding: 2.5rem 0;
  }
  
  /* Service cards mobile */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team member cards mobile */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Price cards mobile */
  .price-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery adjustments */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Footer mobile */
  #footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  /* NO ANIMATIONS ON MOBILE - Override all transitions and transforms */
  *,
  *::before,
  *::after {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .team-member:hover,
  .price-card:hover,
  .job-card:hover,
  .info-card:hover,
  .blog-card:hover,
  .case-study-card:hover,
  .process-step:hover,
  .gallery-item:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .btn-primary:hover {
    transform: none !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-decorative {
    display: none; /* Still hide on small tablets */
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Reduce animations on small devices */
  *,
  *::before,
  *::after {
    transition-duration: 0.1s !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Show reduced decorative elements */
  .hero-blob-1 {
    width: 200px;
    height: 200px;
  }
  
  .hero-blob-2 {
    width: 150px;
    height: 150px;
  }
  
  .section-padding {
    padding: 3.5rem 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .section-padding {
    padding: 4rem 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Full decorative elements on large screens */
  .hero-blob-1 {
    width: 350px;
    height: 350px;
  }
  
  .hero-blob-2 {
    width: 250px;
    height: 250px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

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

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on high DPI displays */
  .service-image,
  .team-photo,
  .blog-image,
  .case-study-image,
  .gallery-item {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print specific responsive adjustments */
@media print {
  .container {
    max-width: 100%;
    width: 100%;
  }
  
  .row {
    display: block;
  }
  
  .col-md-6,
  .col-lg-4,
  .col-lg-6,
  .col-lg-3 {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .hero-decorative {
    display: none;
  }
}

/* Accessibility: Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative {
    display: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  /* Ensure all hover effects are minimal */
  .feature-card:hover,
  .service-card:hover,
  .team-member:hover,
  .price-card:hover {
    transform: translateY(-2px);
  }
}

/* Dark mode support */

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.navbar-nav .nav-link:focus {
  outline: 2px solid var(--primary-sage);
  outline-offset: 2px;
}

/* Ensure readability on all screen sizes */
@media (max-width: 575.98px) {
  .feature-card,
  .service-card,
  .review-card,
  .price-card,
  .team-member,
  .job-card,
  .info-card,
  .blog-card,
  .case-study-card,
  .process-step,
  .timeline-item,
  .faq-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
}

/* Bootstrap grid system compatibility */
@media (max-width: 575.98px) {
  .row > * {
    margin-bottom: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .row > * {
    margin-bottom: 1.5rem;
  }
}

/* Ensure proper spacing between sections on all devices */
section + section {
  border-top: 1px solid transparent;
}

/* Footer responsive adjustments */
@media (max-width: 767.98px) {
  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-link {
    display: inline-block;
    margin: 0 0.5rem;
  }
} 

body {
    overflow-x: hidden;
}