/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    h2 {
        font-size: 1.83rem;
    }
    
    .lead {
        font-size: 1.13rem;
    }
    
    /* Navbar brand size reduction */
    .navbar-brand {
        font-size: 1.31rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 150px;
    }
    
    #team .card-img-top {
        height: 200px;
    }
    
    /* Process section circles */
    .process-step {
        width: 50px;
        height: 50px;
        font-size: 1.03rem;
    }
    
    /* Padding adjustments */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Hero section padding */
    .hero-section {
        padding-top: 80px;
    }
    
    /* Footer adjustments */
    #footer {
        text-align: center;
    }
    
    /* Services grid - single column on mobile */
    #services .col-lg-4 {
        margin-bottom: 1.68rem;
    }
    
    /* Team grid adjustments */
    #team .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    /* FAQ cards full width */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact form adjustments */
    #contact .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* No animations on mobile for performance */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover {
            transform: none;
        }
        
        #gallery img:hover {
            transform: none;
        }
        
        #team .card:hover {
            transform: none;
        }
    }
    
    /* Button sizing */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.99rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.33rem;
    padding-top: 200px;
}
    
    .card-img-top {
        height: 180px;
    }
    
    #team .card-img-top {
        height: 220px;
    }
    
    /* Two columns for some sections */
    #services .row > div {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Gallery 2 columns */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.61rem;
    padding-top: 200px;
}
    
    /* Three columns for services */
    #services .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Team layout adjustments */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Gallery 3 columns */
    #gallery .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Process section better spacing */
    #process .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard desktop layout - mostly default Bootstrap behavior */
    .container {
        max-width: 960px;
    }
    
    /* Ensure proper team member sizing */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Process items proper spacing */
    #process .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Larger hero text for big screens */
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 200px;
}
    
    /* Enhanced card hover effects for desktop */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
    }
}

/* Landscape phone specific adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-section h1 {
        font-size: 1.77rem;
        margin-bottom: 0.61rem;
    padding-top: 200px;
}
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    .card-img-top,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn,
    #gallery {
        display: none;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    .card {
        border: 1px solid #ddd3d3;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .hero-section {
        padding-top: 0;
        background: white;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0267cb;
        --secondary-color: #279c51;
        --neutral-color: #41494d;
        --background-color: #ffffff;
    }
    
    .card {
        border: 2px solid #f9f9f9;
    }
    
    .btn-primary {
        background-color: #0059c1;
        border-color: #0c4bc0;
    }
}

/* Reduced motion preferences - mobile specific */
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .card,
    #gallery img,
    #team .card {
        transition: none;
    }
    
    .card:hover,
    #gallery img:hover,
    #team .card:hover {
        transform: none;
    }
}

/* Focus improvements for keyboard navigation */
@media (min-width: 768px) {
    .nav-link:focus,
    .btn:focus,
    .form-control:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Specific breakpoint for team member cards */
@media (min-width: 576px) and (max-width: 991.98px) {
    #team .col-lg-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Additional page layouts */
@media (max-width: 767.98px) {
    /* Additional pages responsive adjustments */
    .breadcrumb {
        font-size: 0.92rem;
    }
    
    /* Ensure proper spacing for additional page sections */
    #92d2cd_page_1_sec_1,
    #97cbcf_page_1_sec_2,
    #a6ddd6_page_1_sec_3,
    #b8eeeb_page_1_sec_4,
    #a8dfda_page_1_sec_5,
    #a7d5d1_page_2_sec_1,
    #8ec9c7_page_2_sec_2,
    #afd2cd_page_2_sec_3,
    #bcd7db_page_2_sec_4,
    #a2cac9_page_2_sec_5 {
        padding: 2rem 0;
    }
    
    /* Additional page cards single column on mobile */
    [id*="add_page"] .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* Medium screens for additional pages */
@media (min-width: 768px) and (max-width: 991.98px) {
    [id*="add_page"] .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Ensure proper grid behavior for all breakpoints */
@media (min-width: 992px) {
    [id*="add_page"] .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
} 