/* ================================================================
   Strawberrylace — Killer Nav (mega menu + refined links)
   Layered ON TOP of existing header.css — does not replace it.
   ================================================================ */
.nav-links {
    font-family: 'Neue Montreal', 'Inter Tight', system-ui, sans-serif;
}
.nav-links > a,
.nav-links > .nav-group > .nav-trigger {
    color: var(--sl-ink, #0F0F10);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.nav-links > a:hover,
.nav-links > .nav-group > .nav-trigger:hover {
    background: rgba(15,15,16,0.06);
    color: #F5728C;
}
.nav-links > a.is-active {
    background: #0F0F10;
    color: #fff;
}

/* dropdown chevron */
.nav-trigger .chev {
    width: 11px; height: 11px;
    transition: transform .25s ease;
}
.nav-group.is-open .nav-trigger .chev { transform: rotate(180deg); }

/* group container */
.nav-group {
    position: relative;
}

/* ---------- Mega-menu ---------- */
.mega {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: min(760px, 94vw);
    background: #fff;
    border-radius: 18px;
    box-shadow:
        0 30px 60px rgba(15,15,16,.14),
        0 0 0 1px rgba(15,15,16,0.06);
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2,.7,.2,1), visibility .25s;
    z-index: 200;
}
.nav-group.is-open .mega {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    visibility: visible;
}
.mega::before {
    content: "";
    position: absolute;
    top: -6px; left: 50%;
    width: 12px; height: 12px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

.mega-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 10px;
    border-bottom: 1px solid rgba(15,15,16,0.06);
    margin-bottom: 10px;
}
.mega-head span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6B6B6F;
}
.mega-head a {
    font-size: 13px;
    color: #0F0F10;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.mega-head a:hover { color: #F5728C; }

.mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.mega-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #0F0F10;
    transition: background .18s ease;
    align-items: center;
}
.mega-item:hover { background: rgba(245,114,140,0.08); }
.mega-thumb {
    width: 52px; height: 52px;
    border-radius: 10px;
    background: #eee var(--bg) center/cover;
    flex: 0 0 52px;
    background-color: var(--accent, #ddd);
    background-size: cover;
    background-position: center;
}
.mega-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-copy strong {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -.01em;
}
.mega-copy em {
    font-style: normal;
    font-size: 12px;
    color: #6B6B6F;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA button (right side) */
.nav-cta {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
    background: #0F0F10;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: none;
    font-family: inherit;
    transition: background .2s ease, transform .2s ease;
}
/* Force the arrow to stay 14x14 and visually centred regardless of
   any bare `svg {}` rules leaked in by legacy showcase stylesheets. */
.nav-cta svg {
    flex: 0 0 auto;
    width: 14px !important;
    height: 14px !important;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-0.5px);
}
.nav-cta:hover { background: #F5728C !important; transform: translateX(2px); color: #fff !important; }
.nav-cta .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #5AE98B;
    box-shadow: 0 0 0 3px rgba(90,233,139,0.3);
}
.nav-cta svg { transition: transform .2s ease; }
.nav-cta:hover svg { transform: translate(2px, -0.5px); }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
    .nav-links {
        position: fixed;
        top: var(--header-offset, 64px);
        left: 0; right: 0; bottom: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 24px;
        background: #fff;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease, transform .25s ease;
        z-index: 99;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links > a,
    .nav-links > .nav-group > .nav-trigger {
        padding: 14px 16px;
        font-size: 18px;
        border-radius: 10px;
        width: 100%;
        justify-content: space-between;
    }
    .nav-group { width: 100%; }
    .mega {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        padding: 8px 0 0;
        display: none;
    }
    .nav-group.is-open .mega { display: block; transform: none; }
    .mega::before { display: none; }
    .mega-grid { grid-template-columns: 1fr; }
    .mega-head { padding: 0 8px 10px; }
}
