/* ── Animation matching hero fadeInUp ────────────────────────────────────── */
@keyframes navFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Navbar wrapper ──────────────────────────────────────────────────────── */
#site-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  animation: navFadeInUp 0.6s ease 0.1s both;
}

.site-navbar-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 60px;
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 110px;
  width: auto;
  display: block;
}

/* ── Desktop nav links ───────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  font-family: "Didact Gothic", sans-serif;
  color: #FFFFFF;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-item:hover {
  color: #B040E7;
}

/* ── Services dropdown ───────────────────────────────────────────────────── */
.nav-dropdown-wrap {
  position: relative;
}
.nav-dropdown-trigger {
  user-select: none;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  padding-top: 12px;
  left: 0;
  background: #521490;
  border-radius: 6px;
  min-width: 220px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 9999;
}
.nav-dropdown-wrap:hover .nav-dropdown {
  display: block;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #FFFFFF;
  font-family: "Didact Gothic", sans-serif;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-dropdown li a:hover {
  background: #B40FE7;
}

/* ── Hamburger button (hidden on desktop) ────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
/* Open state: X icon */
.nav-hamburger--open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger--open span:nth-child(2) { opacity: 0; }
.nav-hamburger--open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Mobile menu (hidden by default) ────────────────────────────────────── */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(16, 1, 49, 0.97);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile--open {
  display: flex;
}
.nav-mobile-item {
  font-family: "Didact Gothic", sans-serif;
  color: #FFFFFF;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.nav-mobile-item:hover { color: #B040E7; }
.nav-mobile-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-mobile-section-title {
  font-family: "Didact Gothic", sans-serif;
  color: #FFFFFF;
  font-size: 16px;
  padding: 12px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
}
.nav-mobile-group a {
  color: rgba(255,255,255,0.75);
  font-family: "Didact Gothic", sans-serif;
  font-size: 14px;
  text-decoration: none;
  padding: 9px 0 9px 14px;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.nav-mobile-group a:hover { color: #B040E7; }

/* ── Responsive: switch to hamburger below 768px ─────────────────────────── */
@media (max-width: 768px) {
  .site-navbar-wrap {
    padding: 12px 24px;
  }
  .nav-logo img {
    height: 70px;
  }
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}
