/* EcoMove Responsive Styles */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
        min-height: calc(100vh - 76px);
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 250px;
}
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Contact Form */
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Team Members */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery Grid */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile for performance */
    * {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section {
        padding: 3rem 0;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process Steps */
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Services Grid */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team Layout */
    .team .col-lg-2-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Process Steps */
    .process .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Timeline */
    .timeline .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero Section */
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Sections */
    section {
        padding: 5rem 0;
    }
    
    /* Team Custom Grid */
    .team .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Process Custom Grid */
    .process .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Timeline Custom Grid */
    .timeline .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Contact Form Side by Side */
    .contact-section .row > .col-md-6:first-child {
        padding-right: 2rem;
    }
    
    .contact-section .row > .col-md-6:last-child {
        padding-left: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container Max Width */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section Enhanced */
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 250px;
}
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    /* Sections Enhanced Spacing */
    section {
        padding: 6rem 0;
    }
    
    /* Card Enhancements */
    .card-body {
        padding: 2rem;
    }
    
    /* Team Member Images */
    .team-member img {
        width: 180px;
        height: 180px;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 3.5rem;
    padding-top: 250px;
}
    
    /* Enhanced spacing for ultra-wide */
    section {
        padding: 7rem 0;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhance image quality for retina displays */
    .card-img-top,
    .team-member img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Responsive */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    footer,
    #gallery {
        display: none !important;
    }
    
    /* Adjust layout for print */
    .container {
        max-width: none !important;
        width: 100% !important;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    /* Ensure good contrast for print */
    body {
        color: #000 !important;
        background: #fff !important;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions on mobile */
    @media (max-width: 767.98px) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }
    
    /* Maintain essential animations on larger screens but reduce them */
    @media (min-width: 768px) {
        * {
            animation-duration: 0.1s !important;
            transition-duration: 0.1s !important;
        }
    }
}

/* Dark Mode Support (if browser supports) */

/* Focus Management for Keyboard Navigation */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices - enhance focus states */
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--eco-green);
        outline-offset: 2px;
    }
    
    /* Ensure touch targets are large enough */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Specific Mobile Optimizations */
@media (max-width: 767.98px) {
    /* Navbar Improvements */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
    
    /* Hero Content Stacking */
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 2rem;
    }
    
    /* Service Cards Full Width */
    .services .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Reviews Cards Stack */
    .reviews .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ Grid */
    .faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Contact Form Full Width */
    .contact-section .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Footer Stack */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .text-md-end {
        text-align: center !important;
    }
}

/* Tablet Specific Optimizations */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Two column layout for most sections */
    .services .col-lg-4:nth-child(3n) {
        margin-bottom: 2rem;
    }
    
    /* Team three across */
    .team .col-lg-2-4:nth-child(4),
    .team .col-lg-2-4:nth-child(5) {
        flex: 0 0 50%;
        max-width: 50%;
    }
}