/* Enviro Stock header nav (enviro-nav.php, 17 Nov 2026): the "Floating card" concept from
   website-rebuild\mockups\menu\menu-mockups.html. Loaded only when the new nav is on for the request.
   Desktop is 1024 and up, mobile 1023 and below, as the old WpMenu. The top level keeps the old menu's
   type, spacing, hover and current tab; the dropdown card and the mobile drill-down are new. */

body.es-snav-on .es-nav .bde-wp-menu { display: none; }

.es-snav {
  --es-snav-line: #e7e2ee;
  --es-snav-muted: #6b6478;
  --es-snav-hover: #f4f1f8;
  --es-snav-ease: cubic-bezier(.2, .8, .2, 1);
  display: flex;
  align-items: center;
  font-family: var(--es-font);
}
.es-snav ul { margin: 0px; padding: 0px; list-style: none; }
.es-snav a { text-decoration: none; }
.es-snav button {
  margin: 0px;
  padding: 0px;
  font: inherit;
  color: inherit;
  text-transform: none;
  background: none;
  border: 0px;
  border-radius: 0px;
  box-shadow: none;
  cursor: pointer;
}
.es-snav .es-snav-svg { display: block; flex: none; width: 20px; height: 20px; }

/* ===== Top level (old WpMenu values: 18.8px / 500, purple, light blue hover, spacing eases from 1460 to 1120) */
.es-snav .es-snav-bar { display: flex; align-items: center; }
.es-snav .es-snav-top {
  position: relative;
  isolation: isolate;
  margin: 0px clamp(0px, calc((100vw - 1120px) / 21.25), 1rem);
}
.es-snav .es-snav-t {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0px clamp(8px, calc((100vw - 1120px) / 42.5 + 8px), 16px);
  font-family: var(--es-font);
  font-size: 1.175rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.1px;
  color: var(--es-purple);
  white-space: nowrap;
  transition: color .15s;
}
.es-snav .es-snav-t:hover,
.es-snav .es-snav-t[aria-expanded="true"] { color: var(--es-blue); }
/* 12.8px with the 5px gap, as the old WpMenu chevron, so the bar is no wider than before (it still overflows 1024 to 1100 on both). */
.es-snav .es-snav-t .es-snav-chev { width: 12.8px; height: 12.8px; stroke-width: 2.75; transition: transform .2s; }
.es-snav .es-snav-t[aria-expanded="true"] .es-snav-chev { transform: rotate(180deg); }
/* Current item or ancestor: the old menu's pulled-corner tab in pale blue. */
.es-snav .es-snav-top.is-current::before {
  content: "";
  position: absolute;
  top: calc(50% - 12px);
  left: -28px;
  right: -28px;
  z-index: -1;
  height: 24px;
  background-color: var(--es-pale);
  clip-path: polygon(0% 0%, calc(100% - 28px) 0%, 100% 100%, 28px 100%);
}

/* ===== Card: one white card that morphs in size and position between dropdowns (nav.js sets its box) */
.es-snav .es-snav-drop {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1002;
  width: 0px;
  height: 0px;
  perspective: 2000px;
  pointer-events: none;
}
.es-snav .es-snav-card {
  position: absolute;
  top: 0px;
  left: 0px;
  overflow: hidden;
  background-color: var(--es-white);
  border-radius: 14px;
  box-shadow: 0 30px 60px -12px rgba(39, 3, 66, .25), 0 18px 36px -18px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transform-origin: 50% -50px;
  transform: rotateX(-12deg) scale(.96);
  transition: opacity .2s, transform .25s, visibility 0s .25s, width .3s var(--es-snav-ease), height .3s var(--es-snav-ease), left .3s var(--es-snav-ease);
}
.es-snav .es-snav-drop.is-open { pointer-events: auto; }
.es-snav .es-snav-drop.is-open .es-snav-card {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s, transform .25s, visibility 0s, width .3s var(--es-snav-ease), height .3s var(--es-snav-ease), left .3s var(--es-snav-ease);
}
/* First open: no morph from the last position. */
.es-snav .es-snav-drop.is-fresh .es-snav-card { transition: opacity .2s, transform .25s, visibility 0s; }
.es-snav .es-snav-caret {
  position: absolute;
  top: -6px;
  left: 0px;
  z-index: 2;
  width: 14px;
  height: 14px;
  background-color: var(--es-white);
  border-radius: 3px 0px 0px 0px;
  transform: rotate(45deg);
  opacity: 0;
  transition: left .3s var(--es-snav-ease), opacity .2s;
}
.es-snav .es-snav-drop.is-open .es-snav-caret { opacity: 1; }
.es-snav .es-snav-drop.is-fresh .es-snav-caret { transition: opacity .2s; }

