/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 { font-size: 1.78rem; }
    h2 { font-size: 1.54rem; }
    h3 { font-size: 1.34rem; }
    .lead { font-size: 1rem; }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.15rem;
    }
    
    /* Hero section mobile optimization */
    .hero-section {
        min-height: 80vh;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.77rem;
        margin-bottom: 1rem;
    padding-top: 175px;
}
    
    /* Section spacing for mobile */
    section {
        padding: 3rem 0;
    }
    
    /* Card optimizations */
    .card-img-top {
        height: 180px;
    }
    
    /* Button sizing */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 1.00rem;
    }
    
    /* Team member images */
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps mobile layout */
    .bg-primary, .bg-secondary {
        margin-bottom: 1rem;
    }
    
    /* FAQ accordion mobile */
    .accordion-button {
        font-size: 1.02rem;
        padding: 0.75rem 1rem;
    }
    
    /* Gallery grid adjustments */
    .gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact form mobile */
    .form-control {
        padding: 0.625rem;
    }
    
    /* Footer mobile optimization */
    footer {
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero section for small devices */
    .hero-section {
        min-height: 85vh;
        padding-top: 5.55rem;
    }
    
    /* Card grid adjustments */
    .card-img-top {
        height: 190px;
    }
    
    /* Team layout improvements */
    .team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Process steps small device layout */
    .process .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.56rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section for tablets */
    .hero-section {
        min-height: 90vh;
        padding-top: 6rem;
    }
    
    /* Typography for tablets */
    h1 { font-size: 1.99rem; }
    h2 { font-size: 1.77rem; }
    
    /* Card optimizations for tablets */
    .card-img-top {
        height: 200px;
    }
    
    /* Team layout for tablets */
    .team .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 2rem;
    }
    
    /* Process steps tablet layout */
    .process .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 1.66rem;
    }
    
    /* Services grid for tablets */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery for tablets */
    .gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.55rem;
    }
}

/* Large Devices (desktops, 997px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Fine-tune spacing for large screens */
    .hero-section {
        min-height: 95vh;
    }
    
    /* Team member spacing */
    .team .col-lg-2 {
        margin-bottom: 1.69rem;
    }
    
    /* Process steps spacing */
    .process .col-lg-2 {
        margin-bottom: 1rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Optimal spacing for very large screens */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
}

/* Height-based media queries for landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 4rem;
        padding-bottom: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high-resolution displays */
    .card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 3px 2px rgba(0, 0, 0, 0.06);
    }
    
    .btn {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    }
}

/* Print responsiveness */
@media print {
    .container {
        max-width: none;
        width: 100%;
    }
    
    .col-lg-6, .col-md-6, .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-lg-4, .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-lg-3, .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #c4c4c4;
        margin-bottom: 1rem;
    }
}

/* Accessibility - Focus improvements */
@media (prefers-reduced-motion: no-preference) {
    .card, .btn, .form-control {
        transition: all 0.3s ease;
    }
}

/* Dark mode support (if browser supports it) */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem 0.75rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero-section {
        background: var(--primary-light);
    }
    
    .hero-section::before {
        display: none;
    }
}

/* Container fluid adjustments for very wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 2.39rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 1.86rem;
    }
}

/* Specific component responsiveness */

/* Accordion responsiveness */
@media (max-width: 767.98px) {
    .accordion {
        margin: 0 -15px;
    }
    
    .accordion-item {
        border-radius: 0;
    }
}

/* Gallery responsiveness */
@media (max-width: 575.98px) {
    .gallery .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Timeline/Process responsiveness */
@media (max-width: 767.98px) {
    .timeline .col-lg-2,
    .process .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

/* Additional page layout responsiveness */
@media (max-width: 991.98px) {
    .additional-page .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .additional-page .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
} 