/* ==========================================================================
   Navigation — Glassmorphic fixed nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--duration-normal) var(--ease-out);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter);
}

.nav__logo {
  font-family: var(--font-headline);
  font-weight: var(--weight-black);
  font-size: 1.5rem;
  letter-spacing: -0.06em;
  color: var(--on-surface);
}

.nav__links {
  display: flex;
  gap: var(--space-10);
  align-items: center;
}

.nav__link {
  font-family: var(--font-headline);
  font-weight: var(--weight-thin);
  font-size: var(--text-body-sm);
  letter-spacing: -0.02em;
  color: rgba(48, 47, 41, 0.6);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: var(--primary);
}

.nav__link--active {
  font-weight: var(--weight-bold);
  border-bottom: 0.5px solid var(--primary);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  color: var(--primary);
}

.nav__hamburger .material-symbols-outlined {
  font-size: 1.75rem;
}

/* Mobile menu overlay */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.nav__mobile-menu.open {
  display: flex;
}

#nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.nav__mobile-menu .nav__link {
  font-size: var(--text-heading-lg);
  font-weight: var(--weight-black);
  color: var(--on-surface);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav__mobile-close {
  position: absolute;
  top: var(--space-6);
  right: var(--gutter);
  color: var(--primary);
}

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

  .nav__hamburger {
    display: block;
  }
}
