/* EcoFlow - Responsive Styles */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    .display-4 {
        font-size: 1.90rem !important;
    }
    
    .h2 {
        font-size: 1.75rem !important;
    }
    
    .h3 {
        font-size: 1.54rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    /* Spacing Adjustments */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Card Adjustments */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Button Adjustments */
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form Adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Gallery Grid */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Team Cards */
    #team .card-img-top {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* No hover effects on mobile */
    .card:hover {
        transform: none !important;
        box-shadow: 0 12px 10px rgba(0,0,0,0.1) !important;
    }
    
    /* Disable animations on mobile */
    * {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.30rem;
    }
    
    .h2 {
        font-size: 1.85rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 90vh;
    }
    
    /* Gallery responsive grid */
    #gallery .row {
        margin: 0 -0.5rem;
    }
    
    #gallery .col-md-4 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav {
        margin-top: 1rem;
    }
    
    /* Hero Section */
    #hero .row {
        align-items: center;
    }
    
    /* Services Grid */
    #services .row.g-4 {
        row-gap: 2rem;
    }
    
    /* Team Grid */
    #team .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* FAQ Grid */
    #faq .col-md-6 {
        margin-bottom: 1.73rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Hero Section */
    #hero .col-lg-6 {
        padding: 0 2rem;
    }
    
    /* Services Cards */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team Section */
    #team .col-lg-4:nth-child(4),
    #team .col-lg-4:nth-child(5) {
        margin-top: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Hero enhancements */
    #hero {
        min-height: 100vh;
    }
    
    #hero .col-lg-6 {
        padding: 0 3rem;
    }
    
    /* Card enhancements */
    .card-body {
        padding: 2rem;
    }
    
    /* Icon sizing */
    .fa-3x {
        font-size: 3.5em;
    }
}

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

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    .card-img-top,
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */

/* Reduced Motion Support */
@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 transforms */
    .card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #footer,
    .hero-shapes {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    }
    
    .card {
        border: 1px solid #e7d4d1 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    /* Ensure proper spacing */
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
    /* High contrast mode */
    .card {
        border: 2px solid var(--eco-dark) !important;
    }
    
    .btn-primary {
        border: 2px solid var(--eco-blue-dark) !important;
    }
    
    .text-muted {
        color: var(--eco-dark) !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    #gallery img:hover,
    .nav-link:hover {
        transform: none !important;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    /* Form improvements for touch */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Container Responsive Adjustments */
@media (max-width: 1400px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Gallery Responsive Grid */
@media (max-width: 767.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #gallery img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
}

/* Services Section Responsive */
@media (max-width: 991.98px) {
    #services .col-lg-4 {
        margin-bottom: 1.70rem;
    }
}

/* Team Section Responsive */
@media (max-width: 767.98px) {
    #team .card-img-top {
        width: 100px !important;
        height: 100px !important;
    }
}

/* FAQ Section Responsive */
@media (max-width: 767.98px) {
    #faq .col-md-6 {
        margin-bottom: 1rem;
    }
    
    #faq .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
}

/* Contact Form Responsive */
@media (max-width: 575.98px) {
    #contact .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #contact .fa-2x {
        font-size: 2.5em;
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer .row.align-items-center .col-md-6 {
        text-align: center !important;
        margin-bottom: 1rem;
    }
} 