/* Sitewide navigation — matches deephorizonai.com Navbar */

.site-nav {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f9fafb;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  font-size: 18px;
}

.site-accent {
  color: #3b82f6;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav-links > a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.site-nav-links > a:hover {
  color: #f9fafb;
}

.site-nav-dropdown {
  position: relative;
}

.site-nav-dropdown > button {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.site-nav-dropdown:hover > button,
.site-nav-dropdown:focus-within > button {
  color: #f9fafb;
}

.site-nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 4px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #111827;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 100;
}

.site-nav-dropdown:hover .site-nav-dropdown-menu,
.site-nav-dropdown:focus-within .site-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
}

.site-nav-dropdown-menu a:hover,
.site-nav-dropdown-menu a.active {
  background: #1f2937;
  color: #f9fafb;
}

.site-nav-cta {
  border-radius: 999px;
  background: #3b82f6 !important;
  color: #fff !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
}

.site-nav-cta:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .site-nav-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav-links {
    gap: 12px;
  }

  .site-nav-links > a:not(.site-nav-cta) {
    font-size: 13px;
  }
}
