/*
=========================================================
 ARAX SECURITY SYSTEMS
 CUSTOM HEADER
 Compatible with current arax_render_custom_header()
=========================================================
*/


/* =========================================================
   RESET / BASE
========================================================= */

#arax-site-header,
#arax-site-header *,
#arax-site-header *::before,
#arax-site-header *::after {
    box-sizing: border-box;
}

#arax-site-header {
    position: sticky;
    top: 0;
    z-index: 99999;

    width: 100%;
    max-width: 100%;

    direction: rtl;

    font-family: 'Cairo', sans-serif;

    background: #ffffff;
    color: #222222;

    border-bottom: 1px solid #dddddd;

    box-shadow: 0 3px 14px rgba(0,0,0,.10);

    overflow: visible;

    transition:
        box-shadow .25s ease;
}

#arax-site-header a {
    font-family: 'Cairo', sans-serif;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

#arax-site-header .arax-header-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding-left: 22px;
    padding-right: 22px;

    box-sizing: border-box;
}


/* =========================================================
   TOP BAR
========================================================= */

#arax-site-header .arax-topbar {
    width: 100%;

    min-height: 36px;

    background: #641b26;
    color: #ffffff;

    display: block;

    transition:
        min-height .25s ease,
        padding .25s ease;
}

#arax-site-header .arax-topbar
.arax-header-container {

    min-height: 36px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


/* RIGHT SIDE */

#arax-site-header .arax-topbar-right {
    display: flex;

    align-items: center;

    gap: 20px;

    min-width: 0;
}


/* LEFT SIDE */

#arax-site-header .arax-topbar-left {

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;

    opacity: .95;
}


/* TOP LINKS */

#arax-site-header .arax-top-link {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #ffffff !important;

    text-decoration: none;

    font-size: 11px;

    font-weight: 500;

    white-space: nowrap;

    transition: opacity .2s ease;
}

#arax-site-header .arax-top-link:hover {
    color: #ffffff !important;
    opacity: .75;
}

#arax-site-header .arax-icon {
    font-weight: 600;
}


/* =========================================================
   MAIN HEADER
========================================================= */

#arax-site-header .arax-main-header {
    width: 100%;

    background: #ffffff;

    color: #222222;
}


/* =========================================================
   MAIN HEADER CONTAINER
========================================================= */

#arax-site-header .arax-main-header
> .arax-header-container {

    min-height: 92px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding-top: 9px;
    padding-bottom: 9px;
}


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

#arax-site-header .arax-logo {

    flex: 0 0 auto;

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 180px;
}

#arax-site-header .arax-logo a {
    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;
}

#arax-site-header .arax-logo img,
#arax-site-header .arax-logo .custom-logo {

    display: block;

    width: auto;

    max-width: 185px;

    max-height: 70px;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   FALLBACK TEXT LOGO
========================================================= */

#arax-site-header .arax-text-logo {

    flex-direction: column;

    line-height: 1;

    text-decoration: none;
}

#arax-site-header .arax-logo-main {

    color: #641b26;

    font-size: 30px;

    font-weight: 700;

    letter-spacing: 2px;
}

#arax-site-header .arax-logo-sub {

    margin-top: 5px;

    color: #777777;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1px;
}


/* =========================================================
   HEADER INFORMATION
========================================================= */

#arax-site-header .arax-header-info {

    flex: 1 1 auto;

    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 14px;
}


/* =========================================================
   INFO ITEMS
========================================================= */

#arax-site-header .arax-info-item {

    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 0;

    padding:
        5px 10px;

    border-left: 1px solid #e2e2e2;
}

#arax-site-header .arax-info-icon {

    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #f3f3f3;

    color: #641b26;

    font-size: 15px;
}

#arax-site-header .arax-info-item small {

    display: block;

    color: #777777;

    font-size: 9px;

    line-height: 1.4;

    white-space: nowrap;
}

#arax-site-header .arax-info-item strong {

    display: block;

    color: #333333;

    font-size: 11px;

    font-weight: 700;

    line-height: 1.5;

    white-space: nowrap;
}


/* =========================================================
   BRAND BADGES
========================================================= */

