/* =========================================================
   CONVENERS GLOBAL HEADER — CLEAN VERSION
   Replace the complete contents of:
   /assets/css/conveners-header.css
========================================================= */

:root {
    --cvx-header-max: 1600px;
    --cvx-header-height: 80px;
    --cvx-sticky-height: 76px;
    --cvx-side-space: 48px;
    --cvx-text: #f7f7f8;
    --cvx-muted: rgba(232, 228, 240, 0.72);
    --cvx-purple: #8c60ff;
    --cvx-teal: #65cbd0;
    --cvx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hide Astra's original header. */
#masthead {
    display: none !important;
}

/* Keep the WordPress toolbar above the custom header. */
#wpadminbar {
    z-index: 100000 !important;
}

/* Scoped reset. */
.cvx-site-header,
.cvx-site-header *,
.cvx-site-header *::before,
.cvx-site-header *::after {
    box-sizing: border-box;
}

.cvx-site-header :is(ul, ol) {
    margin: 0;
    padding: 0;
}

.cvx-site-header li {
    margin: 0;
    list-style: none;
}

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

.cvx-site-header button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
}

/* =========================================================
   HEADER WRAPPER
   Sticky keeps the header in normal page flow, so the hero
   starts below it instead of being covered by it.
========================================================= */

.cvx-site-header {
    position: sticky !important;
    z-index: 9990;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    pointer-events: none;
    transition: padding 0.45s var(--cvx-ease);
}

body.admin-bar .cvx-site-header {
    top: 32px;
}

/* =========================================================
   DEFAULT HEADER — EXACTLY 80PX
========================================================= */

.cvx-header-shell {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 80px;
    margin: 0 auto;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(131, 99, 194, 0.22);
    border-radius: 0;
    background:
        linear-gradient(
            100deg,
            rgba(34, 15, 64, 0.98) 0%,
            rgba(7, 6, 14, 0.99) 50%,
            rgba(3, 16, 20, 0.98) 100%
        );
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    transition:
        width 0.5s var(--cvx-ease),
        height 0.45s var(--cvx-ease),
        border-radius 0.5s var(--cvx-ease),
        border-color 0.35s ease,
        background 0.4s ease,
        box-shadow 0.45s ease,
        backdrop-filter 0.4s ease;
}

.cvx-header-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    width: min(calc(100% - (var(--cvx-side-space) * 2)), var(--cvx-header-max));
    height: 100%;
    margin: 0 auto;
}

/* =========================================================
   LOGO
========================================================= */

.cvx-header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.cvx-header-brand .custom-logo-link {
    display: flex;
    align-items: center;
}

.cvx-header-brand .custom-logo {
    display: block;
    width: auto !important;
    max-width: 205px !important;
    max-height: 48px !important;
    object-fit: contain;
    transition:
        max-width 0.4s var(--cvx-ease),
        max-height 0.4s var(--cvx-ease);
}

.cvx-text-logo {
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
}

.cvx-brand-tagline {
    margin-top: 4px;
    margin-left: 3px;
    color: #9881d8;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    line-height: 1;
    text-transform: uppercase;
}

.cvx-header-brand.has-tagline-in-logo .cvx-brand-tagline {
    display: none;
}

/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.cvx-desktop-navigation,
.cvx-header-actions {
    display: flex;
    align-items: center;
}

.cvx-desktop-navigation {
    justify-content: center;
}

.cvx-header-actions {
    justify-content: flex-end;
}

.cvx-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 2.2vw, 44px);
}

.cvx-menu > li {
    position: relative;
}

.cvx-menu > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 13px 0;
    color: var(--cvx-muted);
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 450;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.cvx-menu > li > a::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, var(--cvx-purple), var(--cvx-teal));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.35s var(--cvx-ease);
}

.cvx-menu > li:hover > a,
.cvx-menu > li:focus-within > a,
.cvx-menu > .current-menu-item > a,
.cvx-menu > .current-menu-parent > a,
.cvx-menu > .current-menu-ancestor > a,
.cvx-menu > .current_page_item > a {
    color: #fff;
}

