/* Oleo Fusion - Dedicated Mobile Bottom Navigation & Mobile Drawer */

/* Mobile Bottom Navbar (App-Style Experience) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(15, 57, 43, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1500;
    padding: 0 10px;
}

.mobile-nav-items {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    flex: 1;
    text-align: center;
}

.mobile-nav-link i {
    font-size: 20px;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

.mobile-nav-link.active {
    color: var(--primary);
}

.mobile-nav-link.active i {
    color: var(--accent-dark);
    transform: translateY(-2px);
}

.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    top: 2px;
    width: 20px;
    height: 3px;
    background: var(--accent-dark);
    border-radius: 2px;
}

/* Center Floating Action Button (Quick Quote FAB) */
.mobile-nav-fab-wrap {
    position: relative;
    top: -16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.mobile-nav-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 18px rgba(138, 204, 78, 0.5);
    border: 3px solid #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-fab:hover,
.mobile-nav-fab:active {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 24px rgba(138, 204, 78, 0.65);
}

.mobile-nav-fab-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}

/* Mobile Slide-out Drawer */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 57, 43, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 2200;
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.mobile-drawer::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.mobile-drawer.active {
    left: 0;
}

.drawer-header {
    padding: 24px 20px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header img {
    height: 40px;
}

.drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.drawer-nav {
    padding: 20px 0;
    flex-grow: 1;
}

.drawer-nav ul {
    list-style: none;
}

.drawer-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
}

.drawer-nav li a:hover,
.drawer-nav li a.active {
    background-color: var(--bg-light);
    color: var(--primary);
    border-left: 4px solid var(--accent);
}

.drawer-sub-menu {
    background: #f8fafc;
    display: none;
    padding: 8px 0;
}

.drawer-sub-menu.open {
    display: block;
}

.drawer-sub-menu li a {
    padding: 10px 24px 10px 36px;
    font-size: 14px;
    color: var(--text-muted);
}

.drawer-footer {
    padding: 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.drawer-contact-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* Show Mobile Bottom Nav only on mobile screens */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
}
