/* weROI mobile menu — classic right drawer (80vw), not full-screen */
.weroi-mnav-btn {
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  z-index: 70 !important;
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 767px) {
  .weroi-mnav-btn {
    display: inline-flex !important;
  }
  nav.weroi-nav-clear .weroi-nav-shell > div.flex.items-center.gap-3,
  nav.weroi-nav-clear a[href="/client-login"],
  nav.weroi-nav-clear a[href="/work-with-us"] {
    display: none !important;
  }
}

/* Keep hamburger as 3 lines — never morph into a second X */
.weroi-mnav-btn__icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}
.weroi-mnav-btn__icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 0;
}
/* Hide hamburger while drawer is open so only the panel close X shows */
.weroi-mnav-btn.is-open {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

@media (max-width: 767px) {
  nav.weroi-nav-clear button.hamburger.svelte-1p2hygl,
  nav.weroi-nav-clear .hamburger {
    display: none !important;
  }
}

.weroi-mnav-scrim {
  position: fixed;
  inset: 0;
  z-index: 64;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.weroi-mnav-scrim.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Match original template drawer: right edge, 80vw / max-sm, full height */
.weroi-mnav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 80vw;
  max-width: 24rem;
  height: 100%;
  max-height: none;
  padding: 2.5rem 2rem;
  box-sizing: border-box;
  background: var(--background, #0a1409);
  color: var(--text, #f7f8f4);
  border: 0;
  border-radius: 0;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.weroi-mnav-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

html:not(.dark) .weroi-mnav-btn {
  color: #163a14;
}

.weroi-mnav-panel__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 2.5rem;
}
.weroi-mnav-panel__close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  /* Kill any pseudo / double glyph */
  font-family: system-ui, sans-serif;
}
.weroi-mnav-panel__close::before,
.weroi-mnav-panel__close::after {
  content: none !important;
  display: none !important;
}

.weroi-mnav-panel__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  flex: 1;
  justify-content: center;
}
.weroi-mnav-panel__links a {
  color: inherit;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}
.weroi-mnav-panel__links a:hover,
.weroi-mnav-panel__links a[aria-current="page"] {
  color: #e3ff04;
}
html:not(.dark) .weroi-mnav-panel__links a:hover,
html:not(.dark) .weroi-mnav-panel__links a[aria-current="page"] {
  color: var(--accent, #163a14);
}

.weroi-mnav-panel__foot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.weroi-mnav-panel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--primary, #e3ff04);
  color: var(--primary-foreground, #0a1409);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
html:not(.dark) .weroi-mnav-panel__cta {
  background: #163a14;
  color: #e3ff04;
}

.weroi-mnav-panel__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.weroi-mnav-panel__icons a,
.weroi-mnav-panel__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: inherit;
  border: 1px solid color-mix(in oklab, currentColor 25%, transparent);
  border-radius: 0.45rem;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

body.weroi-mnav-lock {
  overflow: hidden;
}

body:has(.weroi-mnav-panel)
  nav
  [role="dialog"][aria-label="Main navigation"]:not(.weroi-mnav-panel) {
  display: none !important;
}

.weroi-mnav-panel {
  display: flex !important;
}
.weroi-mnav-panel[hidden] {
  display: none !important;
}
.weroi-mnav-panel.is-open {
  display: flex !important;
}
