/* Site header — templates/partials/header.html, static/js/nav.js (2026-09 redesign).
   Frosted-glass bar; mega panels drop from the bar; login popover; mobile drawer below 1100px. */

:root {
  --wh-nav-h: 76px;
  --wh-ink: #0b1a3a;
  --wh-ink-2: #3c4a66;
  --wh-muted: #6b7890;
  --wh-line: rgba(11, 26, 58, .08);
  --wh-brand: #231fff;
  --wh-grad: linear-gradient(117.69deg, #231fff -29.66%, #bf41eb 113.48%);
  --wh-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- bar ---- */
.wh-nav { position: sticky; top: 0; z-index: 1000; }
/* The frosted glass is a layer *behind* the bar, not on .wh-nav itself: a backdrop-filter on
   the header would make it the containing block for position:fixed children, and the mobile
   drawer would be sized to the 68px bar instead of the screen. */
.wh-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid var(--wh-line);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.wh-scrolled .wh-nav::before { box-shadow: 0 10px 30px rgba(11, 26, 58, .07); }
/* Home: see-through over the hero video until the page scrolls. */
body.wh-home .wh-nav::before { background: rgba(255, 255, 255, .38); border-bottom-color: rgba(255, 255, 255, .55); }
body.wh-home.wh-scrolled .wh-nav::before,
body.wh-home .wh-nav.is-open::before { background: rgba(255, 255, 255, .92); border-bottom-color: var(--wh-line); }

.wh-nav__bar { height: var(--wh-nav-h); display: flex; align-items: center; gap: 20px; }
.wh-nav__logo { display: flex; align-items: center; flex: none; margin-right: 8px; }
.wh-nav__logo img { height: 46px; width: auto; }

.wh-i { width: 18px; height: 18px; flex: none; }

/* ---- menu items ---- */
.wh-nav__menu { flex: 1; min-width: 0; }
.wh-nav__items { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.wh-nav__item { position: static; }
.wh-nav__trigger {
  display: inline-flex; align-items: center; gap: 4px;
  height: 42px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--wh-ink-2);
  font-family: AzoSansMedium, AzoSansRegular, sans-serif; font-size: 15.5px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.wh-nav__trigger:hover, .wh-nav__trigger[aria-expanded="true"] { color: var(--wh-ink); background: rgba(35, 31, 255, .06); }
.wh-nav__trigger[aria-expanded="true"] { color: var(--wh-brand); }
.wh-nav__trigger:focus-visible, .wh-nav__text-btn:focus-visible, .wh-nav__btn:focus-visible,
.wh-nav__icon-btn:focus-visible, .wh-nav__link:focus-visible, .wh-nav__burger:focus-visible {
  outline: 3px solid rgba(35, 31, 255, .35); outline-offset: 2px;
}
.wh-nav__chev { width: 16px; height: 16px; opacity: .6; transition: transform .25s var(--wh-ease); }
[aria-expanded="true"] > .wh-nav__chev { transform: rotate(180deg); opacity: 1; }

/* ---- mega panels ---- */
.wh-nav__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding-top: 10px;                           /* hover bridge between bar and sheet */
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .18s ease, transform .22s var(--wh-ease), visibility 0s linear .22s;
  pointer-events: none;
}
.wh-nav__panel.is-open {
  visibility: visible; opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .2s ease, transform .28s var(--wh-ease), visibility 0s;
}
.wh-nav__sheet {
  max-width: 1180px; margin: 0 auto; width: calc(100% - 32px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(11, 26, 58, .18), 0 0 0 1px rgba(11, 26, 58, .06);
  overflow: hidden;
}
.wh-nav__cols { display: flex; gap: 8px; padding: 26px; }
.wh-nav__col { flex: 1; min-width: 0; padding: 4px 8px; }
.wh-nav__col + .wh-nav__col { border-left: 1px solid var(--wh-line); padding-left: 22px; }
.wh-nav__col--modules { flex: 2.2; }
.wh-nav__col--countries { flex: 1.4; }
.wh-nav__col--rich { flex: 1.3; }
.wh-nav__eyebrow {
  margin: 0 0 12px; padding-left: 10px;
  font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--wh-muted); font-family: AzoSansMedium, AzoSansRegular, sans-serif;
}
.wh-nav__grid { display: grid; gap: 2px; }
.wh-nav__grid--modules { grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.wh-nav__grid--countries { grid-template-columns: 1fr 1fr; }

.wh-nav__link {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 12px;
  color: var(--wh-ink); text-decoration: none; font-size: 15px;
  transition: background-color .15s ease, color .15s ease;
}
.wh-nav__link:hover { background: #f4f5ff; color: var(--wh-brand); }
.wh-nav__link--rich { align-items: flex-start; padding: 10px; }
.wh-nav__ico {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  background: #f1f2fd; color: #4b3df0;
  transition: background .2s ease, color .2s ease, transform .2s var(--wh-ease);
}
.wh-nav__link--rich .wh-nav__ico { width: 40px; height: 40px; border-radius: 12px; }
.wh-nav__link--rich .wh-nav__ico .wh-i { width: 20px; height: 20px; }
.wh-nav__link:hover .wh-nav__ico { background: var(--wh-grad); color: #fff; transform: scale(1.05); }
.wh-nav__txt { display: flex; flex-direction: column; min-width: 0; }
.wh-nav__label { line-height: 1.3; }
.wh-nav__link--rich .wh-nav__label { font-family: AzoSansMedium, AzoSansRegular, sans-serif; }
.wh-nav__desc { font-size: 13px; line-height: 1.4; color: var(--wh-muted); margin-top: 2px; }
.wh-nav__code {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 22px; border-radius: 6px;
  background: #f1f2fd; color: #4b3df0;
  font-size: 11px; letter-spacing: .04em; font-family: AzoSansMedium, AzoSansRegular, sans-serif;
}
.wh-nav__link:hover .wh-nav__code { background: var(--wh-grad); color: #fff; }

/* feature cards */
.wh-nav__feature {
  flex: 1.05; min-width: 0; margin: -6px -6px -6px 12px; padding: 24px;
  border-radius: 16px; display: flex; flex-direction: column; gap: 10px;
}
.wh-nav__feature--demo {
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.22), transparent 55%),
    var(--wh-grad);
}
.wh-nav__feature--news, .wh-nav__feature--talk { background: linear-gradient(160deg, #f4f3ff, #fbf1ff); color: var(--wh-ink); }
.wh-nav__feature-tag {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.2); font-family: AzoSansMedium, AzoSansRegular, sans-serif;
}
.wh-nav__feature--news .wh-nav__feature-tag, .wh-nav__feature--talk .wh-nav__feature-tag { background: #fff; color: #4b3df0; }
.wh-nav__feature-title { margin: 0; font-family: EnzoBold, AzoSansBold, sans-serif; font-size: 22px; line-height: 1.2; }
.wh-nav__feature-text { margin: 0; font-size: 14px; line-height: 1.5; opacity: .85; }
.wh-nav__feature-btn {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: #fff; color: var(--wh-brand); text-decoration: none; font-size: 15px;
  font-family: AzoSansMedium, AzoSansRegular, sans-serif;
  box-shadow: 0 8px 20px rgba(11, 26, 58, .18);
  transition: transform .2s var(--wh-ease);
}
.wh-nav__feature-btn:hover { transform: translateY(-2px); color: var(--wh-brand); }
.wh-nav__feature-line { display: flex; align-items: center; gap: 10px; color: var(--wh-ink); text-decoration: none; font-size: 15px; }
.wh-nav__feature-line:hover { color: var(--wh-brand); }
.wh-nav__news-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--wh-muted); }
.wh-nav__news { display: flex; margin-top: auto; background: #fff; border-radius: 999px; padding: 5px; box-shadow: 0 0 0 1px var(--wh-line); }
.wh-nav__news input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 12px; font-size: 14.5px; }
.wh-nav__news button {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--wh-grad); color: #fff; cursor: pointer;
}
.wh-nav__news:focus-within { box-shadow: 0 0 0 2px rgba(35, 31, 255, .35); }

/* footer strip */
.wh-nav__foot {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 14px 34px; background: #f8f9fc; border-top: 1px solid var(--wh-line);
  font-size: 14px; color: var(--wh-muted);
}
.wh-nav__foot a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--wh-brand); text-decoration: none; font-family: AzoSansMedium, AzoSansRegular, sans-serif;
}
.wh-nav__foot a .wh-i { width: 16px; height: 16px; transition: transform .2s var(--wh-ease); }
.wh-nav__foot a:hover .wh-i { transform: translateX(3px); }

/* ---- actions ---- */
.wh-nav__actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; position: relative; }
.wh-nav__icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--wh-ink-2); text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.wh-nav__icon-btn:hover { background: rgba(35, 31, 255, .06); color: var(--wh-brand); }
.wh-nav__text-btn {
  height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--wh-ink); font-family: AzoSansMedium, AzoSansRegular, sans-serif; font-size: 15.5px; cursor: pointer;
}
.wh-nav__text-btn:hover, .wh-nav__text-btn[aria-expanded="true"] { background: rgba(35, 31, 255, .06); color: var(--wh-brand); }
.wh-nav__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font-family: AzoSansMedium, AzoSansRegular, sans-serif; font-size: 15px; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--wh-ease), box-shadow .25s ease, background-color .2s ease;
}
.wh-nav__btn .wh-i { width: 16px; height: 16px; transition: transform .2s var(--wh-ease); }
.wh-nav__btn:hover .wh-i { transform: translateX(3px); }
.wh-nav__btn--primary {
  color: #fff; background: var(--wh-grad);
  box-shadow: 0 8px 22px rgba(120, 60, 255, .32), inset 0 1px 0 rgba(255,255,255,.25);
}
.wh-nav__btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(120, 60, 255, .42), inset 0 1px 0 rgba(255,255,255,.25); }
.wh-nav__btn--glass {
  color: var(--wh-ink); background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1px rgba(11, 26, 58, .12);
}
.wh-nav__btn--glass:hover { color: var(--wh-brand); background: #fff; box-shadow: inset 0 0 0 1px rgba(35, 31, 255, .35); }

/* login popover: anchored to the right edge of the bar */
/* Positioned against .wh-nav__actions, so the popover lines up with the Sign up button's edge. */
.wh-nav__login { position: static; }
.wh-nav__panel--login { left: auto; right: 0; width: 380px; }
.wh-nav__panel--login .wh-nav__sheet { width: 100%; padding: 24px; }
.wh-login__title { margin: 0; font-family: EnzoBold, AzoSansBold, sans-serif; font-size: 22px; color: var(--wh-ink); }
.wh-login__sub { margin: 4px 0 16px; font-size: 14px; color: var(--wh-muted); }
.wh-login__field {
  display: flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 12px;
  background: #f6f7fb; box-shadow: inset 0 0 0 1px var(--wh-line);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.wh-login__field:focus-within { background: #fff; box-shadow: inset 0 0 0 2px rgba(35, 31, 255, .45); }
.wh-login__field input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent; font-size: 15.5px; color: var(--wh-ink); }
.wh-login__suffix { color: var(--wh-muted); font-size: 15px; }
.wh-login__go { width: 100%; margin-top: 12px; height: 48px; }
.wh-login__or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--wh-muted); font-size: 13px; }
.wh-login__or::before, .wh-login__or::after { content: ""; flex: 1; height: 1px; background: var(--wh-line); }
.wh-login__alt { display: grid; gap: 8px; }
.wh-login__sso {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 12px;
  color: var(--wh-ink); text-decoration: none; font-size: 14.5px; box-shadow: inset 0 0 0 1px rgba(11, 26, 58, .12);
  transition: background-color .15s ease;
}
.wh-login__sso:hover { background: #f6f7fb; color: var(--wh-ink); }

/* ---- burger + drawer (below 1100px) ---- */
.wh-nav__burger {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent;
  position: relative; cursor: pointer;
}
.wh-nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--wh-ink);
  transition: transform .3s var(--wh-ease), opacity .2s ease;
}
.wh-nav__burger span:nth-child(1) { top: 15px; }
.wh-nav__burger span:nth-child(2) { top: 21px; }
.wh-nav__burger span:nth-child(3) { top: 27px; }
.wh-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.wh-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wh-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.wh-drawer {
  position: fixed; left: 0; right: 0; top: var(--wh-nav-h); bottom: 0;
  display: flex; flex-direction: column;
  background: #fff;
  animation: wh-drawer-in .28s var(--wh-ease);
}
@keyframes wh-drawer-in { from { opacity: 0; transform: translateY(-8px); } }
.wh-drawer__scroll { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.wh-drawer__sec { border-bottom: 1px solid var(--wh-line); }
.wh-drawer__head, .wh-drawer__plain {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 18px 4px; border: 0; background: none; text-align: left;
  color: var(--wh-ink); font-family: EnzoBold, AzoSansBold, sans-serif; font-size: 20px; text-decoration: none;
}
.wh-drawer__plain { border-bottom: 1px solid var(--wh-line); }
.wh-drawer__head .wh-nav__chev { width: 20px; height: 20px; }
.wh-drawer__body { padding: 0 0 18px; }
.wh-drawer__body .wh-nav__eyebrow { margin: 14px 0 6px; padding-left: 4px; }
.wh-drawer__links { display: grid; }
.wh-drawer__links--2 { grid-template-columns: 1fr 1fr; }
.wh-drawer__links .wh-nav__link { padding: 9px 4px; }
.wh-drawer__more { display: inline-flex; align-items: center; gap: 6px; margin: 10px 4px 0; color: var(--wh-brand); text-decoration: none; }
.wh-drawer__more .wh-i { width: 16px; height: 16px; }
.wh-drawer__login { margin-top: 20px; padding: 20px; border-radius: 18px; background: #f7f7fc; }
.wh-drawer__login .wh-nav__eyebrow { padding-left: 0; }
.wh-drawer__login .wh-login__title { display: none; }
.wh-drawer__cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--wh-line); background: #fff;
}
.wh-drawer__cta .wh-nav__btn { height: 50px; }
.wh-drawer__call { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--wh-ink-2); text-decoration: none; font-size: 15px; }
body.wh-drawer-open { overflow: hidden; }

