/* HEADER WRAPPER */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* box-shadow: 0 2px 2px rgba(139, 92, 246, 0.05); */
}

/* Subtle glow effect above and below header */
.site-header::before,
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(139, 92, 246, 0.15) 50%,
      transparent 100%);
  pointer-events: none;
}

.site-header::before {
  top: 0;
}

.site-header::after {
  bottom: 0;
}


/* CENTERED CONTAINER */
.header-inner {
  margin: 0 auto;
  padding: 0 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.header-logo img {
  height: 40px;
  display: block;
}

/* NAV PILL WRAPPER (This contains Links + CTA) */
.nav-pill-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;

  /* background: rgba(240, 238, 250, 0.95); */
  background: linear-gradient(90deg, #CDCCFD 0%, #D2D9EB 100%);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 215, 240, 0.4);

  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.12),
    0 0 50px rgba(139, 92, 246, 0.06);
  position: relative;
}

/* Subtle glow effect above and below nav pill */
.nav-pill-wrapper::before,
.nav-pill-wrapper::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 3px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(139, 92, 246, 0.15) 50%,
      transparent 100%);
  border-radius: 2px;
  pointer-events: none;
  filter: blur(2px);
}

.nav-pill-wrapper::before {
  top: -10px;
}

.nav-pill-wrapper::after {
  bottom: -10px;
}

/* NAV LINKS */
.header-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #4a4a4a;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  padding: 10px 22px;
  border-radius: 10px;
  position: relative;
}

.header-nav a:hover {
  color: #4a4a4a;
}

/* Active/Current Page Link */
.header-nav a.active {
  background: linear-gradient(270deg, #5b4bdb 0%, #792ef1 100%);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(91, 75, 219, 0.35);
  padding: 10px 22px;
  border-radius: 10px;
}

/* Make sure Contact Us link is also styled as regular nav link */
.header-nav a[href^="contact-us.html"] {
  color: #4a4a4a;
}

/* CTA BUTTON - Now styled as regular nav link */
.header-cta {
  background: none;
  color: #4a4a4a;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: all 0.3s ease;
}

.header-cta:hover {
  color: #4a4a4a;
}

/* Active state for Contact Us link */
.header-cta.active {
  background: linear-gradient(270deg, #5b4bdb 0%, #792ef1 100%);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(91, 75, 219, 0.35);
}

/* ================= DROPDOWN MENU ================= */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 340px;
  padding: 16px 12px;
  z-index: 1001;
  overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: #6b6b6b;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
  border-radius: 8px;
  margin: 4px 0;
  white-space: nowrap;
  background: transparent;
}

.dropdown-item:hover {
  background-color: rgba(139, 92, 246, 0.05);
  color: #4a4a4a;
}

.dropdown-item.active {
  background: linear-gradient(270deg, #5b4bdb 0%, #792ef1 100%);
  color: #ffffff !important;
  font-weight: 600;
  margin: 4px 0;
  border-radius: 8px;
  padding: 12px 16px;
}

.dropdown-item.active:hover {
  background: linear-gradient(270deg, #5b4bdb 0%, #792ef1 100%);
  color: #ffffff !important;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .nav-pill-wrapper {
    display: none;
    /* Hide desktop nav on tablet/mobile */
  }

  /* You might want a hamburger menu here, but for now simple stacking or hiding */
  .site-header {
    background: #fff;
    /* Solid bg on mobile if needed or transparent */
    padding: 15px 0;
  }
}

@media (min-width: 993px) {
  /* Ensure only desktop sees pill */
}

/* ================= RESPONSIVE ================= */

/* Mobile Menu Styling */
.mobile-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  border-radius: 0 0 16px 16px;
}

.mobile-menu-container.show {
  display: flex;
}

.mobile-menu-container a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-container .header-cta {
  text-align: center;
  margin-top: 10px;
  display: block;
  width: 100%;
}