/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Conservative navbar brand for mobile */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Section padding adjustments */
    section {
        padding: 3rem 0;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 70vh;
        text-align: center;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 150px;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Team member adjustments */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps mobile layout */
    .process-step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Gallery adjustments */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Stats adjustments */
    .stats-number {
        font-size: 2rem;
    }
    
    /* Icon adjustments */
    .icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .icon-circle-lg {
        width: 60px;
        height: 60px;
    }
    
    /* Footer adjustments */
    footer .container .row {
        text-align: center;
    }
    
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Timeline mobile adjustments */
    .timeline::before {
        left: 20px;
    }
    
    .timeline .card {
        margin-left: 40px;
    }
    
    /* NO ANIMATIONS ON MOBILE - Following requirements */
    [data-sal] {
        transform: none;
        opacity: 1;
        transition: none;
    }
    
    /* Disable hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .team-member:hover img {
        border-color: var(--color-primary-light);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.875rem;
    }
    
    .display-5 {
        font-size: 2.25rem;
    }
    
    /* Section padding */
    section {
        padding: 4rem 0;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Team member adjustments */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps */
    .process-step-number {
        width: 55px;
        height: 55px;
    }
    
    /* Icon adjustments */
    .icon-circle {
        width: 55px;
        height: 55px;
    }
    
    .icon-circle-lg {
        width: 70px;
        height: 70px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 50%;
    }
    
    .timeline .card {
        margin-left: 0;
    }
    
    /* Stats grid */
    .stats-item {
        padding: 1.5rem 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full hero height */
    #hero {
        min-height: 100vh;
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    /* Enhanced card hover effects */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    /* Team member enhancements */
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width */
    .container {
        max-width: var(--container-max-width);
    }
    
    /* Enhanced spacing */
    section {
        padding: 6rem 0;
    }
    
    /* Typography enhancements */
    .display-5 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    /* Hero decorative elements */
    .hero-decorative {
        width: 120px;
        height: 120px;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    /* Enhanced container */
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced section padding */
    section {
        padding: 7rem 0;
    }
    
    /* Enhanced typography */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 3rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhanced image quality */
    .card-img-top,
    .gallery-item img,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print media queries */
@media print {
    /* Hide interactive elements */
    .navbar,
    footer,
    .btn,
    .form-control,
    .input-group {
        display: none;
    }
    
    /* Adjust layout for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    /* Section adjustments */
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    /* Typography for print */
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Card adjustments for print */
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    /* Remove background colors */
    .bg-light,
    .bg-primary {
        background: white;
        color: black;
    }
    
    /* Gallery adjustments */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    /* Disable hover effects */
    .card:hover,
    .gallery-item:hover img,
    .team-member:hover img {
        transform: none;
    }
    
    /* Disable Sal.js animations */
    [data-sal] {
        transform: none;
        opacity: 1;
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    /* Enhanced contrast */
    .card {
        border: 2px solid var(--color-neutral-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--color-primary-dark);
    }
    
    .form-control {
        border: 2px solid var(--color-neutral-dark);
    }
    
    /* Text contrast */
    .text-muted {
        color: var(--color-neutral-dark);
    }
}

/* Dark mode support */

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    /* Touch device optimizations */
    .btn {
        padding: 0.75rem 1.5rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Larger touch targets */
    .navbar-nav .nav-link {
        padding: 1rem;
    }
}

/* Container queries for modern browsers */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card-body {
            padding: 1rem 0.5rem;
        }
        
        .card-title {
            font-size: 1rem;
        }
    }
} 