/* ============================================================
   Shared mobile navigation (hamburger + drawer)
   Used across all top-level pages with .nav-pill-wrap
   ============================================================ */

/* ---- Hamburger button (mobile only) ---- */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0; margin: 0;
  cursor: pointer;
  color: #fff;
  transition: background .2s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,0.12); }
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease, opacity .15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }
@media (max-width: 980px) { .nav-toggle { display: inline-flex; } }
@media (max-width: 980px) { .nav-pill .nav-cta { display: none; } }

/* ---- Mobile drawer panel ---- */
.nav-mobile {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  background: #0F1948;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.6);
  padding: 86px 22px 28px;
  max-height: 100vh; overflow-y: auto;
  z-index: 40;
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1; pointer-events: auto;
}
@media (max-width: 980px) { .nav-mobile { display: block; } }

.nav-mobile a {
  display: block;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 17px; font-weight: 500;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .15s, background .15s;
}
.nav-mobile a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-mobile .nm-group-label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 18px 8px 6px;
  border: 0;
}
.nav-mobile .nm-sub a {
  padding-left: 22px;
  font-size: 15px;
  color: rgba(255,255,255,0.78);
}
.nav-mobile .nm-sub a small {
  display: block;
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}
.nav-mobile .nm-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 22px;
  padding: 14px 18px;
  background: #6D94E2;
  color: #fff;
  border: 0; border-bottom: 0;
  border-radius: 12px;
  font-weight: 600; font-size: 15px;
}
.nav-mobile .nm-cta:hover { filter: brightness(1.08); }
.nav-mobile .nm-cta svg { width: 16px; height: 16px; }
.nav-mobile .nm-lang {
  display: inline-flex; align-items: center;
  margin-top: 18px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 4px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.nav-mobile .nm-lang button {
  background: transparent; border: 0; color: rgba(255,255,255,0.6);
  padding: 6px 14px; border-radius: 6px;
  cursor: pointer;
}
.nav-mobile .nm-lang button.active { background: #fff; color: #0F1948; }

body.nav-open { overflow: hidden; }
