/* Shared navigation. Keep the 1100px breakpoint in sync with navigation.js. */
:root { --nav-h: 132px; }
#site-header {
  --nav-h: 132px;
  position: fixed;
  top: 0;
  height: var(--nav-h);
  background: linear-gradient(105deg, #211b3b 0%, #332b50 100%);
  border-bottom: 1px solid #e4ddff1c;
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .2s, box-shadow .2s;
}
#site-header.scrolled {
  top: 0;
  height: var(--nav-h);
  background: #211b3bf5;
  box-shadow: 0 5px 24px #0d092529;
}
#site-header .nav-inner {
  position: relative;
  max-width: 1280px;
  padding: 0 24px;
  gap: 28px;
}
#site-header .nav-logo img { width: auto; height: 86px; max-width: 200px; object-fit: contain; }
#site-header .nav-links {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  gap: 5px;
  padding: 0;
  border: 0;
  margin-left: auto;
  background: none;
  overflow: visible;
  max-height: none;
  transform: none;
  visibility: visible;
  backdrop-filter: none;
}
#site-header .nav-entry { display: flex; align-items: stretch; min-width: 0; }
#site-header .nav-dropdown { position: relative; }
#site-header .nav-dropdown-wide { position: static; }
#site-header .nav-top-link,
#site-header .nav-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 100%;
  padding: 12px 11px;
  border: 0;
  border-radius: 0;
  color: var(--hg-text);
  font: 700 15.5px/1.4 'Nunito Sans', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: color .15s;
}
#site-header .nav-summary::-webkit-details-marker { display: none; }
#site-header .nav-links a::after { display: none; }
#site-header .nav-top-link:hover,
#site-header .nav-top-link.active,
#site-header .nav-summary:hover,
#site-header .nav-summary.active,
#site-header .nav-dropdown[open] > .nav-summary { color: #c6b8ff; background: none; }
#site-header .nav-chevron { width: 10px; height: 10px; flex: 0 0 10px; transition: transform .18s; }
#site-header .nav-dropdown[open] .nav-chevron { transform: rotate(180deg); }
#site-header .nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  width: 258px;
  max-height: calc(100vh - var(--nav-h) - 20px);
  max-height: calc(100dvh - var(--nav-h) - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px 12px;
  border: 1px solid #e9e5f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 45px #0d09252b;
  color: #615b70;
}
#site-header .nav-dropdown:not([open]) > .nav-dropdown-panel { display: none; }
#site-header .nav-dropdown-panel li + li { border-top: 1px solid #f0edf4; }
#site-header .nav-dropdown-panel a {
  display: block;
  padding: 12px 9px;
  color: #645d70;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  white-space: normal;
  border-radius: 3px;
  transition: background .15s, color .15s;
}
#site-header .nav-dropdown-panel a:hover,
#site-header .nav-dropdown-panel a:focus-visible,
#site-header .nav-dropdown-panel a.active { color: #6b50ad; background: #f5f1fb; }
#site-header .nav-dropdown-panel a.nav-overview { color: #69518f; font-weight: 800; }
#site-header .nav-mega-panel {
  left: auto;
  right: 24px;
  width: min(970px, calc(100vw - 48px));
  padding: 24px 26px 0;
}
#site-header .nav-group-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
#site-header .nav-group-title { padding: 0 9px 13px; margin: 0; color: #312642; font-size: 13px; font-weight: 900; }
#site-header .nav-group a { padding-top: 10px; padding-bottom: 10px; }
#site-header .nav-mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 12px 0;
  border-top: 1px solid #eee9f4;
}
#site-header .nav-mega-footer a { color: #69518f; font-weight: 800; }
#site-header .nav-mega-footer a span { margin-left: 8px; }
#site-header :is(a, summary, button):focus-visible { outline: 2px solid #b7a1ef; outline-offset: -3px; }
#site-header .nav-toggle { display: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
body.navigation-open { overflow: hidden; }

/* ── Call us pill ───────────────────────────────────────────── */
#site-header .nav-call {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 0;
  padding: 8px 16px 8px 10px;
  border: 1px solid #c2b8ee40;
  border-radius: 999px;
  background: #ffffff0f;
  color: #fff;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
