/* ZINC Solutions mega menu for the static (Webflow-ported) pages, built by
   /js/nav-mega.js. Mirrors the React header's menu in
   src/components/site/site.css ("Solutions mega menu"); keep the two in
   step. Scoped to .navbar2_component.has-mega so nothing else changes. */

.navbar2_component.has-mega {
  --mm-ink: #161616;
  --mm-paper: #fff;
  --mm-orange: #ff5b19;
  --mm-gray: #f4f4f4;
  --mm-gray-hover: #ececec;
  --mm-line: rgba(22, 22, 22, 0.1);
  --mm-muted: rgba(22, 22, 22, 0.64);
  --mm-heading: rgba(22, 22, 22, 0.62);
}
/* Dark header (e.g. About): the panel follows the header, as the old
   dropdown list did. */
.navbar2_component.has-mega.is-dark {
  --mm-ink: #fff;
  --mm-paper: #161616;
  --mm-gray: rgba(255, 255, 255, 0.06);
  --mm-gray-hover: rgba(255, 255, 255, 0.1);
  --mm-line: rgba(255, 255, 255, 0.12);
  --mm-muted: rgba(255, 255, 255, 0.64);
  --mm-heading: rgba(255, 255, 255, 0.6);
}

/* ---------- toggle ---------- */
.has-mega .nav-dd { position: static; margin: 0; }
.has-mega .nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  padding: 0.5rem 0;
  margin: 0 1rem;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.has-mega .nav-dd-toggle:hover { color: var(--mm-orange); }
.has-mega .nav-dd-toggle::after { content: none; }
.has-mega .nav-dd-chevron { width: 1rem; height: 1rem; display: flex; align-items: center; justify-content: center; }
.has-mega .nav-dd-chevron svg { transition: transform 0.2s ease-out; }
.has-mega .nav-dd.open .nav-dd-chevron svg { transform: rotate(180deg); }

