/* ============================================
   GrapoliX Navigation Component
   DESIGN.md — Layout Components — NAV
   ============================================ */

/* ── Nav Shell ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 300ms ease, border-bottom 300ms ease;
}

/* Scrolled state — background appears */
.nav--scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid #222222;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */
.nav__logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 200ms ease;
}

.nav__logo:hover {
  opacity: 0.8;
  color: var(--gold);
}

/* ── Links ── */
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms ease;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 200ms ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__links a.active {
  color: var(--gold);
}

.nav__links a.active::after {
  width: 100%;
}

/* ── CTA Button ── */
.nav__cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 10px 20px;
  border-radius: 3px;
  text-decoration: none;
  transition: opacity 200ms ease;
  flex-shrink: 0;
}

.nav__cta:hover {
  opacity: 0.85;
  color: var(--bg);
}

/* ── Mobile Hamburger ── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 300ms ease, opacity 300ms ease;
}

/* Hamburger open state */
.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Menu Overlay ── */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity 300ms ease;
}

.nav__mobile--open {
  opacity: 1;
}

.nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.nav__mobile-links a {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 200ms ease;
}

.nav__mobile-links a:hover {
  color: var(--gold);
}

.nav__mobile-cta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 14px 32px;
  border-radius: 3px;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }
}
