/* =====================================================
   WAIN NAKUL — CENTRAL PUBLIC HEADER ONLY
   Generated from approved V4 header rules
===================================================== */

/* SOURCE: wain-nakul-v4.css */
/* ==========================================================
   WAIN NAKUL V4
   GLOBAL DESIGN SYSTEM
   Desktop + Tablet + Mobile
========================================================== */

:root{


    --wn4-brand:var(--wn-color-brand);
    --wn4-brand-dark:var(--wn-color-brand-dark);
    --wn4-brand-soft:var(--wn-color-brand-soft);

    --wn4-purple:var(--wn-color-purple);

    --wn4-ink:var(--wn-color-ink);
    --wn4-text:var(--wn-color-text);
    --wn4-muted:var(--wn-color-muted);

    --wn4-bg:var(--wn-color-page);
    --wn4-surface:var(--wn-color-surface);
    --wn4-line:var(--wn-color-line);

    --wn4-success:var(--wn-color-success);

    --wn4-footer:var(--wn-color-brand-dark);

    --wn4-shadow:
        0 18px 50px var(--wn-color-v4-rgba-57-20-47-08);

    --wn4-radius-xl:32px;
    --wn4-radius-lg:24px;
    --wn4-radius-md:18px;
    --wn4-radius-sm:13px;

    --wn4-container:1240px;

}

/* CONTAINER */

.wn4-container{

    width:min(
        calc(100% - (var(--wn-compact-gutter-desktop) * 2)),
        var(--wn4-container)
    );

    margin-inline:auto;

}

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

.wn4-header{

    position:sticky;
    z-index:100;
    top:0;

    height:78px;

    background:var(--wn-color-surface-strong);

    border-bottom:
        1px solid var(--wn-color-v4-rgba-238-230-236-9);

    backdrop-filter:blur(18px);

}

.wn4-header-inner{

    height:100%;

    display:grid;

    grid-template-columns:
        190px
        minmax(0,1fr)
        190px;

    align-items:center;

    gap:26px;

}

.wn4-brand{

    justify-self:start;

    display:flex;
    align-items:center;

}

.wn4-brand img{

    width:58px;
    height:58px;

    object-fit:contain;

}

/* DESKTOP NAV */

.wn4-desktop-nav{

    justify-self:center;

    display:flex;
    align-items:center;

    gap:30px;

}

.wn4-desktop-nav a{

    position:relative;

    padding:28px 0 24px;

    color:var(--wn4-text);

    font-size:14px;
    font-weight:800;

    transition:
        color .2s ease;

}

.wn4-desktop-nav a:hover,
.wn4-desktop-nav a.is-active{

    color:var(--wn4-brand);

}

.wn4-desktop-nav a.is-active::after{

    content:"";

    position:absolute;

    right:0;
    bottom:17px;
    left:0;

    height:3px;

    border-radius:99px;

    background:var(--wn4-brand);

}

/* HEADER ACTIONS */

.wn4-header-actions{

    justify-self:end;

    display:flex;
    align-items:center;

    gap:9px;

}

.wn4-header-icon{

    width:42px;
    height:42px;

    display:grid;
    place-items:center;

    border:
        1px solid var(--wn4-line);

    border-radius:50%;

    background:var(--wn-color-surface);

    color:var(--wn4-ink);

}

.wn4-account-button{

    min-width:88px;
    height:42px;

    padding:0 17px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:var(--wn-radius-ui);

    background:var(--wn4-brand-soft);

    color:var(--wn4-brand);

    font-size:13px;
    font-weight:900;

}

.wn4-footer-bottom .wn4-container{

    padding:
        18px
        0;

}

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

.wn4-mobile-nav{

    display:none;

}

/* ==========================================================
   V4 REAL MESSAGE NOTIFICATION
========================================================== */

.wn4-message-notification{

    position:relative;

}

.wn4-message-notification .wn-header-envelope{

    position:relative;

    width:42px;
    height:42px;

    display:grid;
    place-items:center;

    border:1px solid var(--wn4-line);
    border-radius:50%;

    background:var(--wn-color-surface);

    color:var(--wn4-ink);

}

