/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    backdrop-filter: blur(10px);
    background: rgba(251, 247, 239, 0.92);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__name {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.brand__tag {
    font-size: 12px;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
    font-weight: 650;
    color: var(--muted);
}

    .nav a {
        padding: 10px 10px;
        border-radius: 12px;
    }

        .nav a:hover {
            background: rgba(127, 177, 141, 0.18);
            color: var(--text);
        }

.header__desktop-cta {
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
}

    .nav-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: var(--text);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

.site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    background: rgba(251, 247, 239, 0.98);
    backdrop-filter: blur(10px);
}

    .mobile-menu[aria-hidden="true"] {
        display: none;
        max-height: 0;
        overflow: hidden;
    }

.mobile-menu__nav {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 14px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .mobile-menu__nav a:not(.mobile-menu__cta) {
        padding: 14px 16px;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.72);
        font-weight: 700;
    }

.mobile-menu__cta {
    margin-top: 4px;
    width: 100%;
}

/* FINAL MERCH STORE MATCH - screenshot layout polish */
.nav a.is-active {
    position: relative;
    color: var(--text);
    background: transparent;
}

    .nav a.is-active::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: -16px;
        height: 3px;
        border-radius: 999px;
        background: var(--brand);
    }

.mobile-menu__nav a.is-active {
    color: var(--text);
    background: rgba(127, 177, 141, 0.18);
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    margin-top: 22px;
    background: rgba(251, 247, 239, 0.75);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.footer__links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
}

/* HEADER / FOOTER RESPONSIVE */

@media (min-width: 921px) {
    .mobile-menu {
        display: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 920px) {
    .header__inner {
        gap: 12px;
    }

    .nav,
    .header__desktop-cta {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-header.menu-open .mobile-menu[aria-hidden="false"] {
        display: block;
        max-height: 80vh;
    }
}

@media (max-width: 640px) {
    .footer__inner {
        flex-direction: column;
    }

    .mobile-menu__nav {
        width: min(1120px, calc(100% - 24px));
    }

    .brand__text {
        display: none;
    }
}
