/* ============================================================
   WA UTILITY, HEADER
   Thin white bar, uppercase tool nav, wordmark with heart.
   ============================================================ */

.wa-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 58px;
  background: #ffffff;
  border-bottom: 1px solid #ECEEF2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container, 1370px);
  margin: 0 auto;
  padding: 0 28px;
  gap: 24px;
  position: relative;
}

/* Logo: bold wordmark with a green heart */
.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-type {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.4px;
  color: #1B1F27;
  line-height: 1;
}
.logo-heart {
  width: 19px;
  height: 19px;
  fill: #10B981;
  margin: 0 1px;
  display: inline-block;
}

/* Center nav: small uppercase bold links */
.wa-nav-inner nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  text-decoration: none;
  color: #33333B;
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: color 120ms ease;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-links a:hover { color: #10B981; }

/* Mega menu trigger: styled like a nav link, rendered as a real button */
.nav-links .has-mega { display: flex; }
.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  color: #33333B;
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: color 120ms ease;
}
.mega-trigger:hover,
.mega-trigger[aria-expanded="true"] { color: #10B981; }
.mega-trigger:focus-visible { outline: 2px solid #0B7D5A; outline-offset: 3px; border-radius: 3px; }
.mega-trigger svg { width: 13px; height: 13px; transition: transform 160ms ease; }
.mega-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ============================================================
   MEGA PANEL
   Full-width white sheet under the 58px bar, 1370px inner rail,
   four columns plus a slim strip for the smaller hubs.
   ============================================================ */
.mega-panel {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #ECEEF2;
  border-bottom: 1px solid #E6EBE8;
  box-shadow: 0 28px 44px -26px rgba(20, 24, 31, 0.20);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
  z-index: 1080;
}
.mega-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-rail {
  max-width: var(--container, 1370px);
  margin: 0 auto;
  padding: 30px 28px 26px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.mega-label {
  display: block;
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #1B1F27;
  text-decoration: none;
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px solid #EFF2F0;
  transition: color 120ms ease;
}
a.mega-label:hover { color: #10B981; }

.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { list-style: none; }
.mega-col ul a {
  display: block;
  padding: 5px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: -0.1px;
  color: #5F6470;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 110ms ease;
}
.mega-col ul a:hover { color: #10B981; }

.mega-viewalls { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.mega-viewall {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: #0B7D5A;
  text-decoration: none;
  transition: color 120ms ease;
}
.mega-viewall:hover { color: #10B981; }
.mega-viewall span { font-size: 13px; line-height: 1; }

/* Slim strip for the lower-priority hubs */
.mega-strip { border-top: 1px solid #EFF2F0; background: #FAFBFA; }
.mega-strip-inner {
  max-width: var(--container, 1370px);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.mega-strip-kicker {
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9AA0AA;
}
.mega-strip-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #5F6470;
  text-decoration: none;
  transition: color 120ms ease;
}
.mega-strip-inner a:hover { color: #10B981; }
.mega-strip-count {
  font-size: 10.5px;
  font-weight: 800;
  color: #8A8F99;
  background: #EFF2F0;
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.2;
}
.mega-strip-inner a:hover .mega-strip-count { color: #0B7D5A; background: #E3F4ED; }
.mega-strip-all { margin-left: auto; color: #0B7D5A !important; }
.mega-strip-all span { font-size: 13px; text-transform: none; }

/* Right controls: search + text link + solid button + apps grid */
.header-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Header search */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  background: #F2F4F7;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 150ms ease, border-color 150ms ease, width 180ms ease;
  width: 190px;
}
.nav-search:focus-within { background: #fff; border-color: #10B981; width: 240px; }
.nav-search svg { width: 16px; height: 16px; color: #7A828E; flex-shrink: 0; }
.nav-search input {
  border: none; background: none; outline: none; width: 100%;
  font-family: 'Mulish', 'Inter', sans-serif; font-size: 13.5px; color: #1B1F27;
}
.nav-search input::placeholder { color: #8A8F99; }
.nav-plain {
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #33333B;
  text-decoration: none;
  transition: color 120ms ease;
}
.nav-plain:hover { color: #10B981; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  background: #0B7D5A;
  color: #ffffff;
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease;
}
.nav-cta:hover { background: #096647; }
.nav-cta:active { background: #07523A; }
.nav-cta:focus-visible { outline: 2px solid #0B7D5A; outline-offset: 2px; }
.nav-apps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #5F6470;
  transition: color 120ms ease, background 120ms ease;
}
.nav-apps svg { width: 18px; height: 18px; }
.nav-apps:hover { color: #1B1F27; background: #F2F4F7; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1B1F27;
  border-radius: 2px;
  transition: 0.22s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile dropdown */
.mobile-dropdown {
  display: none;
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #ECEEF2;
  box-shadow: 0 12px 24px -12px rgba(20, 24, 31, 0.12);
  z-index: 1090;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  max-height: calc(100vh - 58px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-dropdown.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-dropdown ul { list-style: none; margin: 0; padding: 0; }
.mobile-dropdown li { list-style: none; border-bottom: 1px solid #F2F4F7; }
.mobile-dropdown li:last-child { border-bottom: none; }
.mobile-dropdown a {
  display: block;
  text-decoration: none;
  color: #1B1F27;
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  transition: color 120ms ease, background 120ms ease;
}
.mobile-dropdown a:hover { background: #F7F8FA; color: #10B981; }

/* Mobile drawer: category accordions */
.mobile-dropdown .m-top a { padding: 12px 15px; }
.m-cats { border-top: 1px solid #ECEEF2; }
.m-acc { border-bottom: 1px solid #F2F4F7; }
.m-acc:last-child { border-bottom: none; }
.m-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 12px 15px;
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #1B1F27;
  transition: color 120ms ease;
}
.m-acc-trigger:hover { color: #10B981; }
.m-acc-trigger .m-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  color: #8A8F99;
  background: #F2F4F7;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.3;
}
.m-acc-trigger svg { width: 14px; height: 14px; flex-shrink: 0; color: #8A8F99; transition: transform 160ms ease; }
.m-acc-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.m-acc-panel { display: none; background: #FAFBFA; border-top: 1px solid #F2F4F7; padding: 4px 0 6px; }
.m-acc-panel.open { display: block; }
.m-acc-panel li { border-bottom: none; }
.mobile-dropdown .m-acc-panel a {
  padding: 9px 15px 9px 26px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  color: #5F6470;
}
.mobile-dropdown .m-acc-panel a:hover { background: #F2F5F3; color: #10B981; }
.mobile-dropdown .m-acc-panel .m-viewall {
  font-family: 'Mulish', 'Inter', sans-serif;
  font-weight: 700;
  color: #0B7D5A;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1080px) {
  .wa-nav-inner nav { display: none; }
  .nav-search { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .wa-nav-inner { gap: 16px; }
  .mega-panel { display: none; }
}
@media (max-width: 560px) {
  .header-btns .nav-plain, .header-btns .nav-apps { display: none; }
  .wa-nav-inner { padding: 0 15px; }
}

/* Uploaded custom logo (Appearance > Customize > Logo). Sized to the 58px bar. */
.logo-area .logo-img { display: block; height: 46px; width: auto; max-width: 230px; object-fit: contain; }
@media (max-width: 560px) { .logo-area .logo-img { height: 40px; max-width: 190px; } }