/* ============================================
   MOBILE MENU (burger toggle + full-screen overlay)
   ============================================ */

body.mobile-menu-active {
  overflow: hidden;
}

/* ==== TOGGLE BUTTON ==== */

.mobile-menu-toggle {
  position: relative;
  z-index: 10001; /* stays above the open overlay so it doubles as the close button */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle__bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--black-color);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  border-radius: 10px;
}

.mobile-menu-toggle[aria-expanded="true"]
  .mobile-menu-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"]
  .mobile-menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"]
  .mobile-menu-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==== OVERLAY PANEL ==== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--main-bg-color);
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 0.6s ease-in-out,
    visibility 0s linear 0.6s;
}

.mobile-menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0% 0);
  transition:
    clip-path 0.6s ease-in-out,
    visibility 0s linear 0s;
}

.mobile-menu__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  min-height: 100%;
  padding: var(--padding-s);
  padding-top: calc(var(--header-height) + (var(--header-margin-top) * 2));
}

.mobile-menu__logo img {
  height: var(--header-height);
}

.mobile-menu__nav {
  width: 100%;
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.mobile-menu__list a {
  display: inline-block;
  color: var(--black-color);
  text-decoration: none;
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
}

.mobile-menu__list--footer {
  gap: 8px;
}

.mobile-menu__list--footer a {
  font-size: 16px;
  font-weight: normal;
  text-transform: none;
}

.mobile-menu__legal {
  margin-top: auto;
  font-size: 14px;
  opacity: 0.6;
  text-align: left;
}

/* Desktop: hide the burger + overlay, the normal nav in .site-header__nav takes over */
@media (min-width: 900px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none;
  }
}
