/* ── The site's one navigation bar, for pages that don't load hero.css ───────
 * (the Journal, Profile, Settings). Same markup and look as the bar on the
 * homepage and the plain pages:
 *
 *   <nav class="kz-nav is-scrolled">
 *     <a class="kz-logo" href="/">KamZour</a>
 *     <ul class="kz-links"> Gallery · Styles · Studio · Journal · Pricing </ul>
 *     <div class="kz-nav-actions"> Sign in · Open the studio </div>
 *   </nav>
 *
 * kz-nav-auth.js turns Sign in into the member menu and adds the phone menu.
 * Everything here is scoped to .kz-nav / .kz-menu, so it can sit beside a
 * page's own styles without touching them. Keep in step with hero.css.
 */
.kz-nav, .kz-menu {
  --candle: #d8a35e; --silk: #f4e9e4; --rose-ash: #b89aa4; --velvet: #150a0e;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.kz-nav *, .kz-menu * { box-sizing: border-box; }
.kz-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(10, 6, 8, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(216, 163, 94, 0.14);
}
.kz-logo {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 1.45rem;
  color: var(--candle); text-decoration: none; letter-spacing: 0.02em;
}
.kz-links { display: flex; list-style: none; align-items: center; font-size: 0.9rem; margin: 0; padding: 0; }
.kz-links li + li::before { content: '•'; color: var(--rose-ash); opacity: 0.5; margin: 0 14px; }
.kz-links a { color: var(--rose-ash); text-decoration: none; transition: color 0.2s; letter-spacing: 0; text-transform: none; font-weight: 400; }
.kz-links a:hover, .kz-links a[aria-current="page"] { color: var(--silk); }
.kz-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.kz-signin { color: var(--silk); text-decoration: none; font-size: 0.9rem; }
.kz-signin:hover { color: var(--candle); }

.kz-nav .liquid-glass, .kz-menu .liquid-glass {
  background: rgba(255, 255, 255, 0.035); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: none; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1); position: relative; overflow: hidden;
}
.kz-nav .liquid-glass::before, .kz-menu .liquid-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg, rgba(255, 236, 210, 0.45) 0%, rgba(255, 236, 210, 0.15) 20%,
    rgba(255, 236, 210, 0) 40%, rgba(255, 236, 210, 0) 60%, rgba(255, 236, 210, 0.15) 80%, rgba(255, 236, 210, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.kz-nav .kz-btn, .kz-menu .kz-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; border-radius: 99px;
  font-size: 0.92rem; font-weight: 600; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease;
  border: 0; font-family: inherit; cursor: pointer; letter-spacing: 0; text-transform: none;
}
.kz-nav .kz-btn:hover, .kz-menu .kz-btn:hover { transform: scale(1.03); }
.kz-nav .kz-btn-solid, .kz-menu .kz-btn-solid { background: var(--silk); color: var(--velvet); }
.kz-nav .kz-btn-glass, .kz-menu .kz-btn-glass { color: var(--silk); }
.kz-nav .kz-btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.kz-menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 50%; color: var(--silk); cursor: pointer;
  flex: none; align-items: center; justify-content: center; border: 0; padding: 0;
}
.kz-menu-btn i { position: absolute; top: calc(50% - 0.75px); left: 12px; right: 12px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.3s ease; }
.kz-menu-btn i:first-child { transform: translateY(-3.5px); }
.kz-menu-btn i:last-child  { transform: translateY(3.5px); }
.kz-menu-btn[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.kz-menu-btn[aria-expanded="true"] i:last-child  { transform: rotate(-45deg); }
.kz-menu {
  position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column;
  padding: 104px clamp(16px, 6vw, 48px) 40px; overflow-y: auto;
  background: radial-gradient(70% 45% at 50% 0%, rgba(98, 78, 220, 0.18), transparent 70%), rgba(10, 6, 8, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.kz-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.kz-menu-links { list-style: none; margin: 0; padding: 0; }
.kz-menu-links a {
  display: block; padding: 14px 0; border-bottom: 1px solid rgba(216, 163, 94, 0.12);
  font-family: 'Instrument Serif', 'Playfair Display', Georgia, serif; font-size: 2rem; line-height: 1.1;
  color: var(--silk); text-decoration: none;
}
.kz-menu-links a:hover { color: var(--candle); }
.kz-menu-auth { display: flex; gap: 12px; margin-top: 32px; }
.kz-menu-auth .kz-btn { flex: 1; padding-left: 12px; padding-right: 12px; white-space: nowrap; }

@media (max-width: 860px) {
  .kz-links { display: none; }
  .kz-menu-btn { display: inline-flex; }
  .kz-nav-actions { gap: 12px; }
}
@media (min-width: 861px) { .kz-menu { display: none; } }
@media (max-width: 520px) {
  .kz-signin { display: none; }
  .kz-nav { gap: 16px; }
  .kz-nav .kz-btn-sm { padding: 9px 14px; white-space: nowrap; }
}
