/* =================
   AcousticPro Responsive Styles
   ================= */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-shape {
        display: none;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    /* Process Numbers */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Team Images */
    .card-img-top.rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Contact Form */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    #hero {
        min-height: 80vh;
    }
    
    /* Typography */
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-3 {
        font-size: 3rem;
    }
    
    /* Team Images */
    .card-img-top.rounded-circle {
        width: 140px;
        height: 140px;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 90vh;
    }
    
    /* Cards in Grid */
    .row.g-4 > .col-md-6:nth-child(odd) {
        padding-right: 0.75rem;
    }
    
    .row.g-4 > .col-md-6:nth-child(even) {
        padding-left: 0.75rem;
    }
    
    /* Gallery Layout */
    #gallery .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Contact Form */
    .card-body {
        padding: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
        padding: 0.5rem 1rem;
        border-radius: 0.375rem;
        transition: all 0.2s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(99, 102, 241, 0.1);
    }
    
    /* Cards Hover Effects */
    .card {
        transition: all 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
    
    /* Gallery Grid */
    #gallery .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container Max Width */
    .container {
        max-width: 1140px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 3.5rem;
    }
    
    .display-3 {
        font-size: 4rem;
    }
    
    /* Hero Section Enhancements */
    .hero-shape {
        opacity: 0.1;
    }
    
    /* Team Grid Spacing */
    .row.g-4 > .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Card Spacing */
    .card-body {
        padding: 2.5rem;
    }
}

/* XXL Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced Spacing */
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    /* Typography Scale */
    .display-4 {
        font-size: 4rem;
    }
    
    .display-3 {
        font-size: 4.5rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp borders and shadows */
    .card,
    .btn,
    .form-control {
        border-width: 0.5px;
    }
    
    .shadow {
        box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    }
}

/* Dark Mode Support (if system preference is dark) */

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Responsive Adjustments */
@media print {
    .col-lg-4,
    .col-md-6,
    .col-sm-12 {
        width: 100%;
        float: none;
    }
    
    .row {
        margin: 0;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    /* Page Breaks */
    section {
        page-break-inside: avoid;
    }
    
    .card {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --shadow-color: rgba(0, 0, 0, 0.3);
    }
    
    .card {
        border-width: 2px;
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
}

/* Focus visible for keyboard navigation */
@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .btn {
        font-size: 16px; /* Prevent zoom on mobile */
    }
} 