#arax-site-header .arax-brand-badge {

    min-width: 105px;

    height: 48px;

    padding:
        5px 9px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 1px;

    background: #ffffff;

    border: 1px solid #d8d8d8;

    border-radius: 5px;

    box-shadow:
        0 2px 7px rgba(0,0,0,.05);

    flex: 0 0 auto;
}


/* AUTHORIZED TEXT */

#arax-site-header .arax-brand-authorized {

    display: block;

    color: #555555;

    font-family: 'Cairo', sans-serif;

    font-size: 9px;

    font-weight: 600;

    line-height: 1.4;

    white-space: nowrap;
}


/* HIKVISION */

#arax-site-header .arax-hikvision-logo-text {

    display: block;

    color: #e30613;

    font-family: Arial, sans-serif;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: .3px;

    line-height: 1.2;
}


/* UNV */

#arax-site-header .arax-unv-logo-text {

    display: block;

    color: #1477bd;

    font-family: Arial, sans-serif;

    font-size: 18px;

    font-weight: 800;

    letter-spacing: 1px;

    line-height: 1.2;
}


/* =========================================================
   QUOTE BUTTON
========================================================= */

#arax-site-header .arax-quote-button {

    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 125px;

    min-height: 42px;

    padding:
        7px 15px;

    border-radius: 5px;

    background: #641b26;

    color: #ffffff !important;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

#arax-site-header .arax-quote-button:hover {

    background: #49131c;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(100,27,38,.20);
}


/* =========================================================
   NAVIGATION ROW
========================================================= */

#arax-site-header .arax-navigation-row {

    width: 100%;

    background: #ffffff;

    border-top: 1px solid #eeeeee;

    border-bottom: 1px solid #dddddd;
}

#arax-site-header .arax-navigation-row
.arax-header-container {

    padding-top: 5px;
    padding-bottom: 5px;
}


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

#arax-site-header #arax-navigation {

    width: 100%;

    position: relative;

    margin: 0;

    padding: 0;
}

#arax-site-header .arax-menu-wrapper {
    width: 100%;
}


/* =========================================================
   PRIMARY WORDPRESS MENU
========================================================= */

#arax-site-header .arax-primary-menu {

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;

    align-items: stretch;

    justify-content: center;

    gap: 4px;

    direction: rtl;
}

#arax-site-header .arax-primary-menu > li {

    position: relative;

    flex: 1 1 0;

    min-width: 0;

    margin: 0;
    padding: 0;

    list-style: none;
}

#arax-site-header .arax-primary-menu > li > a {

    width: 100%;

    min-height: 40px;

    padding:
        6px 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    border-radius: 4px;

    color: #333333 !important;

    background: #ffffff;

    text-decoration: none;

    font-family: 'Cairo', sans-serif;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.5;

    white-space: normal;

    transition:
        background .2s ease,
        color .2s ease;
}

#arax-site-header .arax-primary-menu > li:hover > a,
#arax-site-header .arax-primary-menu > li:focus-within > a {

    background: #f4f4f4;

    color: #641b26 !important;
}


/* =========================================================
   DROPDOWN ARROW
========================================================= */

#arax-site-header
.arax-primary-menu
.menu-item-has-children
> a::after {

    content: "⌄";

    display: inline-block;

    margin-right: 6px;

    color: #641b26;

    font-size: 13px;

    font-weight: 700;

    line-height: 1;

    transition:
        transform .2s ease;
}

#arax-site-header
.arax-primary-menu
.menu-item-has-children:hover
> a::after,
#arax-site-header
.arax-primary-menu
.menu-item-has-children:focus-within
> a::after {

    transform: rotate(180deg);
}


/* =========================================================
   DESKTOP SUBMENU
========================================================= */

#arax-site-header
.arax-primary-menu
.sub-menu {

    position: absolute;

    top: calc(100% + 4px);

    right: 0;

    z-index: 100000;

    min-width: 215px;

    max-width: 300px;

    margin: 0;

    padding: 5px;

    list-style: none;

    background: #ffffff;

    border: 1px solid #dddddd;

    border-top:
        3px solid #641b26;

    border-radius:
        0 0 5px 5px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.14);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(5px);

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}

#arax-site-header
.arax-primary-menu
.menu-item-has-children:hover
> .sub-menu,
#arax-site-header
.arax-primary-menu
.menu-item-has-children:focus-within
> .sub-menu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}

