/*
 * CHQ Shell header — approximates chq.org chrome
 * (black utility bar + dark main nav with white CTAs).
 */

.chq-site-header {
    --chq-header-ink: #111111;
    --chq-header-bar: #161616;
    --chq-header-muted: rgba(255, 255, 255, 0.85);
    background: transparent;
    font-family: Manrope, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #fff;
}

.chq-site-header a {
    color: inherit;
    text-decoration: none;
}

.chq-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Utility bar ─────────────────────────────────────────── */

.chq-header-topbar {
    background: var(--chq-header-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 6px 28px;
    min-height: 36px;
}

.chq-header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    position: relative;
}

.chq-header-search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.chq-header-search-toggle:hover {
    opacity: 0.8;
}

.chq-header-search-input {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    z-index: 20;
    width: min(280px, 70vw);
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.chq-header-search:focus-within .chq-header-search-input,
.chq-header-search-input:focus {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    outline: 1px solid rgba(255, 255, 255, 0.5);
}

.chq-header-topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chq-header-topnav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chq-header-topnav a,
.chq-header-cart {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.chq-header-topnav a:hover,
.chq-header-cart:hover {
    opacity: 0.8;
}

.chq-header-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Login widget in utility bar — text matches other utility links. */
.chq-header-topbar chq-login {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.chq-header-topbar > a,
.chq-header-topbar-actions > a {
    color: #fff;
}

/* ── Main brand / nav bar ────────────────────────────────── */
/* Solid dark bar on ticketing pages (no hero underlay). */

.chq-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 28px;
    flex-wrap: wrap;
    background: var(--chq-header-bar);
    color: #fff;
    position: relative;
}

.chq-header-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #fff;
    line-height: 0;
}

.chq-header-logo .custom-logo-link,
.chq-header-logo .custom-logo {
    display: block;
    max-height: 56px;
    width: auto;
}

.chq-header-logo img {
    display: block;
    max-width: 220px;
    height: auto;
}

.chq-header-logo-mark {
    display: block;
    flex: 0 0 auto;
    width: min(167px, 42vw);
    height: auto;
    color: #fff;
}

.chq-header-nav {
    --chq-mega-accent: #2f6b45;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex: 1 1 auto;
    flex-wrap: wrap;
    position: static;
}

.chq-mega {
    position: static;
}

.chq-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    color: #fff;
}

.chq-mega-caret {
    font-size: 0.65rem;
    transition: transform 0.15s ease;
}

.chq-mega.is-open .chq-mega-trigger,
.chq-mega:hover .chq-mega-trigger {
    color: #8fbf9a;
}

.chq-mega.is-open .chq-mega-caret {
    transform: rotate(180deg);
}

.chq-mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    background: #fff;
    color: #111;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.chq-mega-panel[hidden] {
    display: none;
}

.chq-mega-panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px 40px;
}

.chq-mega-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 48px;
}

.chq-mega-column-title {
    margin: 0 0 14px;
    color: #8a8a8a;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chq-mega-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chq-mega-links a {
    color: #111;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: normal;
    line-height: 1.35;
}

.chq-mega-links a:hover {
    color: var(--chq-mega-accent);
    opacity: 1;
}

.chq-mega-featured {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #111;
    max-width: 320px;
}

.chq-mega-featured:hover {
    opacity: 1;
}

.chq-mega-featured-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 2px;
}

.chq-mega-featured-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.25;
    color: #111;
}

.chq-mega-featured-cta {
    color: var(--chq-mega-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.chq-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.chq-header-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
}

.chq-header-btn--primary {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* Beat `.chq-site-header a { color: inherit }` (white). */
.chq-site-header a.chq-header-btn--primary,
.chq-site-header a.chq-header-btn--primary:hover,
.chq-site-header a.chq-header-btn--primary:focus {
    color: #111;
}

.chq-header-btn--primary:hover {
    background: #f0f0f0;
    color: #111;
}

.chq-site-header a.chq-header-btn--outline,
.chq-site-header a.chq-header-btn--outline:hover,
.chq-site-header a.chq-header-btn--outline:focus {
    color: #fff;
}

.chq-header-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.chq-header-btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (max-width: 1100px) {
    .chq-header-main {
        justify-content: center;
        padding: 14px 20px;
    }

    .chq-header-nav {
        order: 3;
        width: 100%;
        gap: 16px 22px;
    }

    .chq-mega-panel-inner {
        grid-template-columns: 1fr;
        padding: 24px 20px 28px;
        gap: 28px;
    }

    .chq-mega-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .chq-mega-featured {
        max-width: none;
    }

    .chq-header-topbar {
        padding: 6px 16px;
    }
}

@media (max-width: 720px) {
    .chq-mega-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .chq-header-topnav {
        display: none;
    }

    .chq-header-search-toggle span,
    .chq-header-cart span {
        display: none;
    }

    .chq-header-buy-dropdown {
        right: auto;
        left: 0;
    }
}
