:root { --gh-h: 90px; }

.gh-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid #E4EAF2;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: box-shadow 250ms cubic-bezier(.16,1,.3,1), background-color 250ms cubic-bezier(.16,1,.3,1), backdrop-filter 250ms cubic-bezier(.16,1,.3,1);
}
.gh-header.gh-scrolled {
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 #E4EAF2, 0 12px 30px -20px rgba(8,24,47,.3);
}
.gh-inner {
  position: relative;
  max-width: 1340px; margin-inline: auto;
  padding-inline: clamp(20px, 3.5vw, 40px); height: var(--gh-h);
  display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 56px);
}
.gh-brand { display: inline-flex; align-items: center; flex-shrink: 0; padding-right: 8px; }
.gh-brand img { height: 40px; width: auto; object-fit: contain; display: block; }

/* ---------- primary nav + mega-menu ---------- */
.gh-nav { display: flex; align-items: center; gap: clamp(6px, 1vw, 14px); list-style: none; margin: 0; padding: 0; }
.gh-nav-item { position: static; }

.gh-nav-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 6px; font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.5;
  color: #0B1220; background: none; border: 0; cursor: pointer; border-radius: 8px;
  transition: color 220ms cubic-bezier(.16,1,.3,1), background-color 220ms cubic-bezier(.16,1,.3,1);
}
.gh-nav-trigger .gh-chev { width: 14px; height: 14px; transition: transform 260ms cubic-bezier(.16,1,.3,1); }
.gh-nav-item:hover .gh-nav-trigger,
.gh-nav-item.is-open .gh-nav-trigger { color: #2563EB; background: #F4F8FD; }
.gh-nav-item:hover .gh-nav-trigger .gh-chev,
.gh-nav-item.is-open .gh-nav-trigger .gh-chev { transform: rotate(180deg); }

.gh-mega {
  position: absolute; top: 100%; left: 50%; z-index: 120;
  transform: translateX(-50%) translateY(6px);
  margin-top: 8px;
  background: #fff; border: 1px solid #E4EAF2; border-radius: 20px;
  box-shadow: 0 30px 70px -24px rgba(8,24,47,.28), 0 4px 16px -6px rgba(8,24,47,.1);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 220ms cubic-bezier(.16,1,.3,1), transform 220ms cubic-bezier(.16,1,.3,1), visibility 0s linear 220ms;
}
.gh-nav-item:hover .gh-mega,
.gh-nav-item.is-open .gh-mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 220ms cubic-bezier(.16,1,.3,1), transform 220ms cubic-bezier(.16,1,.3,1), visibility 0s;
}

.gh-mega--wide { width: min(1040px, calc(100vw - 40px)); padding: 20px 0; }
.gh-mega--narrow { width: min(320px, calc(100vw - 40px)); padding: 16px 0; }