.cvx-menu > li:hover > a::after,
.cvx-menu > li:focus-within > a::after,
.cvx-menu > .current-menu-item > a::after,
.cvx-menu > .current-menu-parent > a::after,
.cvx-menu > .current-menu-ancestor > a::after,
.cvx-menu > .current_page_item > a::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* Desktop dropdowns. */
.cvx-menu .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    visibility: hidden;
    min-width: 220px;
    padding: 12px;
    border: 1px solid rgba(139, 102, 208, 0.28);
    border-radius: 18px;
    background: rgba(10, 8, 20, 0.98);
    opacity: 0;
    transform: translate(-50%, 12px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.35s var(--cvx-ease);
}

.cvx-menu li:hover > .sub-menu,
.cvx-menu li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.cvx-menu .sub-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 10px;
    color: rgba(232, 228, 240, 0.76);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
}

.cvx-menu .sub-menu a:hover,
.cvx-menu .sub-menu a:focus-visible {
    background: rgba(118, 80, 181, 0.12);
    color: #fff;
}

/* =========================================================
   CTA
========================================================= */

.cvx-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 190px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid rgba(179, 151, 235, 0.48);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: #f1ebff !important;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.35s var(--cvx-ease),
        box-shadow 0.3s ease;
}

.cvx-header-cta:hover,
.cvx-header-cta:focus-visible {
    border-color: rgba(157, 111, 255, 0.92);
    background: rgba(112, 65, 194, 0.17);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(119, 73, 208, 0.2);
}

.cvx-header-cta-arrow {
    font-size: 1.1rem;
    transition: transform 0.35s var(--cvx-ease);
}

.cvx-header-cta:hover .cvx-header-cta-arrow,
.cvx-header-cta:focus-visible .cvx-header-cta-arrow {
    transform: translate(3px, -3px);
}

/* =========================================================
   SCROLLED / FLOATING STATE
   Visual styling kept from the previous sticky header.
========================================================= */

.cvx-site-header.is-scrolled {
    padding: 12px clamp(12px, 2.5vw, 38px) 0;
}

.cvx-site-header.is-scrolled .cvx-header-shell {
    width: min(100%, 1540px);
    height: var(--cvx-sticky-height);
    border: 1px solid rgba(139, 102, 208, 0.4);
    border-radius: 40px;
    background:
        linear-gradient(
            90deg,
            rgba(34, 23, 68, 0.95),
            rgba(17, 13, 36, 0.95) 53%,
            rgba(22, 15, 48, 0.95)
        );
    box-shadow:
        0 17px 55px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025),
        0 0 38px rgba(99, 57, 177, 0.09);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.cvx-site-header.is-scrolled .cvx-header-inner {
    width: calc(100% - 58px);
}

.cvx-site-header.is-scrolled .cvx-header-brand .custom-logo {
    max-width: 182px !important;
    max-height: 48px !important;
}

.cvx-site-header.is-scrolled .cvx-header-cta {
    min-width: 178px;
    min-height: 46px;
    padding: 12px 21px;
}

/* =========================================================
   MOBILE BUTTON + PANEL
========================================================= */

.cvx-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid rgba(154, 119, 223, 0.36) !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025) !important;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.cvx-menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition:
        transform 0.35s var(--cvx-ease),
        opacity 0.25s ease;
}

.cvx-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.cvx-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.cvx-mobile-panel {
    position: fixed;
    z-index: 9980;
    inset: 0;
    visibility: hidden;
    padding: 130px 24px 45px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 15% 10%, rgba(89, 49, 155, 0.3), transparent 35%),
        radial-gradient(circle at 90% 90%, rgba(101, 203, 208, 0.1), transparent 34%),
        rgba(5, 4, 11, 0.985);
    opacity: 0;
    transform: translateY(-18px);
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        transform 0.4s var(--cvx-ease),
        visibility 0.35s;
}

