/* Responsive CSS - Mobile-First Approach */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile adjustments */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    /* Button sizing for mobile */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1.25rem;
    overflow-x: hidden;
}
    
    /* Team member images */
    .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Section padding reduction */
    section {
        padding: 3rem 0;
    }
    
    /* Form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* No animations on mobile as per requirements */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Card hover effects disabled on mobile */
    .card:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    /* Typography */
    h1, .h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    /* Team layout */
    .col-lg-2-4 {
        width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Section spacing */
    section {
        padding: 4rem 0;
    }
    
    /* No animations on mobile resolutions */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .card:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Typography */
    h1, .h1 {
        font-size: 2.125rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2.25rem;
    }
    
    /* Team grid */
    .col-lg-2-4 {
        width: 33.333333%;
    }
    
    /* Card grid adjustments */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container max width */
    .container {
        max-width: 960px;
    }
    
    /* Team grid full layout */
    .col-lg-2-4 {
        width: 20%;
    }
    
    /* Hero full height */
    #hero {
        height: 100vh;
    }
    
    /* Services grid proper spacing */
    #services .row.g-4 {
        row-gap: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 6rem 0;
    }
    
    /* Typography enhancements */
    .lead {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .breadcrumb-section,
    #footer {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on high DPI displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Mobile Devices */
@media (max-height: 480px) and (orientation: landscape) {
    /* Reduce hero section height in landscape */
    #hero {
        min-height: 60vh;
        padding: 1rem 0;
    }
    
    /* Compress section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Smaller typography */
    h1, .h1 {
        font-size: 1.5rem;
    }
    
    h2, .h2 {
        font-size: 1.25rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
}

/* Dark Mode Support */

/* Utility Classes for Responsive Behavior */
.mobile-hidden {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

/* Responsive Grid Utilities */
.row-cols-auto-mobile {
    --bs-columns: 1;
}

@media (min-width: 576px) {
    .row-cols-auto-mobile {
        --bs-columns: 2;
    }
}

@media (min-width: 768px) {
    .row-cols-auto-mobile {
        --bs-columns: 3;
    }
}

@media (min-width: 992px) {
    .row-cols-auto-mobile {
        --bs-columns: 4;
    }
}

/* Responsive Typography Scale */
.responsive-text {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
}

.responsive-heading {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* Touch-friendly sizing for mobile */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Container fluid on mobile for full width */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Optimize images for mobile */
@media (max-width: 767.98px) {
    .card-img-top {
        height: 150px;
    }
    
    .rounded-circle {
        width: 80px;
        height: 80px;
    }
}

/* Performance optimization for mobile */
@media (max-width: 767.98px) {
    .card, .btn {
        will-change: auto;
    }
}

/* Specific mobile layout adjustments */
@media (max-width: 767.98px) {
    /* Stack pricing cards vertically */
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    /* Full width form on mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Mobile-friendly navigation */
    .navbar-collapse {
        border-top: 1px solid #e9ecef;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    /* Reduce hero content padding */
    #hero .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
} 