/* EcoClean Pro - Responsive CSS */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.81rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.60rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.36rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.23rem;
        line-height: 1.3;
    }
    
    h5 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    p {
        font-size: 1.02rem;
        line-height: 1.5;
    }
    
    /* Hero section adjustments */
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.80rem;
        margin-bottom: 0.89rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 1.27rem;
        margin-bottom: 0.61rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 1.66rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 1.04rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 0.59rem;
    }
    
    .card-text {
        font-size: 0.98rem;
        line-height: 1.4;
    }
    
    /* Buttons */
    .btn {
        font-size: 1.01rem;
        padding: 0.6rem 1.2rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.8rem 1.6rem;
    }
    
    /* Form elements */
    .form-control,
    .form-select {
        font-size: 1.03rem;
        padding: 0.6rem 0.8rem;
    }
    
    /* Icons */
    .fa-3x {
        font-size: 2rem;
    }
    
    /* Process circles */
    .rounded-circle {
        width: 60px;
        height: 60px;
    }
    
    .rounded-circle h3 {
        font-size: 1.20rem;
    }
    
    /* Team images */
    .team img,
    img[style*="150px"] {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding: 2rem 0;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    .mb-4 {
        margin-bottom: 1.45rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    footer h5 {
        font-size: 1.13rem;
        margin-bottom: 0.96rem;
    }
    
    footer p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.83rem;
    }
    
    h3 {
        font-size: 1.46rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 75vh;
    }
    
    /* Cards in grid */
    .card-columns .card {
        margin-bottom: 1.39rem;
    }
    
    /* Process circles */
    .rounded-circle {
        width: 70px;
        height: 70px;
    }
    
    /* Team images */
    .team img,
    img[style*="150px"] {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 80vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team layout adjustments */
    .team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Process items */
    .process .col-lg-2 {
        margin-bottom: 1.68rem;
    }
    
    /* Timeline items */
    .timeline .col-lg-2 {
        margin-bottom: 1.65rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
}

/* Large Devices (desktops, 996px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Fine-tune spacing for large tablets/small desktops */
    .container {
        max-width: 960px;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 200px;
    }
    
    /* Team member spacing */
    .team .col-lg-2.col-md-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced typography for large screens */
    h1 {
        font-size: 2.84rem;
    }
    
    h2 {
        font-size: 2.30rem;
    }
    
    /* Hero section enhancements */
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-section::before {
        width: 800px;
        height: 800px;
    }
    
    /* Card enhancements */
    .card-img-top {
        height: 220px;
    }
    
    /* Process circles */
    .rounded-circle {
        width: 90px;
        height: 90px;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding: 4rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding: 1.5rem 0;
    }
    
    .mb-5 {
        margin-bottom: 1.67rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for retina displays */
    .card {
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
    }
    
    .card:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .form-control,
    .form-select {
        border-width: 1px;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    .breadcrumb {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #c8c5c5;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #535353;
    }
}

/* Accessibility enhancements */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #349228;
        --text-primary: #000000;
        --text-secondary: #414040;
        --border-color: #000000;
    }
    
    .card {
        border: 2px solid var(--border-color);
    }
    
    .btn-primary {
        background-color: var(--primary-color);
        color: #ffffff;
        border: 2px solid var(--primary-color);
    }
}

/* Reduced transparency for better performance on low-end devices */
@media (max-width: 768px) {
    .hero-section::before {
        opacity: 0.05;
    }
    
    .navbar {
        backdrop-filter: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Grid adjustments for better mobile experience */
@media (max-width: 575.98px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col, [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Stack all columns on mobile */
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Special handling for team grid */
    .team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
} 