/* AudioBrand - Responsive Styles */

/* Extra Large Devices (XL) - 1200px and up */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section p {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 2.5rem;
    }
    
    .btn-lg {
        padding: 1.25rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    section {
        padding: 5rem 0;
    }
}

/* Large Devices (LG) - 992px and up */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section p {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 2rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .price {
        font-size: 2.25rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

/* Medium Devices (MD) - 768px and up */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section p {
        font-size: 1.125rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Adjust navbar for tablet */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem;
    }
    
    /* Team member grid adjustments */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery adjustments */
    .gallery-img {
        height: 200px;
    }
}

/* Small Devices (SM) - 576px and up */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 0.875rem;
    }
    
    .price {
        font-size: 1.75rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    h5 {
        font-size: 1.125rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.875rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.6rem 0.875rem;
        font-size: 0.9rem;
    }
    
    /* Team member adjustments */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery adjustments */
    .gallery-img {
        height: 180px;
    }
    
    /* Process steps */
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact info */
    .contact-info p {
        font-size: 1rem;
    }
    
    .contact-info i {
        font-size: 1.1rem;
    }
}

/* Extra Small Devices (XS) - less than 576px */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        line-height: 1.1;
    }
    
    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    h6 {
        font-size: 0.875rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .form-check {
        margin-bottom: 1rem;
    }
    
    .form-check-label {
        font-size: 0.8rem;
    }
    
    /* Team member adjustments */
    .team-member {
        margin-bottom: 1.5rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Gallery adjustments */
    .gallery-img {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    .process-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Contact info */
    .contact-info {
        margin-top: 2rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-info i {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    /* Accordion adjustments */
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .accordion-body {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Footer adjustments */
    footer {
        padding: 2rem 0 !important;
    }
    
    footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    footer p,
    footer li {
        font-size: 0.8rem;
    }
    
    /* Testimonial adjustments */
    .testimonial {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .testimonial blockquote {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    /* Breadcrumb adjustments */
    .breadcrumb {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
    
    /* Services grid */
    .services-grid .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Blog grid */
    .blog-grid .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Case studies grid */
    .case-studies-grid .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Utility classes for mobile */
    .text-center-mobile {
        text-align: center !important;
    }
    
    .d-none-mobile {
        display: none !important;
    }
    
    .d-block-mobile {
        display: block !important;
    }
    
    .w-100-mobile {
        width: 100% !important;
    }
    
    .mb-3-mobile {
        margin-bottom: 1rem !important;
    }
    
    .p-2-mobile {
        padding: 0.5rem !important;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.25rem 0.5rem !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .card-img-top,
    .gallery-img,
    .blog-img,
    .case-img,
    .team-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .breadcrumb,
    .btn,
    .form-control,
    .gallery,
    footer {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto !important;
        padding: 1rem 0 !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    section {
        padding: 1rem 0 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card, .testimonial {
        page-break-inside: avoid;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
    
    .price {
        font-weight: bold;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .card:hover,
    .btn:hover,
    .gallery img:hover {
        transform: none !important;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000 !important;
    }
    
    .btn-primary {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #000 !important;
    }
    
    .btn-primary:hover {
        background: #fff !important;
        color: #000 !important;
    }
    
    .form-control {
        border: 2px solid #000 !important;
    }
    
    .form-control:focus {
        border: 2px solid #000 !important;
        box-shadow: 0 0 0 2px #000 !important;
    }
}

/* Focus Styles for Keyboard Navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-radius: 50%;
    border-top-color: #4299e1;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error States */
.error {
    border-color: #e53e3e !important;
    background-color: #fed7d7 !important;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success States */
.success {
    border-color: #38a169 !important;
    background-color: #c6f6d5 !important;
}

.success-message {
    color: #38a169;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Video */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
}

@media (max-width: 767px) {
    .table-responsive table {
        font-size: 0.875rem;
    }
}

/* Container Queries Support */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card-body {
            padding: 0.75rem;
        }
        
        .card-title {
            font-size: 1rem;
        }
    }
} 