/* ===== Mobile burger visibility rules ===== */
.go3-burger {
  display: none;
  margin-left: 8px;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  padding: 0;
  position: relative;
  cursor: pointer;
}

/* 15×15 icon box: middle bar is a real element (so border-radius works) */
.go3-burger__icon {
  position: absolute;
  width: 15px;
  height: 2px; /* middle bar itself */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--wp--preset--color--white);
  border-radius: 1px; /* rounded ends on middle bar */
}

/* top & bottom bars (also 15×2, rounded) */
.go3-burger__icon::before,
.go3-burger__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 15px;
  height: 2px;
  transform: translateX(-50%);
  background: var(--wp--preset--color--white);
  border-radius: 1px;
  transition: transform 150ms ease, top 150ms ease, bottom 150ms ease;
}

/* closed positions relative to the middle bar */
.go3-burger__icon::before {
  top: -6px;
} /* top line */
.go3-burger__icon::after {
  top: 6px;
} /* bottom line */

/* open: hide middle bar, rotate others into a centered X */
.go3-burger[aria-expanded="true"] .go3-burger__icon {
  background: transparent; /* hide middle bar only */
}
.go3-burger[aria-expanded="true"] .go3-burger__icon::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}
.go3-burger[aria-expanded="true"] .go3-burger__icon::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* ≤600px: hide desktop nav, show burger */
@media (max-width: 730px) {
  .go3-header .navbar-nav {
    display: none !important;
  }
  .go3-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Keep WP’s own hamburger hidden on desktop only */
@media (min-width: 731px) {
  .wp-block-navigation__responsive-container-open,
  .go3-mobile-modal {
    display: none !important;
  }
}

/* ===== Mobile modal ===== */
.go3-mobile-modal[hidden] {
  display: none !important;
}
.go3-mobile-modal {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  position: absolute;
  z-index: 49;
  top: var(--mobile-header-height);
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--wp--preset--color--black);
}
.go3-mobile-modal__inner {
  width: 100%;
  height: 100%;
  padding: 0 16px;
}

/* Vertical menu list */
.go3-mobile-nav .wp-block-navigation__container {
  display: flex !important;
  flex-direction: column;
  row-gap: 22px;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: visible;
}

/* Each item full-width, left-aligned */
.go3-mobile-nav .wp-block-navigation-item {
  flex: 0 0 auto;
}
.go3-mobile-nav .wp-block-navigation-item__content {
  width: 100%;
  justify-content: flex-start;
  height: 44px;
  border-radius: 4px;
  padding: 0;
  color: var(--wp--preset--color--white);
  background-color: transparent !important;
  font-size: 1.5rem;
  text-align: left;
}
.go3-mobile-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--accent) !important;
}
