/* Mobile Menu Drawer */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'); /* rely on system if available */
}

:root {
  --mm-blue: #1e88e5;
  --mm-blue-dark: #0f5fb3;
  --mm-bg: #f1f3f6;
  --mm-line: #dfe3ea;
  --mm-text: #1f242d;
}

/* Toggle button (hamburger) */
.wga-mm-btn {
  display: none; /* default hidden on desktop */
  width: 42px; height: 42px; border: 0; border-radius: 4px;
  background: var(--mm-blue); color: #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.wga-mm-btn__bar { width: 20px; height: 2px; background: #fff; display:block; }
.wga-mm-btn:hover { background: var(--mm-blue-dark); }
.wga-mm-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 900px) {
  .wga-mm-btn { display: inline-flex; }
}

/* Modal container */
.mm { position: fixed; inset: 0; z-index: 2000; font-family: Roboto, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* Panel (left drawer) */
.mm-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: 300px; max-width: 84vw;
  background: #ffffff;
  border-right: 1px solid var(--mm-line);
  transform: translateX(-102%);
  transition: transform .24s ease;
  will-change: transform;
  padding: 14px 0;
  z-index:10000;
}

/* Nav list */
.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-item { border-top: 1px solid var(--mm-line); }
.mm-item:first-child { border-top: 0; }

.mm-link {
  display: block; padding: 14px 18px; text-decoration: none;
  color: var(--mm-text); font: 700 15px/1.25 Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}
.mm-link:hover { background: var(--mm-bg); }

/* Submenu toggle caret */
.mm-toggle {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 40px; height: 40px; margin: 0; padding: 0; float: right; transform: translateY(-44px);
  position: relative;
}
.mm-toggle::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px; border-right: 2px solid #6a778b; border-bottom: 2px solid #6a778b;
  transform: rotate(45deg); transition: transform .2s ease;
  position: absolute; top: 50%; left: 50%; transform-origin: 50% 50%; margin-left: -5px; margin-top: -7px;
}
.mm-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }

/* Submenus */
.mm-submenu { list-style: none; margin: 0; padding: 0 0 8px 0; }
.mm-submenu .mm-link { font-weight: 600; padding-left: 28px; }

/* Overlay (right side), 30% black with blur + big X button */
.mm-overlay {
  position: absolute; left: 300px; right: 0; top: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  border: 0; width: auto; height: auto; cursor: pointer;
  opacity: 0; transition: opacity .24s ease; pointer-events: none;
  z-index:9999;
}
.mm-overlay:hover { background: rgba(0,0,0,0.3) !important; }
.mm-close {
  position: absolute; right: 40px; top: 40px; width: 46px; height: 46px;
  background: rgba(0,0,0,0.3); color: #fff; border: 0; border-radius: 4px; cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .24s ease; pointer-events: none;
  z-index:10000;
}
.mm-close:hover { background: rgba(0,0,0,0.4); }
.mm-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Open state */
.mm.is-open .mm-panel { transform: translateX(0); }
.mm.is-open .mm-overlay,
.mm.is-open .mm-close { opacity: 1; pointer-events: auto; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mm-panel { transition: none; }
  .mm-overlay, .mm-close { transition: none; }
}

/* Small phones: slightly narrower panel */
@media (max-width: 420px) {
  .mm-panel { width: 86vw; }
  .mm-overlay { left: 86vw; }
}
