/* Stafferi Responsive CSS */
/* Mobile-first responsive design for optimal viewing on all devices */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    /* Logo Responsive */
    .logo-responsive {
        max-width: 45px !important;
        max-height: 45px !important;
    }
    
    /* Feature Cards */
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    /* Customer Stories */
    .customer-story {
        margin-bottom: 1.5rem;
    }
    
    /* CTA Section */
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Footer */
    footer .col-lg-2,
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Section Spacing */
    section {
        padding: 2rem 0;
    }
    
    /* Typography */
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    /* Feature Cards */
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    /* Logo Responsive */
    .logo-responsive {
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    /* Benefits Section */
    .benefit-icon {
        margin-bottom: 1.5rem;
    }
    
    /* Customer Stories */
    .customer-story {
        margin-bottom: 1.5rem;
    }
    
    /* CTA Section */
    .cta-section h2 {
        font-size: 2.5rem;
    }
    
    /* Section Spacing */
    section {
        padding: 3rem 0;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Feature Cards */
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    /* Benefits Section - 2 columns on tablets */
    .benefits-tablet-2col {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Customer Stories */
    .customer-story {
        margin-bottom: 1.5rem;
    }
    
    /* Footer */
    footer .col-md-6 {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section .lead {
        font-size: 1.4rem;
    }
    
    /* Container adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Feature Cards - Better spacing on large screens */
    .feature-card {
        padding: 2rem;
    }
    
    /* Customer Stories - Better spacing */
    .customer-story {
        padding: 2rem;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 4.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.5rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero section height on landscape mobile */
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .min-vh-75 {
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .customer-story:hover,
    .benefit-icon:hover i {
        transform: none;
        box-shadow: none;
    }
    
    .hero-section .btn:hover,
    .cta-section .btn:hover {
        transform: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    .navbar-brand img {
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove transform effects */
    .feature-card:hover,
    .customer-story:hover,
    .hero-section .btn:hover,
    .cta-section .btn:hover,
    .benefit-icon:hover i,
    .img-fluid:hover {
        transform: none !important;
    }
}

/* Print Optimizations */
@media print {
    /* Hide interactive elements */
    .navbar,
    .cta-section,
    footer,
    .btn,
    .dropdown {
        display: none !important;
    }
    
    /* Optimize layout for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        width: 100%;
        padding: 0;
    }
    
    /* Ensure content fits on page */
    .hero-section,
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .feature-card,
    .customer-story {
        border: 1px solid #000;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Typography for print */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    .hero-section h1 {
        font-size: 24pt;
    }
    
    .display-5 {
        font-size: 18pt;
    }
    
    /* Remove background colors and shadows */
    .bg-primary,
    .bg-light,
    .hero-section,
    .cta-section {
        background: #fff !important;
        color: #000 !important;
    }
    
    .shadow,
    .shadow-sm,
    .shadow-lg {
        box-shadow: none !important;
    }
}

/* Dark Mode Responsive Adjustments */
@media (prefers-color-scheme: dark) {
    /* Ensure good contrast on all screen sizes */
    @media (max-width: 575.98px) {
        .hero-section {
            background: linear-gradient(135deg, #0099cc 0%, #001122 100%);
        }
    }
    
    /* Adjust feature cards for dark mode */
    .feature-card,
    .customer-story {
        background-color: #2a2a2a !important;
        border-color: #444444 !important;
    }
    
    .feature-card:hover,
    .customer-story:hover {
        border-color: #00BFFF !important;
    }
}

/* Specific Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 0.5rem;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #dee2e6;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        border: none;
        box-shadow: none;
        background-color: #f8f9fa;
    }
}

/* Improve readability on small screens */
@media (max-width: 767.98px) {
    .lead {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .feature-card p,
    .customer-story p {
        font-size: 0.9rem;
    }
}