/* Custom mobile/desktop navigation — replaces the broken Webflow IX3 menu interaction */

.menu-wrapper {
  height: 0%;
  overflow: hidden;
  transition: height 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}

html.nav-open .menu-wrapper {
  height: 100%;
  overflow-y: auto;
}

/* keep the hamburger above the open overlay so the menu can be closed */
.nav-menu-button {
  z-index: 1001;
  cursor: pointer;
}

.menu-button-line {
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  transform-origin: center;
}

/* hamburger -> X (lines sit 8px apart: 3px line + 5px gap) */
html.nav-open .menu-button-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
html.nav-open .menu-button-line:nth-child(2) {
  opacity: 0;
}
html.nav-open .menu-button-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* white X on the red overlay */
html.nav-open .menu-button-line {
  background-color: #fff;
  border-color: #fff;
}

/* no page scroll behind the open menu */
html.nav-open,
html.nav-open body {
  overflow: hidden;
}
