/* Responsive CSS - Mobile Optimization */
/* Bootstrap 5 Compatible - No Overrides */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 2rem 0;
  }
  
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.625rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  h4 {
    font-size: 1.375rem;
  }
  
  /* Conservative navbar brand sizing */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative::before,
  .hero-decorative::after {
    display: none; /* Remove decorative elements on mobile */
  }
  
  /* Card spacing */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Service cards mobile layout */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-price {
    font-size: 1.75rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process steps mobile */
  .process-step {
    padding: 1.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Form adjustments */
  .form-control {
    padding: 0.625rem 0.875rem;
  }
  
  /* Gallery items mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact info mobile */
  .contact-info {
    padding: 1.5rem;
    text-align: center;
  }
  
  /* Footer mobile */
  footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* FAQ mobile */
  .faq-card {
    padding: 1.25rem;
  }
  
  /* Blog grid mobile */
  #blog_grid .card {
    margin-bottom: 1.5rem;
  }
  
  /* NO ANIMATIONS ON MOBILE - following the rules */
  @media (prefers-reduced-motion: no-preference) {
    .card:hover {
      transform: none;
    }
    
    .gallery-item:hover img {
      transform: none;
    }
    
    .btn-primary:hover {
      transform: none;
    }
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Service cards layout */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team layout adjustments */
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery grid improvements */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section tablet */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Service grid layout */
  .service-card {
    height: 100%;
  }
  
  /* Team grid layout */
  .team-card {
    height: 100%;
  }
  
  /* Gallery improvements */
  .gallery-item img {
    height: 240px;
  }
  
  /* Process steps tablet */
  .process-step {
    height: 100%;
  }
  
  /* Review cards tablet */
  .review-card {
    height: 100%;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Hero decorative elements */
  .hero-decorative::before {
    width: 250px;
    height: 250px;
  }
  
  .hero-decorative::after {
    width: 180px;
    height: 180px;
  }
  
  /* Service cards equal height */
  .services-grid .card {
    height: 100%;
  }
  
  /* Team cards equal height */
  .team-grid .card {
    height: 100%;
  }
  
  /* Gallery optimal sizing */
  .gallery-item img {
    height: 280px;
  }
  
  /* Process steps equal height */
  .process-grid .process-step {
    height: 100%;
  }
  
  /* Review cards equal height */
  .reviews-grid .card {
    height: 100%;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero section full decoration */
  .hero-decorative::before {
    width: 300px;
    height: 300px;
  }
  
  .hero-decorative::after {
    width: 220px;
    height: 220px;
  }
  
  /* Gallery large screen */
  .gallery-item img {
    height: 320px;
  }
  
  /* Section padding increase */
  section {
    padding: 6rem 0;
  }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  /* Container max width respect */
  .container {
    max-width: 1320px;
  }
  
  /* Gallery ultra wide */
  .gallery-item img {
    height: 350px;
  }
}

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

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

/* Print Styles */
@media print {
  /* Hide navigation and decorative elements */
  .navbar,
  .hero-decorative::before,
  .hero-decorative::after,
  footer {
    display: none;
  }
  
  /* Ensure text is readable */
  body {
    color: black;
    background: white;
    overflow-x: hidden;
}
  
  /* Remove shadows and effects */
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove hover effects */
  .card:hover,
  .gallery-item:hover img,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  /* Increase contrast for accessibility */
  .card {
    border: 2px solid var(--dark-green);
  }
  
  .btn-primary {
    border: 2px solid var(--dark-green);
  }
  
  .form-control:focus {
    border-width: 3px;
  }
}

/* Dark Mode Preference (future-proofing) */


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