/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Header */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        text-align: center;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    #hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    #hero h2 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    #hero .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    .card-img-top {
        height: 200px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Form */
    .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    /* Team */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Process */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery img {
        height: 200px;
    }
    
    /* Disable hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
        filter: none;
    }
    
    /* Disable animations on mobile per accessibility requirements */
    .sal-animate {
        transition: none !important;
        transform: none !important;
    }
    
    /* Mobile-specific spacing */
    .mb-mobile-4 {
        margin-bottom: 2rem;
    }
    
    /* Text alignment for mobile */
    .text-center-mobile {
        text-align: center;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h2 {
        font-size: 1.375rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Team */
    .team-member img {
        width: 130px;
        height: 130px;
    }
    
    /* Gallery */
    #gallery img {
        height: 220px;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    #hero h1 {
        font-size: 2.75rem;
    }
    
    #hero h2 {
        font-size: 1.4rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 2.25rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 240px;
    }
    
    /* Team */
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    /* Gallery */
    #gallery img {
        height: 250px;
    }
    
    /* Form columns adjustment */
    .col-md-6 .form-control {
        margin-bottom: 1rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    #hero h1 {
        font-size: 2.9rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 260px;
    }
    
    /* Gallery */
    #gallery img {
        height: 280px;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    #hero h1 {
        font-size: 3.2rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 280px;
    }
    
    /* Gallery */
    #gallery img {
        height: 320px;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Increase section padding for larger screens */
    section {
        padding: 6rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    #hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    #hero h2 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Dark mode support */

/* Print optimizations */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .row {
        display: block;
    }
    
    .col-lg-4,
    .col-md-6,
    .col-sm-12 {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        padding: 0.875rem 2rem;
        min-height: 44px;
    }
    
    .nav-link {
        padding: 1rem;
        min-height: 44px;
    }
    
    .form-control {
        padding: 0.875rem 1rem;
        min-height: 44px;
    }
    
    /* Remove hover effects */
    .card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove transforms */
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Custom breakpoints for specific needs */
@media (min-width: 480px) and (max-width: 767.98px) {
    /* Custom styles for small tablets in portrait */
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Very small screens (320px and below) */
@media (max-width: 319.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
} 