/* ===== RESPONSIVE DESIGN ===== */

/* ===== MOBILE FIRST APPROACH ===== */
/* Base styles are for mobile, then we enhance for larger screens */

/* ===== EXTRA SMALL DEVICES (phones, less than 576px) ===== */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .h4 {
        font-size: 1.125rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 80vh;
        padding-top: 4rem;
        text-align: center;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    /* Team grid */
    .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Services grid */
    .services-grid .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Contact form */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Gallery spacing */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Hide animations on mobile as per requirements */
    .fade-in,
    .card:hover,
    #gallery img:hover {
        transform: none;
        transition: none;
    }
}

/* ===== SMALL DEVICES (landscape phones, 576px and up) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 85vh;
        padding-top: 4.5rem;
    }
    
    .display-4 {
        font-size: 2.25rem;
    }
    
    /* Team members in 2 columns */
    .team-section .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Process steps in 2 columns */
    .process-section .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.5rem;
    }
}

/* ===== MEDIUM DEVICES (tablets, 768px and up) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 90vh;
        padding-top: 5rem;
    }
    
    /* Services in 2 columns */
    .services-section .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Pricing in 3 columns but better spacing */
    .pricing-section .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team members in 3 columns */
    .team-section .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Process steps in 3 columns */
    .process-section .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Adjust font sizes */
    .display-4 {
        font-size: 2.5rem;
    }
    
    .h2 {
        font-size: 2rem;
    }
}

/* ===== LARGE DEVICES (desktops, 992px and up) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 95vh;
        padding-top: 5.5rem;
    }
    
    /* Full responsive behavior kicks in */
    .container {
        max-width: 960px;
    }
}

/* ===== EXTRA LARGE DEVICES (large desktops, 1200px and up) ===== */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 6rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hover effects for desktop */
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }
}

/* ===== ULTRA WIDE SCREENS (1400px and up) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhance spacing for very large screens */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid var(--gray-200);
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }
}

/* ===== RESPONSIVE GRID ADJUSTMENTS ===== */
@media (max-width: 767.98px) {
    /* Force single column on mobile for better readability */
    .row .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .row .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* ===== RESPONSIVE IMAGES ===== */
@media (max-width: 575.98px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .card-img-top {
        height: 150px;
        object-fit: cover;
    }
    
    /* Team member images */
    .team-member img,
    .rounded-circle {
        width: 80px;
        height: 80px;
    }
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 575.98px) {
    /* Reduce font sizes for mobile readability */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.875rem;
    }
    
    /* Button text size */
    .btn {
        font-size: 0.875rem;
    }
}

/* ===== RESPONSIVE SPACING ===== */
@media (max-width: 767.98px) {
    /* Reduce margins and padding on mobile */
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem;
    }
    
    .mb-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact section spacing */
    .contact-section .row {
        margin-top: 2rem;
    }
    
    /* Footer spacing */
    footer .row:first-child {
        margin-bottom: 1rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (max-width: 767.98px) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Form controls */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* ===== RESPONSIVE ANIMATIONS ===== */
@media (max-width: 767.98px) {
    /* Disable animations on mobile as per requirements */
    * {
        transition: none;
        animation: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .btn,
    footer,
    #gallery {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    .container {
        max-width: none;
        width: 100%;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black;
    }
    
    .card {
        border: 1px solid black;
        box-shadow: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --gray-700: #000000;
        --gray-600: #333333;
        --gray-500: #666666;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .btn-primary {
        background-color: #000080;
        border-color: #000080;
        color: #ffffff;
    }
} 

.hero-section h1 {
    padding-top: 100px;
}