.es-snav .es-snav-p {
  position: absolute;
  top: 0px;
  left: 0px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .3s, visibility 0s .3s;
}
.es-snav .es-snav-p.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity .2s, transform .3s, visibility 0s;
}
.es-snav .es-snav-p.from-l { transform: translateX(-40px); }
.es-snav .es-snav-p.from-r { transform: translateX(40px); }
/* The incoming panel keeps its from-l or from-r class while it slides in, so is-on has to outrank both. */
.es-snav .es-snav-p.is-on.from-l,
.es-snav .es-snav-p.is-on.from-r { transform: none; }
.es-snav .es-snav-body { padding: 22px; }
.es-snav .es-snav-list { display: flex; flex-direction: column; width: 276px; }
.es-snav .es-snav-grid { display: grid; grid-template-columns: repeat(3, 250px); gap: 2px 8px; }
/* Grouped panels (Asset Categories): groups flow into balanced columns with a rule between them. */
.es-snav .es-snav-groups {
  width: calc(var(--es-snav-cols, 3) * 287px - 25px);
  columns: var(--es-snav-cols, 3);
  column-gap: 24px;
  column-rule: 1px solid var(--es-snav-line);
}
.es-snav .es-snav-grp { padding-bottom: 10px; break-inside: avoid; }
.es-snav .es-snav-grp-h {
  margin: 0px 0px 8px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--es-snav-muted);
}

/* Links: icon tile, label, one-line description. */
.es-snav .es-snav-it {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  color: var(--es-purple);
  border-radius: 10px;
  transition: background-color .15s;
}
.es-snav .es-snav-it:hover,
.es-snav .es-snav-it:focus-visible { background-color: var(--es-snav-hover); }
.es-snav .es-snav-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--es-purple);
  background-color: var(--es-pale);
  border-radius: 10px;
  transition: background-color .15s, color .15s;
}
.es-snav .es-snav-it:hover .es-snav-ico,
.es-snav .es-snav-it:focus-visible .es-snav-ico { color: var(--es-white); background-color: var(--es-purple); }
.es-snav .es-snav-tx { display: block; min-width: 0px; }
.es-snav .es-snav-l {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.es-snav .es-snav-d {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--es-snav-muted);
}
.es-snav .es-snav-tag {
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--es-snav-muted);
  background-color: #f1eef5;
  border-radius: 99px;
}
/* A link's own children (Office Assets): an indented list under it, so there is no third-level fly-out. */
.es-snav .es-snav-sub { margin: 2px 0px 6px 62px; border-left: 2px solid var(--es-pale); }
.es-snav .es-snav-sub a {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  color: #4a4157;
  border-radius: 6px;
}
.es-snav .es-snav-sub .es-snav-l { font-size: 13px; font-weight: 500; }
.es-snav .es-snav-sub a:hover,
.es-snav .es-snav-sub a:focus-visible { color: var(--es-green); background-color: var(--es-snav-hover); }

/* Footer strip: the top-level item's description on the left, its es-nav-foot links on the right. */
.es-snav .es-snav-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--es-snav-muted);
  background-color: #f7f5fa;
  border-top: 1px solid var(--es-snav-line);
}
.es-snav .es-snav-more {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--es-purple);
}
.es-snav .es-snav-more .es-snav-svg { width: 16px; height: 16px; transition: transform .15s; }
.es-snav .es-snav-more:hover { color: var(--es-green); }
.es-snav .es-snav-more:hover .es-snav-svg { transform: translateX(3px); }

