/* Responsive CSS for SaaS Cost Optimization Audit Template */
/* Mobile-First Approach with Conservative Animations for Mobile */

/* Base Mobile Styles (320px and up) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    h1, .h1 {
        font-size: 1.875rem;
        line-height: 1.1;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    h4, .h4 {
        font-size: 1.125rem;
    }
    
    .lead {
        font-size: 0.9rem;
    }
    
    /* Header and Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding-top: 90px;
        padding-bottom: 3rem;
        min-height: auto;
    }
    
    .hero-cta {
        margin-top: 2rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Sections spacing */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Cards and containers */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .cost-feature,
    .automation-card,
    .support-card,
    .custom-card,
    .faq-card {
        margin-bottom: 1.5rem;
        padding: 1.25rem;
    }
    
    /* Grid columns stacking */
    .col-lg-2-4 {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    /* Team member photos */
    .team-member .member-photo img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps and timeline */
    .step-number,
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer {
        padding: 2.5rem 0;
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    footer .row > div:last-child {
        margin-bottom: 0;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        padding-top: 90px;
        padding-bottom: 1rem;
    }
    
    /* Space page */
    #space {
        padding-top: 90px;
    }
    
    #space .display-1 {
        font-size: 3rem;
    }
    
    /* NO ANIMATIONS ON MOBILE - Performance and Accessibility */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .cost-feature,
    .automation-card,
    .support-card,
    .custom-card {
        transform: none;
        transition: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .cost-feature:hover,
    .automation-card:hover,
    .support-card:hover,
    .custom-card:hover {
        transform: none;
    }
    
    .info-item:hover,
    .feature-item:hover,
    .process-step:hover,
    .timeline-item:hover,
    .security-item:hover,
    .enterprise-feature:hover,
    .integration-item:hover,
    .monitoring-feature:hover,
    .migration-feature:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .col-lg-2-4 {
        width: 50%;
    }
    
    .hero-cta .btn {
        display: inline-block;
        width: auto;
        margin-right: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .team-member .member-photo img {
        width: 100px;
        height: 100px;
    }
    
    .contact-form {
        padding: 1.75rem;
    }
    
    /* Limited animations for larger mobile screens */
    .btn:hover {
        transform: translateY(-1px);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 110px;
    }
    
    .col-lg-2-4 {
        width: 33.333333%;
    }
    
    .team-member .member-photo img {
        width: 110px;
        height: 110px;
    }
    
    .step-number,
    .timeline-year {
        width: 55px;
        height: 55px;
    }
    
    /* Restore some animations for tablets */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover {
        transform: translateY(-2px);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .col-lg-2-4 {
        width: 20%;
    }
    
    .hero-section {
        padding-top: 120px;
    }
    
    /* Ensure content is visible on desktop */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .cost-feature,
    .automation-card,
    .support-card,
    .custom-card,
    .info-item,
    .feature-item,
    .process-step,
    .timeline-item,
    .security-item,
    .enterprise-feature,
    .integration-item,
    .monitoring-feature,
    .migration-feature,
    .btn,
    #gallery img {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding-top: 120px;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .col-lg-2-4 {
        width: 20%;
    }
    
    /* Ensure content is visible on large desktop */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .cost-feature,
    .automation-card,
    .support-card,
    .custom-card,
    .info-item,
    .feature-item,
    .process-step,
    .timeline-item,
    .security-item,
    .enterprise-feature,
    .integration-item,
    .monitoring-feature,
    .migration-feature,
    .btn,
    #gallery img {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
}

/* High-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .service-image img,
    .blog-card img,
    .team-member .member-photo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer,
    .btn,
    #gallery {
        display: none;
    }
    
    .hero-section,
    section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card {
        box-shadow: none;
        border: 1px solid #f6e0df;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    a {
        text-decoration: none;
        color: inherit;
    }
    
    .text-primary,
    .text-success,
    .text-warning,
    .text-danger,
    .text-info {
        color: #1c1b1b !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, .h1 { font-size: 18pt; }
    h2, .h2 { font-size: 16pt; }
    h3, .h3 { font-size: 14pt; }
    h4, .h4 { font-size: 12pt; }
    h5, .h5 { font-size: 11pt; }
}

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

/* Accessibility - Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .cost-feature,
    .automation-card,
    .support-card,
    .custom-card,
    .info-item,
    .feature-item,
    .process-step,
    .timeline-item,
    .security-item,
    .enterprise-feature,
    .integration-item,
    .monitoring-feature,
    .migration-feature,
    .btn,
    #gallery img {
        transition: none;
        transform: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .cost-feature:hover,
    .automation-card:hover,
    .support-card:hover,
    .custom-card:hover,
    .info-item:hover,
    .feature-item:hover,
    .process-step:hover,
    .timeline-item:hover,
    .security-item:hover,
    .enterprise-feature:hover,
    .integration-item:hover,
    .monitoring-feature:hover,
    .migration-feature:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
@media (min-width: 768px) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Dark mode support (if user prefers) */