/* Responsive Design - Mobile First Approach */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* No animations on mobile - respecting user preferences */
    * {
        animation: none;
        transition: none;
    }
    
    /* Conservative mobile typography */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Mobile hero adjustments */
    #hero {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    #hero::before,
    #hero::after {
        display: none; /* Remove decorative elements on mobile */
    }
    
    /* Mobile section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Mobile cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card:hover {
        transform: none; /* No hover effects on mobile */
    }
    
    /* Mobile gallery */
    #gallery img:hover {
        transform: none;
    }
    
    /* Mobile forms */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Mobile buttons */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Mobile team photos */
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Mobile navbar */
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* No scroll animations on small devices */
    @media (max-width: 767.98px) {
        * {
            animation: none;
        }
    }
    
    #hero {
        min-height: 80vh;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .rounded-circle {
        width: 110px;
        height: 110px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #hero {
        min-height: 90vh;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations enabled for desktop */
    .card:hover {
        transform: translateY(-5px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
    
    #hero {
        min-height: 100vh;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Desktop-specific hero decorations */
    #hero::before,
    #hero::after {
        display: block;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    section {
        padding: 5rem 0;
    }
    
    #hero {
        padding: 6rem 0;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Mobile-specific utilities */
@media (max-width: 767.98px) {
    .mobile-center {
        text-align: center;
    }
    
    .mobile-mb-3 {
        margin-bottom: 1rem;
    }
    
    .mobile-p-2 {
        padding: 0.5rem;
    }
    
    /* Ensure mobile menu works properly */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: 2px solid var(--primary-color);
    }
    
    /* Mobile breadcrumb */
    .breadcrumb-item img {
        width: 14px;
        height: 14px;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-6:nth-child(odd) {
        padding-right: 0.75rem;
    }
    
    .col-md-6:nth-child(even) {
        padding-left: 0.75rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --primary-dark: #004499;
        --neutral-dark: #000000;
        --background-light: #ffffff;
        --background-dark: #cccccc;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .btn-primary {
        border: 2px solid #000000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    #hero::before,
    #hero::after {
        display: none;
    }
}

/* Dark mode support */

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Focus management for keyboard navigation */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
} 