/* NAV — shared across all pages. Requires CSS custom properties from each page's :root. */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; height: 64px; background: rgba(8,8,16,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-logo { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--bright); letter-spacing: 0.08em; text-decoration: none; }
.nav-logo span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { background: var(--red) !important; color: var(--bright) !important; padding: 0.45rem 1.2rem; border-radius: 3px; font-size: 0.8rem !important; transition: background 0.2s !important; }
.nav-cta:hover { background: #c02020 !important; }
.nav-hamburger { display: none; cursor: pointer; background: none; border: none; color: #ffffff; font-size: 1.6rem; line-height: 1; padding: 4px 8px; position: relative; z-index: 201; }

/* Mobile menu */
.nav-mobile { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: rgba(8,8,16,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 0.5rem 5vw 1.5rem; z-index: 99; flex-direction: column; gap: 0; overflow-y: auto; }
.nav-mobile a { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; text-transform: uppercase; padding: 0.75rem 0; border-bottom: 1px solid var(--line); transition: color 0.2s; }
.nav-mobile a:last-child { border-bottom: none; margin-top: 0.5rem; }
.nav-mobile a:hover { color: var(--text); }
.nav-mobile.open { display: flex; }
.nav-mobile .nav-cta { display: block; text-align: center; padding: 0.75rem !important; font-size: 0.85rem !important; }

/* Mobile groups */
.nav-mobile-group { padding: 0.85rem 0 0.4rem; border-bottom: 1px solid var(--line); }
.nav-mobile-group:first-child { padding-top: 0.4rem; }
.nav-mobile-group a { border-bottom: none; padding: 0.55rem 0; font-size: 0.92rem; }
.nav-mobile-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); padding: 0 0 0.5rem; }

/* Dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.nav-dropdown > a::after { content: '\25BE'; font-size: 0.6rem; color: var(--muted); transition: transform 0.2s ease, color 0.2s; }
.nav-dropdown:hover > a::after { transform: rotate(180deg); color: var(--text); }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: rgba(8,8,16,0.97); border: 1px solid var(--line2); border-radius: 3px; min-width: 240px; padding: 0.4rem 0; padding-top: 10px; z-index: 200; backdrop-filter: blur(12px); }
.nav-dropdown.nav-dropdown-right .nav-dropdown-menu { left: auto; right: 0; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 0.7rem 1.25rem; font-size: 0.72rem !important; white-space: nowrap; border-bottom: 1px solid var(--line); transition: background 0.15s, color 0.15s; }
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.04); color: var(--bright); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
