/* ==========================================================================
   header.css (LIGHT THEME)
   ========================================================================== */

.zvn-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0px 20px;
}

.zvn_header_background{
    background-image: url('../assets/img/ribbon.jpeg');
    background-repeat: no-repeat;
    background-position: left 60%;
    background-size: 100% auto;
}


.zvn-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.zvn-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.zvn-header__logo {
    height: 42px;
    width: auto;
    display: block;
}

.zvn-header__nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 14px;
    border-radius: var(--r-2);
}

.zvn-header__link {
    text-decoration: none;
    color: var(--text);
    font-weight: 900;
    padding: 8px 10px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.7);
    transition: background 140ms ease;
}

.zvn-header__link:hover {
    background: rgba(0, 51, 160, 1);
    color: #ffffff;
}

.zvn-header__link.is-active {
    background: rgba(0, 51, 160, 1);
    border: 1px solid rgba(0, 51, 160, 1);
    color: #ffffff;
    /* outline: 2px solid aliceblue; */
}

.zvn-header__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.zvn-header__qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
}

.zvn-header__qr-img {
    width: 28px;
    height: 28px;
    display: block;
}

/* Burger */
.zvn-header__burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    cursor: pointer;
}

.zvn-header__burger-lines {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    position: relative;
    margin: 0 auto;
}

.zvn-header__burger-lines::before,
.zvn-header__burger-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--text);
}

.zvn-header__burger-lines::before { top: -6px; }
.zvn-header__burger-lines::after { top: 6px; }

/* Drawer */
.zvn-header__drawer {
    position: fixed;
    top: 12px;
    right: 12px;
    left: 12px;

    /* keep your existing styles */
    border-radius: var(--r-2);
    border: 1px solid var(--border);
    
    /* background: rgba(255, 255, 255, 1); */
    /* background: linear-gradient(
        to bottom,
        rgb(255, 220, 220),
        rgb(220, 230, 255),
        rgb(255, 240, 210)
    ); */
    background: linear-gradient(
        to bottom,
        white,   /* very light red (from #D90012) */
        rgb(255, 240, 210)    /* very light orange (from #F2A800) */
    );


    box-shadow: var(--shadow-2);
    backdrop-filter: blur(10px);
    z-index: 2000;

    /* ✅ make it scrollable */
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* keep your padding */
    padding: 12px;

    /* keep your open/close animation base if you added it */
}


.zvn-header__drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.zvn-header__drawer-logo {
    height: 40px;
    width: auto;
}

.zvn-header__drawer-close {
    border: 1px solid var(--border);
    background: #ffffff;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-weight: 900;
}

.zvn-header__drawer-links {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    a:hover{
        box-shadow: 0 6px 16px rgba(242, 168, 0, 0.15);
        transform: translateY(-1px);
        transition: box-shadow 0.5s ease, transform 0.5s ease;
    }
}

.zvn-header__drawer-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 900;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
}

.zvn-header__drawer-link.is-active {
    border-color: rgba(0, 51, 160, 0.25);
    background: rgba(0, 51, 160, 0.08);
}

.zvn-header__drawer-cta {
    margin-top: 14px;
}

.zvn-header__drawer-qr {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    /* display: grid; */
    display: flex;
    gap: 10px;
    .badge{
        height: max-content;
        border: none;
        background: none;
    }
}

.zvn-header__drawer-qr-img {
    width: 180px;
    /* height: 120px; */
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    background: #ffffff;
}

.zvn-header__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 70;
}



/* ==========================================================================
   Mobile drawer open/close (controlled by header.js)
   ========================================================================== */

.zvn-header__drawer,
.zvn-header__backdrop {
    /* Keep in DOM for animation; JS toggles .is-open */
    display: block;
    opacity: 0;
    pointer-events: none;
}

/* Drawer starts off-screen */
.zvn-header__drawer {
    transform: translateX(18px);
    transition: transform 640ms ease, opacity 640ms ease;
}

/* Backdrop fades in */
.zvn-header__backdrop {
    transition: opacity 640ms ease;
}

/* Open state */
.zvn-header__drawer.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.zvn-header__backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Prevent background scroll when menu open */
body.is-menu-open {
    overflow: hidden;
}


/* Responsive */
@media (max-width: 980px) {
    .zvn-header__inner {
        grid-template-columns: 1fr auto;
    }

    .zvn-header__nav {
        display: none;
    }

    .zvn-header__burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


/* Responsive */
@media (max-width: 580px) {
    .zvn_header_background{
        background-image: none;
    }

    .btn.primary.zvn-header__services-btn{
        font-size: 12px;
        line-height: 22px;
    }
}
