/* iheartparty's site-wide top bar — matches the CURRENT
   www.iheartparty.com.my Squarespace header: white bar with a hairline
   bottom border, the plain script logo left, small regular-weight links,
   RENT IT underlined when active. Overrides shop/topnav-site.css via the
   site static dir; head-loaded by base.html.
   Figtree is the closest free match to the outer site's
   Halyard Display. */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;700&display=swap');
.site-topnav {
    position: relative;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: #fff;
    border: none;
    border-bottom: 1px solid black;
    height: 70px;
    padding: .55rem 4vw .55rem 4vw;
    font-family: 'Figtree', 'Source Sans 3', 'Jost', sans-serif;
}
.site-topnav-logo { flex: 0 0 auto; line-height: 0; }
.site-topnav-logo img {
    display: block;
    height: 46px !important;
    width: auto;
    aspect-ratio: auto;
    object-fit: contain;
}
.site-topnav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.site-topnav-links a {
    display: inline-block;
    color: #222;
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    padding: .15em 0;
}
.site-topnav-links a + a { margin-left: 1rem; }
.site-topnav-links a:hover { color: #000; }
.site-topnav-links a.active {
    text-decoration: underline;
    text-underline-offset: .35em;
    text-decoration-thickness: 1px;
}
/* Mobile-only controls: never on desktop. */
.site-topnav-toggle { display: none !important; }
.site-topnav-menu { display: none; }

@media (max-width: 768px) {
    /* backdrop-filter makes the bar a containing block for fixed
       descendants — the takeover menu would size to the bar instead of
       the viewport. Strip it on mobile. */
    .site-topnav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        height: 100px;
    }
    .site-topnav-links { display: none; }
    .site-topnav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 54px;
        height: 44px;
        padding: 10px;
        background: transparent;
        border: none;
        cursor: pointer;
        margin-left: auto;
        /*z-index: 80;*/
    }
    .site-topnav-toggle span {
        display: block;
        height: 5px;
        background: #222;
        transition: transform .2s ease;
    }
    /* Full-screen takeover, Squarespace style: the menu covers the page,
       the bar (logo left, toggle right) stays on top — the toggle's
       spans rotate into the big X. Sizes are vh-based so all nine links
       fit even on the smallest phones (a fixed 1.9rem/2.1rem overflowed
       ~570px-tall viewports). */
    .site-topnav-menu {
        position: fixed;
        inset: 0;
        z-index: 61;               /* below the bar (60): logo+toggle stay */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(.5rem, 2.2vh, 2.1rem);
        background: #fff;
        /*padding: clamp(1.25rem, 8vh, 4.5rem) 1rem 1.5rem;*/
        opacity: 0;
        margin-top: 140px;
        visibility: hidden;
        display: flex;
        overflow-y: auto;
        transition-property: opacity, margin-top, visibility;
        transition-duration: 0.5s, 0.5s, 0.5s;
        border: none;
        border-radius: 0;
    }
    .site-topnav.menu-open .site-topnav-menu {
        opacity: 1;
        margin-top: 98px;
        visibility: visible;
    }
    /*.site-topnav.menu-open { z-index: 70; }   !* whole bar above the overlay *!*/
    .site-topnav.menu-open .site-topnav-toggle span:first-child { transform: translateY(5.4px) rotate(-135deg); }
    .site-topnav.menu-open .site-topnav-toggle span:last-child  { transform: translateY(-5.4px) rotate(135deg); opacity: 1; }
    .site-topnav-menu a {
        color: #111;
        font-size: clamp(1.05rem, 4.6vh, 3rem);
        font-weight: 300;
        letter-spacing: .01em;
        line-height: 1.25;
        text-decoration: none;
        padding: 0;
        border-bottom: none;
    }
    .site-topnav-menu a.active { text-decoration: underline; text-underline-offset: .35em; }
}
