/*
 * PMLC Mobile Fullscreen Header Menu
 * Placement: wp-content/themes/pmlc-corporate-theme/assets/css/pmlc-mobile-menu.css
 */

@media (max-width: 991.98px) {
  body.pmlc-mobile-menu-open { overflow: hidden; }

  .site-header { z-index: 9999; }

  .site-header .navbar { min-height: 78px; }

  .site-header .navbar-toggler {
    position: relative;
    z-index: 10002;
    border: 1px solid rgba(6, 27, 54, .14);
    border-radius: 999px;
    width: 48px;
    height: 48px;
    padding: 0;
    box-shadow: none;
  }

  .site-header .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(216, 154, 39, .24);
  }

  .site-header .navbar-toggler-icon {
    width: 1.25em;
    height: 1.25em;
  }

  #pmlcMainNav {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background:
      radial-gradient(circle at 50% 10%, rgba(216, 154, 39, .16), transparent 34%),
      linear-gradient(135deg, #020b18 0%, #061b36 58%, #09294f 100%);
    padding: 96px 24px 36px;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  #pmlcMainNav.collapse:not(.show) { display: none !important; }

  #pmlcMainNav.collapsing {
    display: block !important;
    height: 100vh !important;
    transition: opacity .22s ease, transform .22s ease;
  }

  #pmlcMainNav.show {
    display: flex !important;
    flex-direction: column;
  }

  #pmlcMainNav .navbar-nav {
    width: 100%;
    align-items: center !important;
    justify-content: center;
    margin: auto 0 0;
    padding: 0;
  }

  #pmlcMainNav .nav-item {
    width: 100%;
    max-width: 520px;
    margin: 0;
  }

  #pmlcMainNav .nav-link {
    color: #fff;
    font-size: clamp(1.65rem, 7vw, 3.1rem);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -.04em;
    padding: .62rem 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
  }

  #pmlcMainNav .nav-link:hover,
  #pmlcMainNav .nav-link:focus,
  #pmlcMainNav .nav-link.active,
  #pmlcMainNav .current-menu-item > .nav-link,
  #pmlcMainNav .current_page_item > .nav-link {
    color: #f0bb53;
  }

  #pmlcMainNav .dropdown-toggle::after {
    border-top-color: currentColor;
    margin-left: .35rem;
    transition: transform .2s ease;
  }

  #pmlcMainNav .dropdown.show > .dropdown-toggle::after,
  #pmlcMainNav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  #pmlcMainNav .dropdown-menu {
    position: static !important;
    transform: none !important;
    float: none !important;
    width: 100%;
    max-width: 460px;
    margin: .2rem auto 1rem;
    padding: .35rem 0 .9rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
  }

  #pmlcMainNav .dropdown-menu:not(.show) { display: none; }
  #pmlcMainNav .dropdown-menu.show { display: block; }

  #pmlcMainNav .dropdown-item {
    color: rgba(255, 255, 255, .76);
    background: transparent;
    font-size: 1.05rem;
    font-weight: 700;
    padding: .42rem 0;
    border-radius: 0;
    white-space: normal;
  }

  #pmlcMainNav .dropdown-item:hover,
  #pmlcMainNav .dropdown-item:focus,
  #pmlcMainNav .current-menu-item > .dropdown-item {
    color: #f0bb53;
    background: transparent;
  }

  #pmlcMainNav .header-cta,
  #pmlcMainNav > .btn-gold {
    margin: 2rem auto 0 !important;
    width: min(100%, 340px);
    justify-content: center;
    padding: 1rem 1.35rem !important;
    border-radius: 999px !important;
    font-size: 1rem;
  }

  body.pmlc-mobile-menu-open .site-header .navbar-toggler {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
  }

  body.pmlc-mobile-menu-open .site-header .navbar-toggler-icon {
    background-image: none;
    position: relative;
  }

  body.pmlc-mobile-menu-open .site-header .navbar-toggler-icon::before,
  body.pmlc-mobile-menu-open .site-header .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    top: 50%;
    height: 2px;
    background: #fff;
    border-radius: 999px;
  }

  body.pmlc-mobile-menu-open .site-header .navbar-toggler-icon::before { transform: rotate(45deg); }
  body.pmlc-mobile-menu-open .site-header .navbar-toggler-icon::after { transform: rotate(-45deg); }
}