.gh-mega__head { padding: 0 24px 18px; border-bottom: 1px solid #E4EAF2; }
.gh-mega__kicker { font-family: "Bricolage Grotesque", "Inter", sans-serif; font-weight: 600; font-size: 1.02rem; color: #0B1220; letter-spacing: -0.01em; }
.gh-mega__blurb { margin-top: 4px; font-size: 0.86rem; color: #566579; }

.gh-mega--wide .gh-mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.gh-mega--narrow .gh-mega__grid { display: grid; gap: 0; }
.gh-mega__grid--closed { border-bottom: 1px solid #E4EAF2; }
.gh-mega__divider { grid-column: 1 / -1; height: 1px; background: #E4EAF2; }

.gh-mega__item {
  display: flex; align-items: flex-start; gap: 13px; padding: 14px 24px; border-radius: 0;
  border-right: 1px solid #E4EAF2;
  text-decoration: none; transition: background-color 200ms cubic-bezier(.16,1,.3,1);
}
.gh-mega__item:hover { background: #F4F8FD; }
.gh-mega__ic {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: #2563EB; border: 1px solid #E4EAF2;
  transition: transform 220ms cubic-bezier(.16,1,.3,1);
}
.gh-mega__item:hover .gh-mega__ic { transform: scale(1.08); }
.gh-mega__ic svg { width: 19px; height: 19px; }
.gh-mega__text { display: flex; flex-direction: column; gap: 2px; }
.gh-mega__text b { font-family: "Bricolage Grotesque", "Inter", sans-serif; font-weight: 600; font-size: 0.92rem; color: #0B1220; letter-spacing: -0.01em; }
.gh-mega__text span { font-size: 0.8rem; color: #566579; line-height: 1.4; }

.gh-mega__foot { padding: 16px 24px 0; border-top: 1px solid #E4EAF2; }
.gh-mega__all { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: #2563EB; text-decoration: none; }
.gh-mega__all svg { width: 14px; height: 14px; transition: transform 220ms cubic-bezier(.16,1,.3,1); }
.gh-mega__all:hover svg { transform: translateX(4px); }

.gh-actions { display: flex; align-items: center; gap: clamp(18px, 2vw, 26px); flex-shrink: 0; }
.gh-actions .gh-cta {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 9px;
  background: linear-gradient(120deg, #2563EB, #1557C0); color: #fff; font-size: 0.975rem; font-weight: 600;
  text-decoration: none; box-shadow: 0 10px 22px -12px rgba(37,99,235,.6);
  transition: transform 300ms cubic-bezier(.16,1,.3,1), box-shadow 300ms cubic-bezier(.16,1,.3,1);
}
.gh-actions .gh-cta svg { width: 15px; height: 15px; transition: transform 300ms cubic-bezier(.16,1,.3,1); }
.gh-actions .gh-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(37,99,235,.7); }
.gh-actions .gh-cta:hover svg { transform: translateX(4px); }

.gh-burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; background: none; border: 0; cursor: pointer; padding: 0; }
.gh-burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #0B1220; transition: transform 250ms cubic-bezier(.16,1,.3,1), opacity 250ms cubic-bezier(.16,1,.3,1); }
.gh-burger span:nth-child(1) { top: 15px; }
.gh-burger span:nth-child(2) { top: 21px; }
.gh-burger span:nth-child(3) { top: 27px; }
.gh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.gh-mobile-menu {
  position: fixed; inset: var(--gh-h) 0 0; z-index: 99; background: #fff;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-12px); visibility: hidden;
  transition: opacity 320ms cubic-bezier(.16,1,.3,1), transform 320ms cubic-bezier(.16,1,.3,1), visibility 0s linear 320ms;
  list-style: none; margin: 0; overflow: hidden;
}
.gh-mobile-menu.gh-open {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 320ms cubic-bezier(.16,1,.3,1), transform 320ms cubic-bezier(.16,1,.3,1), visibility 0s;
}
.gh-m-list { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }

/* accordion — each top-level item expands to reveal its sub-links */
.gh-m-acc { border-bottom: 1px solid #E4EAF2; }
.gh-m-acc--link {
  display: block; text-decoration: none;
  font-family: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(1rem, 5vw, 1.9rem); color: #0B1220; padding: 15px;
}
.gh-m-acc__btn {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(1rem, 5vw, 1.9rem); color: #0B1220; padding: 15px;
}
.gh-m-acc__btn:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; border-radius: 8px; }
.gh-m-acc__btn .gh-chev { width: 20px; height: 20px; flex-shrink: 0; transition: transform 320ms cubic-bezier(.16,1,.3,1); }
.gh-m-acc.is-open .gh-m-acc__btn .gh-chev { transform: rotate(180deg); }
.gh-m-acc__panel { height: 0; overflow: hidden; transition: height 320ms cubic-bezier(.16,1,.3,1); }
.gh-m-acc__inner { display: grid; gap: 2px; padding: 2px 0 18px; }
.gh-m-acc__inner > a { opacity: 0; transform: translateY(-6px); transition: opacity 260ms cubic-bezier(.16,1,.3,1), transform 260ms cubic-bezier(.16,1,.3,1); }
.gh-m-acc.is-open .gh-m-acc__inner > a { opacity: 1; transform: none; }
.gh-m-acc.is-open .gh-m-acc__inner > a:nth-child(2) { transition-delay: 40ms; }
.gh-m-acc.is-open .gh-m-acc__inner > a:nth-child(3) { transition-delay: 80ms; }
.gh-m-acc.is-open .gh-m-acc__inner > a:nth-child(4) { transition-delay: 120ms; }
.gh-m-acc.is-open .gh-m-acc__inner > a:nth-child(5) { transition-delay: 160ms; }
.gh-m-acc.is-open .gh-m-acc__inner > a:nth-child(6) { transition-delay: 200ms; }
.gh-m-acc.is-open .gh-m-acc__inner > a:nth-child(7) { transition-delay: 240ms; }
.gh-m-acc__panel a {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px;
  text-decoration: none;
  font-family: "Inter", sans-serif; text-transform: none; letter-spacing: normal;
  font-weight: 500; font-size: 1rem; color: #333f52;
  transition: background-color 200ms cubic-bezier(.16,1,.3,1), color 200ms cubic-bezier(.16,1,.3,1);
  border-top: 1px solid #E4EAF2;
}
.gh-m-acc__panel a:hover, .gh-m-acc__panel a:active { background: #F4F8FD; color: #2563EB; }
.gh-m-acc__ic {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: #2563EB;
}
.gh-m-acc__ic svg { width: 17px; height: 17px; }

.gh-m-actions { flex-shrink: 0; padding: 18px; display: grid; gap: 12px; }
.gh-m-actions a {
  font-family: "Inter", sans-serif; text-transform: none; letter-spacing: normal; font-size: 0.95rem; font-weight: 600;
  border-bottom: none; padding: 15px 24px; border-radius: 9px; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
}
.gh-m-primary { background: linear-gradient(120deg, #2563EB, #1557C0); color: #fff; }
.gh-m-actions svg { width: 16px; height: 16px; }

@media (max-width: 1080px) {
  .gh-nav { display: none; }
  .gh-actions { display: none; }
  .gh-burger { display: block; }
}
@media (max-width: 760px) {
  :root { --gh-h: 72px; }
}
@media (max-width: 560px) {
  .gh-brand img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .gh-mega, .gh-nav-trigger .gh-chev, .gh-m-acc__btn .gh-chev, .gh-m-acc__inner > a, .gh-mega__ic, .gh-mega__all svg {
    transition: none !important;
  }
}
