.alta-nav {
  position: relative;
  width: 100%;
  z-index: 999;
  color: #fff;
  font-family: Satoshi, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

.alta-nav--sticky {
  position: sticky;
  top: 0;
}

.alta-nav__bar {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.alta-nav__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.alta-nav__logo img {
  height: 28px;
  width: auto;
  display: block;
}
/* Built-in inline SVG logo — same 28px header height as the img variant. */
.alta-nav__logo-svg {
  display: block;
  line-height: 0;
}
.alta-nav__logo-svg svg {
  height: 28px;
  width: auto;
  display: block;
}

/* ---- Desktop menu ---- */
.alta-nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

/* static (not relative): the mega panel anchors to the header itself so it
   can center on the bar — anchoring to the toggle pushes edge dropdowns
   off-screen at narrow desktop widths. */
.alta-nav__item {
  position: static;
}

.alta-nav__link,
.alta-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}
.alta-nav__link:hover,
.alta-nav__toggle:hover,
.alta-nav__item--dropdown.is-open .alta-nav__toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.alta-nav__chevron {
  display: inline-flex;
  transition: transform 200ms ease;
}
.alta-nav__item--dropdown.is-open .alta-nav__chevron,
.alta-nav__mobile-group.is-open .alta-nav__chevron {
  transform: rotate(180deg);
}

.alta-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.alta-nav__login {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border-radius: 9999px;
  background: var(--alta-nav-accent, #7a5bf7);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 150ms ease;
}
.alta-nav__login:hover { filter: brightness(1.12); }

/* ---- Mega dropdown — full navbar width, like the live site ---- */
.alta-nav__mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  transform: translateY(6px);
  background: var(--alta-nav-bg, #0b0e1a);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  z-index: 10;
}
.alta-nav__mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
}

/* The mega content gets a wider container than the bar — four columns plus
   the promo card need the room, otherwise labels wrap onto 2-3 lines. */
.alta-nav__mega-inner {
  display: flex;
  gap: 40px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 36px 48px;
}

/* With room available, keep headings and item labels on a single line.
   Below 1280px the columns get tight again — let text wrap there instead
   of overflowing. */
@media (min-width: 1280px) {
  .alta-nav__mega:not(.alta-nav__mega--compact) .alta-nav__mega-heading,
  .alta-nav__mega:not(.alta-nav__mega--compact) .alta-nav__mega-label {
    white-space: nowrap;
  }
}

/* Compact variant (Support / Work with Us): a hugging panel anchored under
   its own toggle, like the live site — not the full-width mega. */
.alta-nav__item--compact {
  position: relative;
}
.alta-nav__mega--compact {
  left: 0;
  right: auto;
  width: max-content;
  min-width: 320px;
  max-width: 440px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.alta-nav__mega--compact .alta-nav__mega-inner {
  max-width: none;
  margin: 0;
  padding: 24px 20px;
}
.alta-nav__mega--compact .alta-nav__mega-columns {
  flex-direction: column;
  gap: 18px;
}

.alta-nav__mega-columns {
  display: flex;
  gap: 32px;
  flex: 1 1 auto;
  min-width: 0;
}

.alta-nav__mega-column {
  flex: 1 1 0;
  min-width: 0;
}

.alta-nav__mega-section + .alta-nav__mega-section {
  margin-top: 18px;
}

.alta-nav__mega-heading {
  margin: 0 0 8px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--alta-nav-accent, #7a5bf7);
}

.alta-nav__mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 130ms ease;
}
.alta-nav__mega-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.alta-nav__mega-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
}
/* Show the whole image (e.g. tall device renders) instead of cropping. */
.alta-nav__mega-icon--contain {
  object-fit: contain;
  padding: 3px;
}
.alta-nav__mega-icon--dot {
  display: inline-block;
  position: relative;
}
.alta-nav__mega-icon--dot::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 999px;
  background: var(--alta-nav-accent, #7a5bf7);
}
/* Inline SVG icons (extracted from the live site) — accent-colored,
   sitting on a rounded dark tile like the live nav. */
.alta-nav__mega-icon--svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--alta-nav-accent, #7a5bf7);
  background: #000;
}
.alta-nav__mega-icon--svg svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Links without a description (e.g. Base Camp dropdown) — center the
   single-line label against the icon tile. */
.alta-nav__mega-link--center {
  align-items: center;
}

.alta-nav__mega-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.alta-nav__mega-label {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}
.alta-nav__mega-description {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

/* Promo card on the right of the mega panel — hugs its content height
   (align-self) instead of stretching to the tallest column. */
.alta-nav__promo {
  flex: 0 0 260px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: inherit;
  transition: background 130ms ease;
}
.alta-nav__promo:hover { background: rgba(255, 255, 255, 0.07); }
.alta-nav__promo-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}
.alta-nav__promo-title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.alta-nav__promo-description {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}
.alta-nav__promo-cta {
  font-size: 13px;
  font-weight: 600;
}

/* ---- Burger ---- */
.alta-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.alta-nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #fff;
  transition: transform 220ms ease, opacity 160ms ease;
}
.alta-nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.alta-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.alta-nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile panel ---- */
.alta-nav__mobile {
  display: none;
}

@media (max-width: 991px) {
  .alta-nav__menu { display: none; }
  .alta-nav__burger { display: flex; }
  .alta-nav__login:not(.alta-nav__login--mobile) { display: none; }
  .alta-nav__bar { height: 64px; }

  .alta-nav__mobile {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--alta-nav-bg, #0b0e1a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    /* visibility gate prevents focus/tap on hidden links */
    visibility: hidden;
    transition: max-height 280ms ease, visibility 0s linear 280ms;
    z-index: 10;
  }
  .alta-nav.is-mobile-open .alta-nav__mobile {
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: visible;
    transition: max-height 280ms ease;
  }

  .alta-nav__mobile-inner {
    display: flex;
    flex-direction: column;
    padding: 8px 16px 24px;
  }

  .alta-nav__mobile-link,
  .alta-nav__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 8px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 500;
    font-size: 16px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .alta-nav__mobile-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms ease;
  }
  .alta-nav__mobile-group.is-open .alta-nav__mobile-sub {
    max-height: 2400px;
  }
  .alta-nav__mobile-sub .alta-nav__mega-section {
    padding: 6px 0 10px;
  }

  .alta-nav__login--mobile {
    margin-top: 16px;
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .alta-nav__login--mobile { display: none; }
}

