/* ===== RESPONSIVE DESIGN ===== */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-4 {
        font-size: 1.88rem;
    }
    
    .h2 {
        font-size: 1.58rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    #hero {
        min-height: 100vh;
        padding-top: 100px;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    /* No animations on mobile */
    .card {
        transition: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 7px 10px rgba(0,0,0,0.1);
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Team images smaller on mobile */
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* Process circles smaller */
    #process .rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    #hero {
        padding-top: 90px;
    }
    
    .navbar-brand {
        font-size: 1.41rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.30rem;
    }
    
    #hero {
        padding-top: 80px;
    }
    
    /* Adjust team layout */
    #team .col-md-6:nth-child(5) {
        margin: 0 auto;
        max-width: 50%;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar {
        padding: 1.5rem 0;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    .display-4 {
        font-size: 2.53rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
}

/* ===== MOBILE-SPECIFIC OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Disable hover effects on mobile */
    .card:hover,
    #gallery img:hover,
    #team img:hover {
        transform: none;
    }
    
    /* Optimize spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Smaller margins */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.63rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    /* Adjust hero section */
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Contact form adjustments */
    #contacts .form-control {
        font-size: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    #footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
    
    /* Blog grid mobile */
    #blog_grid .col-lg-4 {
        margin-bottom: 1.70rem;
    }
    
    /* Services grid mobile */
    #services .col-lg-4 {
        margin-bottom: 1.67rem;
    }
    
    /* Gallery mobile optimization */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* FAQ mobile layout */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* ===== TABLET OPTIMIZATIONS ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Adjust hero for tablet */
    #hero {
        min-height: 80vh;
    }
    
    /* Team layout for tablet */
    #team .row {
        justify-content: center;
    }
    
    #team .col-md-6:nth-child(odd) {
        padding-right: 2rem;
    }
    
    #team .col-md-6:nth-child(even) {
        padding-left: 2rem;
    }
    
    /* Services layout */
    #services .col-lg-4:nth-child(3n+1) {
        clear: left;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    #footer,
    .btn,
    .hero-shapes {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .col-lg-4,
    .col-lg-6,
    .col-md-4,
    .col-md-6 {
        width: 100% !important;
        margin-bottom: 1rem;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --eco-green: #235b22;
        --eco-green-dark: #113f18;
        --eco-cream-light: #ffffff;
    }
    
    .card {
        border: 2px solid #433e3e;
    }
    
    .btn-success {
        border: 2px solid var(--eco-green-dark);
    }
}

/* ===== LANDSCAPE PHONE ORIENTATION ===== */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
} 