/*
 * zuhora/css/nav.css
 * -----------------------------------------------------------------------------
 * Top navigation bar - fixed, full-width.
 * -----------------------------------------------------------------------------
 */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter-mobile);
  background: linear-gradient(
    to bottom,
    rgba(13, 10, 26, 0.97) 0%,
    rgba(13, 10, 26, 0.60) 70%,
    transparent 100%
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* -- Logo ----------------------------------------------------------------- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
}

.nav-logo-mark {
  width: 28px;
  height: 30px;
  flex-shrink: 0;
  /* Decorative SVG - non-text, no contrast requirement */
}

.nav-wordmark {
  font-size: var(--text-md);
  font-weight: 300;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  /* --accent on --bg-base: 8.54:1 - WCAG AA ✓ */
  color: var(--accent);
}

/* -- CTA link ------------------------------------------------------------- */
.nav-cta {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  /* --accent on --bg-base (through gradient): 8.54:1 - WCAG AA ✓ */
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border-accent);
  padding: 9px 18px;
  white-space: nowrap;
  transition:
    background     var(--duration-mid),
    border-color   var(--duration-mid);
}

.nav-cta:hover {
  background: rgba(201, 168, 76, 0.10);
  border-color: var(--accent);
}

/* Focus-visible ring for keyboard navigation - WCAG 2.4.7 */
.nav-cta:focus-visible,
.nav-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* -- Desktop -------------------------------------------------------------- */
@media (min-width: 680px) {
  nav {
    padding: 24px var(--gutter-desk);
  }

  .nav-logo-mark {
    width: 34px;
    height: 36px;
  }
}
