/* ============================================================
   NAV.CSS — navigation, HUD strip, footer
   ============================================================ */

/* ── MAIN NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dark4);
  display: flex;
  align-items: center;
  padding: 0 var(--space-xl);
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.nav-logo-text span { color: var(--red); }
.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--grey);
  font-weight: 400;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  list-style: none;
}
.nav-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-md);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a:hover   { color: var(--white); background: var(--dark3); }
.nav-links a.active  { color: var(--white); background: var(--dark3); }
.nav-links a .nav-icon { font-size: 0.9rem; }

.nav-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(215, 40, 47, 0.15);
  border: 1px solid rgba(215, 40, 47, 0.3);
  color: var(--red2);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.5rem;
  border-radius: 20px;
  animation: pulse 2s infinite;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.nav-partner-btn {
  background: var(--dark3);
  color: var(--grey2);
  border: 1px solid var(--dark4);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.18s;
  text-decoration: none;
}
.nav-partner-btn:hover { background: var(--dark4); color: var(--white); }

.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, transform 0.18s;
  border: none;
}
.nav-cta:hover { background: var(--red2); color: #fff; transform: translateY(-1px); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--grey2);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--dark2);
  border-bottom: 1px solid var(--dark4);
  z-index: 99;
  padding: var(--space-md);
  flex-direction: column;
  gap: var(--space-xs);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: var(--grey2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-drawer a:hover { background: var(--dark3); color: var(--white); }
.nav-drawer a.active { background: var(--dark3); color: var(--white); }
.nav-drawer .nav-cta {
  margin-top: var(--space-sm);
  text-align: center;
  justify-content: center;
  display: flex;
}

/* ── HUD INSTRUMENT STRIP ── */
.hud {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  height: var(--hud-h);
  background: var(--dark2);
  border-bottom: 1px solid var(--dark4);
  display: flex;
  align-items: center;
  padding: 0 var(--space-xl);
  gap: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
}
.hud::-webkit-scrollbar { display: none; }

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 80px;
}
.hud-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  display: flex;
  align-items: center;
}
.hud-val.green { color: var(--green); }
.hud-val.red   { color: var(--red2); }
.hud-val.blue  { color: var(--blue); }
.hud-val.white { color: var(--white); }

.hud-label {
  font-size: 0.6rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 2px;
  white-space: nowrap;
}
.hud-divider {
  width: 1px;
  height: 28px;
  background: var(--dark4);
  flex-shrink: 0;
}

/* ── PAGE OFFSET ── */
.page-offset {
  padding-top: var(--content-top);
}

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--dark2);
  border-top: 1px solid var(--dark4);
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand .footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.footer-brand .footer-logo-text span { color: var(--red); }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--dark3);
  border: 1px solid var(--dark4);
  border-radius: var(--radius-md);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.18s;
  color: var(--grey2);
}
.footer-social a:hover { background: var(--dark4); color: var(--white); }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: var(--space-md);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  font-size: 0.85rem;
  color: var(--grey2);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--dark4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-copy { font-size: 0.78rem; color: var(--grey); }
.footer-legal { display: flex; gap: var(--space-lg); }
.footer-legal a { font-size: 0.78rem; color: var(--grey); text-decoration: none; }
.footer-legal a:hover { color: var(--grey2); }

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hud { padding: 0 var(--space-md); gap: var(--space-md); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
