/* ============================================
   Navigation Bar + Footer
   ============================================ */

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(15,14,13,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 1.125rem; font-weight: 700; color: var(--text);
  text-decoration: none;
}

.nav__logo:hover { text-decoration: none; }

.nav__logo svg { color: var(--primary); }

.nav__links {
  display: flex; align-items: center; gap: var(--s8);
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color 150ms var(--ease);
  padding: var(--s2) 0;
}

.nav__links a:hover,
.nav__links a.active { color: var(--text); }

.nav__actions {
  display: flex; align-items: center; gap: var(--s4);
}

.nav__login {
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none;
}
.nav__login:hover { color: var(--text); text-decoration: none; }

/* Hamburger */
.nav__hamburger {
  display: none; background: none; border: none; color: var(--text);
  cursor: pointer; padding: var(--s2); border-radius: var(--r-md);
}
.nav__hamburger:hover { background: var(--bg-raised); }

/* Mobile menu */
.nav__mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-raised); border-bottom: 1px solid var(--border);
  padding: var(--s4) var(--s6); flex-direction: column; gap: var(--s3);
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  display: block; padding: var(--s3) 0; font-size: 1rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--text); }

@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
}

/* --- Footer --- */
.footer {
  padding: var(--s16) 0 var(--s8);
  color: var(--text-muted);
  position: relative;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s6);
}

.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s10); margin-bottom: var(--s10);
}

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--s6); }
}

@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__brand { display: flex; flex-direction: column; gap: var(--s3); }

.footer__brand-name {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 1.125rem; font-weight: 700; color: var(--text);
}
.footer__brand-name svg { color: var(--primary); }

.footer__brand p { font-size: 0.875rem; line-height: 1.6; }

.footer__brand-link {
  color: var(--text); text-decoration: none;
}
.footer__brand-link:hover { text-decoration: underline; }

.footer__brand-callsign {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-weight: 600; color: var(--primary);
}

.footer__col h4 {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: var(--s3);
}

.footer__col a {
  display: block; font-size: 0.875rem; color: var(--text-muted);
  text-decoration: none; padding: var(--s1) 0;
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--s6);
  font-size: 0.8125rem;
  text-align: center;
}
