/* ════════════════════════════════════════════
   NAVBAR.CSS
════════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  border-color: var(--border-solid);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Two-line logo ── */
.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  flex-shrink: 0;
}
.logo-top {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.78);
  margin-bottom: 2px;
  text-align: center;
}
.logo-bottom {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  text-align: center;
}

/* ── Nav links ── */
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 14px;
  padding: 9px 18px;
  flex-shrink: 0;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ── */
.mobile-nav {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(250, 250, 249, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-solid);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  z-index: 999;
}
.mobile-nav.open {
  max-height: 420px;
  opacity: 1;
}
.mobile-nav a {
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-solid);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover {
  color: var(--accent);
  background: var(--accent-bg);
}
.mobile-nav .btn {
  margin: 16px 24px 20px;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}
