/* ─────────────────────────────────────────────────────────────
   Inner Frontier — shared public-site navigation

   Single source of truth for the top nav (desktop bar, logo/brand,
   "More"/Services hover dropdowns, hamburger, and mobile menu).
   Linked from every public page's <head> before its inline <style>.

   Depends on the design tokens defined in each page's :root
   (--navy-deep, --gold, --gold-mid, --font-heading, --radius-sm,
   --max-w). Custom properties resolve regardless of stylesheet
   order, so the inline <style> may define them after this file.
   ───────────────────────────────────────────────────────────── */

/* ── NAV ── */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(15,30,45,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(184,150,90,0.18); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; height: 66px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo-words { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-words .site-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: #fff; white-space: nowrap; }
.nav-logo-words .site-sub { font-size: 0.65rem; font-weight: 500; color: var(--gold-mid); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links li a { display: block; padding: 0 0.85rem; font-size: 0.9rem; font-weight: 400; letter-spacing: 0.02em; color: rgba(255,255,255,0.7); transition: color 0.2s; white-space: nowrap; }
.nav-links li a:hover { color: var(--gold-mid); }
.nav-links .nav-audit a { background: var(--gold); color: var(--navy-deep); font-weight: 600; border-radius: var(--radius-sm); padding: 8px 16px; margin-left: 0.6rem; transition: background 0.2s; font-size: 0.9rem; }
.nav-links .nav-audit a:hover { background: var(--gold-mid); color: var(--navy-deep); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; }
.mobile-menu { display: none; flex-direction: column; background: var(--navy-deep); border-top: 1px solid rgba(184,150,90,0.15); padding: 1rem 1.5rem 1.5rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 0.7rem 0; font-size: 0.9rem; color: rgba(255,255,255,0.75); border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold-mid); }
.mobile-menu .mobile-audit { margin-top: 0.75rem; display: block; background: var(--gold); color: var(--navy-deep); font-weight: 600; border-radius: var(--radius-sm); padding: 10px 20px; text-align: center; border-bottom: none; }

/* ── Dropdown nav ── */
.nav-has-dropdown { position: relative; }
.nav-dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--navy-deep); border: 1px solid rgba(184,150,90,0.2); border-radius: var(--radius-sm); list-style: none; padding: 0.4rem 0; min-width: 185px; opacity: 0; visibility: hidden; transition: opacity 0.18s ease, visibility 0.18s ease; z-index: 200; }
.nav-has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; }
.nav-dropdown li a { display: block; padding: 0.45rem 1.25rem; font-size: 0.8rem; color: rgba(255,255,255,0.7); white-space: nowrap; transition: color 0.15s; }
.nav-dropdown li a:hover { color: var(--gold-mid); }
.mobile-menu .mobile-submenu-item { padding-left: 1.75rem; font-size: 0.84rem; color: rgba(255,255,255,0.5); }
.mobile-menu .mobile-submenu-item:hover { color: var(--gold-mid); }

/* ── Responsive: collapse the horizontal menu into the hamburger ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
