/* NAV BAR WRAPPER */
#horizontalBoy{
  background: var(--blue);
  min-height: var(--menu-height);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002; /* above drawer + backdrop */
}

/* Ensure WP menu container doesn't break centering */
#horizontalBoy .menu-primary-container{
  width: 85%;
  display: flex;
  justify-content: center;
}

/* HAMBURGER BUTTON */
.menu-toggle{
  display: none; /* enabled in responsive.css */
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: var(--menu-height);
  height: var(--menu-height);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1003; /* above the drawer */
}

/* Mobile bar left group: hamburger + current page title */
.mobile-bar-left{
  display: none; /* only show on mobile breakpoint */
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  align-items: center;
  gap: 10px;
  z-index: 1003;
  max-width: calc(100% - 20px);
}

/* Page title next to hamburger */
.mobile-current-title{
	display: none;
  color: var(--white);
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65vw; /* keeps it from colliding with centered layout */
}


.menu-toggle .dashicons{
  font-size: 32px;
  width: 32px;
  height: 32px;
  line-height: 1;
  display: block;
}

/* DESKTOP MENU (true vertical centering via flex) */
.desktop-menu{
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
	margin-right: 150px;
}

.desktop-menu > li{
  height: var(--menu-height);
  display: flex;
  align-items: center;
  position: relative;
  transition: box-shadow .2s;
}

.desktop-menu > li:hover{
  background-color: var(--blue2);
  box-shadow: var(--shadow-strong);
}

.desktop-menu > li > a{
  height: var(--menu-height);
  display: flex;
  align-items: center;
  padding: 0 var(--menu-padding-x);
  font-size: var(--menu-font-desktop);
  color: var(--white);
}

.desktop-menu > li:hover > a{
  color: var(--beige);
}

/* DESKTOP DROPDOWNS */
.desktop-menu .sub-menu{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0;
  min-width: 220px;
  background: var(--blue);
  box-shadow: var(--shadow-strong);
  z-index: 1004;
}

.desktop-menu li:hover > .sub-menu{
  display: block;
}

.desktop-menu .sub-menu a{
  display: block;
  padding: 12px 16px;
  font-size: var(--menu-font-desktop);
  color: var(--white);
}

.desktop-menu .sub-menu a:hover{
  background: var(--blue2);
  color: var(--beige);
}

/* MOBILE DRAWER (opens BELOW the bar) */
.mobile-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;

  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--blue);
  z-index: 1001;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;

  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.is-open{
  max-height: 80vh;
  overflow: auto;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu > li{
  border-top: 1px solid rgba(255,255,255,0.10);
}

.mobile-menu > li > a{
  display: block;
  padding: 14px 16px;
  font-size: var(--menu-font-mobile);
  color: var(--white);
}

.mobile-menu > li > a:hover{
  background-color: var(--blue2);
  color: var(--beige);
}

/* Mobile submenus: visible and styled */
.mobile-menu .sub-menu{
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(0,0,0,0.10);
}

.mobile-menu .sub-menu a{
  display: block;
  padding: 12px 16px;
  font-size: calc(var(--menu-font-mobile) * 0.95);
  color: var(--white);
}

.mobile-menu .sub-menu a:hover{
  background-color: var(--blue2);
  color: var(--beige);
}

/* BACKDROP */
.mobile-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.mobile-backdrop.is-active{
  opacity: 1;
  pointer-events: auto;
}
