/* ================================================
   RESPONSIVE CSS - MOBILE FIRST APPROACH
   Rainwater Harvesting System Template
   ================================================ */

/* Mobile First Base Styles (320px+) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 70vh;
    text-align: center;
    padding: 40px 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Section padding mobile */
  .section-padding {
    padding: 40px 0;
  }
  
  /* Service cards mobile */
  .service-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 25px;
    margin: 20px 0;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Process items mobile */
  .process-item {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .process-item::before {
    top: -10px;
    left: 20px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  /* FAQ mobile */
  .faq-card {
    padding: 20px;
  }
  
  /* Review cards mobile */
  .review-card {
    padding: 20px;
  }
  
  .review-card::before {
    font-size: 2.5rem;
    top: 5px;
    left: 15px;
  }
  
  /* Footer mobile */
  .footer {
    padding: 30px 0 15px;
    text-align: center;
  }
  
  .footer .col-md-3 {
    margin-bottom: 25px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .service-card {
    padding: 25px;
  }
  
  .contact-form {
    padding: 30px;
  }
  
  .process-item {
    padding: 25px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .hero-decorative {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 5%;
  }
  
  .service-card {
    padding: 30px;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .gallery-item img {
    height: 230px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .hero-decorative {
    width: 180px;
    height: 180px;
  }
  
  .section-padding {
    padding: 75px 0;
  }
}

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

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

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  .service-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .gallery-item,
  .hero-decorative {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 20px 0;
    background: white;
  }
  
  .section-padding {
    padding: 30px 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #c9c9c9;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
}

/* Accessibility improvements for small screens */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
  }
  
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }
  
  .card {
    margin-bottom: 20px;
  }
}

/* Container width adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

/* Animation control for performance */
@media (max-width: 768px) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  
  .sal-animate {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-delay: -1ms;
    animation-duration: 1ms;
    animation-iteration-count: 1;
    background-attachment: initial;
    scroll-behavior: auto;
    transition-duration: 0s;
    transition-delay: 0s;
  }
}

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

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