/* ===== RESPONSIVE DESIGN ===== */

/* Mobile First Approach */
/* Base styles are for mobile devices */

/* ===== MOBILE STYLES (320px - 767px) ===== */
@media (max-width: 767px) {
    /* Disable animations on mobile for better performance */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover {
            transform: none;
        }
        
        #gallery img:hover {
            transform: none;
        }
        
        .btn-primary:hover {
            transform: none;
        }
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .display-6 {
        font-size: 1.25rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Hero section */
    #hero {
        min-height: 70vh;
        text-align: center;
    }
    
    #hero .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--neutral-light);
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    overflow-x: hidden;
}
    
    /* Team photos */
    #team .card-img-top {
        width: 120px;
        height: 120px;
    }
    
    /* Contact form */
    .form-control {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Process steps */
    #process .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Pricing cards */
    #priceplan .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* ===== TABLET STYLES (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
    /* Typography */
    .display-4 {
        font-size: 2.25rem;
    }
    
    .display-5 {
        font-size: 1.875rem;
    }
    
    /* Section padding */
    section {
        padding: 4rem 0;
    }
    
    /* Hero section */
    #hero {
        min-height: 85vh;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    }
    
    /* Team photos */
    #team .card-img-top {
        width: 140px;
        height: 140px;
    }
    
    /* Gallery grid adjustments */
    #gallery .row {
        margin: 0 -0.75rem;
    }
    
    #gallery .col-md-4 {
        padding: 0 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Contact form layout */
    .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    /* Footer columns */
    #footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* ===== DESKTOP STYLES (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    /* Section padding */
    section {
        padding: 5rem 0;
    }
    
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Cards */
    .card-body {
        padding: 2rem;
    }
    
    /* Team photos */
    #team .card-img-top {
        width: 150px;
        height: 150px;
    }
    
    /* Gallery spacing */
    #gallery .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* ===== LARGE DESKTOP STYLES (1200px+) ===== */
@media (min-width: 1200px) {
    /* Container adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 3rem;
    }
    
    .display-5 {
        font-size: 2.25rem;
    }
    
    /* Section padding */
    section {
        padding: 6rem 0;
    }
    
    /* Hero section */
    #hero {
        min-height: 100vh;
    }
    
    /* Cards */
    .card-body {
        padding: 2.5rem;
    }
    
    /* Gallery spacing */
    #gallery .col-md-4 {
        margin-bottom: 2.5rem;
    }
    
    /* Contact section layout */
    #contact .row {
        align-items: start;
    }
}

/* ===== EXTRA LARGE SCREENS (1400px+) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 7rem 0;
    }
    
    .card-body {
        padding: 3rem;
    }
}

/* ===== LANDSCAPE MOBILE ORIENTATION ===== */
@media (max-width: 767px) and (orientation: landscape) {
    #hero {
        min-height: 60vh;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card-img-top,
    #gallery img,
    #team .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    /* Hide navigation and interactive elements */
    #header,
    #footer,
    .btn,
    .navbar {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    /* Ensure readability */
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-contrast: high) {
    /* High contrast mode adjustments */
    :root {
        --primary-color: #0066cc;
        --secondary-color: #ff6600;
        --accent-color: #009900;
        --neutral-color: #333333;
        --neutral-dark: #000000;
    }
    
    .card {
        border: 2px solid var(--neutral-color);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@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 hover effects */
    .card:hover,
    #gallery img:hover,
    .btn-primary:hover {
        transform: none;
    }
}

/* ===== FOCUS MANAGEMENT ===== */
@media (max-width: 767px) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 767px) {
    /* Reduce complex layouts on mobile */
    .shadow-sm,
    .shadow-md {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* Simplify gradients on mobile */
    #hero {
        background: var(--primary-light);
    }
    
    #hero::before {
        display: none;
    }
} 