/* Smart Irrigation System Template - Responsive Styles */
/* Bootstrap 5 Compatible - Additional Responsive Utilities */

/* Mobile First - Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    :root {
        --font-size-h1: 1.8rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.3rem;
        --font-size-navbar-brand: 1.2rem;
        --section-padding: 2rem 0;
    }
    
    /* No animations on mobile for performance */
    .hero-decorative {
        animation: none;
    }
    
    .service-card:hover,
    .gallery-item:hover img {
        transform: none;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-decorative {
        display: none;
    }
    
    /* Service cards stack vertically */
    .service-card {
        margin-bottom: 1rem;
    }
    
    /* Team photos smaller on mobile */
    .team-photo {
        height: 200px;
    }
    
    /* Contact form padding */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Gallery grid single column */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Process steps smaller */
    .process-step {
        padding: 1.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Hero section better spacing */
    #hero {
        min-height: 90vh;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Full hero height on desktop */
    #hero {
        min-height: 100vh;
    }
    
    /* Enable hover effects on desktop */
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .gallery-item:hover img {
        transform: scale(1.05);
    }
}

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

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .service-card,
    .review-card,
    .faq-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #2E7D32;
        --primary-blue: #0D47A1;
        --primary-earth: #5D4037;
        --primary-water: #00695C;
        --primary-sun: #F57F17;
    }
    
    .service-card,
    .team-card,
    .review-card,
    .faq-card,
    .contact-form,
    .process-step {
        border: 2px solid #333;
    }
}

/* Dark mode support */

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

/* Focus and accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .navbar-nav .nav-link:focus {
        outline: 2px solid var(--primary-blue);
        outline-offset: 2px;
    }
}

/* Touch device optimizations */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem;
    }
    
    .service-card,
    .gallery-item {
        margin-bottom: 1rem;
    }
} 