/* EcoStrategy - Responsive CSS */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    h3, .h3 {
        font-size: 1.5rem;
    }
    
    /* Navbar brand smaller on mobile */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    /* Button sizing */
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
    
    /* Card spacing */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Team images smaller on mobile */
    #team .card-img-top {
        width: 120px;
        height: 120px;
    }
    
    /* Process circles smaller */
    #process .rounded-circle {
        width: 50px;
        height: 50px;
    }
    
    /* Contact form spacing */
    #contact .form-control {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    /* Services grid */
    #services .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Team layout */
    #team .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navbar adjustments */
    .navbar-nav {
        margin-left: auto;
    }
    
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Services cards */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
    /* Full hero height */
    #hero {
        min-height: 100vh;
    }
    
    /* Enhanced spacing */
    section {
        padding: 5rem 0;
    }
    
    /* Larger containers */
    .container {
        max-width: 1140px;
    }
}

/* Accessibility - Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove Sal.js animations */
    [data-sal] {
        animation: none !important;
        transition: none !important;
    }
    
    /* Remove hover effects */
    .card:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* Mobile-specific animations disabled */
@media (max-width: 767.98px) {
    /* Disable scroll animations on mobile */
    [data-sal] {
        animation: none;
        transition: none;
    }
    
    /* Remove hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and footer */
    .navbar,
    #footer {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: black !important;
        background: white !important;
    }
    
    /* Remove shadows and backgrounds */
    .card,
    .shadow,
    .shadow-sm {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    /* Enhance contrast for accessibility */
    .navbar {
        border-bottom: 2px solid var(--primary-color);
    }
    
    .card {
        border: 2px solid var(--neutral-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
}

/* Dark Mode Support (if browser supports) */

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Adjust hero height for landscape mobile */
    #hero {
        min-height: 90vh;
        padding: 1rem 0;
    }
    
    /* Smaller navbar */
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Focus Indicators for Keyboard Navigation */
@media (any-hover: none) {
    /* Enhanced focus styles for touch devices */
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Container Adjustments */
@media (max-width: 1199.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Text Scaling for Better Readability */
@media (max-width: 575.98px) {
    .lead {
        font-size: 1rem;
    }
    
    .small {
        font-size: 0.8rem;
    }
}

/* Gallery Responsive Adjustments */
@media (max-width: 767.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #gallery img {
        border-radius: 0.5rem;
    }
}

/* Form Responsive Improvements */
@media (max-width: 575.98px) {
    #contact .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Team Section Mobile Optimization */
@media (max-width: 767.98px) {
    #team .col-md-6:not(:last-child) {
        margin-bottom: 2rem;
    }
} 