/* NAV STYLES */
.site-header {
  position: fixed;
  top: 22px;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* Logo */
.nav-logo {
  position: absolute;
  top: 0;
  /* aligns with nav pill top */
  left: 32px;
}

.nav-logo img {
  height: 60px;
  width: auto;
}

/* Keep nav PERFECTLY centered */
.nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 14px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 32px;
  background: rgba(74, 22, 117, 1);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* links */
.nav a {
  text-decoration: none;
  color: #ffd800;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  color: #00d01c;
}

.nav a.active {
  color: #00d01c;
}

.divider {
  color: #ffd800;
  opacity: 0.6;
}

/* --- Mobile hamburger additions --- */
.nav-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(74, 22, 117, 1);
  border-radius: 12px;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 7px 10px;
  background: #ffd800;
  border-radius: 2px;
}

/* mobile menu container */
.nav--mobile {
  display: none;
  position: absolute;
  top: 58px;
  /* sits below header row */
  right: 16px;
  width: min(240px, 88vw);
  padding: 14px 14px;
  background: rgba(74, 22, 117, 0.98);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.nav--mobile a {
  color: #ffd800;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  letter-spacing: 2px;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
}

.nav--mobile a:hover {
  color: #00d01c;
  background: rgba(0, 0, 0, 0.15);
}

/* when menu is open */
.site-header.menu-open .nav--mobile {
  display: flex;
}

/* Mobile tweak */
@media (max-width: 600px) {
  .nav--desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-logo {
    left: 16px;
  }

  .nav-logo img {
    height: 78px;
  }

  .nav {
    font-size: 13px;
    padding: 12px 22px;
    gap: 14px;
  }
}

/* Overlay background */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

/* Show overlay when open */
.site-header.menu-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}