/* RESPONSIVE CSS - Mobile/Tablet Optimization */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .nav-dropdown .dropdown-menu {
        min-width: 500px;
    }
    
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile & Small Tablet: max-width 968px */
@media (max-width: 968px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        background: var(--bg-dark);
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-speed) ease;
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 100%;
        margin-top: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed) ease;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 1000px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-cta {
        margin-top: 1rem;
    }
    
    /* Hero Slider */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .feature-stats {
        flex-direction: column;
    }
    
    .slider-controls {
        bottom: 1rem;
    }
    
    /* Solutions */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Platform Features */
    .platform-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* SDVOSB Section */
    .sdvosb-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Grainger Special */
    .offer-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile: max-width 640px */
@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .chat-window {
        width: calc(100vw - 2rem);
        right: 1rem;
        left: 1rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-slider {
        min-height: 100vh;
    }
    
    .nav-menu {
        height: calc(100vh - 70px);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .chat-widget,
    .back-to-top,
    .slider-controls,
    .nav-toggle {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .btn {
        border: 1px solid #000;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-main,
    .logo-alt,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #1a1f2e;
        --bg-secondary: #252b3b;
        --text-primary: #e8eaed;
        --text-secondary: #b8bdc5;
    }
}
