/* =============================================
   MEGA MENU + section colour strip  (2026-12-02)
   Hover any item: one panel with all five sections opens.
   To revert: remove the <link> to this file and restore the old <nav>
   from _backup-2026-12-02-przed-mega-menu/.
   ============================================= */

.mm-nav { background: var(--bg); }
.mm-links { display: flex; align-items: center; gap: 36px; list-style: none; padding-right: 80px; transition: opacity .2s; }
.mm-links > li > button {
  all: unset; cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 350; letter-spacing: 0.01em;
  padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .15s;
}
.mm-links > li > button:focus-visible { outline: 1px solid var(--black); outline-offset: 4px; }
.mm-links > li.is-current > button { border-bottom-color: var(--black); }

/* panel */
.mm-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--black);
  max-height: 0; overflow: hidden; visibility: hidden;
  transition: max-height .35s ease, visibility 0s linear .35s;
}
.mm-nav.is-open .mm-panel { max-height: 80vh; visibility: visible; transition: max-height .35s ease; }
.mm-nav.is-open .mm-links { opacity: 0; pointer-events: none; }   /* panel titles replace the bar labels */

.mm-grid {
  position: relative;
  max-width: var(--max-w); margin: 0 auto; padding: 12px var(--pad-h) 48px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px;
}
.mm-col, .mm-col a, .mm-col p, .mm-col span { font-family: var(--font); font-size: 17px; font-weight: 350; line-height: 1.45; color: var(--black); }
.mm-col h3 { font-size: 17px; font-weight: 400; white-space: nowrap; height: 1.45em; margin: 0 0 30px; }
.mm-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.mm-col p { margin: 0; }
.mm-col a { transition: opacity .15s; }
.mm-col a:hover { opacity: 0.55; }
a.mm-col { display: block; text-decoration: none; transition: opacity .15s; }
a.mm-col:hover { opacity: 0.55; }
/* one continuous line under all column titles */
.mm-grid::before {
  content: ''; position: absolute; left: var(--pad-h); right: var(--pad-h);
  top: calc(12px + 14px + 14px + 1.45 * 17px + 14px); border-top: 1px solid var(--black);
}

/* section colour bars (pitch deck, slide 6) */
.mm-swatch { display: flex; height: 14px; margin-bottom: 14px; }
.mm-swatch span { display: block; height: 100%; }

/* dim the page behind the open panel */
.mm-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 998; }
.mm-nav.is-open ~ .mm-scrim { opacity: 1; pointer-events: auto; }

/* static strip under the nav, in the colours of the current section */
.color-strip.is-static { transform: none !important; }
.color-strip.is-static .color-strip__seg { flex-shrink: 1; }

.mm-burger { display: none; }
/* old mobile menu is replaced by the panel */
#mobileNav, #hamburger { display: none !important; }

@media (max-width: 1100px) {
  .mm-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .mm-grid::before { display: none; }
  .mm-col h3 { height: auto; white-space: normal; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--black); }
  .mm-swatch { height: 10px; }
}
@media (max-width: 900px) {
  .mm-links { display: none; }
  .mm-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: 0; padding: 8px 0; }
  .mm-burger span { width: 24px; height: 1.5px; background: var(--black); display: block; }
  .mm-nav.is-open .mm-panel { max-height: calc(100vh - var(--nav-height)); overflow-y: auto; }
  .mm-grid { grid-template-columns: 1fr; gap: 28px; }
}
