/* ============================================
   TESS GROUP — Sticky Navigation Bar
   Added to programme pages and blog posts
   that don't have their own navigation
   ============================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(5, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.site-nav-inner {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav-logo {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: 1.5px;
}

.site-nav-logo span {
  color: #00bcd4;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.site-nav-links a:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.site-nav-links .nav-cta {
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  color: white !important;
  padding: 7px 18px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 6px;
}

.site-nav-links .nav-cta:hover {
  background: linear-gradient(135deg, #00d4e8, #00b0c0);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

/* Spacer to push content below fixed nav */
.nav-spacer {
  height: 56px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .site-nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(5, 13, 26, 0.98);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .site-nav-links.open {
    display: flex;
  }

  .site-nav-links a {
    padding: 10px 16px;
    font-size: 14px;
    width: 100%;
    border-radius: 8px;
  }

  .site-nav-links .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }
}