.wn4-message-notification .wn-header-envelope-label{

    width:18px;
    height:14px;

    overflow:hidden;

    display:block;

    font-size:0;

    border:1.8px solid currentColor;
    border-radius:5px;

}

.wn4-message-notification .wn-header-envelope-label::before{

    content:"";

    position:absolute;

    width:8px;
    height:8px;

    top:11px;
    left:50%;

    border-right:1.8px solid currentColor;
    border-bottom:1.8px solid currentColor;

    transform:
        translateX(-50%)
        rotate(45deg);

}

.wn4-message-notification .wn-header-envelope-count{

    position:absolute;

    top:-4px;
    right:-4px;

    min-width:18px;
    height:18px;

    padding:0 4px;

    display:grid;
    place-items:center;

    border:2px solid var(--wn-color-surface);
    border-radius:99px;

    background:var(--wn4-brand);

    color:var(--wn-color-surface);

    font-size:8px;
    font-weight:900;

}

@media
(min-width:768px)
and
(max-width:1100px){
.wn4-message-notification .wn-header-envelope{

        width:38px;
        height:38px;
    
}
}

@media
(max-width:767px){
.wn4-message-notification .wn-header-envelope{

        width:38px;
        height:38px;
    
}
}

/* ==========================================================
   V4 MOBILE NAV - REAL SVG ICONS
========================================================== */

.wn4-mobile-nav-icon{

    width:24px;
    height:24px;

    display:grid;
    place-items:center;

    color:currentColor;

}

.wn4-mobile-nav-icon svg{

    display:block;
    width:20px;
    height:20px;

}

.wn4-footer-pro .wn4-container{

    padding-top:30px;
    padding-bottom:16px;

}

/* SOURCE: wain-nakul-identity-v1.css */
/* ==========================================================
   WAIN NAKUL — IDENTITY V1
   وين ناكل — الهوية الجديدة

   Architecture:
   - Arabic RTL ready
   - English LTR ready
   - Desktop
   - Tablet / iPad
   - Mobile

   Important:
   The Wain Nakul map + food artwork is the visual STRUCTURE,
   not merely a decorative reference.
========================================================== */

:root{

    --wn-brand: var(--wn-color-brand);
    --wn-brand-dark: var(--wn-color-brand-dark);
    --wn-brand-deep: var(--wn-color-brand-deep);
    --wn-purple: var(--wn-color-purple);

    --wn-text: var(--wn-color-ink);
    --wn-text-soft: var(--wn-color-text-soft);
    --wn-muted: var(--wn-color-muted);

    --wn-surface: var(--wn-color-surface-glass);
    --wn-surface-strong: var(--wn-color-surface-strong);
    --wn-surface-soft: var(--wn-color-surface-soft);

    --wn-line: var(--wn-color-line-soft);

    --wn-shadow-sm:
        0 8px 24px var(--wn-color-identity-rgba-75-27-61-p07);

    --wn-shadow:
        0 18px 50px var(--wn-color-identity-rgba-75-27-61-p1);

    --wn-radius-sm: 14px;
    --wn-radius-md: 20px;
    --wn-radius-lg: 28px;
    --wn-radius-xl: 36px;

    --wn-container: 1240px;

    --wn-space-page:
        clamp(16px, 3vw, 32px);

    --wn-section-gap:
        clamp(28px, 5vw, 64px);

    --wn-header-height: 78px;

    /*
       This variable will point to the approved
       Wain Nakul master identity artwork in Check 5.
    */
    --wn-identity-image: url('/images/wain-nakul/identity/wain-nakul-current-identity.svg');

}

.wn4-home-page .wn4h-hero .wn4-container{

    position: relative;
    z-index: 2;

}

.wn4-footer-pro .wn4-container{

    position: relative;
    z-index: 2;

}

