/* EcoStore - Responsive Styles */
/* Mobile-First Responsive Design */

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
    /* No animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography Adjustments */
    h1, .display-4 {
        font-size: 1.80rem;
    }
    
    h2 {
        font-size: 1.58rem;
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem 0;
    padding-top: 275px;
}
    
    /* Hero Section Mobile */
    #hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    padding-top: 275px;
}
    
    /* Button Adjustments */
    .btn-lg {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    /* Card Spacing */
    .card {
        margin-bottom: 1.72rem;
    }
    
    /* Services Cards */
    #services .card-img-top {
        height: 180px;
    }
    
    /* Team Images */
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery Grid */
    #gallery .col-6 {
        margin-bottom: 1rem;
    }
    
    /* Process Items */
    .process-step {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    #contacts .form-control {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.76rem;
    }
    
    #hero {
        padding: 120px 0 80px;
    }
    
    #services .card-img-top {
        height: 190px;
    }
    
    #team img {
        width: 130px;
        height: 130px;
    }
    
    .process-step {
        padding: 1.25rem;
    }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1, .display-4 {
        font-size: 2.38rem;
    }
    
    h2 {
        font-size: 1.91rem;
    }
    
    #hero {
        padding: 140px 0 100px;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    padding-top: 275px;
}
    
    #services .card-img-top {
        height: 195px;
    }
    
    #team img {
        width: 140px;
        height: 140px;
    }
    
    /* Adjust grid for tablets */
    .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .process-step {
        padding: 1.5rem;
    }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Fine-tune spacing for large screens */
    .container {
        max-width: 960px;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 2rem 0;
    padding-top: 275px;
}
    
    #services .card-img-top {
        height: 200px;
    }
    
    #team img {
        width: 150px;
        height: 150px;
    }
}

/* Extra Large Devices */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Larger service images */
    #services .card-img-top {
        height: 220px;
    }
    
    /* Case study images */
    #casestudy .card-img-top {
        height: 240px;
    }
    
    /* Gallery images */
    #gallery img {
        border-radius: 10px;
    }
}

/* Landscape Orientation */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 80px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 1.53rem;
    }
    
    .hero-content .lead {
        font-size: 0.97rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look crisp on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover,
    .feature-card:hover,
    .btn:hover {
        transform: none !important;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .nav-link {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    #header,
    #footer {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    .btn {
        display: none !important;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --eco-green: #315735;
        --eco-sage: #3c4c2b;
        --eco-cream: #f0f0f0;
        --eco-earth: #8f4511;
        --eco-sky: #4695c1;
    }
    
    body {
        color: #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* Reduced Motion - Already covered in main.css but reinforced here */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */