/* ========================================
   ELS Logistics - Mobile-Specific Styles
   Version: 1.0.0
   ======================================== */

/* Mobile-Optimized Layout */
@media (max-width: 768px) {
    :root {
        --text-base: 0.9375rem; /* Slightly smaller for mobile */
        --spacing-md: 0.875rem;
        --spacing-lg: 1.25rem;
    }

    body {
        font-size: var(--text-base);
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Navbar */
    .navbar {
        height: var(--mobile-navbar-height);
    }

    .nav-cta .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--text-xs);
    }

    /* Hero Section */
    .hero {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .hero-text h1 {
        font-size: var(--text-3xl);
    }

    .hero-text p {
        font-size: var(--text-base);
    }

    .hero-features {
        justify-content: center;
    }

    .feature-item {
        flex: 1 1 100%;
        justify-content: center;
    }

    /* Features Section */
    .features {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .section-header h2 {
        font-size: var(--text-2xl);
    }

    .feature-card {
        padding: var(--spacing-md);
    }

    .feature-card-icon {
        width: 40px;
        height: 40px;
    }

    .feature-card-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .footer-section {
        text-align: center;
    }

    /* Touch Optimization */
    .btn,
    .btn-social,
    .nav-links li a {
        min-height: 44px; /* Minimum touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Gesture Support */
    .nav-links {
        touch-action: pan-y; /* Enable smooth scrolling */
    }
}

/* Progressive Web App Styling */
@media (display-mode: standalone) {
    .navbar {
        padding-top: calc(var(--spacing-md) + env(safe-area-inset-top));
    }

    .footer {
        padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
    }
}

/* Offline State */
.offline .hero,
.offline .features,
.offline .footer {
    opacity: 0.7;
}

.offline::before {
    content: 'Offline Mode';
    position: fixed;
    top: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--warning);
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    z-index: 10000;
}

/* Accessibility for Mobile */
@media (prefers-reduced-motion: reduce) {
    .feature-card:hover {
        transform: none;
    }
}