/* Mobile menu – Premier Brains Global (self-contained, independent of main.js / navigation.css) */
@media (max-width:991px){
  /* the site's own menu is tried first; this hides it only if it failed and the panel took over */
  #navbar.pb-nav-fallback>ul{display:none!important}
  #navbar.navbar .mobile-nav-toggle{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
}
@media (min-width:992px){#pbMobilePanel{display:none!important}}

html.pb-nav-lock{overflow:hidden}

#pbMobilePanel{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100000;display:flex;flex-direction:column;background:#fff;visibility:hidden;transform:translateX(100%);transition:transform .3s ease,visibility .3s}
#pbMobilePanel.is-open{visibility:visible;transform:none}
#pbMobilePanel *{box-sizing:border-box}

.pb-mp-top{display:flex;align-items:center;justify-content:space-between;flex:none;padding:12px 18px;border-bottom:1px solid #e3eef0}
.pb-mp-top img{display:block;height:46px;width:auto}
.pb-mp-close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#eef7f5;color:#0b1f35;cursor:pointer}
.pb-mp-close svg{width:22px;height:22px}

.pb-mp-scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:6px 18px 24px}
#pbMobilePanel ul{margin:0;padding:0;list-style:none}
#pbMobilePanel li{margin:0;border-bottom:1px solid #eef2f4}
#pbMobilePanel li>a,#pbMobilePanel li>button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:15px 4px;border:0;background:none;font:inherit;font-size:1.02rem;font-weight:700;line-height:1.35;text-align:left;color:#0b1f35;text-decoration:none;cursor:pointer}
#pbMobilePanel li>a:active,#pbMobilePanel li>button:active{color:#1f9b80}
#pbMobilePanel .pb-chev{flex:none;width:18px;height:18px;margin-left:10px;color:#1f9b80;transition:transform .25s}
#pbMobilePanel li.is-sub-open>button .pb-chev{transform:rotate(90deg)}

#pbMobilePanel ul ul{display:none;margin:0 0 10px;padding:4px 14px;border-radius:12px;background:#f4fbf9}
#pbMobilePanel li.is-sub-open>ul{display:block}
#pbMobilePanel ul ul li{border-bottom:1px solid #e3eef0}
#pbMobilePanel ul ul li:last-child{border-bottom:0}
#pbMobilePanel ul ul li>a,#pbMobilePanel ul ul li>button{padding:12px 2px;font-size:.95rem;font-weight:600}
#pbMobilePanel ul ul ul{background:#fff;margin:0 0 8px}
#pbMobilePanel li.pb-all>a{color:#1f9b80}

.pb-mp-cta{display:flex;gap:10px;flex:none;padding:14px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #e3eef0;background:#fff}
.pb-mp-cta a{flex:1;padding:13px 10px;border-radius:40px;font-size:.95rem;font-weight:800;text-align:center;text-decoration:none}
.pb-mp-cta .pb-mp-call{border:1.5px solid #4fbca2;color:#1f9b80}
.pb-mp-cta .pb-mp-enq{background:linear-gradient(135deg,#4fbca2,#7be8d0);color:#08202c}

@media (prefers-reduced-motion:reduce){#pbMobilePanel,#pbMobilePanel .pb-chev{transition:none}}
