/* ═══════════════════════════════════════════════════════════════
   NAV — sticky header + mobile drawer
   LOGO — brand mark used in header and footer
   ═══════════════════════════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 44, 95, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease;
}
.nav.scrolled { background: rgba(11, 44, 95, 0.96); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  padding: 10px 0;
  position: relative;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--growth);
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { opacity: 1; }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger-inner { width: 22px; height: 14px; position: relative; }
.hamburger-inner span {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.hamburger-inner span:nth-child(1) { top: 0; }
.hamburger-inner span:nth-child(2) { top: 6px; }
.hamburger-inner span:nth-child(3) { top: 12px; }
.nav.open .hamburger-inner span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .hamburger-inner span:nth-child(2) { opacity: 0; }
.nav.open .hamburger-inner span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-inner { height: 64px; }
  .hamburger { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--authority);
    padding: 8px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .nav.open .nav-links { display: flex; animation: slideDown 0.35s var(--ease-out); }
  .nav-links a {
    width: 100%;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ── Logo / brand mark ──────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.logo-n {
  width: 44px;
  height: 44px;
  background: var(--authority);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
}
.logo-n span {
  font-weight: 800;
  font-size: 24px;
  color: var(--white);
  line-height: 1;
  margin-top: -2px;
  position: relative;
  z-index: 2;
}
.logo-n::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--growth);
}
.logo-rule {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.20);
}
.logo-text {
  position: relative;
  padding-bottom: 6px;
}
.logo-word {
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.2px;
  line-height: 1;
  display: block;
}
.logo-sub {
  display: block;
  margin-top: 5px;
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  line-height: 1;
}
.logo-text::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--growth);
}
