/* EcoFleet Responsive Styles - Mobile Optimization */

/* Mobile-First Approach */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* NO ANIMATIONS ON MOBILE - STRICTLY ENFORCED */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Conservative Typography for Mobile */
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    h4 {
        font-size: 1.125rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    h5 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    /* Conservative Navbar Brand Size */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Section Padding Reduction */
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    /* Hero Content Stacking */
    .hero-section .row {
        text-align: center;
    }
    
    .hero-actions {
        margin-top: 1.5rem;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        margin-right: 0;
    }
    
    /* Card Spacing */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .job-card,
    .faq-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    /* Team Members Grid */
    .team-member img {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }
    
    /* Process Steps - Vertical Layout */
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* Timeline - Vertical Layout */
    .timeline-item .year {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Blog Cards */
    .blog-card img {
        height: 150px;
    }
    
    /* Gallery Grid */
    .gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer {
        padding: 3rem 0;
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable animations on small screens */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-actions .btn {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
    }
    
    .service-card img,
    .blog-card img {
        height: 180px;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Reduce animation intensity on tablets */
    [data-sal] {
        transform: translateY(10px) !important;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    /* Services Grid - 2 columns on tablets */
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 200px;
    }
    
    /* Team Grid Optimization */
    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations on desktop */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Hover Effects Active on Desktop */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .job-card:hover,
    .blog-card:hover {
        transform: translateY(-5px);
    }
    
    .gallery img:hover {
        transform: scale(1.05);
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 6rem 0;
    }
}

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

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
}

/* Dark Mode Support */

/* Motion Sensitivity */
@media (prefers-reduced-motion: reduce) {
    /* Already handled in main.css, but reinforced here */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-section,
    .feature-card,
    .service-card,
    .pricing-card,
    .blog-card,
    .gallery img {
        transform: none !important;
    }
}

/* Print Optimizations */
@media print {
    /* Mobile-like layout for printing */
    .col-lg-3,
    .col-lg-4,
    .col-lg-6 {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    .service-card,
    .pricing-card,
    .review-card {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    /* Hide interactive elements */
    .btn,
    .form-control,
    .navbar-toggler {
        display: none !important;
    }
}

/* Focus and Accessibility on Mobile */
@media (max-width: 767.98px) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    /* Enhanced form controls */
    .form-control {
        min-height: 44px;
        font-size: 1rem;
    }
    
    /* Gallery touch optimization */
    .gallery a {
        display: block;
        margin-bottom: 1rem;
    }
}

/* Specific Mobile Menu Fixes */
@media (max-width: 991.98px) {
    /* Standard Bootstrap navbar collapse - NO CUSTOMIZATION */
    .navbar-collapse {
        background-color: white;
        border-top: 1px solid var(--clean-white-dark);
        margin-top: 0.5rem;
        padding-top: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        color: var(--eco-green) !important;
        font-weight: 500;
        padding: 0.75rem 1rem;
    }
}

/* Content Reflow for Small Screens */
@media (max-width: 575.98px) {
    /* Force single column layout */
    .row > .col-lg-6,
    .row > .col-lg-4,
    .row > .col-lg-3,
    .row > .col-md-6,
    .row > .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Services badges wrapping */
    .services-list {
        text-align: center;
    }
    
    .services-list .badge {
        margin: 0.25rem;
        display: inline-block;
    }
    
    /* Contact info stacking */
    .contact-info .contact-item {
        text-align: center;
        margin-bottom: 1.5rem;
    }
}


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