/* =========================================================
   BLACKBOX — Header / Nav
   ========================================================= */

.site-header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  height: 85px;
  z-index: 100;
  padding: 0 32px;
  border-radius: 12px;
  border: 1px solid var(--c-line-dark);
  background: var(--c-nav);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}
.site-header.is-solid {
  top: 0;
  background: var(--c-nav);
  backdrop-filter: blur(10px);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.site-header .container {
  max-width: none;
  padding: 0;
  height: 100%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.site-header, .site-header a { color: var(--c-white); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  font-size: 0.92rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
}
.caret { font-size: 0.6rem; opacity: 0.8; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--c-dark);
  border: 1px solid var(--c-line-dark);
  border-radius: 10px;
  min-width: 260px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block;
  padding: 9px 14px;
  font-size: 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
}
.dropdown li a:hover { background: rgba(255,255,255,0.08); }

.nav-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 34px; height: 24px;
  background: none; border: none;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
