/* ============================================================
   PANBLOOM HOMEPAGE HEADER
   FINAL AUTHORITY V1

   REAL HOMEPAGES ONLY:
   /
   /ar/

   Loaded AFTER theme/module CSS.

   Desktop contract:
   Row 1 = Logo + action icons
   Row 2 = Main navigation

   No arbitrary logo top offsets.
   ============================================================ */


/* ============================================================
   DESKTOP / LAPTOP
   ============================================================ */

@media screen and (min-width: 1200px) {

    /* --------------------------------------------------------
       HEADER CONTAINER
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {

        display: grid !important;

        grid-template-columns:
            minmax(220px, 1fr)
            auto !important;

        grid-template-rows:
            92px
            64px !important;

        grid-template-areas:
            "brand actions"
            "nav nav" !important;

        width: 100% !important;
        max-width: 100% !important;

        min-height: 156px !important;
        height: 156px !important;

        padding:
            0
            54px !important;

        margin: 0 !important;

        position: relative !important;

        overflow: visible !important;
        box-sizing: border-box !important;
    }


    /* --------------------------------------------------------
       LOGO
       Same row and vertical center as icons.
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {

        grid-area: brand !important;

        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        transform: none !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        align-self: stretch !important;
        justify-self: start !important;

        height: 92px !important;
        min-height: 92px !important;

        overflow: visible !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand a {

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        height: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        position: static !important;
        transform: none !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand img,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand svg {

        display: block !important;

        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        transform: none !important;

        margin: 0 !important;

        max-height: 54px !important;
        width: auto !important;
        height: auto !important;
    }


    /* --------------------------------------------------------
       ACTION ICONS
       Same physical row as logo.
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-actions {

        grid-area: actions !important;

        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        transform: none !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        align-self: stretch !important;
        justify-self: end !important;

        min-height: 92px !important;
        height: 92px !important;

        margin: 0 !important;
        padding: 0 !important;

        gap: 26px !important;
    }


    /* --------------------------------------------------------
       NAVIGATION ROW
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav {

        grid-area: nav !important;

        position: static !important;

        width: 100% !important;

        min-height: 64px !important;
        height: 64px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        gap: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item {

        position: relative !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-link {

        display: flex !important;
        align-items: center !important;

        min-height: 64px !important;

        margin: 0 !important;

        padding:
            0
            10px !important;

        white-space: nowrap !important;
    }


    /* --------------------------------------------------------
       MEGA MENU

       Anchor directly below navigation.
       No translateY historical hacks.
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mega {

        top: 100% !important;
        bottom: auto !important;

        margin-top: 4px !important;

        transform: none !important;

        z-index: 10000 !important;
    }


    /* Kill old arbitrary logo positioning. */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand > a,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand img,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand svg {

        translate: none !important;
    }


    /* Desktop must never show mobile toggle. */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle {

        display: none !important;
    }
}


/* ============================================================
   SMALL LAPTOP DESKTOP
   1200 - 1439
   ============================================================ */

@media screen and (min-width: 1200px) and (max-width: 1439.98px) {

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {

        padding:
            0
            28px !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-actions {

        gap: 18px !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-link {

        padding:
            0
            6px !important;

        font-size: 15px !important;
    }
}


/* ============================================================
   ARABIC DESKTOP
   ============================================================ */

@media screen and (min-width: 1200px) {

    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {

        grid-template-areas:
            "actions brand"
            "nav nav" !important;
    }


    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {

        justify-self: end !important;
        justify-content: flex-end !important;
    }


    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-actions {

        justify-self: start !important;
        justify-content: flex-start !important;
    }


    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav {

        direction: rtl !important;
    }


    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mega {

        direction: rtl !important;
        text-align: right !important;
    }
}


/* ============================================================
   TABLET / MOBILE

   Existing mobile header/drawer implementation remains
   authoritative below 1200.
   ============================================================ */

@media screen and (max-width: 1199.98px) {

    /*
     * Intentionally empty in V1.
     *
     * Do not disturb the currently working iPhone drawer.
     */
}


/* END PANBLOOM HOMEPAGE HEADER FINAL AUTHORITY V1 */