/* SOURCE: wain-nakul-redesign-v1.css */
/* ==========================================================
   WAIN NAKUL REDESIGN V1
   First visual layer only
========================================================== */

:root{

    --wn-bg-soft: var(--wn-color-redesign-bg-soft);
    --wn-bg-strong: var(--wn-color-redesign-bg-strong);
    --wn-border-soft: var(--wn-color-redesign-border-soft);
    --wn-shadow-soft: 0 18px 45px var(--wn-color-redesign-value-rgba-120-40-140-p12);
    --wn-text-main: var(--wn-color-redesign-text);
    --wn-text-soft: var(--wn-color-redesign-text-soft);
    --wn-accent: var(--wn-color-accent);
    --wn-accent-dark: var(--wn-color-accent-dark);

}

.wn4-header,
.wn4-main,
.wn4-footer,
.wn4-mobile-nav{

    position:relative;
    z-index:1;

}

.wn4-header{

    background:var(--wn-color-identity-rgba-255-255-255-p56);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid var(--wn-color-redesign-value-rgba-203-131-202-p18);
    box-shadow:0 8px 30px var(--wn-color-redesign-value-rgba-136-67-145-p08);

}

.wn4-header-inner{

    min-height:84px;

}

.wn4-brand img{

    max-height:56px;
    width:auto;

}

.wn4-desktop-nav a,
.wn4-header-icon,
.wn4-account-button{

    transition:all .18s ease;

}

.wn4-desktop-nav a{

    color:var(--wn-text-main);
    font-weight:700;

}

.wn4-desktop-nav a.is-active,
.wn4-desktop-nav a:hover{

    color:var(--wn-accent-dark);

}

.wn4-account-button{

    background:var(--wn-color-public-form-surface-74);
    border:1px solid var(--wn-color-redesign-value-rgba-201-127-198-p22);
    border-radius:999px;
    color:var(--wn-text-main);
    box-shadow:0 8px 20px var(--wn-color-redesign-value-rgba-127-55-143-p08);

}

.wn4-account-button:hover{

    background:var(--wn-color-info-surface-92);
    color:var(--wn-accent-dark);

}

.wn4-container{

    position:relative;
    z-index:1;

}

.wn4-mobile-nav{

    background:var(--wn-color-public-info-surface-82);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    border-top:1px solid var(--wn-color-redesign-value-rgba-203-131-202-p18);
    box-shadow:0 -10px 28px var(--wn-color-redesign-value-rgba-127-55-143-p1);

}

.wn4-mobile-nav a{

    color:var(--wn-text-soft);

}

.wn4-mobile-nav a.is-active{

    color:var(--wn-accent-dark);

}

.wn-redesign-sponsors .wn4-container{

    width:min(100% - 28px, 1100px);
    margin-inline:auto;

}

.wn-home-footer .wn4-container{

    text-align:center;

}

.wn-home-showcase .wn4-container{

    width:min(100% - 32px, 1100px) !important;

}

.wn4-home-page .wn-home-showcase .wn4-container{

    width:min(100% - 28px, 1180px) !important;

}


@media (max-width: 767px) {
    body.wn-site-global-background {
        padding-bottom:
            calc(84px + env(safe-area-inset-bottom)) !important;
    }
}

/* ==========================================================
   WAIN NAKUL — FINAL MOBILE NAV
   Phone: bottom navigation only
   Desktop navigation hidden on phone
========================================================== */

