/* ==================================================

   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);

}








/* ==================================================
   INDUSTRY DROPDOWN — MATTE TILE SURFACE
================================================== */

.phoenix-dropdown {
    /* visibility */
    display: none;

    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);

    /* matte neutral canvas */
    background: #f6f8fb;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;

    padding: 18px;

    width: max-content;
    max-width: min(94vw, 700px);

    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);

    /* grid settings ONLY (safe while hidden) */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;

    z-index: 1200;
}




/* ==================================================
   SHOW DROPDOWN
================================================== */

.phoenix-nav-item:hover .phoenix-dropdown,
.phoenix-nav-item:focus-within .phoenix-dropdown {
    display: grid;
}


/* ==================================================
   INDUSTRY TILE — LUMIA STYLE
================================================== */

.phoenix-dropdown a {
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 18px 14px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    color: #0f172a;
    text-decoration: none;

    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 8px;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}


/* ==================================================
   TILE HOVER
================================================== */

.phoenix-dropdown a:hover {
    background: #eef3ff;
    border-color: rgba(11, 92, 255, 0.28);
    color: #0b5cff;
}


@media (max-width: 1024px) {
    .phoenix-dropdown {
        max-width: min(94vw, 640px);
    }
}













/* ==================================================

   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;

    }

}







