/* ============================================
   NMBII Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.site-header.header--scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-divider);
}
.site-header.header--hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-6);
}

/* ---- Logo ---- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---- Desktop Links ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Highlighted nav link */
.nav-link--highlight {
  color: var(--color-accent) !important;
  font-weight: 600;
}
.nav-link--highlight:hover {
  background: var(--color-accent-light) !important;
}

/* ---- Nav Actions ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.theme-toggle svg { width: 18px; height: 18px; }

/* ---- Burger ---- */
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--color-text);
  transition: background var(--transition);
}
.nav-burger:hover { background: var(--color-surface-offset); }
.nav-burger svg { width: 22px; height: 22px; }

/* ---- Mobile Nav ---- */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  z-index: 99;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav .nav-link {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius);
  display: block;
}
.mobile-nav .btn {
  margin-top: var(--space-4);
  text-align: center;
  justify-content: center;
}
body.nav-open { overflow: hidden; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-surface-dark);
  color: var(--color-text-inverse);
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-12);
}

.footer-brand {}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.footer-brand-logo svg { width: 36px; height: 36px; }
.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: var(--space-6);
}
.footer-contact {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
}
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: #fff; }

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-5);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-legal {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

.footer-ein {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-burger { display: flex; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
