/* nav-burger.css — reusable burger nav module.
   Always visible top-right (mobile + desktop). Drawer animation cloned
   from index.html homepage nav (.nav-mobile) but re-prefixed `.nb-*`
   so it can coexist alongside other navigation chrome on any page. */

.nb-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  display: flex;
  width: 48px; height: 48px;
  padding: 0;
  align-items: center; justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: filter 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nb-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 20px;
}
.nb-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    top       260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity   180ms cubic-bezier(0.22, 1, 0.36, 1),
    background 240ms ease;
}
.nb-bar--top { top: 2px; }
.nb-bar--mid { top: 9px; }
.nb-bar--bot { top: 16px; }

@media (hover: hover) {
  .nb-toggle:hover,
  .nb-toggle:focus-visible {
    filter: drop-shadow(0 0 6px rgba(11, 173, 255, 0.65))
            drop-shadow(0 0 14px rgba(11, 173, 255, 0.35));
  }
  .nb-toggle:hover .nb-bar { background: #ffffff; }
}
.nb-toggle:active,
.nb-toggle[aria-expanded="true"] {
  filter: drop-shadow(0 0 6px rgba(11, 173, 255, 0.65))
          drop-shadow(0 0 14px rgba(11, 173, 255, 0.35));
}
.nb-toggle:active .nb-bar,
.nb-toggle[aria-expanded="true"] .nb-bar {
  background: #ffffff;
}

.nb-toggle[aria-expanded="true"] .nb-bar--top { top: 9px; transform: rotate(45deg); }
.nb-toggle[aria-expanded="true"] .nb-bar--mid { opacity: 0; transform: scaleX(0.4); }
.nb-toggle[aria-expanded="true"] .nb-bar--bot { top: 9px; transform: rotate(-45deg); }

.nb-drawer {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(7, 5, 88, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
}
.nb-drawer.open {
  display: flex;
  animation:
    nb-wipe 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards,
    nb-backdrop 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes nb-wipe {
  from {
    -webkit-clip-path: circle(0% at calc(100% - 28px) 28px);
            clip-path: circle(0% at calc(100% - 28px) 28px);
  }
  to {
    -webkit-clip-path: circle(150% at calc(100% - 28px) 28px);
            clip-path: circle(150% at calc(100% - 28px) 28px);
  }
}
@keyframes nb-backdrop {
  from {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: rgba(7, 5, 88, 0.55);
  }
  to {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(7, 5, 88, 0.97);
  }
}

.nb-logo {
  display: block;
  width: auto;
  height: 84px;
  margin: 4px auto 0;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 18px rgba(11, 173, 255, 0.35))
          drop-shadow(0 1px 3px rgba(4, 3, 35, 0.4));
  opacity: 0;
  transform: scale(0.88);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.nb-drawer.open .nb-logo {
  animation: nb-logo-in 480ms cubic-bezier(0.34, 1.24, 0.64, 1) 300ms forwards;
}
@keyframes nb-logo-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.nb-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 28px;
}
.nb-links a {
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: clamp(28px, 7vw, 44px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  opacity: 0;
}
@keyframes nb-item-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nb-drawer.open .nb-links a {
  animation: nb-item-in 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.nb-drawer.open .nb-links a:nth-child(1) { animation-delay: 160ms; }
.nb-drawer.open .nb-links a:nth-child(2) { animation-delay: 220ms; }
.nb-drawer.open .nb-links a:nth-child(3) { animation-delay: 280ms; }
.nb-drawer.open .nb-links a:nth-child(4) { animation-delay: 400ms; }
.nb-drawer.open .nb-links a:nth-child(5) { animation-delay: 520ms; }
.nb-drawer.open .nb-links a:nth-child(6) { animation-delay: 640ms; }
.nb-drawer.open .nb-links a:nth-child(7) { animation-delay: 760ms; }
@media (hover: hover) {
  .nb-links a:hover { color: #0BADFF; }
}

.nb-cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
  transform: translateY(16px);
  opacity: 0;
  transition:
    opacity   380ms cubic-bezier(0.22, 1, 0.36, 1) 820ms,
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1) 820ms;
}
.nb-drawer.open .nb-cta {
  opacity: 1;
  transform: translateY(0);
}
.nb-cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(11, 173, 255, 0.88);
}
.nb-cta-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0BADFF;
  flex-shrink: 0;
}
.nb-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  height: 64px;
  padding: 0 32px;
  background: linear-gradient(135deg, #0BADFF 0%, #6E48F2 50%, #B020F8 100%);
  border-radius: 100px;
  border: none;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 24px -8px rgba(110, 72, 242, 0.5);
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
@media (hover: hover) {
  .nb-cta-btn:hover,
  .nb-cta-btn:focus-visible {
    filter: brightness(1.06);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 16px 40px -8px rgba(110, 72, 242, 0.6);
  }
  .nb-cta-btn:hover .nb-arrow { transform: translateX(2px); }
}
.nb-cta-btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}
.nb-cta-btn .nb-arrow {
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* When drawer is open, fade any top-left .back-home pill (gallery + blog
   pages) so the X is the only navigation affordance on screen. */
body.nb-open .back-home {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

/* Mirror the .back-home pinned-banner shift: when schedule.html has a
   group pinned, the sticky gold banner pushes everything in the top
   chrome down. Burger needs to clear it too. */
.nb-toggle {
  transition: top 220ms cubic-bezier(0.22, 1, 0.36, 1), filter 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.has-pinned .nb-toggle { top: 60px; }
/* Same treatment for the bottom-right "Join Now" sticky pill — when the
   drawer is open the user already sees a Register CTA inside it, so the
   floating pill is redundant and visually clashes with the drawer. */
body.nb-open .sticky-join {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
body.nb-open {
  overflow: hidden;
}

/* ════════════ DESKTOP: HIDE BURGER ════════════
   Per Noah's directive (2026-05-01) the burger nav is mobile-only on
   gallery + blog. On desktop the page chrome (back-home pill, etc.) is
   sufficient. To re-enable later, restore the desktop drawer-fit rules
   from git history (commit 09e984e). */
@media (min-width: 901px) {
  .nb-toggle { display: none; }
  .nb-drawer { display: none !important; }
}
