:root {
  /* Premium Navy + Parrot Green — Header Variables */
  --uj-green: #0A2E52;
  /* Primary Navy */
  --uj-green-2: #8ED21F;
  /* Parrot Green Accent */
  --uj-dark: #0A2342;
  /* Primary Text */
  --uj-text: #1A3A5C;
  /* Nav link text */
  --uj-muted: #4A5F73;
  /* Muted / secondary text */
  --uj-mint: #EAF8F1;
  /* Soft mint surface */
  --uj-border: rgba(10, 46, 82, 0.12);
  --uj-shadow: 0 18px 50px rgba(6, 30, 54, 0.10);
  --uj-header-height: 88px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(10, 46, 82, 0.10);
  box-shadow: 0 8px 24px rgba(6, 30, 54, 0.06);
}

.header-container {
  position: relative;
  width: min(100% - 40px, 1440px);
  min-height: var(--uj-header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2vw, 34px);
}

.logo-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  max-width: clamp(220px, 22vw, 300px);
}

.logo-link img {
  width: 100%;
  height: 100%;
  max-height: calc(var(--uj-header-height) - 16px);
  object-fit: contain;
  object-position: left center;
  display: block;
}

.desktop-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.4vw, 44px);
  min-width: 0;
}

.nav-link,
.nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #0A2E52;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible,
.nav-link.active {
  color: #84c71c;
}

.nav-link::after,
.nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0A2E52, #8ED21F);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-dropdown-trigger:hover::after {
  width: 100%;
}

.header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-btn:hover {
  transform: translateY(-2px);
}

/* AI Tools button — parrot green with navy text (WCAG AA) */
.header-btn-ai {
  color: #061E36 !important;
  background: linear-gradient(135deg, #8ED21F, #76B817);
  box-shadow: 0 14px 34px rgba(142, 210, 31, 0.28);
}

.header-btn-ai:hover {
  box-shadow: 0 18px 40px rgba(142, 210, 31, 0.38);
  color: #061E36 !important;
}

/* Outline button — navy text on white */
.header-btn-outline {
  color: #0A2E52 !important;
  background: #ffffff;
  border: 1.5px solid rgba(10, 46, 82, 0.18);
}

.header-btn-outline:hover {
  border-color: #0A2E52;
  background: #EAF8F1;
}

/* Primary CTA button — navy gradient with white text */
.header-btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0A2E52, #061E36);
  box-shadow: 0 14px 34px rgba(10, 46, 82, 0.22);
}

.header-btn-primary:hover {
  box-shadow: 0 18px 40px rgba(10, 46, 82, 0.32);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--uj-border);
  box-shadow: var(--uj-shadow);
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--uj-dark);
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
  background: var(--uj-mint);
}

.dropdown-link strong {
  font-size: 15px;
  font-weight: 800;
}

.dropdown-link span {
  font-size: 13px;
  color: var(--uj-muted);
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--uj-border);
  background: #ffffff;
  color: var(--uj-dark);
  cursor: pointer;
}

.mobile-menu-toggle span {
  position: relative;
  width: 22px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
  transition: 0.2s ease;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: 0.2s ease;
}

.mobile-menu-toggle span::before {
  top: -7px;
}

.mobile-menu-toggle span::after {
  top: 7px;
}

.mobile-menu-toggle.is-open span {
  background: transparent;
}

.mobile-menu-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(10, 46, 82, 0.08);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 60px rgba(6, 30, 54, 0.10);
}

.mobile-menu-inner {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
  padding: 18px 0 24px;
  display: grid;
  gap: 10px;
}

.mobile-nav-link,
.mobile-pricing-trigger {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-radius: 14px;
  color: #0A2342 !important;
  background: #ffffff;
  border: 1px solid rgba(10, 46, 82, 0.08);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.mobile-nav-link:hover,
.mobile-pricing-trigger:hover,
.mobile-nav-link.active {
  color: #0A7A5B !important;
  background: var(--uj-mint);
}

.mobile-pricing-panel {
  display: none;
  padding-left: 12px;
  gap: 8px;
}

.mobile-pricing-panel.is-open {
  display: grid;
}

.mobile-pricing-panel a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--uj-muted);
  background: #F6F9FC;
  text-decoration: none;
  font-weight: 700;
}

.mobile-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.mobile-actions .header-btn {
  width: 100%;
  min-height: 50px;
}

@media (max-width: 1280px) {
  .header-container {
    width: min(100% - 32px, 1180px);
    gap: 18px;
  }

  .desktop-nav {
    gap: 24px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-btn {
    padding-inline: 20px;
  }
}

@media (max-width: 1120px) {

  .header-btn-ai,
  .header-btn-outline {
    display: none !important;
  }

  .desktop-nav {
    gap: 22px;
  }
}

@media (max-width: 991px) {
  :root {
    --uj-header-height: 72px;
  }

  .header-container {
    min-height: var(--uj-header-height);
  }

  .logo-link {
    max-width: 170px;
  }

  .desktop-nav,
  .header-actions {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-menu.is-open {
    display: block;
  }
}

@media (max-width: 480px) {
  .header-container {
    width: min(100% - 24px, 100%);
  }

  .logo-link {
    max-width: 150px;
  }

  .mobile-menu-inner {
    width: min(100% - 24px, 100%);
  }

  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

@media (max-width: 360px) {
  .logo-link {
    max-width: 138px;
  }

  .header-container {
    width: min(100% - 20px, 100%);
  }
}