/* =============================================
   EcoWork Hub - Responsive Styles
   Mobile and Tablet Optimizations
   ============================================= */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    .display-4 {
        font-size: 2rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar Adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Hero Section Mobile */
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    #hero .container {
        text-align: center;
    }
    
    #hero .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    /* NO animations on mobile as per requirements */
    .hero-shapes {
        display: none;
    }
    
    /* Button Adjustments */
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Card Adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    overflow-x: hidden;
}
    
    /* Section Spacing */
    section {
        padding: 3rem 0;
    }
    
    /* Container Padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Feature Icons Mobile */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Step Numbers Mobile */
    .step-number {
        width: 50px;
        height: 50px;
    }
    
    .step-number .h5 {
        font-size: 1rem;
    }
    
    /* Timeline Mobile */
    .timeline-marker {
        width: 15px;
        height: 15px;
        min-width: 15px;
    }
    
    /* Contact Icons Mobile */
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Form Adjustments */
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Gallery Mobile */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer Mobile */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
    
    /* Team Photos Mobile */
    .card-img-top.rounded-circle {
        width: 150px !important;
        height: 150px !important;
    }
    
    /* Process Steps Mobile */
    .col-lg-2.col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Disable Hover Effects on Mobile */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none;
    }
    
    #gallery a:hover {
        transform: none;
    }
    
    #gallery a:hover img {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    #hero {
        padding-top: 100px;
    }
    
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    /* NO animations on mobile as per requirements */
    .hero-shapes {
        display: none;
    }
    
    /* Disable Hover Effects */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    #hero {
        padding-top: 80px;
    }
    
    /* Team Photos Tablet */
    .card-img-top.rounded-circle {
        width: 180px !important;
        height: 180px !important;
    }
    
    /* Process Steps Tablet */
    .col-lg-2.col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Reduce Hero Shapes Opacity on Tablet */
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        opacity: 0.05;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    #hero {
        padding-top: 80px;
    }
    
    /* Ensure proper hero shapes display */
    .hero-shapes {
        display: block;
    }
    
    /* Process Steps Desktop */
    .col-lg-2.col-md-4 {
        margin-bottom: 0;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    /* Enhanced hero shapes for large screens */
    .hero-shapes .shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .hero-shapes .shape-2 {
        width: 200px;
        height: 200px;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: auto;
        padding: 80px 0 2rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        box-shadow: var(--shadow-md);
    }
    
    .feature-icon,
    .contact-icon {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Print Responsive */
@media print {
    .col-lg-6,
    .col-lg-4,
    .col-lg-3,
    .col-md-6,
    .col-md-4 {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .hero-shapes {
        display: none;
    }
    
    #hero {
        min-height: auto;
        padding: 1rem 0;
    }
}

/* Accessibility - Focus States */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--eco-accent);
        outline-offset: 2px;
    }
}

/* Dark Mode Support (if system prefers dark) */

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .card {
        transition: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    /* Larger touch targets */
    .form-control {
        min-height: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Specific Mobile Navigation Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        border-radius: var(--border-radius);
        transition: background-color 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--eco-light-gray);
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        animation: none;
        transform: none;
    }
    
    .card,
    .btn,
    .form-control,
    .nav-link {
        transition: none;
    }
    
    .card:hover,
    .btn:hover,
    #gallery a:hover {
        transform: none;
    }
}

/* Container Queries (Progressive Enhancement) */
@container (max-width: 400px) {
    .card-body {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
} 