/* BrandMatch - Responsive CSS
   Mobile-specific styles and responsive utilities
   Bootstrap 5 compliant responsive design */

/* Mobile-First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding-top: 80px;
        min-height: 100vh;
        text-align: center;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        text-align: center;
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Cards mobile layout */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Process steps mobile */
    .process-step {
        margin-bottom: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Contact form mobile */
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    /* Footer mobile */
    footer .container .row > div {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .container .row > div:last-child {
        margin-bottom: 0;
    }
    
    /* Gallery mobile - 2 columns */
    .gallery-mobile-2-cols {
        max-width: 50%;
    }
    
    /* Form adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* No animations on mobile per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding-top: 90px;
    }
    
    h1, .display-4 {
        font-size: 2.25rem;
    }
    
    /* Services grid - 2 columns on tablets */
    .services-tablet-2-cols {
        max-width: 50%;
    }
    
    /* Team members - 2 columns */
    .team-tablet-2-cols {
        max-width: 50%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    /* Services grid - 3 columns on smaller desktops */
    .services-desktop-3-cols {
        max-width: 33.333333%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    /* Larger cards on desktop */
    .card-img-top {
        height: 220px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .feature-icon i,
    .step-number,
    .metric-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link:hover {
        color: var(--text-primary);
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .navbar-toggler {
        min-height: 48px;
        min-width: 48px;
    }
    
    .form-check-input {
        width: 1.25em;
        height: 1.25em;
    }
}

/* Dark mode support */

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Specific breakpoint adjustments */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Stack timeline items vertically */
    .timeline-item {
        padding: 1.5rem 0.5rem;
    }
    
    /* Adjust metric display */
    .metric-icon .display-4 {
        font-size: 2rem;
    }
    
    /* Mobile breadcrumb */
    .breadcrumb {
        padding: 0.5rem 0;
    }
    
    /* Mobile gallery - single column option */
    .gallery-mobile-single {
        max-width: 100%;
    }
}

/* Small devices specific adjustments */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Adjust service cards for small tablets */
    .service-card-small {
        max-width: 50%;
    }
    
    /* Two-column FAQ layout */
    .faq-two-cols {
        max-width: 50%;
    }
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px; /* Prevent content from being too wide */
    }
}

/* Print responsiveness */
@media print {
    .container {
        max-width: none !important;
        width: 100% !important;
    }
    
    .row {
        display: block !important;
    }
    
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-md-4,
    .col-md-6 {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1rem !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Ensure no animations on mobile when reduced motion is preferred */
    * {
        transition: none !important;
        animation: none !important;
    }
    
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .card:hover {
        transform: none !important;
    }
}

/* Focus management for keyboard navigation */
@media (hover: none) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

.hero-section h1 {
    padding-top: 200px;
}