/*
  Mobile slide-out nav styles, extracted from css/header.css (2026-07).
  Uses native CSS nesting. Loads immediately after header.css and before
  style2.css (see bbbsc_scripts() in functions.php), so the cascade
  relative to all three is unchanged.

  NOTE: url() paths here are relative to /css/, hence the ../ prefixes.
*/

/* ---- Close button ---- */

/* The only .close-btn left in the theme markup is the mobile nav's
   (header.php). style.css still has a .consultation-block .close-btn rule,
   but that block's markup is gone (see the note in header.css). */
.close-btn {
  display: block;
  position: absolute;
  right: 7px;
  top: 50px;
  cursor: pointer;
  transition: .5s opacity;
  -webkit-transition: .5s opacity;
  -moz-transition: .5s opacity;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  text-align: center;
  background: #ffb81c;

  &:after {
    content: 'X';
    font-size: 15px;
    line-height: 1.8;
    color: #54585a;
    font-weight: 700;
    padding-right: 1px;
  }
  &:hover {
    background: #fff;
  }
  &:hover:after {
    color: #ffb81c;
  }
  img {
    max-width: 27px;
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
}

/* ---- Mobile nav (slide-out) ---- */

.mobile-nav {
  display: none;
  background: #54585a;
  position: fixed;
  right: -340px;
  top: 0;
  bottom: 0;
  padding-top: 40px;
  width: 340px;
  z-index: 99999;
  overflow: auto;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -mox-box-sizing: border-box;
  transition: .5s right;
  -webkit-transition: .5s right;
  -moz-transition: .5s right;

  ul {
    list-style-type: none;
    padding-left: 0;
    padding-top: 50px;
    padding-bottom: 50px;
  }
  ul.top-mobile-menu {
    padding-top: 18px;
  }
  ul ul {
    padding: 10px 0 0 0;
  }
  ul li {
    padding-bottom: 8px;
  }
  ul li a {
    color: white;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px 10px 20px;
    display: block;
    border: none;
    text-transform: uppercase;
  }
  ul li:hover > a {
    background: #ffb81c;
    color: #000 !important;
  }
  ul li.menu-item-has-children:hover > a {
    color: #FFF;
  }
  ul ul.sub-menu li a {
    padding-left: 40px;
  }
  ul ul.sub-menu li ul.sub-menu li a {
    padding-left: 50px;
  }
  ul ul.sub-menu li:hover > a {
    color: #fff;
  }
  ul ul ul li a {
    padding-left: 60px;
  }
  ul li.active-parent {
    background: #CCC;
  }
  ul li.active-parent a {
    color: #54585a;
  }
  ul li.active-parent ul li.current_page_item a {
    background: #ffb81c;
    color: #fff;
  }
  ul li.menu-item-has-children.current_page_parent > a {
    background: #ffb81c;
    color: #fff;
  }

  @media screen and (max-width: 1024px) {
    display: block;

    .sub-menu {
      display: none;
    }
  }
  @media screen and (max-width: 680px) {
    width: 290px;
  }
}
@media screen and (max-width: 1024px) {
  .site-container.menu-active .mobile-nav {
    right: 0;
  }
}

/* ---- Drop toggles ---- */

/* .drop-toggle spans are injected by custom.js only inside
   .mobile-nav .menu-item-has-children, so everything below is
   mobile-nav-only despite the unscoped selectors. The bare
   .menu-item-has-children rule is global (any WP menu gets that class);
   the desktop .main-nav lis get position: relative from their own rule
   in header.css, so this one only matters here. */
.menu-item-has-children {
  position: relative;
}
.drop-toggle:after {
  color: white;
  background: url('../imgs/navPlus.png') center center;
  content: '';
  background-size: 32px 31px;
  width: 32px;
  height: 31px;
  display: none;
  font-size: 20px;
  position: absolute;
  right: 0;
  padding-right: 10px;
  top: 3px;
  padding-top: 3px;
  z-index: 2;
  cursor: pointer;

  @media screen and (max-width: 1024px) {
    display: block;
  }
}
.sub-menu .drop-toggle:after {
  background: url('../imgs/navPlus-color.png') center center;
  background-size: 32px 31px;
}
.drop-toggle.active:after, .active-parent.menu-item-has-children:hover .drop-toggle.active:after {
  background: url('../imgs/navMinus.png') center center;
  background-size: 32px 31px;
}
.active-parent.menu-item-has-children .drop-toggle.active:after {
  background: url('../imgs/navMinus-color.png') center center;
  background-size: 32px 31px;
}