.es-snav .es-snav-scrim {
  position: fixed;
  top: var(--es-snav-top, 0px);
  right: 0px;
  bottom: 0px;
  left: 0px;
  z-index: 999;
  background-color: rgba(39, 3, 66, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.es-snav .es-snav-scrim.is-on { opacity: 1; }

/* ===== Mobile: burger, then a full screen drill-down with Call and Basket pinned at the bottom */
.es-snav .es-snav-burger { display: none; }
.es-snav .es-snav-m[hidden] { display: none; }

@media (min-width: 1024px) {
  .es-snav .es-snav-m { display: none; }
}

@media (max-width: 1023px) {
  .es-snav .es-snav-desk,
  .es-snav .es-snav-drop,
  .es-snav .es-snav-scrim { display: none; }
  /* The old WpMenu burger: three 30x4 purple bars 6px apart, 15px padding (35 and 7 at 479). */
  .es-snav .es-snav-burger { display: block; padding: 15px; }
  .es-snav .es-snav-burger span,
  .es-snav .es-snav-burger span::before,
  .es-snav .es-snav-burger span::after {
    display: block;
    width: 30px;
    height: 4px;
    background-color: var(--es-purple);
    border-radius: 2px;
  }
  .es-snav .es-snav-burger span { position: relative; margin: 10px 0px; }
  .es-snav .es-snav-burger span::before,
  .es-snav .es-snav-burger span::after { content: ""; position: absolute; left: 0px; }
  .es-snav .es-snav-burger span::before { top: -10px; }
  .es-snav .es-snav-burger span::after { top: 10px; }

  .es-snav .es-snav-m {
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0px);
    right: 0px;
    bottom: 0px;
    left: 0px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    color: var(--es-purple);
    background-color: var(--es-white);
  }
  .es-snav .es-snav-m-top {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0px 18px;
    border-bottom: 1px solid var(--es-snav-line);
  }
  .es-snav .es-snav-m-top img { display: block; width: auto; height: 40px; }
  .es-snav .es-snav-m-close { padding: 6px; color: var(--es-purple); }
  .es-snav .es-snav-m-close .es-snav-svg { width: 26px; height: 26px; }
  .es-snav .es-snav-m-views { position: relative; flex: 1; overflow: hidden; }
  .es-snav .es-snav-v {
    position: absolute;
    inset: 0px;
    overflow: auto;
    padding: 8px 16px 24px;
    background-color: var(--es-white);
    transition: transform .28s var(--es-snav-ease), visibility 0s .28s;
    visibility: hidden;
  }
  .es-snav .es-snav-v.is-in { transform: none; visibility: visible; transition: transform .28s var(--es-snav-ease), visibility 0s; }
  .es-snav .es-snav-v.is-right { transform: translateX(100%); }
  .es-snav .es-snav-v.is-left { transform: translateX(-30%); }
  .es-snav .es-snav-m-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--es-green);
  }
  .es-snav .es-snav-m-back .es-snav-svg { width: 18px; height: 18px; }
  .es-snav .es-snav-m-h { margin: 4px 4px 12px; font-size: 22px; font-weight: 700; line-height: 1.3; }
  .es-snav .es-snav-m-grp {
    margin: 18px 6px 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--es-snav-muted);
  }
  .es-snav .es-snav-m-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    color: var(--es-purple);
    border-bottom: 1px solid #f0edf4;
  }
  .es-snav .es-snav-m-row .es-snav-l { flex: 1; justify-content: space-between; font-size: 16px; font-weight: 500; }
  .es-snav .es-snav-m-row.is-current { color: var(--es-green); }
  .es-snav .es-snav-m-row .es-snav-ico { width: 36px; height: 36px; }
  .es-snav .es-snav-m-row .es-snav-chev { color: var(--es-snav-muted); }
  .es-snav .es-snav-m-all {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 6px 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--es-green);
  }
  .es-snav .es-snav-m-all .es-snav-svg { width: 18px; height: 18px; }
  .es-snav .es-snav-m-all--top { margin: 0px 6px 8px; }
  .es-snav .es-snav-m-cta {
    display: grid;
    flex: none;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--es-snav-line);
  }
  .es-snav .es-snav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--es-white);
    background-color: var(--es-green);
    border: 1.5px solid var(--es-green);
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, .18);
  }
  .es-snav .es-snav-btn .es-snav-svg { width: 16px; height: 16px; }
  .es-snav .es-snav-btn--ghost { color: var(--es-purple); background-color: var(--es-white); border-color: var(--es-purple); box-shadow: none; }
  html.es-snav-locked,
  html.es-snav-locked body { overflow: hidden; }
}

@media (max-width: 479px) {
  .es-snav .es-snav-burger span,
  .es-snav .es-snav-burger span::before,
  .es-snav .es-snav-burger span::after { width: 35px; }
  .es-snav .es-snav-burger span { margin: 11px 0px; }
  .es-snav .es-snav-burger span::before { top: -11px; }
  .es-snav .es-snav-burger span::after { top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .es-snav *,
  .es-snav *::before,
  .es-snav *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}
