/* ═══════════════════════════════════════
   PMC Site Header
   ═══════════════════════════════════════ */

.pmc-header,
.wp-block-pmc-site-header,
.wp-block-pmc-site-header > *,
.pmc-header * {
    background: transparent !important;
    background-color: transparent !important;
}

.pmc-header {
    position: static;
    max-width: 1440px;
    margin: 0 auto;
    padding: 25px 0;
}

/* ── Inner: stretch all children to full header height ── */
.pmc-header__inner {
    display: flex;
    align-items: stretch;
    height: 97px;
    width: 100%;
}

/* ── Nav groups — each takes 3/7 of header width ── */
.pmc-header__nav {
    flex: 3;
    display: flex;
    align-items: stretch;
    min-width: 0;
    overflow: visible;
}

.pmc-header__nav--right {
    justify-content: flex-end;
}

/* ── Logo — takes 1/7 of header width ── */
.pmc-header__logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    text-decoration: none;
}

.pmc-header__logo img {
    height: 73px;
    width: auto;
    max-width: 100%;
    display: block;
}

.pmc-header__logo-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Nav menus ── */
.pmc-header__menu {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 116px;
}

.pmc-header__menu li {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}

/* ── Nav item dividers via SVG ── */
.pmc-header__nav,
.pmc-header__menu {
    overflow: visible !important;
}

.pmc-header__menu > li {
    position: relative;
    overflow: visible !important;
}

.pmc-header__menu > li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -58px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 97px;
    background-image: url(/pitmaster/wp-content/uploads/2026/06/nav-line.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    z-index: 10;
}

/* ── Nav links ── */
.pmc-header__menu li a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.16px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    padding: 0;
    transition: color 0.2s;
}

.pmc-header__menu li a:hover,
.pmc-header__menu li.current-menu-item > a,
.pmc-header__menu li.current_page_item > a {
    color: #d9b132;
}

/* ── Hamburger (hidden on desktop) ── */
.pmc-header__toggle {
    display: none;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    padding: 0;
    color: #ffffff;
    line-height: 1;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.pmc-toggle-close { display: none; }

/* ── Overlay ── */
.pmc-header__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pmc-header__overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── Mobile side panel ── */
.pmc-header__mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #111111;
    z-index: 1000;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
}

.pmc-header__mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
}

/* ── Panel top bar ── */
.pmc-header__mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 64px;
}

.pmc-header__mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.pmc-header__toggle:focus,
.pmc-header__toggle:focus-visible,
.pmc-header__toggle:active {
    outline: none;
    box-shadow: none;
    border: none;
}

.pmc-header__mobile-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.pmc-header__close {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    cursor: pointer;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    z-index: 10;
}

/* ── Nav list inside panel ── */
.pmc-header__mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pmc-header__mobile-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pmc-header__mobile-list li a {
    display: block;
    padding: 12px 24px;
    color: #ffffff;
    background: transparent;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.pmc-header__mobile-list li a:hover,
.pmc-header__mobile-list li.current-menu-item > a {
    color: #d9b132;
    padding-left: 36px;
}




/* ── Below 1440: tighten nav gap so items fit ── */
@media (max-width: 1439px) {
    .pmc-header {
        padding-left: clamp(24px, 4vw, 80px);
        padding-right: clamp(24px, 4vw, 80px);
    }

    .pmc-header__menu {
        gap: 44px;
    }

    .pmc-header__menu > li:not(:last-child)::after {
        right: -22px;
    }
}

/* ── Tablet ── */
@media (max-width: 1200px) {
    .pmc-header__menu {
        gap: 36px;
    }

    .pmc-header__menu > li:not(:last-child)::after {
        right: -18px;
    }

    .pmc-header__menu li a {
        font-size: 12px;
        padding: 0;
    }

    .pmc-header__logo {
        padding: 12px 16px;
    }

    .pmc-header__logo img {
        height: 60px;
    }
}

/* ── Small tablet: minimal gap before hamburger takes over ── */
@media (max-width: 980px) {
    .pmc-header__menu {
        gap: 22px;
    }

    .pmc-header__menu > li:not(:last-child)::after {
        right: -11px;
    }

    .pmc-header__menu li a {
        font-size: 11px;
    }
}

/* ── Mobile ── */
@media (max-width: 781px) {
    .pmc-header__inner {
        height: 64px;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }

    /* hide desktop nav */
    .pmc-header__nav {
        display: none;
    }

    /* logo: left-aligned on mobile, clickable area limited to the image itself */
    .pmc-header__logo {
        border: none;
        padding: 8px 0;
        flex: 0 1 auto;
        justify-content: flex-start;
        width: fit-content;
    }

    .pmc-header__logo img {
        height: 48px;
    }

    /* show hamburger */
    .pmc-header__toggle {
        display: flex;
    }

    /* overlay and panel are always in DOM, toggled via JS */

    body {
        padding-top: 64px;
    }
}