/* ---------- panel (desktop) ---------- */
.has-mega .nav-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  background-color: var(--mm-paper);
  color: var(--mm-ink);
  border-top: 1px solid var(--mm-line);
  border-bottom: 1px solid var(--mm-line);
  box-shadow: 0 28px 48px -32px rgba(22, 22, 22, 0.28);
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  pointer-events: none;
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s linear 140ms;
}
.has-mega .nav-dd.open .nav-mega {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1), transform 280ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-reduced-motion: reduce) {
  .has-mega .nav-mega, .has-mega .nav-dd.open .nav-mega { transform: none; }
}
@media screen and (min-width: 992px) {
  /* the panel positions against the full-width header, not the menu */
  .has-mega .navbar2_container, .has-mega .navbar2_menu { position: static; }
}
.has-mega .nav-mega__inner { padding: 2.25rem 5% 1.5rem; }
.has-mega .nav-mega__grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; }
.has-mega .nav-mega__col { padding: 0 2.25rem; min-width: 0; }
.has-mega .nav-mega__col:first-child { padding-left: 0; }
.has-mega .nav-mega__col:last-child { padding-right: 0; }
.has-mega .nav-mega__col + .nav-mega__col { border-left: 1px solid var(--mm-line); }
.has-mega .nav-mega__heading {
  margin: 0 0 1rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--mm-heading);
}
.has-mega .nav-mega__list { list-style: none; margin: 0; padding: 0; display: grid; row-gap: 0.125rem; }
/* reset the Webflow global li rule (check icon + indent) inside the menu */
.has-mega .nav-mega__list > li { margin: 0; padding: 0; background: none; }
.has-mega .nav-mega__list > li::before { content: none; }
.has-mega .nav-mega__link {
  display: block;
  margin: 0 -0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--mm-ink);
  text-decoration: none;
  transition: background-color 160ms ease-out;
}
.has-mega .nav-mega__label { display: flex; align-items: center; column-gap: 0.5rem; font-size: 1rem; font-weight: 500; line-height: 1.3; transition: color 160ms ease-out; }
.has-mega .nav-mega__desc { display: block; margin-top: 0.2rem; font-size: 0.8125rem; line-height: 1.4; color: var(--mm-muted); }
.has-mega .nav-mega__link.is-featured { margin-bottom: 0.5rem; padding: 0.875rem; background-color: var(--mm-gray); }
.has-mega .nav-mega__link.is-featured .nav-mega__label { font-weight: 600; }
.has-mega .nav-mega__badge {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--mm-orange);
  border: 1px solid var(--mm-orange);
  border-radius: 6.25rem;
  padding: 0.05rem 0.5rem;
  line-height: 1.3;
}
@media (hover: hover) {
  .has-mega .nav-mega__link:hover { background-color: var(--mm-gray); }
  .has-mega .nav-mega__link.is-featured:hover { background-color: var(--mm-gray-hover); }
  .has-mega .nav-mega__link:hover .nav-mega__label { color: var(--mm-orange); }
}
.has-mega .nav-mega__link:focus-visible { outline: 2px solid var(--mm-orange); outline-offset: 2px; }
.has-mega .nav-mega__foot {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mm-line);
  font-size: 0.875rem;
  color: var(--mm-muted);
}
.has-mega .nav-mega__foot p { margin: 0; font-size: inherit; }
.has-mega .nav-mega__cta { color: var(--mm-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; transition: color 160ms ease-out; }
.has-mega .nav-mega__cta:hover, .has-mega .nav-mega__cta:focus-visible { color: var(--mm-orange); }

/* ---------- Webflow mobile menu (tablet and below) ----------
   Matches the homepage sheet: top-aligned, left-aligned rows, scrolls
   inside itself below the header, and the page behind does not scroll. */
@media screen and (max-width: 991px) {
  .has-mega .w-nav-overlay .navbar2_menu {
    max-height: calc(100dvh - var(--mm-nav-h, 4rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: left;
    padding: 0.5rem 5% 2rem;
    border-top: 1px solid var(--mm-line);
  }
  html.nav-sheet-open { overflow: hidden; }
  .has-mega .nav-dd { width: 100%; align-items: stretch; font-size: inherit; border-bottom: 1px solid var(--mm-line); }
  .has-mega .nav-dd-toggle { width: 100%; justify-content: space-between; margin: 0; padding: 1.125rem 0; font-size: 1.375rem; font-weight: 500; }
  .has-mega .navbar2_menu .div-block-4 { flex-direction: column; align-items: stretch; row-gap: 0; column-gap: 0; }
  .has-mega .navbar2_menu .div-block-4 .navbar2_link {
    justify-content: flex-start;
    margin: 0;
    padding: 1.125rem 0;
    font-size: 1.375rem;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid var(--mm-line);
  }
  .has-mega .navbar2_menu .div-block-4 .navbar2_link::after { content: none; }
  .has-mega .navbar2_menu .button.is--mobile { width: 100%; height: 3.25rem; margin-top: 1.75rem; }
  .has-mega .nav-mega {
    display: none;
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: none;
    color: inherit;
    border: 0;
    box-shadow: none;
    transition: none;
  }
  .has-mega .nav-dd.open .nav-mega { display: block; }
  .has-mega .nav-mega__inner { padding: 0 0 1.5rem; }
  .has-mega .nav-mega__grid { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .has-mega .nav-mega__col, .has-mega .nav-mega__col:first-child, .has-mega .nav-mega__col:last-child { padding: 0; }
  .has-mega .nav-mega__col + .nav-mega__col { border-left: 0; }
  .has-mega .nav-mega__heading { margin-bottom: 0.25rem; }
  .has-mega .nav-mega__link { margin: 0; padding: 0.625rem 0; border-radius: 0; color: inherit; }
  .has-mega .nav-mega__label { font-size: 1.0625rem; }
  .has-mega .nav-mega__desc { display: none; }
  .has-mega .nav-mega__link.is-featured { margin: 0.25rem 0 0.5rem; padding: 0.875rem 1rem; border-radius: 0.5rem; }
  .has-mega .nav-mega__link.is-featured .nav-mega__desc { display: block; }
  .has-mega .nav-mega__foot { display: none; }
}