#site-header .nav-call:hover,
#site-header .nav-call:focus-visible {
  background: #ffffff1c;
  border-color: #c2b8ee80;
  transform: translateY(-1px);
}
#site-header .nav-call-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--hg-accent-grad, linear-gradient(135deg, #aaa5dd, #6f6aa6));
  color: #fff;
}
#site-header .nav-call-icon svg { width: 17px; height: 17px; }
#site-header .nav-call-text { display: flex; flex-direction: column; line-height: 1.25; }
#site-header .nav-call-label {
  color: #c6b8ff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
#site-header .nav-call-number { font-size: 14px; font-weight: 800; white-space: nowrap; }

/* ── Cart button ────────────────────────────────────────────── */
#site-header .nav-cart {
  order: 4;
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #c2b8ee40;
  border-radius: 50%;
  background: #ffffff0f;
  color: #fff;
  transition: background .2s, border-color .2s, transform .2s;
}
#site-header .nav-cart:hover,
#site-header .nav-cart:focus-visible { background: #ffffff1c; border-color: #c2b8ee80; transform: translateY(-1px); }
#site-header .nav-cart svg { width: 19px; height: 19px; }
#site-header .nav-cart-filled { border-color: #c2b8ee99; }
#site-header .nav-cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--hg-accent-grad, linear-gradient(135deg, #aaa5dd, #6f6aa6));
  color: #14102a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

/* Between the mega-menu breakpoint and full width the row is tight: tighten the
   menu and drop the pill label so the number itself still fits. */
@media (min-width: 1101px) and (max-width: 1380px) {
  #site-header .nav-inner { gap: 14px; }
  #site-header .nav-top-link,
  #site-header .nav-summary { padding: 12px 8px; font-size: 14.5px; }
  #site-header .nav-call { gap: 8px; padding: 6px 13px 6px 6px; }
  #site-header .nav-call-label { display: none; }
  #site-header .nav-call-number { font-size: 13.5px; }
}

@media (min-width: 1101px) and (max-width: 1190px) {
  #site-header .nav-call { padding: 6px; }
  #site-header .nav-call-text { display: none; }
}

@media (max-width: 1100px) {
  :root { --nav-h: 104px; }
  #site-header { --nav-h: 104px; }
  #site-header .nav-inner { padding: 0 20px; gap: 20px; }
  #site-header .nav-logo img { height: 70px; max-width: 175px; }
  #site-header .nav-toggle { display: flex; order: 4; margin-left: 0; }
  #site-header .nav-call { order: 2; margin-left: auto; min-height: 44px; padding: 5px; border-radius: 999px; }
  #site-header .nav-cart { order: 3; width: 40px; height: 40px; flex-basis: 40px; }
  #site-header .nav-call-text { display: none; }
  #site-header .nav-call-icon { width: 34px; height: 34px; flex-basis: 34px; }
  #site-header .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: auto;
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 24px;
    margin: 0;
    gap: 0;
    border-bottom: 1px solid #c2b8ee33;
    background: #211b3b;
    box-shadow: 0 20px 32px #100c2530;
  }
  #site-header .nav-links.open { display: flex; }
  #site-header .nav-entry { display: block; border-bottom: 1px solid #e4ddff12; }
  #site-header .nav-top-link,
  #site-header .nav-summary { justify-content: space-between; width: 100%; min-height: 48px; padding: 14px 8px; font-size: 15px; }
  #site-header .nav-dropdown-panel,
  #site-header .nav-mega-panel {
    position: static;
    width: 100%;
    max-height: none;
    margin: 0 0 14px;
    padding: 8px 14px;
    box-shadow: none;
  }
  #site-header .nav-dropdown-panel a { padding: 12px 9px; font-size: 14px; }
  #site-header .nav-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding: 16px 0 8px; }
  #site-header .nav-group-title { padding-bottom: 8px; }
  #site-header .nav-mega-footer { margin-top: 10px; gap: 8px; flex-wrap: wrap; }
  html:not(.nav-ready) #site-header .nav-toggle { display: none; }
  html:not(.nav-ready) #site-header { position: relative; height: auto; }
  html:not(.nav-ready) #site-header .nav-inner { flex-wrap: wrap; padding-top: 10px; gap: 0; }
  html:not(.nav-ready) #site-header .nav-links { display: flex; position: static; width: 100%; max-height: none; padding-left: 0; padding-right: 0; }
}

@media (max-width: 540px) {
  #site-header .nav-group-grid { grid-template-columns: 1fr; gap: 20px; }
  #site-header .nav-mega-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  #site-header, #site-header .nav-chevron, #site-header .nav-toggle span { transition: none; }
}
