/* Mobile First Responsive Design */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    .display-4 {
        font-size: 1.87rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.64rem;
    }
    
    h3 {
        font-size: 1.32rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.31rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        margin: 0;
    }
    
    /* Hero Section */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    #hero .btn-lg {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.57rem;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Spacing */
    .py-5 {
        padding: 2rem 0;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Remove animations on mobile for performance */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover {
            transform: none;
        }
        
        .btn:hover {
            transform: none;
        }
        
        #gallery img:hover {
            transform: none;
        }
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.81rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 85vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Buttons */
    .btn {
        width: auto;
    }
    
    /* Spacing */
    .py-5 {
        padding: 2.5rem 0;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .display-4 {
        font-size: 2.26rem;
    }
    
    h2 {
        font-size: 1.90rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 90vh;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Team Images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    /* Typography remains at default */
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 240px;
    }
    
    /* Team Images */
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    /* Enhanced Hover Effects for Desktop */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .process-step:hover {
        transform: scale(1.05);
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 2.77rem;
    }
    
    h2 {
        font-size: 2.27rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 260px;
    }
    
    /* Spacing */
    .py-5 {
        padding: 4rem 0;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 3rem;
    }
}

/* Landscape Orientation Adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .py-5 {
        padding: 1.5rem 0;
    }
}

/* Print Optimizations */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    overflow-x: hidden;
}
    
    .container {
        max-width: none !important;
        padding: 0;
    }
    
    .row {
        page-break-inside: avoid;
    }
    
    .col-lg-4,
    .col-md-6 {
        width: 50% !important;
        float: left;
    }
    
    .py-5 {
        padding: 1rem 0;
    }
    
    /* Hide non-essential elements */
    .navbar,
    footer,
    .btn,
    #hero::before {
        display: none !important;
    }
    
    /* Ensure readability */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    .card {
        border: 1px solid #e2d3d1;
        box-shadow: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */

/* Focus and Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    .nav-link,
    .form-control,
    #gallery img {
        transition: none !important;
        animation: none !important;
    }
    
    .card:hover,
    .btn:hover,
    .process-step:hover {
        transform: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px; /* Apple's minimum touch target */
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    .card:hover {
        transform: none;
    }
    
    /* Remove hover effects that don't work on touch */
    .btn:hover,
    .card:hover,
    #gallery img:hover {
        transform: none;
    }
} 