:root {
  --rmr-mob-bg:        #1A1040;
  --rmr-mob-bg-soft:   #281850;
  --rmr-mob-text:      #FFFFFF;
  --rmr-mob-text-muted:#FFFFFFCC;
  --rmr-mob-cta:       #BD4A4B;
  --rmr-mob-cta-hover: #A53F3F;
  --rmr-mob-accent:    #FFD93D;
}

html.rmr-mob-open, body.rmr-mob-open { overflow: hidden !important; }

.rmr-mob-toggle {
  display: none;
  position: fixed; top: 16px; right: 16px;
  width: 50px; height: 50px;
  background: var(--rmr-mob-bg);
  border: none; border-radius: 14px; padding: 0; cursor: pointer;
  z-index: 99990;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background .15s ease, transform .15s ease;
}
/* Gate hover behind hover-capable pointers so touch devices (hover:none)
   don't get iOS sticky-hover: there, the 1st tap only applied :hover (turning
   the button red + needing a 2nd tap to click). Now touch fires click on tap 1. */
@media (hover: hover) {
  .rmr-mob-toggle:hover { background: var(--rmr-mob-cta); transform: scale(1.04); }
}
.rmr-mob-toggle:active { background: var(--rmr-mob-cta-hover); transform: scale(0.96); }
.rmr-mob-toggle[aria-expanded="true"] { background: var(--rmr-mob-cta); }
.rmr-mob-toggle-bar { display: block; width: 22px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .15s ease; }
.rmr-mob-toggle[aria-expanded="true"] .rmr-mob-toggle-bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.rmr-mob-toggle[aria-expanded="true"] .rmr-mob-toggle-bar:nth-child(2) { opacity: 0; }
.rmr-mob-toggle[aria-expanded="true"] .rmr-mob-toggle-bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.rmr-mob-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 99997;
  opacity: 0;
  transition: opacity .3s ease;
}
.rmr-mob-backdrop.is-open { display: block; opacity: 1; }

.rmr-mob-drawer {
  display: none;
  position: fixed; top: 0; right: 0;
  width: min(92vw, 400px);
  height: 100vh; height: 100dvh;
  background: var(--rmr-mob-bg);
  color: var(--rmr-mob-text);
  z-index: 99999;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.4);
  overflow-y: auto;
}
.rmr-mob-drawer.is-open { transform: translateX(0); }

.rmr-mob-top {
  padding: 24px 24px 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.rmr-mob-logo-link { display: block; flex: 1; max-width: 200px; }
.rmr-mob-logo { width: 100%; height: auto; display: block; }
.rmr-mob-close {
  width: 40px; height: 40px;
  border: 2px solid #fff;
  background: transparent;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: 12px; flex-shrink: 0;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.rmr-mob-close:hover {
  background: #fff;
  color: var(--rmr-mob-bg);
  transform: rotate(90deg);
}

.rmr-mob-nav {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.rmr-mob-nav ul { list-style: none; padding: 0; margin: 0; width: 100%; text-align: center; }
.rmr-mob-nav li { margin: 12px 0; }
.rmr-mob-nav a {
  display: inline-block;
  font-family: 'BYSTANDERSANS', Impact, sans-serif;
  font-size: 42px; font-weight: 500; line-height: 1.1;
  color: var(--rmr-mob-text);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 14px;
  text-transform: capitalize;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.rmr-mob-nav a:hover, .rmr-mob-nav a:focus {
  background: var(--rmr-mob-accent);
  color: var(--rmr-mob-bg);
  transform: rotate(-1deg);
}
@media (max-height: 600px) {
  .rmr-mob-nav a { font-size: 30px; }
  .rmr-mob-nav li { margin: 6px 0; }
}

.rmr-mob-bottom {
  padding: 20px 24px 32px;
  border-top: 2px dotted rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.rmr-mob-cta {
  display: block;
  width: 100%;
  padding: 18px 24px;
  background: var(--rmr-mob-cta);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-family: 'AlteHaasGrotesk', 'Helvetica Neue', sans-serif;
  font-size: 18px; font-weight: 700; letter-spacing: -0.4px;
  border-radius: 100px;
  box-shadow: 0 6px 0 #000, rgba(57, 211, 83, 0.082) 0px 4px 18px;
  transition: background .15s ease, transform .12s ease, box-shadow .12s ease;
  margin-bottom: 18px;
}
.rmr-mob-cta:hover {
  background: var(--rmr-mob-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #000, rgba(57, 211, 83, 0.12) 0px 6px 20px;
}
.rmr-mob-cta:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #000, rgba(57, 211, 83, 0.05) 0px 2px 12px;
}

.rmr-mob-socials {
  display: flex; justify-content: center; align-items: center;
  gap: 14px;
}
.rmr-mob-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.rmr-mob-social-link:hover {
  background: #fff;
  color: var(--rmr-mob-bg);
  border-color: #fff;
  transform: translateY(-2px);
}

/* On mobile/tablet (<=1024px) our off-canvas drawer replaces the Elementor
   header menu, so hide the original triggers there ONLY. On desktop the
   mega-menu navbar + social icons must show normally. */
@media (max-width: 1024px) {
  .elementor-element-01feb7a,
  .elementor-element-ae7ea06,
  .e-n-menu-toggle,
  button[class*="menu-toggle-"],
  .elementor-menu-toggle,
  .elementskit-menu-hamburger { display: none !important; }

  .rmr-mob-toggle { display: flex; }
  .rmr-mob-drawer { display: flex; }
}

/* SAFETY: never render any hamburger toggle on desktop (>1024px). The desktop
   header is the horizontal mega-menu; the off-canvas drawer + its toggle are
   mobile-only. This is defensive against any cached/computed override. */
@media (min-width: 1025px) {
  .rmr-mob-toggle,
  .e-n-menu-toggle,
  .elementor-widget-n-menu .e-n-menu-toggle,
  button[class*="menu-toggle-"],
  .elementor-menu-toggle,
  .elementskit-menu-hamburger { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .rmr-mob-drawer, .rmr-mob-backdrop, .rmr-mob-toggle-bar, .rmr-mob-close, .rmr-mob-cta { transition: none !important; }
}
