/* BBMc nav - fixed slim translucent bar. Owner: FOUNDATION */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
  padding-inline: var(--gutter);
  background: rgba(19, 38, 54, 0.72); /* --ink, translucent */
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: var(--hairline);
}

/* brand: rook logo + wordmark, left */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--pale);
  font-weight: var(--w-accent);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* links: single line, centered in the free space */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-left: auto;
  white-space: nowrap;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: var(--w-regular);
  padding: 0.4rem 0.1rem;
  transition: color 0.25s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--pale);
}

/* compact CTA, right */
.nav-cta {
  padding: 0.55em 1.3em;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.site-nav .nav-cta { margin-left: 0; }
.nav-links + .nav-cta { margin-left: 0; }

/* keep page content clear of the fixed bar for anchor jumps */
:target { scroll-margin-top: 84px; }

/* ---- mobile <768px: brand + CTA only, no hamburger ---- */
@media (max-width: 767px) {
  .site-nav {
    height: 64px;
    gap: 1rem;
    justify-content: space-between;
  }
  .nav-links { display: none; }
  .nav-brand span { display: none; } /* logo only, keep it airy at 375px */
  .nav-brand img {
    width: 36px;
    height: 36px;
  }
}
