/* Interlab Mega Menu v2 — adaptive panels, Interlab branding (#111 / #FFC200) */

.il2-wrapper {
    position: relative;
    font-family: inherit;               /* inherit the site's global font */
    -webkit-font-smoothing: antialiased;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

/* Neutralize Hello Elementor's reset.css button defaults
   (button{border:1px solid #c36;border-radius:3px} + button:hover/:focus{background:#c36;color:#fff}) */
.il2-wrapper button,
.il2-wrapper button:hover,
.il2-wrapper button:focus,
.il2-wrapper button:active {
    border: none;
    border-radius: 0;
    background-color: transparent;
    outline: none;
}

/* ---------- Toggle ---------- */
.il2-toggle,
.il2-wrapper .il2-toggle:hover,
.il2-wrapper .il2-toggle:focus {
    background-color: transparent;
    color: #111111;
}
.il2-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 10px 2px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #111111;
    cursor: pointer;
    position: relative;
    transition: color .2s;
}
.il2-toggle::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 2px;
    background: #FFC200;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.il2-wrapper.open .il2-toggle::after,
.il2-toggle:hover::after { transform: scaleX(1); }
.il2-chev { transition: transform .25s ease; }
.il2-wrapper.open .il2-chev { transform: rotate(180deg); }

/* ---------- Dropdown shell ---------- */
.il2-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 1100px;
    display: flex;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;         /* match the site's rounded header/dropdown corners */
    box-shadow: 0 24px 60px -16px rgba(0,0,0,.22);
    overflow: hidden;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    /* Fixed height so .il2-main reliably scrolls instead of clipping
       (flex row + max-height let tall panels overflow past the edge). */
    height: min(680px, 76vh);
}
.il2-dropdown::before {
    /* gold brand hairline on top */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFC200 0%, #ffdd66 55%, transparent 100%);
    z-index: 2;
}
.il2-wrapper.open .il2-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---------- Left rail (departments) ---------- */
.il2-rail {
    width: 250px;
    flex-shrink: 0;
    background: #111111;
    padding: 22px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.il2-wrapper .il2-dept {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 20px 14px 24px;
    border: none;
    border-left: 3px solid transparent;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    white-space: normal;               /* long labels wrap, don't clip */
    transition: background .15s, color .15s, border-color .15s;
}
.il2-dept-name {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: break-word;
}
.il2-dept-count {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: rgba(255,255,255,.07);
    padding: 2px 8px;
    border-radius: 999px;
    transition: background .15s, color .15s;
}
.il2-wrapper .il2-dept:hover,
.il2-wrapper .il2-dept:focus { color: #ffffff; background-color: #1b1b1b; }
.il2-wrapper .il2-dept:focus-visible {
    outline: 2px solid rgba(255, 194, 0, .6);
    outline-offset: -2px;
}
.il2-wrapper .il2-dept.active,
.il2-wrapper .il2-dept.active:hover,
.il2-wrapper .il2-dept.active:focus {
    color: #ffffff;
    background-color: #1f1f1f;
    border-left: 3px solid #FFC200;
}
.il2-dept.active .il2-dept-count { background: #FFC200; color: #111111; }

/* ---------- Main adaptive area ---------- */
.il2-main {
    flex: 1;
    padding: 20px 28px;
    overflow-y: auto;
    background: #ffffff;
}
.il2-panel { display: none; }
.il2-panel.active { display: block; animation: il2fade .18s ease-out; }

/* Flat departments: multi-column link grid */
.il2-flat {
    column-count: 2;
    column-gap: 18px;
}
.il2-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    break-inside: avoid;
    transition: background .13s, transform .13s;
}
.il2-link:hover {
    background: #FFF7DE;      /* light gold tint */
    color: #111111;
    transform: translateX(2px);
}
.il2-link-flat { font-weight: 600; }
.il2-pill {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #8a8a8a;
    background: #f3f4f6;
    padding: 1px 8px;
    border-radius: 999px;
    transition: background .13s, color .13s;
}
.il2-link:hover .il2-pill { background: #FFC200; color: #111111; }

/* Deep departments: grouped columns */
.il2-groups {
    column-count: 3;
    column-gap: 26px;
}
.il2-groups-4 {
    column-count: 4;
    column-gap: 18px;
}
.il2-group {
    break-inside: avoid;
    margin-bottom: 12px;
}
.il2-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #111111;
    text-decoration: none;
    padding: 4px 0 6px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 6px;
    transition: border-color .15s, color .15s;
}
.il2-group-title:hover { color: #111111; border-bottom-color: #FFC200; }
.il2-group-links .il2-link {
    padding: 3px 8px;
    margin-bottom: 1px;
    font-size: 13px;
    font-weight: 400;
    color: #4b5563;
}
.il2-group-links .il2-link:hover { color: #111111; }
.il2-group-links .il2-more span {
    font-size: 12px;
    font-weight: 600;
    color: #9a7500;                 /* darker gold, readable on white */
}
.il2-group-links .il2-more:hover span { color: #111111; }
.il2-prod .il2-prod-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Featured rail ---------- */
.il2-featured {
    width: 250px;
    flex-shrink: 0;
    background:
        radial-gradient(120% 90% at 110% -10%, rgba(255,194,0,.16) 0%, rgba(255,194,0,0) 55%),
        #141414;
    color: #e5e7eb;
    padding: 28px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.il2-feat {
    display: none;
    flex-direction: column;
    flex: 1;
    position: relative;
}
.il2-feat.active { display: flex; animation: il2fade .18s ease-out; }
.il2-feat-ghost {
    position: absolute;
    top: -14px;
    right: -6px;
    font-size: 68px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255,194,0,.14);
    user-select: none;
    pointer-events: none;
}
.il2-feat-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -.01em;
    margin: 4px 0 10px;
}
.il2-feat-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: #a1a1aa;
    margin: 0 0 14px;
}
.il2-feat-count {
    font-size: 12px;
    color: #a1a1aa;
    margin: 0 0 18px;
}
.il2-feat-count strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: #FFC200;
    line-height: 1.15;
}
.il2-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 11px 16px;
    border-radius: 8px;
    background: #FFC200;
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .15s;
}
.il2-cta:hover { background: #ffd23d; color: #111111; transform: translateY(-1px); }
.il2-cta svg { transition: transform .15s; }
.il2-cta:hover svg { transform: translateX(3px); }

/* ---------- Misc ---------- */
@keyframes il2fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.il2-main::-webkit-scrollbar { width: 6px; }
.il2-main::-webkit-scrollbar-track { background: transparent; }
.il2-main::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.il2-main::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Toggle button lives in the desktop bar only; on mobile the dropdown is
   moved by JS into #il2-mobile-slot inside the hamburger (accordion mode). */
@media (max-width: 1024px) {
    .il2-wrapper { display: none; }
}

/* Mobile drawer mode (dropdown relocated into the hamburger slot).
   NOTE: on mobile the dropdown lives OUTSIDE .il2-wrapper (JS moves it into
   #il2-mobile-slot), so every reset/neutralizer must also match on
   .il2-dropdown — the .il2-wrapper-scoped rules above no longer reach it
   (that's what painted Hello Elementor's pink #c36 button borders). */
.il2-dropdown.il2-mobile button,
.il2-dropdown.il2-mobile button:hover,
.il2-dropdown.il2-mobile button:focus,
.il2-dropdown.il2-mobile button:active {
    border: none;
    border-radius: 0;
    background-color: transparent;
    outline: none;
}
.il2-dropdown.il2-mobile {
    position: static;
    display: block;
    width: 100% !important;
    height: auto;
    min-height: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    overflow: visible;
    /* white rounded card, like the agreed old-menu look */
    background: #ffffff;
    border-radius: 18px;
    padding: 12px 12px 14px;
    margin: 4px 0 10px;
}
.il2-dropdown.il2-mobile::before { display: none; }
.il2-dropdown.il2-mobile .il2-featured { display: none; }
/* panels were moved out of .il2-main into the rail (accordion) — hide the husk */
.il2-dropdown.il2-mobile .il2-main { display: none; }
.il2-dropdown.il2-mobile .il2-rail {
    width: 100%;
    background: transparent;
    padding: 0;
    gap: 8px;
}
/* departments = black pill bars (old-menu style) with a chevron.
   Re-declare the full flex layout here: the desktop layout rule is scoped to
   .il2-wrapper .il2-dept and does not reach the relocated drawer. */
.il2-dropdown.il2-mobile .il2-rail .il2-dept,
.il2-dropdown.il2-mobile .il2-rail .il2-dept:hover,
.il2-dropdown.il2-mobile .il2-rail .il2-dept:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: normal;
    line-height: 1.35;
    color: #ffffff;
    background-color: #111111;
    border: none;
    border-radius: 999px;
    padding: 12px 18px 12px 20px;
    font-size: 14px;
}
.il2-dropdown.il2-mobile .il2-rail .il2-dept .il2-dept-name { flex: 1; min-width: 0; }
.il2-dropdown.il2-mobile .il2-rail .il2-dept::after {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin: -3px 2px 0 0;
    border-right: 2px solid #FFC200;
    border-bottom: 2px solid #FFC200;
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.il2-dropdown.il2-mobile .il2-rail .il2-dept.active::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}
.il2-dropdown.il2-mobile .il2-rail .il2-dept .il2-dept-count { background: rgba(255,255,255,.14); color: #d4d4d8; }
.il2-dropdown.il2-mobile .il2-rail .il2-dept.active .il2-dept-count { background: #FFC200; color: #111; }
/* the panel sits right below its department button (moved there by JS) */
.il2-dropdown.il2-mobile .il2-rail .il2-panel { padding: 6px 4px 10px; }
.il2-dropdown.il2-mobile .il2-flat,
.il2-dropdown.il2-mobile .il2-groups,
.il2-dropdown.il2-mobile .il2-groups-4 { column-count: 1; }
.il2-dropdown.il2-mobile .il2-panel { animation: none; }


/* Elementor sticky header duplicates the header into .elementor-sticky__spacer;
   the clone must never paint the (possibly open) dropdown — otherwise an open
   panel "copy" scrolls away below the sticky header. */
.elementor-sticky__spacer .il2-wrapper,
.elementor-sticky__spacer .il2-dropdown { display: none !important; }
