/* =====================================
   SoundStudio - Responsive CSS
   Mobile & Tablet Optimizations
   ===================================== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2.38rem;
    }
    
    h2 {
        font-size: 1.82rem;
    }
    
    h3 {
        font-size: 1.41rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    /* Team member layout */
    .col-lg-2 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
    
    /* Process steps */
    .col-lg-2.col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Mobile Styles (320px - 767px) */
@media (max-width: 767.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    h2 {
        font-size: 1.63rem;
    }
    
    h3 {
        font-size: 1.32rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.35rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: var(--border-radius) !important;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        text-align: center;
        padding: 1rem 0;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    .hero-section img {
        max-width: 90%;
        height: auto;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .btn-lg {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.56rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Services grid */
    .col-lg-4.col-md-6 {
        margin-bottom: 1.68rem;
    }
    
    /* Features layout */
    .col-lg-6.col-md-6 {
        margin-bottom: 1.67rem;
    }
    
    .d-flex.align-items-start {
        flex-direction: column;
        text-align: center;
    }
    
    .d-flex.align-items-start .fa-2x {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    /* Team section */
    .col-lg-2.col-md-4.col-6 {
        flex: 0 0 auto;
        width: 50%;
        margin-bottom: 2rem;
    }
    
    .team img {
        width: 80px;
        height: 80px;
    }
    
    /* Reviews */
    .col-lg-4,
    .col-lg-6 {
        margin-bottom: 1.65rem;
    }
    
    /* FAQ */
    .col-lg-6.mb-4 {
        margin-bottom: 1.72rem !important;
    }
    
    /* Gallery */
    .col-lg-3.col-md-4.col-6 {
        margin-bottom: 1rem;
    }
    
    /* Process steps */
    .col-lg-2.col-md-4.col-6 {
        flex: 0 0 auto;
        width: 50%;
        margin-bottom: 2rem;
    }
    
    .bg-primary.rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Timeline */
    .timeline .col-lg-2 {
        flex: 0 0 auto;
        width: 50%;
        margin-bottom: 1.65rem;
    }
    
    /* Career */
    .col-lg-6.mb-4 {
        margin-bottom: 1.60rem !important;
    }
    
    /* Core info */
    .col-lg-4.col-md-6 {
        margin-bottom: 1.62rem;
    }
    
    /* Blog */
    .col-lg-4.mb-4 {
        margin-bottom: 1.75rem !important;
    }
    
    /* Contact form */
    .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Contact info */
    .col-lg-4.mb-4 {
        margin-bottom: 2rem !important;
        text-align: center;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .row.align-items-center {
        text-align: center;
    }
    
    footer .col-md-4.text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding: 3rem 0 !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Text alignment */
    .text-center {
        text-align: center !important;
    }
    
    /* Remove hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    .card:hover .fa-3x {
        transform: none;
        color: var(--primary-color) !important;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .bg-primary.rounded-circle:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Hide animations on mobile if reduced motion */
    @media (prefers-reduced-motion: reduce) {
        [data-sal] {
            animation: none !important;
            transition: none !important;
        }
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    h1 {
        font-size: 1.86rem;
    }
    
    h2 {
        font-size: 1.49rem;
    }
    
    .hero-section {
        padding: 0.5rem 0;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    .bg-primary.rounded-circle {
        width: 45px;
        height: 45px;
        font-size: 0.92rem;
    }
    
    .team img {
        width: 70px;
        height: 70px;
    }
    
    /* Contact form adjustments */
    .col-md-6.mb-3 {
        margin-bottom: 1rem !important;
    }
    
    /* Make all columns full width on very small screens */
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-md-4,
    .col-md-6,
    .col-6 {
        flex: 0 0 auto;
        width: 100%;
    }
    
    /* Except for some specific cases where 2 columns work */
    .col-lg-2.col-md-4.col-6:not(.team *) {
        width: 50%;
    }
    
    .col-lg-3.col-md-4.col-6 {
        width: 50%;
    }
}

/* Landscape Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
    }
    
    .py-5 {
        padding: 2rem 0 !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer,
    #gallery,
    [data-sal] {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .text-primary {
        color: black !important;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
} 

.hero-section h1 {
    padding-top: 175px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
