/* ============================================================
   NAVIGATION — SM visual identity: white/light, clean
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition:
    background var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  transition: transform 700ms ease;
}

.nav__logo:hover .nav__logo-img {
  transform: rotate(360deg);
}

.nav__logo-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-black);
  color: var(--color-text-primary);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
}

.nav__logo-name span {
  display: block;
  font-size: 9px;
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__link:hover { color: var(--color-accent); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--dur-normal) var(--ease-out);
}
.nav__link:hover::after { width: 100%; }

/* Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-sm);
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition:
    transform var(--dur-normal) var(--ease-inout),
    opacity   var(--dur-normal) var(--ease-out);
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  top: 72px;
  right: 0;
  bottom: 0;
  width: 280px;
  background: #ffffff;
  border-left: 1px solid var(--color-border-default);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: var(--z-modal);
}

.nav__drawer.is-open { transform: translateX(0); }

.nav__drawer-link {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.nav__drawer-link:hover {
  background: var(--color-bg-overlay);
  color: var(--color-accent);
}

.nav__drawer-cta { margin-top: var(--space-4); }

/* Overlay behind drawer */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.40);
  z-index: calc(var(--z-modal) - 1);
}
.nav__overlay.is-open { display: block; }

/* --- Responsive --- */
@media (max-width: 1023px) {
  .nav__inner { padding: 0 40px; }
  .nav__links { display: none; }
  .nav__actions .btn--primary { display: none; }
  .nav__hamburger { display: flex; }
}

@media (max-width: 767px) {
  .nav__inner { padding: 0 20px; }
}
