/* ===== Navbar ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav--scrolled {
  background: rgba(8, 15, 17, 0.92);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  letter-spacing: 0.22em;
  font-size: 1rem;
  font-weight: 500;
}
.nav__logo i { color: var(--gold); font-size: 1.1rem; }
.nav__links {
  display: flex;
  gap: 38px;
  font-size: 1rem;
  color: var(--text-dim);
}
.nav__mobile-cta { display: none; }
.nav__links a {
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a.active,
.nav__links .current-menu-item > a,
.nav__links .current-menu-ancestor > a { color: var(--gold); }
.nav__links a:hover::after,
.nav__links a.active::after,
.nav__links .current-menu-item > a::after,
.nav__links .current-menu-ancestor > a::after { width: 100%; }
.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__burger {
  display: none;
  font-size: 1.3rem;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    height: 100dvh;
    width: min(82vw, 330px);
    z-index: 60;
    flex-direction: column;
    justify-content: flex-start;
    gap: 26px;
    background: var(--bg-panel);
    padding: 104px 36px 36px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--border);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.55);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__burger {
    display: inline-flex;
    position: relative;
    z-index: 70;
  }
  .nav__cta { display: none; }
  .nav__mobile-cta {
    display: inline-flex;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }
}
