/* ==================================================
   Phoenix Header — FINAL Authoritative Styles (DESKTOP)
   ================================================== */

.phoenix-header {
    border-bottom: 1px solid rgba(11, 92, 255, 0.18);
    background-color: #ffffff;
    overflow: visible;

    position: relative;
    z-index: 1000;

    padding-top: 14px;
    padding-bottom: 14px;

    box-shadow:
        0 1px 0 rgba(0,0,0,0.05),
        0 10px 30px rgba(11, 92, 255, 0.16);

    transition:
        padding 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

/* ==================================================
   Brand Infusion
================================================== */

.phoenix-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 92, 255, 0.08),
        rgba(11, 92, 255, 0.03) 60%,
        rgba(255, 255, 255, 0.98)
    );
    pointer-events: none;
    z-index: -1;
}

/* ==================================================
   Logo
================================================== */

.phoenix-logo img {
    display: block;
    height: auto;
    transition: transform 0.25s ease;
}

/* ==================================================
   Desktop Navigation
================================================== */

.phoenix-nav {
    display: flex;
    align-items: center;
    margin-left: -28px;
    overflow: visible;
}

.phoenix-nav > * {
    margin-right: 22px;
}

.phoenix-nav a,
.phoenix-nav span {
    font-size: 18px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    cursor: pointer;

    padding: 6px 8px;
    border-radius: 6px;

    transition:
        box-shadow 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease;
}

.phoenix-nav a:hover,
.phoenix-nav span:hover {
    color: #0b5cff;
    background-color: rgba(11, 92, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.18);
}

/* ==================================================
   Desktop Industry Dropdown
================================================== */

.phoenix-nav-item {
    position: relative;
}

.phoenix-nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.phoenix-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;

    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;

    padding: 18px 22px;
    min-width: 380px;

    box-shadow: 0 14px 40px rgba(11, 92, 255, 0.18);

    columns: 2;
    column-gap: 28px;

    z-index: 1200;
}

.phoenix-nav-item:hover .phoenix-dropdown {
    display: block;
}

.phoenix-dropdown a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    break-inside: avoid;
    border-radius: 4px;
}

.phoenix-dropdown a:hover {
    color: #0b5cff;
    background-color: rgba(11, 92, 255, 0.08);
}

/* ==================================================
   Compact Header (Scroll)
================================================== */

.phoenix-header.is-compact {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    padding-top: 2px;
    padding-bottom: 2px;

    box-shadow:
        0 1px 0 rgba(0,0,0,0.05),
        0 4px 12px rgba(11, 92, 255, 0.10);
}

.phoenix-header.is-compact .phoenix-logo img {
    transform: scale(0.78);
}

/* ==================================================
   DESKTOP SAFETY — MOBILE ELEMENTS OFF
================================================== */

.phoenix-hamburger {
    display: none;
}

.phoenix-mobile-menu {
    display: none;
}





/* ==================================================
   MOBILE HEADER & MENU (≤ 768px)
   FINAL — WORKING LOGIC PRESERVED + POLISHED
================================================== */

@media (max-width: 768px) {

    /* ===============================
       HEADER (shrink-on-scroll preserved)
    =============================== */

    .phoenix-header {
        position: sticky;
        top: 0;
        z-index: 1400;
        padding: 12px 16px;
        background: #ffffff;
    }

    .phoenix-header > div {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .phoenix-nav {
        display: none !important;
    }

    /* Logo */
    .phoenix-logo img {
        max-height: 42px;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }

    /* ===============================
       HAMBURGER / CLOSE
    =============================== */

    .phoenix-hamburger {
        position: relative;
        z-index: 1500; /* always above menu */
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        margin-left: auto;
    }

    .phoenix-hamburger span {
        width: 24px;
        height: 2px;
        background: #111;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    body.mobile-menu-open .phoenix-hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    body.mobile-menu-open .phoenix-hamburger span:nth-child(2) {
        opacity: 0;
    }

    body.mobile-menu-open .phoenix-hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* ===============================
       MOBILE MENU TRAY (DO NOT CHANGE MECHANICS)
    =============================== */

    .phoenix-mobile-menu {
        position: fixed;
        top: 100%;              /* hidden by default */
        left: 0;
        right: 0;
        bottom: 0;

        background: #ffffff;
        z-index: 1300;

        padding: 20px 18px 24px;
        overflow-y: auto;

        transition: top 0.35s ease;
    }

    body.mobile-menu-open .phoenix-mobile-menu {
        top: 64px;              /* opens below header */
    }

    /* 🔒 HARD VISIBILITY GUARANTEE (REQUIRED) */
    .phoenix-mobile-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* ===============================
       PRIMARY MOBILE NAV ITEMS
    =============================== */

    .phoenix-mobile-nav > a,
    .mobile-submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 14px 6px;
        font-size: 17px;
        font-weight: 500;
        color: #111;
        text-decoration: none;

        background: none;
        border: none;
        width: 100%;
        text-align: left;

        border-bottom: 1px solid #eee;
        cursor: pointer;
    }

    .phoenix-mobile-nav > a:active,
    .mobile-submenu-toggle:active {
        background: rgba(11, 92, 255, 0.04);
    }

    /* ===============================
       SUBMENU INDICATOR (INDUSTRY)
    =============================== */

    .mobile-submenu-toggle {
        position: relative;
        padding-right: 30px;
        font-weight: 600;
    }

    .mobile-submenu-toggle::after {
        content: "▾";
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        color: #555;
        transition: transform 0.25s ease;
    }

    .mobile-nav-item.open .mobile-submenu-toggle::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* ===============================
       SUBMENU CONTAINER
    =============================== */

    .mobile-submenu {
        display: none;
        margin-top: 6px;
        padding: 8px 0 12px 14px;

        background: rgba(11, 92, 255, 0.03);
        border-left: 2px solid rgba(11, 92, 255, 0.25);
    }

    .mobile-nav-item.open .mobile-submenu {
        display: block;
    }

    .mobile-submenu a {
        display: block;
        padding: 10px 0;
        font-size: 15px;
        font-weight: 500;
        color: #0b5cff;
        text-decoration: none;
    }

    .mobile-submenu a:active {
        text-decoration: underline;
    }
}



