/**
 * T20 NPL Modern Mobile Navigation Menu (2026 Trend)
 * Mobile-First, Touch-Optimized, High Conversion
 */

@media (max-width: 850px) {
  /* Hide Clunky Legacy Mobile Nav */
  .fusion-mobile-menu-design-classic .fusion-mobile-nav-holder,
  .fusion-header-v5 .fusion-mobile-menu-icons {
    display: none !important;
  }

  /* Modern Sticky Mobile Header Bar */
  .npl-modern-mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    background: #0f172a;
    padding: 10px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    width: 100%;
  }

  .npl-mob-logo-wrap img {
    max-height: 38px;
    width: auto;
    display: block;
  }

  .npl-mob-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .npl-mob-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e10707 0%, #b70000 100%);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(225, 7, 7, 0.4);
    white-space: nowrap;
  }

  .npl-mob-hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    gap: 5px;
    outline: none;
    transition: all 0.2s ease;
  }

  .npl-mob-hamburger-btn:active {
    background: rgba(255, 255, 255, 0.18);
  }

  .npl-mob-hamburger-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* Slide-Over Menu Backdrop */
  .npl-mob-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .npl-mob-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Slide-Over Drawer */
  .npl-mob-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 360px;
    height: 100%;
    background: #0f172a;
    color: #ffffff;
    z-index: 99999;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    overflow: hidden;
  }

  .npl-mob-drawer.is-open {
    transform: translate3d(0, 0, 0);
  }

  /* Drawer Header */
  .npl-mob-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.5);
  }

  .npl-mob-drawer-header img {
    max-height: 36px;
    width: auto;
  }

  .npl-mob-drawer-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
  }

  /* Drawer Body / Scrollable Content */
  .npl-mob-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 16px;
    overscroll-behavior: contain;
  }

  /* Featured CTA Card inside Drawer */
  .npl-mob-featured-card {
    background: linear-gradient(135deg, rgba(225, 7, 7, 0.2) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(225, 7, 7, 0.4);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    text-align: center;
  }

  .npl-mob-featured-card h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .npl-mob-featured-card p {
    margin: 0 0 12px 0;
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.4;
  }

  .npl-mob-featured-card a {
    display: block;
    background: #e10707;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(225, 7, 7, 0.4);
  }

  /* Navigation Links */
  .npl-mob-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .npl-mob-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .npl-mob-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9 !important;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
    border-radius: 6px;
  }

  .npl-mob-nav-link:active,
  .npl-mob-nav-link.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #e10707 !important;
  }

  .npl-mob-submenu-toggle {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    padding: 6px 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .npl-mob-submenu-toggle.is-open {
    transform: rotate(180deg);
    color: #e10707;
  }

  .npl-mob-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 14px;
    display: none;
    border-left: 2px solid rgba(225, 7, 7, 0.4);
  }

  .npl-mob-submenu.is-open {
    display: block;
  }

  .npl-mob-submenu li a {
    display: block;
    padding: 10px 12px;
    font-size: 13.5px;
    color: #cbd5e1 !important;
    text-decoration: none !important;
  }

  .npl-mob-submenu li a:active {
    color: #ffffff !important;
  }

  /* Drawer Footer / Quick Contact */
  .npl-mob-drawer-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.95);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .npl-mob-quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    color: #ffffff !important;
  }

  .npl-mob-quick-wa {
    background: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
  }

  .npl-mob-quick-call {
    background: #1a73e8;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
  }
}

@media (min-width: 851px) {
  .npl-modern-mobile-header,
  .npl-mob-drawer-backdrop,
  .npl-mob-drawer {
    display: none !important;
  }
}