/*
 * ============================================================
 * header.css — Site header, logo/brand, and navigation bar
 * ============================================================
 *
 * WHAT THIS FILE DOES:
 *   - Styles the sticky top bar (header) that stays visible when scrolling.
 *   - Styles the site logo area (brand name and tagline).
 *   - Styles the navigation links and the mobile hamburger menu toggle.
 *
 * EDITING TIPS (no CSS knowledge required):
 *   - To change the header height, adjust min-height in .header-inner.
 *   - To change navigation link color, edit .nav a (default is --muted).
 *   - To change the nav link hover color, edit .nav a:hover (default is --text).
 *   - The hamburger icon (mobile menu button) is styled in .nav-toggle.
 *   - The mobile nav panel opens/closes via JavaScript — see app.js (wireNav).
 *   - Text content (brand name, nav labels) is set in content.js, not here.
 *
 * DEPENDENCIES:
 *   - Uses CSS variables from base.css.
 *   - Mobile menu behavior is in app.js (wireNav function).
 *   - Open/closed mobile state uses the .open class toggled by app.js.
 * ============================================================
 */

/* ── Sticky top bar ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(8, 10, 9, 0.84);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* ── Brand / logo area ────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── Desktop navigation ───────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover { color: var(--text); }

/* ── Mobile menu toggle (hamburger button) ────────────────── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
  margin: 4px 0;
}
