/* Mobile-first responsive design for VPSO Website */

/* Base mobile styles */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .container-fluid {
        padding: 0 10px;
    }
    
    /* Hide desktop navigation on mobile */
    .nav.navbar-nav.d-flex.flex-row {
        display: none !important;
    }
    
    /* Ensure mobile components are visible */
    .mobile-nav,
    .mobile-footer,
    .mobile-layout {
        display: block !important;
    }
}

/* Tablet styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 15px;
    }
    
    .mobile-nav-items.open {
        max-height: 600px;
    }
}

/* Desktop styles - hide mobile components */
@media screen and (min-width: 1025px) {
    .mobile-layout,
    .mobile-nav,
    .mobile-footer {
        display: none !important;
    }
}

/* Touch-friendly button sizes */
@media (hover: none) and (pointer: coarse) {
    button,
    .mobile-nav-link,
    .mobile-footer-link {
        min-height: 44px;
        padding: 12px 16px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-header img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .mobile-header {
        padding: 5px;
    }
    
    .mobile-header img {
        height: 40px;
    }
    
    .mobile-nav-toggle {
        padding: 6px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mobile-layout {
        background-color: #2c2c2c;
    }
    
    .mobile-autism-content,
    .mobile-careers-content,
    .mobile-contact-section {
        background-color: rgba(255, 255, 255, 0.1);
        color: #e0e0e0;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles for mobile */
@media print {
    .mobile-nav,
    .mobile-footer,
    .mobile-overlay {
        display: none !important;
    }
    
    .mobile-layout {
        background: white !important;
        color: black !important;
    }
}