.cvx-mobile-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cvx-mobile-panel-inner {
    width: min(100%, 720px);
    margin: 0 auto;
}

.cvx-mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.cvx-mobile-menu a {
    display: block;
    padding: 21px 0;
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.9rem, 8vw, 3.3rem);
    font-weight: 550;
    letter-spacing: -0.04em;
    line-height: 1;
}

.cvx-mobile-menu .sub-menu {
    padding: 0 0 12px 18px;
}

.cvx-mobile-menu .sub-menu a {
    padding: 12px 0;
    color: rgba(232, 228, 240, 0.68);
    font-size: clamp(1.05rem, 4.8vw, 1.4rem);
    letter-spacing: -0.015em;
}

.cvx-mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    padding: 15px 24px;
    border: 1px solid rgba(151, 111, 232, 0.65);
    border-radius: 999px;
    color: #fff;
    font-family: "Manrope", sans-serif;
}

body.cvx-mobile-menu-open {
    overflow: hidden;
}

.cvx-site-header a:focus-visible,
.cvx-site-header button:focus-visible {
    outline: 2px solid var(--cvx-teal);
    outline-offset: 4px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    :root {
        --cvx-side-space: 26px;
        --cvx-header-height: 74px;
        --cvx-sticky-height: 70px;
    }

    .cvx-header-inner {
        grid-template-columns: 1fr auto;
    }

    .cvx-desktop-navigation,
    .cvx-header-actions {
        display: none;
    }

    .cvx-menu-toggle {
        display: flex;
    }

    .cvx-header-brand .custom-logo {
        max-width: 165px !important;
        max-height: 44px !important;
    }

    .cvx-site-header.is-scrolled {
        padding: 8px 12px 0;
    }

    .cvx-site-header.is-scrolled .cvx-header-shell {
        border-radius: 28px;
    }

    .cvx-site-header.is-scrolled .cvx-header-inner {
        width: calc(100% - 32px);
    }
}

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

@media (max-width: 700px) {
    :root {
        --cvx-side-space: 18px;
        --cvx-header-height: 68px;
        --cvx-sticky-height: 66px;
    }

    .cvx-header-brand .custom-logo,
    .cvx-site-header.is-scrolled .cvx-header-brand .custom-logo {
        max-width: 145px !important;
        max-height: 40px !important;
    }

    .cvx-menu-toggle {
        width: 42px;
        height: 42px;
    }

    .cvx-mobile-panel {
        padding: 112px 20px 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cvx-site-header,
    .cvx-header-shell,
    .cvx-header-brand .custom-logo,
    .cvx-header-cta,
    .cvx-header-cta-arrow,
    .cvx-menu > li > a::after,
    .cvx-menu-toggle span,
    .cvx-mobile-panel {
        transition: none !important;
    }
}
/* =========================================================
   FIX STICKY HEADER SQUARE EDGES
========================================================= */

/*
 * Remove old homepage header background layers.
 * The clean global header already has its own background.
 */

.cvx-header-shell::before,
.cvx-header-shell::after,
.cvx-site-header.is-scrolled
.cvx-header-shell::before,
.cvx-site-header.is-scrolled
.cvx-header-shell::after {
    content: none !important;
    display: none !important;
}


/* Remove old homepage positioning and padding */

.cvx-header-shell,
.cvx-site-header.is-scrolled
.cvx-header-shell {
    top: auto !important;
    padding: 0 !important;

    background-clip: padding-box !important;
}


/* Clean rounded sticky shell */

.cvx-site-header.is-scrolled
.cvx-header-shell {
    overflow: visible !important;

    border-radius: 40px !important;

    background:
        linear-gradient(
            90deg,
            rgba(34, 23, 68, 0.97) 0%,
            rgba(17, 13, 36, 0.97) 53%,
            rgba(22, 15, 48, 0.97) 100%
        ) !important;
}


/* Ensure the wrapper itself has no background */

.cvx-site-header,
.cvx-site-header.is-scrolled {
    background: transparent !important;
    box-shadow: none !important;
}