#arax-site-header
.arax-primary-menu
.sub-menu li {

    position: relative;

    margin: 0;
    padding: 0;

    list-style: none;
}

#arax-site-header
.arax-primary-menu
.sub-menu a {

    width: 100%;

    min-height: 37px;

    padding:
        6px 10px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    color: #333333 !important;

    background: #ffffff;

    text-decoration: none;

    font-size: 11px;

    font-weight: 500;

    line-height: 1.5;

    text-align: right;

    border-radius: 4px;

    white-space: normal;
}

#arax-site-header
.arax-primary-menu
.sub-menu a:hover {

    background: #f4f4f4;

    color: #641b26 !important;
}


/* =========================================================
   MOBILE QUOTE
========================================================= */

#arax-site-header .arax-mobile-quote {
    display: none;
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

#arax-site-header .arax-mobile-toggle {

    display: none;

    width: 42px;
    height: 40px;

    padding: 0;

    flex: 0 0 42px;

    border: 1px solid #d2d2d2;

    border-radius: 5px;

    background: #ffffff;

    cursor: pointer;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 4px;
}

#arax-site-header .arax-mobile-toggle span {

    display: block;

    width: 20px;
    height: 2px;

    background: #641b26;

    border-radius: 2px;
}


/* =========================================================
   SCROLLED / COMPACT HEADER
========================================================= */

#arax-site-header.arax-scrolled {

    box-shadow:
        0 4px 18px rgba(0,0,0,.14);
}


/* TOP BAR SHRINK */

#arax-site-header.arax-scrolled
.arax-topbar {

    min-height: 27px;
}

#arax-site-header.arax-scrolled
.arax-topbar
.arax-header-container {

    min-height: 27px;
}

#arax-site-header.arax-scrolled
.arax-topbar-left {

    font-size: 10px;
}

#arax-site-header.arax-scrolled
.arax-top-link {

    font-size: 10px;
}


/* MAIN HEADER SHRINK */

#arax-site-header.arax-scrolled
.arax-main-header
> .arax-header-container {

    min-height: 63px;

    padding-top: 5px;
    padding-bottom: 5px;

    gap: 16px;
}


/* LOGO SHRINK */

#arax-site-header.arax-scrolled
.arax-logo img,
#arax-site-header.arax-scrolled
.arax-logo .custom-logo {

    max-width: 145px;

    max-height: 52px;
}


/* INFO SHRINK */

#arax-site-header.arax-scrolled
.arax-info-item {

    padding:
        3px 7px;
}

#arax-site-header.arax-scrolled
.arax-info-icon {

    width: 25px;
    height: 25px;

    flex-basis: 25px;

    font-size: 12px;
}

#arax-site-header.arax-scrolled
.arax-info-item small {

    font-size: 8px;
}

#arax-site-header.arax-scrolled
.arax-info-item strong {

    font-size: 10px;
}


/* BADGES SHRINK */

#arax-site-header.arax-scrolled
.arax-brand-badge {

    height: 39px;

    min-width: 88px;

    padding:
        3px 6px;
}

#arax-site-header.arax-scrolled
.arax-brand-authorized {

    font-size: 7px;
}

#arax-site-header.arax-scrolled
.arax-hikvision-logo-text {

    font-size: 12px;
}

#arax-site-header.arax-scrolled
.arax-unv-logo-text {

    font-size: 14px;
}


/* QUOTE SHRINK */

#arax-site-header.arax-scrolled
.arax-quote-button {

    min-width: 105px;

    min-height: 35px;

    padding:
        5px 9px;

    font-size: 10px;
}


/* NAV SHRINK */

#arax-site-header.arax-scrolled
.arax-navigation-row
.arax-header-container {

    padding-top: 3px;
    padding-bottom: 3px;
}

#arax-site-header.arax-scrolled
.arax-primary-menu > li > a {

    min-height: 35px;

    padding:
        5px 6px;

    font-size: 11px;
}


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

@media (max-width: 1150px) {

    #arax-site-header
    .arax-header-container {

        padding-left: 14px;
        padding-right: 14px;
    }

    #arax-site-header
    .arax-header-info {

        gap: 7px;
    }

    #arax-site-header
    .arax-info-item {

        padding:
            4px 6px;
    }

    #arax-site-header
    .arax-info-item strong {

        font-size: 10px;
    }

    #arax-site-header
    .arax-brand-badge {

        min-width: 88px;
    }

    #arax-site-header
    .arax-quote-button {

        min-width: 105px;

        font-size: 11px;
    }

}


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