@media (max-width: 767px){

    /* لا يظهر شريط الكمبيوتر في الجوال */
    .wn4-desktop-nav{
        display:none !important;
    }

    /* شريط الجوال المعتمد */
    .wn4-mobile-nav{
        display:grid !important;
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;

        position:fixed !important;
        top:auto !important;
        right:0 !important;
        bottom:0 !important;
        left:0 !important;

        width:100% !important;
        min-height:64px;

        margin:0 !important;

        padding:
            7px
            8px
            calc(7px + env(safe-area-inset-bottom)) !important;

        z-index:1000 !important;

        background:var(--wn-color-footer-surface-94);
        border-top:1px solid var(--wn-color-redesign-value-rgba-203-131-202-p18);
        box-shadow:0 -10px 28px var(--wn-color-redesign-value-rgba-127-55-143-p1);

        backdrop-filter:blur(16px);
        -webkit-backdrop-filter:blur(16px);
    }

    .wn4-mobile-nav a{
        min-width:0;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:2px;
    }

    .wn4-mobile-nav a small{
        font-size:9px;
        line-height:1.2;
        white-space:nowrap;
    }

    body.wn-site-global-background{
        padding-bottom:
            calc(84px + env(safe-area-inset-bottom)) !important;
    }
}


/* WAIN NAKUL — FINAL MOBILE TOP HEADER
   Phone header only.
   Bottom navigation is intentionally untouched.
========================================================== */

@media (max-width:767px){

    .wn4-header{
        position:sticky !important;
        top:0 !important;
        z-index:900 !important;

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

        background:var(--wn-color-info-surface-92) !important;
        border-bottom:1px solid var(--wn-color-global-header-line-16) !important;

        backdrop-filter:blur(16px) !important;
        -webkit-backdrop-filter:blur(16px) !important;
    }

    .wn4-header .wn4-container{
        width:calc(100% - 24px) !important;
        max-width:none !important;
        margin-inline:auto !important;
    }

    .wn4-header-inner{
        height:64px !important;
        min-height:64px !important;

        display:grid !important;
        grid-template-columns:1fr auto !important;
        align-items:center !important;

        gap:10px !important;
        padding:0 !important;
    }

    .wn4-brand{
        justify-self:start !important;
        display:flex !important;
        align-items:center !important;

        width:47px !important;
        height:47px !important;
    }

    .wn4-brand img{
        display:block !important;

        width:47px !important;
        height:47px !important;
        max-width:47px !important;
        max-height:47px !important;

        object-fit:contain !important;
    }

    .wn4-desktop-nav{
        display:none !important;
    }

    .wn4-header-actions{
        justify-self:end !important;

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

        gap:8px !important;
        flex-wrap:nowrap !important;
        white-space:nowrap !important;
    }

    /* الحساب موجود في الشريط السفلي على الهاتف */
    .wn4-header-actions .wn4-account-button{
        display:none !important;
    }

    .wn4-header-icon,
    .wn4-message-notification .wn-header-envelope{
        width:38px !important;
        height:38px !important;
        min-width:38px !important;
        min-height:38px !important;
        max-width:38px !important;
        max-height:38px !important;

        padding:0 !important;
        flex:0 0 38px !important;

        display:grid !important;
        place-items:center !important;
    }

    .wn4-header-actions svg{
        width:20px !important;
        height:20px !important;
    }

    .wn4-message-notification{
        flex:0 0 auto !important;
        margin:0 !important;
    }
}

/* WAIN NAKUL — MOBILE TOP HEADER FINAL SIDES
   Logo right — messages/notifications left
========================================================== */
@media (max-width:767px){

    .wn4-header-inner{
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        justify-content:space-between !important;

        width:100% !important;
        height:64px !important;

        gap:12px !important;
        padding:0 !important;
    }

    /* الشعار في اليمين */
    .wn4-brand{
        flex:0 0 auto !important;
        margin:0 !important;

        width:52px !important;
        height:52px !important;
    }

    .wn4-brand img{
        width:52px !important;
        height:52px !important;
        max-width:52px !important;
        max-height:52px !important;
        object-fit:contain !important;
    }

    /* الرسائل والإشعارات في اليسار */
    .wn4-header-actions{
        flex:0 0 auto !important;

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

        gap:7px !important;
        margin:0 !important;
    }

    .wn4-header-actions .wn4-account-button{
        display:none !important;
    }

    .wn4-header-icon,
    .wn4-message-notification .wn-header-envelope{
        width:38px !important;
        height:38px !important;
        min-width:38px !important;
        min-height:38px !important;
        flex:0 0 38px !important;
    }
}
