/* =============================================================
   GSK Redesign — Nav Menu Complete CSS
   Paste at bottom of style.css, overwriting/replacing the
   existing STICKY NAV section (lines ~156-290)
   ============================================================= */

/* ── Nav bar container ── */
.gsk-nav {
  background: var(--sky);
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 52px;
  transition: box-shadow .3s;
}
.gsk-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.22); }

/* ── Nav links wrapper ── */
.gsk-nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
}

/* ── TOP LEVEL: the <ul> WP outputs ── */
.gsk-nav-links > ul,
#gsk-primary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  gap: 0;
}

/* ── TOP LEVEL: each <li> ── */
.gsk-nav-links > ul > li,
#gsk-primary-menu > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

/* ── TOP LEVEL: each <a> ── */
.gsk-nav-links > ul > li > a,
#gsk-primary-menu > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 13px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, color .15s;
  gap: 5px;
}

/* Active + hover states */
.gsk-nav-links > ul > li > a:hover,
#gsk-primary-menu > li > a:hover,
#gsk-primary-menu > li.current-menu-item > a,
#gsk-primary-menu > li.current-menu-ancestor > a,
#gsk-primary-menu > li.current-page-ancestor > a,
#gsk-primary-menu > li:hover > a {
  color: #fff;
  background: rgba(255,255,255,.18);
}

/* Caret arrow on items with children */
#gsk-primary-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,.65);
  margin-left: 5px;
  flex-shrink: 0;
  transition: transform .2s;
}
#gsk-primary-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* ════════════════════════════════════════════
   FIRST-LEVEL DROPDOWN  (.sub-menu)
   ════════════════════════════════════════════ */
#gsk-primary-menu > li > .sub-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border-top: 3px solid var(--sky);
  box-shadow: 0 10px 40px rgba(0,0,0,.14);
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* Show on hover */
#gsk-primary-menu > li:hover > .sub-menu,
#gsk-primary-menu > li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Dropdown items */
#gsk-primary-menu .sub-menu > li {
  display: block;
  position: relative;
}

#gsk-primary-menu .sub-menu > li > a {
  display: block;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s, padding-left .15s;
  line-height: 1.4;
}
#gsk-primary-menu .sub-menu > li:last-child > a {
  border-bottom: none;
}
#gsk-primary-menu .sub-menu > li > a:hover {
  background: var(--sky-pale);
  color: var(--sky2);
  padding-left: 26px;
}
#gsk-primary-menu .sub-menu > li.current-menu-item > a {
  color: var(--sky2);
  font-weight: 700;
  background: var(--sky-pale);
}

/* ── Left accent bar on hover ── */
#gsk-primary-menu .sub-menu > li > a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--sky);
  transition: width .15s;
}
#gsk-primary-menu .sub-menu > li > a:hover::before {
  width: 3px;
}

/* ── Right nav controls ── */
.gsk-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 16px;
}

.gsk-nav-search-btn {
  color: rgba(255,255,255,.85);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  transition: color .2s;
  white-space: nowrap;
  border-radius: 2px;
}
.gsk-nav-search-btn:hover { color: #fff; background: rgba(255,255,255,.12); }

.gsk-nav-donate-sticky {
  background: var(--crimson);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .3s, transform .3s, background .2s;
  white-space: nowrap;
}
.gsk-nav-donate-sticky.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.gsk-nav-donate-sticky:hover { background: var(--crim-dark); }

/* ── Hamburger ── */
.gsk-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 6px;
  cursor: pointer;
}
.gsk-nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
.gsk-nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gsk-nav-hamburger.open span:nth-child(2) { opacity: 0; }
.gsk-nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════
   MOBILE NAV
   ════════════════════════════════════════════ */
.gsk-mobile-nav {
  display: none;
  background: var(--sky2);
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s cubic-bezier(.4,0,.2,1);
}
.gsk-mobile-nav.open { max-height: 1000px; }

/* Top-level items */
.gsk-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gsk-mobile-nav > ul > li > a {
  display: block;
  padding: 13px 5%;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.12);
  text-decoration: none;
  transition: background .2s;
}
.gsk-mobile-nav > ul > li > a:hover { background: rgba(255,255,255,.1); }

/* Sub-items */
.gsk-mobile-nav .sub-menu {
  display: none;
  background: rgba(0,0,0,.15);
  list-style: none;
  margin: 0;
  padding: 0;
}
.gsk-mobile-nav .sub-menu.open { display: block; }
.gsk-mobile-nav .sub-menu li a {
  display: block;
  padding: 11px 5% 11px 8%;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.gsk-mobile-nav .sub-menu li a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* Mobile toggle arrow */
.gsk-mobile-nav > ul > li.menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gsk-mobile-nav > ul > li.menu-item-has-children > a::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
  opacity: .7;
  transition: transform .3s;
  flex-shrink: 0;
}
.gsk-mobile-nav > ul > li.menu-item-has-children.open > a::after {
  transform: rotate(45deg);
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .gsk-nav-links > ul > li > a,
  #gsk-primary-menu > li > a {
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  .gsk-nav-links { display: none; }
  .gsk-nav-hamburger { display: flex; }
  .gsk-mobile-nav { display: block; }
  .gsk-nav-donate-sticky { display: none; } /* hidden on mobile, use header button */
}
/* ── Fix overflow clipping dropdowns ── */
.gsk-nav {
    overflow: visible !important;
}

.gsk-nav-links {
    overflow: visible !important;
}

.gsk-nav-links > ul,
#gsk-primary-menu {
    overflow: visible !important;
}

#gsk-primary-menu > li {
    overflow: visible !important;
}