/* ==========================================================
   VEDAAY SKILLS — Header / Navigation
   Ported from main_vedaay_site.html (#siteHeader)
   ========================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

/* Pages without the dark hero behind the header always use the solid treatment. */
body:not(.home) .site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ===== BRAND / LOGO ===== */
.brand {
  flex-shrink: 0;
}
.brand img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}
.site-header.scrolled .brand img,
body:not(.home) .brand img {
  filter: none;
}
.brand .brand-text {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
}
.site-header.scrolled .brand .brand-text,
body:not(.home) .brand .brand-text {
  color: var(--navy);
}

/* ===== DESKTOP NAV =====
   Covers both the bare-anchor fallback and the ul/li markup wp_nav_menu prints. */
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links ul {
  display: flex;
  gap: 26px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  font-size: 13.8px;
  font-weight: 600;
  color: var(--white);
  opacity: 0.9;
  transition: 0.2s;
}
.site-header.scrolled .nav-links a,
body:not(.home) .nav-links a {
  color: var(--navy);
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  opacity: 1;
  color: var(--orange);
}

/* Dropdowns */
.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  flex-direction: column;
  gap: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 18px 36px rgba(0, 39, 96, 0.12);
}
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu {
  display: flex;
}
.nav-links .sub-menu li {
  width: 100%;
}
.nav-links .sub-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--navy) !important;
  opacity: 1;
  font-size: 13.5px;
}
.nav-links .sub-menu a:hover {
  color: var(--orange) !important;
  background: var(--lightgray);
}

/* ===== HEADER CTA ===== */
.nav-ctas {
  display: flex;
  gap: 10px;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.25s;
}
.site-header.scrolled .hamburger span,
body:not(.home) .hamburger span {
  background: var(--navy);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 560px;
  overflow-y: auto;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu a {
  display: block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .sub-menu a {
  padding-left: 48px;
  font-size: 14px;
  color: var(--muted);
}
.mobile-menu .mm-ctas {
  display: flex;
  gap: 10px;
  padding: 16px 32px;
}
.mobile-menu .mm-ctas .btn-orange {
  flex: 1;
}
