/* ============================================================
   NAVBAR — Minimal, fixed, light-mode app bar
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: rgba(243, 242, 238, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: box-shadow var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(243, 242, 238, 0.97);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ---- Navigation links (left) ---- */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding-block: var(--space-2);
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-primary);
  transition: width var(--duration-base) var(--ease-out);
}

.navbar__link:hover {
  color: var(--color-text-primary);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__link.active {
  color: var(--color-text-primary);
}

.navbar__link.active::after {
  width: 100%;
}

/* ---- Logo (right) ---- */
.navbar__logo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  overflow: hidden;
  /* The asset is pre-trimmed from the supplied original, so the full mark stays visible. */
  background-image: url('../assets/images/bevan-mark-2026.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-base) var(--ease-spring);
  cursor: pointer;
  flex-shrink: 0;
}

.navbar__logo-btn:hover {
  opacity: 0.82;
  transform: scale(1.06);
}

.navbar__logo-btn:active {
  transform: scale(0.97);
}

/* ---- Mobile hamburger (placeholder for future use) ---- */
.navbar__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}

.navbar__mobile-toggle span {
  display: block;
  height: 1.5px;
  background-color: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .navbar {
    background-color: rgba(243, 242, 238, 0.985);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .navbar__nav {
    gap: var(--space-5);
  }

  .navbar__link {
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
  }
}
