/* =============================================================
   Outpost Housing — Canonical Nav Styles
   Single source of truth for all pages.
   ============================================================= */

/* ── Topbar shell ─────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--topbar-h, 112px);
  background: rgba(10, 14, 8, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 160, 32, 0.18);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Logo ─────────────────────────────────────────────────── */
.topbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}
.topbar-logo img {
  height: 96px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55));
  transition: filter 0.2s;
}
.topbar-logo:hover img {
  filter: drop-shadow(0 2px 10px rgba(201,160,32,0.45));
}

/* ── Desktop nav links ────────────────────────────────────── */
.topbar-links {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
  margin: 0; padding: 0;
}
.topbar-links a {
  color: rgba(230,225,210,0.82);
  text-decoration: none;
  font-family: 'Rajdhani', 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.topbar-links a:hover {
  color: #C9A020;
  background: rgba(201,160,32,0.08);
}
.topbar-links a.nav-active {
  color: #C9A020;
  border-bottom: 2px solid #C9A020;
}
.topbar-links a.nav-cta {
  background: #C9A020;
  color: #0D1A0F;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 18px;
  border-radius: 20px;
  margin-left: 6px;
  border-bottom: none;
}
.topbar-links a.nav-cta:hover {
  background: #e0b420;
  color: #0D1A0F;
}

/* ── Controls (theme + hamburger) ────────────────────────── */
.topbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Theme toggle button ──────────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(230,225,210,0.7);
  font-size: 1rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s;
  line-height: 1;
}
.theme-toggle:hover { color: #C9A020; }
.icon-moon { display: none; }
.light-mode .icon-sun  { display: none; }
.light-mode .icon-moon { display: inline; }

/* ── Hamburger button ─────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(230,225,210,0.85);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ── Mobile nav drawer ────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--topbar-h, 112px);
  left: 0; right: 0;
  background: rgba(10,14,8,0.97);
  border-bottom: 1px solid rgba(201,160,32,0.18);
  z-index: 899;
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav a {
  color: rgba(230,225,210,0.82);
  text-decoration: none;
  font-family: 'Rajdhani', 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 4px;
  display: block;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a.nav-active { color: #C9A020; background: rgba(201,160,32,0.08); }
.mobile-nav a.nav-cta {
  background: #C9A020;
  color: #0D1A0F;
  font-weight: 700;
  text-align: center;
  border-radius: 20px;
  margin-top: 10px;
}

/* ── Responsive breakpoint ────────────────────────────────── */
@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .hamburger   { display: flex; }
  .mobile-nav  { display: flex; }
}
