/* =========================================================
   5. Public and shared navigation
   ========================================================= */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

@media (max-width: 640px) {
  .navbar {
    height: 70px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

@media (max-width: 760px) {
  .nav-links {
    gap: 16px;
  }
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 480px) {
  .nav-actions {
    gap: 8px;
  }
}

.icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: 0.2s;
}

@media (max-width: 640px) {
  .icon-btn {
    width: 40px;
    height: 40px;
  }
}

.icon-btn:hover {
  background: var(--surface-2);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
}
