/* ─────────────────────────────────────────
   Supply Lens — nav-mobile.css
   Add this to every page <head> alongside main.css:
   <link rel="stylesheet" href="css/nav-mobile.css">
   For subpages: <link rel="stylesheet" href="../css/nav-mobile.css">
───────────────────────────────────────── */

/* ── HAMBURGER BUTTON ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text1);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
  transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.mob-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: calc(100dvh - 64px);
  background: var(--bg0);
  border-top: 1px solid var(--border);
  overflow-y: auto;
  z-index: 9999;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), opacity 0.18s ease, visibility 0s linear 0.22s;
  -webkit-overflow-scrolling: touch;
}
.mob-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), opacity 0.18s ease, visibility 0s linear 0s;
}
.mob-drawer-inner {
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── DRAWER SECTIONS ── */
.mob-section {
  border-bottom: 1px solid var(--border);
}
.mob-section:last-of-type { border-bottom: none; }

.mob-link {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text1);
  text-decoration: none;
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mob-link:last-child { border-bottom: none; }
.mob-link:active, .mob-link.mob-active { color: var(--p-light); }

/* ── ACCORDION GROUPS ── */
.mob-group-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text1);
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.01em;
  text-align: left;
}
.mob-chevron {
  color: var(--text3);
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), color 0.15s;
  flex-shrink: 0;
}
.mob-group-hd[aria-expanded="true"] .mob-chevron {
  transform: rotate(180deg);
  color: var(--p-light);
}
.mob-group-hd[aria-expanded="true"] { color: var(--p-light); }

.mob-group-body {
  display: none;
  padding: 4px 0 16px 4px;
  flex-direction: column;
  gap: 0;
}
.mob-group-body.open { display: flex; }

.mob-sub-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 12px 0 6px;
  font-family: 'Geist', sans-serif;
}
.mob-sub-link {
  display: block;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--text2);
  text-decoration: none;
  font-family: 'Geist', sans-serif;
  transition: color 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mob-sub-link:last-child { border-bottom: none; }
.mob-sub-link:active { color: var(--text0); }
.mob-sub-all {
  color: var(--p-light);
  font-weight: 600;
  margin-top: 4px;
}

/* ── MOBILE CTA BUTTONS ── */
.mob-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0 8px;
}

/* ── SCROLL LOCK ── */
body.mob-open { overflow: hidden; }

/* ── BREAKPOINT ── */
@media (max-width: 860px) {
  .nav-links { display: none !important; }
  .nav-end .btn { display: none !important; }
  .nav-burger { display: flex !important; }
}
