:root {
    --jm-brand-deep: #052c33;
    --jm-brand-mid: #0c3d44;
    --jm-ink-muted: rgba(255, 255, 255, 0.92);
    --jm-cta: #39a46c;
    --jm-cta-hover: #2f8d5c;
}

.jm-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: linear-gradient(90deg, rgba(5, 44, 51, 0.96), rgba(12, 61, 68, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.admin-bar .jm-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .jm-header {
        top: 46px;
    }
}

.jm-header__inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.jm-header__brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff !important;
    font-size: 0.84rem;
    padding: 0 6px;
    border-radius: 999px;
}

.jm-header__brand:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.jm-header__toggle {
    display: none;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.jm-header__nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.jm-header__menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jm-header__menu > li {
    margin: 0;
}

.jm-header__menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--jm-ink-muted) !important;
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.jm-header__menu a:hover,
.jm-header__menu .current-menu-item > a,
.jm-header__menu .current_page_item > a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.jm-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--jm-cta);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.93rem;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(27, 94, 60, 0.24);
    transition: background 0.2s ease, transform 0.2s ease;
}

.jm-header__cta:hover {
    color: #fff !important;
    background: var(--jm-cta-hover);
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .jm-header__inner {
        padding: 9px 14px;
    }

    .jm-header__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .jm-header__nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 14px;
        right: 14px;
        margin-left: 0;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 14px;
        background: rgba(4, 30, 35, 0.97);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .jm-header.is-open .jm-header__nav {
        display: flex;
    }

    .jm-header__menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .jm-header__menu a {
        width: 100%;
        border-radius: 10px;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.04);
        color: #fff !important;
    }

    .jm-header__cta {
        width: 100%;
    }
}
