/* Mobile App Experience Overrides */
/* Only applies to mobile devices */

@media (max-width: 768px) {

    /* --- 1. Fixed Bottom Navigation Bar --- */
    body {
        padding-bottom: 80px;
        /* Space for the bottom nav */
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 70px;
        z-index: 9999;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #94a3b8;
        font-size: 11px;
        font-weight: 500;
        gap: 4px;
        transition: all 0.2s ease;
        padding: 5px;
        width: 60px;
    }

    .nav-item.active,
    .nav-item:hover {
        color: var(--primary-color);
    }

    .nav-item i {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .nav-item.active i {
        transform: translateY(-2px);
    }

    /* Floating middle button (optional "Order" button style) */
    .nav-item.highlight {
        background: var(--primary-color);
        color: white;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        margin-bottom: 25px;
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        border: 4px solid white;
    }

    .nav-item.highlight i {
        font-size: 18px;
        margin: 0;
    }

    /* --- 2. Two-Column Grids --- */

    /* Popular Services Grid */
    #services-showcase-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 Columns */
        gap: 12px;
    }

    .service-package-card {
        padding: 15px;
    }

    .service-package-card .service-header {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        margin-bottom: 10px;
    }

    .service-package-card .service-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }

    .service-package-card .service-name {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .package-options {
        grid-template-columns: 1fr !important;
        /* Stack packages in the mini-card */
        gap: 6px !important;
    }

    .package-option {
        padding: 6px;
    }

    .package-qty {
        font-size: 13px;
    }

    .package-price {
        font-size: 12px;
    }

    .service-features {
        display: none;
        /* Hide features on mobile grid to save space */
    }

    .service-package-card .btn {
        padding: 8px;
        font-size: 12px;
        margin-top: 10px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-item i {
        font-size: 32px;
    }

    /* Tools Grid */
    .tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .tool-card {
        padding: 15px;
    }

    .tool-card .tool-icon {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .tool-card h3 {
        font-size: 14px;
    }

    /* --- 3. Touch Target Improvements --- */

    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents iOS zoom */
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .btn {
        min-height: 44px;
        /* Apple Human Interface Guidelines */
    }

    /* --- 4. Header cleanup --- */
    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 15px;
    }

    /* Hide top bar extras */
    .top-bar {
        display: none;
    }
}