@media (max-width: 768px) {

    #arax-site-header {

        position: sticky;

        top: 0;
    }


    /* =====================================================
       TOPBAR
    ===================================================== */

    #arax-site-header .arax-topbar {

        min-height: 30px;
    }

    #arax-site-header .arax-topbar
    .arax-header-container {

        min-height: 30px;

        justify-content: center;

        padding:
            3px 10px;
    }

    #arax-site-header
    .arax-topbar-right {

        display: none;
    }

    #arax-site-header
    .arax-topbar-left {

        font-size: 9px;

        text-align: center;

        white-space: normal;
    }


    /* =====================================================
       MAIN HEADER
    ===================================================== */

    #arax-site-header
    .arax-main-header
    > .arax-header-container {

        min-height: 60px;

        padding:
            5px 9px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 6px;
    }


    /* =====================================================
       HEADER INFORMATION
    ===================================================== */

    #arax-site-header
    .arax-header-info {

        display: contents;
    }

    /* إخفاء الهاتف والإيميل */
    #arax-site-header
    .arax-info-item {

        display: none;
    }


    /* =====================================================
       UNV + HIKVISION BRAND BADGES
    ===================================================== */

    #arax-site-header
    .arax-brand-badge {

        display: flex;

        width: 76px;

        min-width: 76px;

        height: 38px;

        padding:
            3px 4px;

        flex: 0 0 76px;

        align-items: center;

        justify-content: center;

        border-radius: 4px;

        box-shadow:
            0 1px 4px rgba(0,0,0,.06);
    }

    #arax-site-header
    .arax-brand-authorized {

        display: block;

        font-size: 6px;

        font-weight: 600;

        line-height: 1.2;

        white-space: nowrap;

        text-align: center;
    }

    #arax-site-header
    .arax-hikvision-logo-text {

        font-size: 10px;

        line-height: 1.1;

        white-space: nowrap;
    }

    #arax-site-header
    .arax-unv-logo-text {

        font-size: 12px;

        line-height: 1.1;

        white-space: nowrap;
    }


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

    #arax-site-header
    .arax-logo {

        min-width: 0;

        flex: 1 1 auto;

        justify-content: center;

        order: 2;
    }

    #arax-site-header
    .arax-logo img,
    #arax-site-header
    .arax-logo .custom-logo {

        max-width: 135px;

        max-height: 48px;
    }


    /*
       ترتيب البطاقات:
       UNV = يسار
       ARAX = وسط
       HIKVISION = يمين
    */

    #arax-site-header
    .arax-header-info
    .arax-brand-badge:first-of-type {

        order: 1;
    }

    #arax-site-header
    .arax-header-info
    .arax-brand-badge:nth-of-type(2) {

        order: 3;
    }


    /* =====================================================
       DESKTOP QUOTE BUTTON
       إخفاؤه من الموبايل
    ===================================================== */

    #arax-site-header
    .arax-quote-button {

        display: none;
    }


    /* =====================================================
       MOBILE MENU BUTTON
    ===================================================== */

    #arax-site-header
    .arax-mobile-toggle {

        display: flex;

        order: 4;

        width: 40px;

        height: 38px;

        flex: 0 0 40px;
    }


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

    #arax-site-header
    .arax-navigation-row {

        display: none;
    }

    #arax-site-header
    .arax-navigation-row
    .arax-header-container {

        padding:
            6px 9px;
    }

    #arax-site-header
    #arax-navigation.arax-mobile-open {

        display: block;
    }

    #arax-site-header
    .arax-navigation-row:has(
        #arax-navigation.arax-mobile-open
    ) {

        display: block;
    }


    /* =====================================================
       MOBILE MENU
    ===================================================== */

    #arax-site-header
    .arax-primary-menu {

        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 3px;

        align-items: stretch;
    }

    #arax-site-header
    .arax-primary-menu > li {

        width: 100%;

        flex: none;
    }

    #arax-site-header
    .arax-primary-menu > li > a {

        min-height: 42px;

        padding:
            7px 11px;

        justify-content: space-between;

        font-size: 12px;

        text-align: right;

        border:
            1px solid #eeeeee;
    }


    /* =====================================================
       MOBILE SUBMENU
    ===================================================== */

    #arax-site-header
    .arax-primary-menu
    .sub-menu {

        position: static;

        display: none;

        width: 100%;

        min-width: 0;

        max-width: none;

        margin:
            2px 0 3px;

        padding: 4px;

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: none;

        border:
            1px solid #e5e5e5;

        border-top:
            2px solid #641b26;

        border-radius: 4px;

        box-shadow: none;

        background: #fafafa;
    }

    #arax-site-header
    .arax-primary-menu
    li.arax-submenu-open
    > .sub-menu {

        display: block;
    }

    #arax-site-header
    .arax-primary-menu
    .sub-menu a {

        min-height: 36px;

        padding:
            6px 9px;

        font-size: 11px;
    }


    /* =====================================================
       MOBILE QUOTE
       طلب عرض سعر داخل القائمة
    ===================================================== */

    #arax-site-header
    .arax-mobile-quote {

        display: flex;

        margin-top: 7px;

        width: 100%;

        min-height: 40px;

        padding:
            7px 10px;

        align-items: center;

        justify-content: center;

        background: #641b26;

        color: #ffffff !important;

        text-decoration: none;

        border-radius: 4px;

        font-size: 12px;

        font-weight: 700;
    }


    /* =====================================================
       SCROLLED MOBILE
    ===================================================== */

    #arax-site-header.arax-scrolled
    .arax-main-header
    > .arax-header-container {

        min-height: 52px;

        padding:
            3px 8px;
    }

    #arax-site-header.arax-scrolled
    .arax-logo img,
    #arax-site-header.arax-scrolled
    .arax-logo .custom-logo {

        max-width: 115px;

        max-height: 40px;
    }

    #arax-site-header.arax-scrolled
    .arax-brand-badge {

        width: 70px;

        min-width: 70px;

        height: 34px;

        flex-basis: 70px;

        padding:
            2px 3px;
    }

    #arax-site-header.arax-scrolled
    .arax-brand-authorized {

        font-size: 5.5px;
    }

    #arax-site-header.arax-scrolled
    .arax-hikvision-logo-text {

        font-size: 9px;
    }

    #arax-site-header.arax-scrolled
    .arax-unv-logo-text {

        font-size: 11px;
    }

    #arax-site-header.arax-scrolled
    .arax-mobile-toggle {

        width: 37px;

        height: 35px;

        flex-basis: 37px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    #arax-site-header
    .arax-header-container {

        padding-left: 6px;
        padding-right: 6px;
    }

    #arax-site-header
    .arax-main-header
    > .arax-header-container {

        gap: 4px;
    }

    /* بطاقات الشركات */
    #arax-site-header
    .arax-brand-badge {

        width: 68px;

        min-width: 68px;

        flex-basis: 68px;

        height: 36px;

        padding:
            2px 3px;
    }

    #arax-site-header
    .arax-brand-authorized {

        font-size: 5.5px;
    }

    #arax-site-header
    .arax-hikvision-logo-text {

        font-size: 9px;
    }

    #arax-site-header
    .arax-unv-logo-text {

        font-size: 11px;
    }

    /* الشعار */
    #arax-site-header
    .arax-logo img,
    #arax-site-header
    .arax-logo .custom-logo {

        max-width: 115px;

        max-height: 44px;
    }

    /* زر القائمة */
    #arax-site-header
    .arax-mobile-toggle {

        width: 36px;

        height: 36px;

        flex-basis: 36px;
    }

}


/* =========================================================
   ASTRA CONFLICT PREVENTION
========================================================= */

body.arax-custom-header .site-header {
    display: none !important;
}

body.arax-custom-header
.ast-mobile-header-wrap,
body.arax-custom-header
.ast-desktop-header {

    display: none !important;
}


/* =========================================================
   IMPORTANT:
   DO NOT MAKE THE WHOLE BODY BLACK
========================================================= */

body.arax-custom-header {

    background-color: #ffffff;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

#arax-site-header a:focus-visible,
#arax-site-header button:focus-visible {

    outline:
        2px solid #641b26;

    outline-offset: 2px;
}