/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.85rem;
    }
    
    h2 {
        font-size: 1.59rem;
    }
    
    h3 {
        font-size: 1.38rem;
    }
    
    h4 {
        font-size: 1.15rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.27rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Hero Section */
    #hero {
        padding: 2rem 0;
        text-align: center;
    }
    
    #hero h1 {
        font-size: 1.82rem;
        margin-bottom: 0.62rem;
    }
    
    #hero h2 {
        font-size: 1.37rem;
        margin-bottom: 1rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Team Images */
    .team img,
    img[src*="team_"] {
        width: 60px;
        height: 60px;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Form */
    .form-control {
        padding: 0.625rem 0.75rem;
    }
    
    /* Grid Adjustments */
    .col-6 {
        margin-bottom: 1rem;
    }
    
    /* FAQ Cards */
    #faq .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Process Steps */
    .process-step::after {
        display: none;
    }
    
    /* Gallery */
    #gallery .col-md-3 {
        margin-bottom: 0.61rem;
    }
    
    /* Contact Info */
    #contact .row > div {
        margin-bottom: 1rem;
    }
    
    /* No animations on mobile for performance */
    @media (prefers-reduced-motion: no-preference) {
        [data-sal] {
            animation: none;
        }
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero h2 {
        font-size: 1.54rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team Images */
    .team img,
    img[src*="team_"] {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps - Show connector on larger mobile */
    .process-step::after {
        width: 50%;
        right: -25%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    #hero h1 {
        font-size: 2.28rem;
    }
    
    #hero h2 {
        font-size: 1.89rem;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Team Images */
    .team img,
    img[src*="team_"] {
        width: 90px;
        height: 90px;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
}

/* Large devices (desktops, 995px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Default styles apply */
    
    /* Fine-tune spacing */
    .navbar-nav .nav-link {
        margin: 0 0.75rem;
    }
    
    /* Card hover effects */
    .card:hover {
        transform: translateY(-6px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Enhanced spacing for larger screens */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    #hero h1 {
        font-size: 2.56rem;
    }
    
    #hero h2 {
        font-size: 2rem;
    }
    
    /* Sections */
    section {
        padding: 6rem 0;
    }
    
    .py-5 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    /* Enhanced card effects */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }
    
    /* Team Images */
    .team img,
    img[src*="team_"] {
        width: 120px;
        height: 120px;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced typography */
    #hero h1 {
        font-size: 2.81rem;
    }
    
    #hero h2 {
        font-size: 2.31rem;
    }
    
    /* Increased section padding */
    section {
        padding: 7rem 0;
    }
    
    .py-5 {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    /* Reduce hero height on landscape mobile */
    #hero {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Hide navbar animations */
    .navbar {
        backdrop-filter: none;
    }
}

/* Print media queries */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    #contact form,
    footer {
        display: none;
    }
    
    /* Adjust colors for print */
    * {
        color: #000;
        background: transparent;
    }
    
    /* Reset page margins */
    @page {
        margin: 1in;
    }
    
    /* Ensure content breaks properly */
    section {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Dark mode support */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    /* Remove hover effects */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Focus-visible support for better accessibility */
@supports selector(:focus-visible) {
    .btn:focus:not(:focus-visible),
    .form-control:focus:not(:focus-visible),
    .nav-link:focus:not(:focus-visible) {
        outline: none;
    }
    
    .btn:focus-visible,
    .form-control:focus-visible,
    .nav-link:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
} 

body {
    overflow-x: hidden;
}