/* Mobile-first responsive design */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile per requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 60px 0 40px;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* Section padding adjustments */
    section {
        padding: 3rem 0;
    }
    
    /* Card image heights */
    .card-img-top {
        height: 200px;
    }
    
    /* Team member images */
    .team img {
        width: 150px;
        height: 150px;
    }
    
    /* Button adjustments */
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    /* Gallery grid adjustments */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer spacing */
    footer {
        padding: 3rem 0;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    /* Process steps mobile */
    .process-step {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* FAQ cards mobile */
    .faq .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .team img {
        width: 170px;
        height: 170px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.45rem;
    }
    
    .card-img-top {
        height: 240px;
    }
    
    .team img {
        width: 180px;
        height: 180px;
    }
    
    /* Services grid adjustment */
    .services .col-lg-4:nth-child(3n+1) {
        clear: left;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 200px;
}
    
    .card-img-top {
        height: 250px;
    }
    
    .team img {
        width: 200px;
        height: 200px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    .card-img-top {
        height: 280px;
    }
    
    .team img {
        width: 220px;
        height: 220px;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 400px;
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI/Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look crisp on high DPI displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */

/* Print media adjustments */
@media print {
    .hero-section {
        height: auto;
        padding: 2rem 0;
        background: white;
    }
    
    .card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .gallery {
        display: none;
    }
    
    section {
        padding: 1rem 0;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Accessibility - Focus indicators */
@media (prefers-reduced-motion: no-preference) {
    .card:focus-within {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
}

/* Container adjustments for different breakpoints */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 575.98px) {
    /* Touch-friendly button sizes */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Larger tap targets for navigation */
    .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved form field spacing */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    /* Better text readability */
    body {
        font-size: 16px; /* Prevents zoom on iOS */
    overflow-x: hidden;
}
    
    /* Improved card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Gallery improvements */
    .gallery img {
        margin-bottom: 1rem;
    }
    
    /* Footer link spacing */
    footer ul li {
        margin-bottom: 0.5rem;
    }
} 