/* Site header — desktop + mobile drawer */

.weblazem-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #30103b;
    box-shadow: 0 4px 24px rgba(47, 16, 68, 0.18);
}

.weblazem-header__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.weblazem-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 72px;
}

.weblazem-header__brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.weblazem-header__logo-link {
    display: block;
    line-height: 0;
}

.weblazem-header__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(220px, 42vw);
    max-height: 52px;
    object-fit: contain;
}

.weblazem-header__logo-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.weblazem-header-nav--desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.weblazem-header-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 0px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.weblazem-header-menu li{
    position:relative;
}

.weblazem-header-menu .sub-menu{
    position:absolute;
    top:100%;
    right:0;

    display:none;
    flex-direction:column;

    min-width:240px;

    background:#4f1c61;

    padding:10px 0;
    margin:0;

    list-style:none;

    border-radius:12px;

    box-shadow:0 15px 40px rgba(0,0,0,.18);

    z-index:999;
}

.weblazem-header-menu .sub-menu a{
    display:block;
    padding:12px 18px;
    color:#fff;
    text-decoration:none;
    white-space:nowrap;
}


.menu-item-has-children>a::after{

    content:"\f078";
    font-family:"Font Awesome 6 Free";
    font-weight:900;

    margin-right:8px;
    font-size:11px;
}

.weblazem-header-menu > li:hover > .sub-menu{
    display:block;
}

.weblazem-header-menu > li,
.weblazem-header-menu > ul > li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
}

.weblazem-header-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    border-radius: 8px;
}

.weblazem-header-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 14px;
    left: 14px;
    height: 2px;
    background-color: #facc15;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.weblazem-header-menu a:hover,
.weblazem-header-menu .current-menu-item > a,
.weblazem-header-menu .current_page_item > a {
    color: #facc15;
}

.weblazem-header-menu a:hover::after,
.weblazem-header-menu .current-menu-item > a::after,
.weblazem-header-menu .current_page_item > a::after {
    transform: scaleX(1);
}

.weblazem-header-menu__icon {
    font-size: 14px;
    line-height: 1;
    opacity: 0.95;
}

.weblazem-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.weblazem-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.weblazem-header__toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.weblazem-header__toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.weblazem-site-header.is-menu-open .weblazem-header__toggle {
    opacity: 0;
    pointer-events: none;
}

.weblazem-header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 8, 30, 0.55);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.weblazem-header__overlay.is-visible {
    opacity: 1;
}

.weblazem-header__drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100dvh;
    background: #4f1c61;
    z-index: 1002;
    padding: 20px 20px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
}

.weblazem-header__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.weblazem-header__drawer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.weblazem-header__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.weblazem-header__close:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.weblazem-header__drawer.is-open {
    transform: translateX(0);
}

.weblazem-header-nav--mobile {
    display: block;
}

.weblazem-header-menu--mobile,
.weblazem-header-menu--mobile ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.weblazem-header-menu--mobile a {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.weblazem-header-menu--mobile a::after {
    display: none;
}

.weblazem-header-menu--mobile a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.weblazem-header__drawer-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weblazem-header__drawer-consult {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.weblazem-header__drawer-ticket {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.weblazem-header__drawer-ticket:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #facc15;
    color: #facc15;
}

/* Header ticket CTA — beside consult button */
.weblazem-header-ticket-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1.5px solid rgbمa(255, 255, 255, 0.7);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.weblazem-header-ticket-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #facc15;
    color: #facc15;
    transform: translateY(-1px);
}

.weblazem-header-ticket-btn i {
    font-size: 13px;
    opacity: 0.95;
}

@media (max-width: 1024px) {
    .weblazem-header-ticket-btn .weblazem-header-ticket-btn__label {
        display: none;
    }

    .weblazem-header-ticket-btn {
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 10px;
    }
}

body.weblazem-header-menu-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .weblazem-header-nav--desktop {
        display: none;
    }

    .weblazem-header__toggle {
        display: inline-flex;
    }

    .weblazem-header__bar {
        grid-template-columns: 1fr auto;
    }

    .weblazem-header-nav--desktop {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .weblazem-header__bar {
        min-height: 64px;
        gap: 10px;
    }

    .weblazem-header__logo {
        max-height: 44px;
        max-width: min(180px, 50vw);
    }
}

@media (max-width: 480px) {
    .weblazem-header__container {
        padding: 0 12px;
    }

    .weblazem-header__drawer {
        width: 100%;
        max-width: none;
        border-radius: 0;
    }
}

/* صفحه اصلی — همان هدر ریسپانسیو صفحات داخلی */
.home .weblazem-site-header,
.page-template-home-template .weblazem-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.home .weblazem-header__toggle,
.page-template-home-template .weblazem-header__toggle {
    display: none;
}

@media (max-width: 1024px) {
    .home .weblazem-header__toggle,
    .page-template-home-template .weblazem-header__toggle {
        display: inline-flex;
    }

    .home .weblazem-header-nav--desktop,
    .page-template-home-template .weblazem-header-nav--desktop {
        display: none;
    }
}
