/* ===== EcoFit Responsive Styles ===== */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .display-4 { font-size: 2.5rem; }
    .lead { font-size: 1rem; }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Hero Section */
    #hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-shape,
    .hero-bg-shape {
        display: none;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-img-top {
        height: 180px;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
        width: 0.75rem;
        height: 0.75rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    /* Team Images */
    #team img {
        width: 150px;
        height: 150px;
    }
    
    /* Contact Section */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Footer */
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Gallery */
    #gallery .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Process Steps */
    .process-item {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Services Grid */
    #services .col-md-6:not(:last-child) {
        margin-bottom: 1.5rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Disable animations on mobile as per requirements */
    .card:hover,
    .btn:hover,
    img:hover,
    .research-item:hover,
    .trend-card:hover,
    .story-card:hover,
    .material-card:hover,
    .certification-card:hover,
    .impact-stage:hover,
    .goal-card:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    
    .display-4 { font-size: 3rem; }
    
    /* Hero Section */
    #hero {
        padding: 4rem 0;
    }
    
    /* Sections */
    section {
        padding: 3.5rem 0;
    }
    
    /* Team Images */
    #team img {
        width: 175px;
        height: 175px;
    }
    
    /* Process Steps */
    .process-item {
        margin-bottom: 1.5rem;
    }
    
    /* Disable animations on mobile as per requirements */
    .card:hover,
    .btn:hover,
    img:hover,
    .research-item:hover,
    .trend-card:hover,
    .story-card:hover,
    .material-card:hover,
    .certification-card:hover,
    .impact-stage:hover,
    .goal-card:hover {
        transform: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    #hero {
        padding: 4.5rem 0;
    }
    
    /* Team Images */
    #team img {
        width: 180px;
        height: 180px;
    }
    
    /* Timeline */
    .timeline-content {
        margin-left: 1rem;
    }
    
    /* Services */
    #services .col-md-6:nth-child(odd) {
        padding-right: 0.75rem;
    }
    
    #services .col-md-6:nth-child(even) {
        padding-left: 0.75rem;
    }
    
    /* Gallery */
    #gallery .col-md-3 {
        padding: 0.25rem;
    }
    
    /* Pricing Plans */
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-image-container {
        padding-left: 1rem;
    }
    
    /* Services Grid */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team Layout */
    #team .col-lg-4.offset-lg-2 {
        margin-top: 1.5rem;
    }
    
    /* Features Section */
    #features .col-lg-6:first-child {
        padding-right: 2rem;
    }
    
    #features .col-lg-6:last-child {
        padding-left: 2rem;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container Adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    #hero {
        padding: 6rem 0;
    }
    
    .hero-image-container {
        padding-left: 2rem;
    }
    
    /* Section Spacing */
    section {
        padding: 6rem 0;
    }
    
    /* Typography */
    .display-4 {
        font-size: 3.5rem;
    }
    
    /* Features Section */
    #features .col-lg-6:first-child {
        padding-right: 3rem;
    }
    
    /* Timeline */
    .timeline-content {
        margin-left: 2rem;
    }
    
    /* Team Images */
    #team img {
        width: 200px;
        height: 200px;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Hero Section */
    #hero {
        padding: 8rem 0;
    }
    
    /* Section Spacing */
    section {
        padding: 7rem 0;
    }
    
    /* Typography */
    .display-4 {
        font-size: 4rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    /* Remove interactive elements */
    .navbar,
    .btn,
    footer,
    #gallery,
    .timeline {
        display: none;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    /* Ensure proper page breaks */
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline-primary {
        border-color: #000;
        color: #000;
    }
    
    .text-muted {
        color: #333;
    }
}

/* Landscape Orientation for Mobile */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Focus Styles for Accessibility */
@media (any-hover: hover) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Reduced Motion Adjustments */
@media (prefers-reduced-motion: reduce) {
    /* Disable scroll animations */
    html {
        scroll-behavior: auto;
    }
    
    /* Remove all transforms and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        transition-duration: 0.01ms;
    }
    
    /* Ensure static states */
    .card,
    .btn,
    img,
    .nav-link {
        transform: none;
    }
} 