/* ---- local variant (regional landing pages, ADR-0013): office phone spelled out ---- */
.wh-nav__phone {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px;
  color: var(--wh-ink); font-family: AzoSansMedium, AzoSansRegular, sans-serif; font-size: 15.5px; white-space: nowrap;
  text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.wh-nav__phone .wh-i { width: 18px; height: 18px; color: var(--wh-brand); }
.wh-nav__phone:hover { background: rgba(35, 31, 255, .06); color: var(--wh-brand); }

/* ---- responsive ---- */
@media (max-width: 1279.98px) {
  .wh-nav__icon-btn { display: none; }
  .wh-nav__trigger { padding: 0 11px; }
}
@media (max-width: 1199.98px) {
  .wh-nav__actions .wh-nav__btn--glass { display: none; }
}
@media (max-width: 1099.98px) {
  :root { --wh-nav-h: 68px; }
  .wh-nav__phone { width: 42px; padding: 0; justify-content: center; }
  .wh-nav__phone span { display: none; }
  .wh-nav__menu, .wh-nav__login { display: none; }
  .wh-nav__burger { display: block; }
  .wh-nav__logo img { height: 40px; }
}
@media (max-width: 479.98px) {
  .wh-nav__bar { gap: 8px; }
  .wh-nav__phone { display: none; }
  .wh-nav__actions > .wh-nav__btn--primary { height: 40px; padding: 0 14px; font-size: 14px; }
  .wh-nav__actions > .wh-nav__btn--primary .wh-i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wh-nav__panel, .wh-nav__panel.is-open, .wh-drawer, .wh-nav__chev, .wh-nav__burger span { transition: none; animation: none; }
}
