/* ===== RESPONSIVE STYLES ===== */

/* Mobile First Approach */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 1.86rem;
        line-height: 1.3;
    }
    
    .h2, h2 {
        font-size: 1.53rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 2.73rem;
        padding-bottom: 2.66rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    #hero .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Cards mobile spacing */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Services grid mobile */
    #services .col-md-6:not(:last-child) {
        margin-bottom: 1.74rem;
    }
    
    /* Team member images mobile */
    .rounded-circle {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    /* Gallery mobile spacing */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Navigation mobile */
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    /* Disable animations on mobile for performance */
    [data-sal] {
        transform: none;
        opacity: 1;
    }
}

/* Small tablets */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
}

/* Medium tablets and small laptops */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.36rem;
    }
    
    /* Hero adjustments */
    #hero .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Services grid tablet */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team grid tablet */
    #team .col-lg-2 {
        margin-bottom: 1.68rem;
    }
    
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
}

/* Large tablets and laptops */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .display-4 {
        font-size: 2.56rem;
    }
    
    /* Team layout adjustments */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    /* Hero enhancements */
    #hero {
        min-height: 100vh;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.27rem;
    }
}

/* Landscape mobile devices */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 60vh;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Navbar compact in landscape */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders for high DPI */
    .card {
        border-width: 0.5px;
    }
    
    .form-control {
        border-width: 1px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Remove animations on mobile when motion is reduced */
    .card,
    .btn,
    .form-control,
    #gallery img {
        transition: none;
    }
    
    #hero::before {
        animation: none;
    }
}

/* Dark mode support */

/* Print styles */
@media print {
    /* Hide navigation and non-essential elements */
    .navbar,
    #footer,
    .btn,
    [data-sal] {
        display: none;
    }
    
    /* Optimize typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    /* Ensure proper page breaks */
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Focus management for better accessibility */
@media (min-width: 768px) {
    .navbar-nav .nav-link:focus {
        outline: 2px solid var(--primary-coral);
        outline-offset: 2px;
    }
    
    .btn:focus {
        outline: 2px solid var(--dark-coral);
        outline-offset: 2px;
    }
    
    .form-control:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(255, 141, 136, 0.25);
    }
} 