/* Services mega menu. Markup comes from scripts/mega-menu.js. */

/* The nav is masked to fade out at its bottom edge, which would hide anything
   hanging below it, so mega.js moves the panel to <body> and places it under
   the link group, right-aligned with the nav. */
.mm-trigger { display: inline-flex; align-items: center; gap: 6px; }
.mm-chev { width: 14px; height: 14px; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.mm.is-open .mm-trigger { color: #fff; background: rgba(255,255,255,.06); }
.mm.is-open .mm-chev { transform: rotate(180deg); }

.mm-panel {
  position: fixed; top: var(--mm-top, 88px); right: var(--mm-right, 24px); width: min(980px, calc(100vw - 48px));
  padding: 14px; border-radius: 28px;
  background: rgba(12, 10, 18, .94);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(246,0,254,.05), 0 30px 120px -60px #F600FE;
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.985); transform-origin: top right;
  transition: opacity .25s ease, transform .4s cubic-bezier(.22,1,.36,1), visibility 0s linear .4s;
  z-index: 60;
}
/* An invisible bridge so the pointer can travel from the link to the panel. */
.mm-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.mm-panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .4s cubic-bezier(.22,1,.36,1), visibility 0s; }

.mm-body { display: grid; grid-template-columns: 1fr 280px; gap: 14px; }
.mm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mm-item {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 18px;
  text-decoration: none; transition: background .25s, transform .25s;
  opacity: 0; transform: translateY(6px);
}
.mm-panel.is-open .mm-item { opacity: 1; transform: none; transition: background .25s, opacity .4s ease, transform .5s cubic-bezier(.22,1,.36,1); transition-delay: 0s, calc(60ms + var(--i) * 35ms), calc(60ms + var(--i) * 35ms); }
.mm-item:hover, .mm-item:focus-visible { background: color-mix(in srgb, var(--a) 12%, transparent); outline: none; }
.mm-thumb {
  width: 64px; height: 56px; border-radius: 14px; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .3s, transform .3s;
}
.mm-item:hover .mm-thumb, .mm-item:focus-visible .mm-thumb { box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 60%, transparent), 0 10px 30px -8px var(--a); transform: scale(1.04); }
.mm-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mm-text b { color: #fff; font-family: 'Funnel Display', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.2; display: flex; align-items: center; gap: 8px; }
.mm-text b::after { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--a); box-shadow: 0 0 10px var(--a); opacity: 0; transition: opacity .25s; }
.mm-item:hover .mm-text b::after { opacity: 1; }
.mm-text small { color: #a1a1aa; font-size: 12.5px; line-height: 1.35; }

.mm-feature { position: relative; display: block; border-radius: 20px; overflow: hidden; min-height: 100%; text-decoration: none; border: 1px solid rgba(255,255,255,.08); }
.mm-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.mm-feature:hover img { transform: scale(1.06); }
.mm-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,6,14,.95) 10%, rgba(8,6,14,.55) 55%, rgba(8,6,14,.15)); }
.mm-feature-text { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.mm-feature-text small { color: #F9A8FF; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mm-feature-text b { color: #fff; font-family: 'Funnel Display', sans-serif; font-size: 22px; line-height: 1.15; }
.mm-go { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 600; }
.mm-go svg, .mm-all svg { width: 14px; height: 14px; transition: transform .3s; }
.mm-feature:hover .mm-go svg, .mm-all:hover svg { transform: translateX(4px); }

.mm-foot { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 12px 10px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.mm-all { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.mm-note { color: #71717a; font-size: 12.5px; }
.mm-cta { margin-left: auto; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(246,0,254,.45); background: rgba(246,0,254,.10); transition: background .25s; }
.mm-cta:hover { background: rgba(246,0,254,.22); }

/* Mobile accordion inside the burger menu */
.mm-m-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0; color: #fff; font: inherit; font-size: 32px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); cursor: pointer; text-align: left; }
.mm-m-btn .mm-chev { width: 26px; height: 26px; }
.mm-m-btn[aria-expanded="true"] { color: #F600FE; }
.mm-m-btn[aria-expanded="true"] .mm-chev { transform: rotate(180deg); }
.mm-m-list { display: grid; gap: 2px; padding: 10px 0 14px; }
.mm-m-list[hidden] { display: none; }
.mobile-menu-links .mm-m-list a { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; padding: 10px 0; border-bottom: 0; color: rgba(255,255,255,.85); }
.mobile-menu-links .mm-m-list a i { width: 9px; height: 9px; border-radius: 99px; background: var(--a); box-shadow: 0 0 10px var(--a); flex: none; }
.mobile-menu-links .mm-m-list a.mm-m-all { color: #F9A8FF; font-size: 16px; }
.mm-m-all svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .mm-panel, .mm-item, .mm-chev, .mm-feature img { transition: none !important; }
}
