/* EcoPickup - Responsive CSS */
/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .hero-section .display-4 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    h1, .h1 {
        font-size: 1.5rem;
    }
    
    h2, .h2 {
        font-size: 1.375rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.125rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
        min-height: 80vh;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    /* Services */
    .price-tag {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-top: 0.5rem;
        font-size: 0.875rem;
        padding: 0.25rem 0.75rem;
    }
    
    /* Contact Info */
    .contact-info-item {
        margin-bottom: 1.5rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Form Elements */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Team Members */
    img[src*="team_"] {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* NO ANIMATIONS ON MOBILE - Disable Sal.js effects */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* NO ANIMATIONS ON MOBILE */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section .display-4 {
        font-size: 2.25rem;
    }
    
    /* Cards in grid */
    .row.g-4 .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Services grid */
    .services-grid .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Team grid */
    .team-grid .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    /* Full animations enabled on desktop */
    [data-sal] {
        opacity: 0;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section .display-4 {
        font-size: 3rem;
    }
    
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 5rem 0;
    }
    
    /* Full animations enabled on large desktop */
    [data-sal] {
        opacity: 0;
    }
}

/* Landscape Phone Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    /* NO ANIMATIONS IN LANDSCAPE MOBILE */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb,
    footer,
    .btn,
    [data-sal] {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    .hero-section {
        background: white !important;
        min-height: auto !important;
        padding: 1rem 0 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #006400;
        --primary-blue: #000080;
        --dark-gray: #000000;
        --light-gray: #ffffff;
    }
    
    .card {
        border: 2px solid #000000 !important;
    }
    
    .btn-primary {
        border: 2px solid #000000 !important;
    }
    
    .form-control {
        border: 2px solid #000000 !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* Focus States for Accessibility */
@media (min-width: 768px) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-yellow);
        outline-offset: 2px;
    }
}

/* Mobile Navigation Enhancements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Services Section Mobile Layout */
@media (max-width: 767.98px) {
    #services .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.5rem;
    }
    
    #services .card {
        height: auto;
    }
    
    #services .card-body {
        text-align: center;
    }
}

/* Contact Form Mobile */
@media (max-width: 767.98px) {
    #contact .row.g-5 {
        --bs-gutter-y: 2rem;
    }
    
    #contact .col-lg-6:first-child {
        order: 2;
    }
    
    #contact .col-lg-6:last-child {
        order: 1;
    }
}

/* FAQ Section Mobile */
@media (max-width: 767.98px) {
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    #faq .card {
        margin-bottom: 0.75rem;
    }
}

/* Team Section Mobile */
@media (max-width: 767.98px) {
    #team .row.g-4 {
        --bs-gutter-y: 2rem;
    }
    
    #team .card {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Process Section Mobile */
@media (max-width: 767.98px) {
    #process .text-center {
        margin-bottom: 2rem;
    }
    
    #process .rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    #process .h4 {
        font-size: 1rem;
    }
}

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