/* EcoPicnic Responsive Styles */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    h1, .h1 {
        font-size: 1.875rem;
    }
    
    h2, .h2 {
        font-size: 1.625rem;
    }
    
    h3, .h3 {
        font-size: 1.375rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem !important;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Section Padding */
    section {
        padding: 3rem 0;
    }
    
    /* Card Spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Process Steps Mobile */
    .process-icon,
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Team Members Mobile */
    .team-member {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Contact Form Mobile */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Gallery Mobile */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* No animations on mobile - following requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .service-feature:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
        filter: none !important;
    }
    
    /* Mobile Navigation */
    .navbar-collapse {
        background-color: white;
        margin-top: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: var(--eco-cream);
    }
    
    /* Footer Mobile */
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .social-links {
        justify-content: center;
    }
    
    /* Breadcrumbs Mobile */
    .breadcrumb-section {
        padding: 0.5rem 0;
    }
    
    /* Price Display Mobile */
    .price-display {
        margin-bottom: 1rem;
    }
    
    /* Sustainability Metrics Mobile */
    .sustainability-metric {
        margin-bottom: 2rem;
    }
    
    .sustainability-metric .display-4 {
        font-size: 2.5rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
    }
    
    /* No animations on small mobile - following requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .service-feature:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
        filter: none !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 120px;
    }
    
    /* Timeline Adjustments */
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    /* Process Steps Tablet */
    .process-icon,
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    /* Team Grid Tablet */
    .team-member {
        margin-bottom: 1.5rem;
    }
    
    /* Gallery Tablet */
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Services Grid Tablet */
    .services .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero Section Desktop */
    .hero-section {
        padding-top: 140px;
    }
    
    /* Restore animations for desktop */
    .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .service-feature {
        transition: transform 0.3s ease;
    }
    
    .service-feature:hover {
        transform: translateY(-3px);
    }
    
    #gallery img {
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    
    #gallery img:hover {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
    
    /* Navigation Desktop */
    .navbar-nav .nav-link {
        transition: color 0.3s ease;
    }
    
    /* Social Links Desktop */
    .social-links a {
        transition: background-color 0.3s ease;
    }
    
    /* Team Member Cards Desktop */
    .card img.rounded-circle {
        transition: border-color 0.3s ease;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding-top: 160px;
    }
    
    /* Container Max Width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced Spacing */
    section {
        padding: 6rem 0;
    }
    
    /* Typography Scaling */
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
}

/* Extra Extra Large Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        padding-top: 180px;
    }
    
    section {
        padding: 7rem 0;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Reduce vertical spacing in landscape */
    .card {
        margin-bottom: 1rem;
    }
    
    .process-icon,
    .process-step {
        margin-bottom: 1rem;
    }
    
    .team-member {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
        min-height: auto;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .btn {
        display: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .card {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .navbar {
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    .service-feature:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
        filter: none;
    }
    
    .social-links a {
        transition: none;
    }
    
    .navbar-nav .nav-link {
        transition: none;
    }
}

/* Dark Mode Support */

/* Focus Visible for Better Accessibility */
@media (any-hover: hover) {
    .btn:focus-visible,
    .form-control:focus-visible,
    .nav-link:focus-visible {
        outline: 2px solid var(--eco-green);
        outline-offset: 2px;
    }
}

/* Touch Device Optimizations */
@media (any-hover: none) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .service-feature:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
        filter: none;
    }
}

/* Container Queries Support (when available) */
@container (max-width: 400px) {
    .hero-buttons .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
}

/* Specific Mobile Menu Fixes */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25);
    }
    
    .navbar-collapse.show {
        animation: slideDown 0.3s ease-in-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Override slideDown animation for reduced motion */
    @media (prefers-reduced-motion: reduce) {
        .navbar-collapse.show {
            animation: none;
        }
    }
}

/* Grid System Adjustments */
@media (max-width: 767.98px) {
    .row {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    
    .row > * {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Footer Responsive Adjustments */
@media (max-width: 767.98px) {
    footer .row > * {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .row > *:last-child {
        margin-bottom: 0;
    }
    
    footer .text-end {
        text-align: center !important;
    }
} 

.hero-section h1 {
    padding-top: 250px;
}