/* Topbar, main navigation, dropdowns and mobile menu
   (Zeinet main-header-topbar + main-header-five). */

.zn-topbar { position: relative; background-color: var(--primary); }
/* Blue block on the right with a 38px diagonal cut on its left edge. */
.zn-topbar::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: calc(33.7% + 38px);
    background-color: var(--secondary);
    clip-path: polygon(38px 0, 100% 0, 100% 100%, 0 100%);
}
.zn-topbar .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.zn-topbar__info { display: flex; align-items: center; gap: 40px; margin: 0; padding: 0; list-style: none; }
.zn-topbar__info li { display: flex; align-items: center; gap: 14px; color: var(--white); font-size: 15px; line-height: 1.1; }
.zn-topbar__info .zn-icon { font-size: 18px; }
.zn-topbar__info a { color: inherit; background: linear-gradient(currentColor, currentColor) 0 95% / 0 1px no-repeat; transition: all 500ms ease; }
.zn-topbar__info a:hover { color: var(--white); background-size: 100% 1px; }
.zn-topbar__social { display: flex; align-items: center; gap: 20px; }
.zn-topbar__social span { margin-right: 10px; color: var(--white); font-size: 15px; font-weight: 500; }
.zn-topbar__social a { display: inline-flex; color: var(--white); font-size: 15px; transition: all 500ms ease; }
.zn-topbar__social a:hover { color: var(--primary); }

/* Main bar */
.zn-header { position: sticky; top: 0; z-index: 99; background-color: var(--white); transition: box-shadow 0.3s ease; }
.zn-header.is-stuck { box-shadow: 0 10px 60px rgba(0, 0, 0, 0.07); }
.zn-header .container { display: flex; align-items: center; }
.zn-logo { display: block; flex-shrink: 0; padding: 23px 0; }
.zn-logo img { height: 48px; width: auto; display: block; }

.zn-header nav { margin-left: auto; }
.zn-menu { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.zn-menu > li { position: relative; padding-top: 30px; padding-bottom: 30px; }
.zn-menu > li + li { margin-left: 38px; }
.zn-menu > li > a { position: relative; display: flex; align-items: center; color: var(--secondary); font-size: 14px; font-weight: 600; text-transform: uppercase; transition: all 500ms ease; }
/* A small "+" appears beside dropdown parents on hover, as in the reference. */
.zn-menu > li.has-sub > a::after { content: '+'; position: absolute; top: -1px; right: -16px; font-size: 14px; opacity: 0; visibility: hidden; transition: all 200ms ease; }
.zn-menu > li:hover > a, .zn-menu > li > a.is-active { color: var(--primary); }
.zn-menu > li.has-sub:hover > a::after, .zn-menu > li.has-sub > a.is-active::after { opacity: 1; visibility: visible; }

.zn-sub {
    position: absolute;
    top: 100%; left: 0;
    z-index: 5;
    min-width: 270px;
    margin: 0;
    padding: 25px 0;
    list-style: none;
    background-color: var(--white);
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.07);
    opacity: 0;
    visibility: hidden;
    transform-origin: top center;
    transform: scaleY(0) translateZ(100px);
    transition: opacity 500ms ease, visibility 500ms ease, transform 700ms ease;
}
.zn-menu > li:hover > .zn-sub, .zn-menu > li:focus-within > .zn-sub { opacity: 1; visibility: visible; transform: scaleY(1) translateZ(0); }
.zn-sub li + li { margin-top: 10px; }
.zn-sub a { position: relative; display: block; padding: 0 30px; color: var(--text); font-size: 16px; font-weight: 500; transition: all 500ms ease; }
.zn-sub a::before { content: ''; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--primary); transition: width 400ms ease; }
.zn-sub a:hover, .zn-sub a.is-active { color: var(--secondary); padding-left: 38px; }
.zn-sub a:hover::before, .zn-sub a.is-active::before { width: 22px; }

.zn-header__actions { display: flex; align-items: center; justify-content: flex-end; margin-left: 44px; }
.zn-round {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background-color: rgba(var(--navy-rgb), 0.1);
    color: var(--secondary);
    font-size: 22px;
    transition: all 500ms ease;
}
.zn-round:hover { background-color: var(--primary); color: var(--white); }
.zn-header__actions .zn-btn { margin-left: 40px; }

.zn-burger { display: none; width: 46px; height: 46px; margin-left: 20px; border: 0; background: var(--secondary); color: var(--white); font-size: 24px; align-items: center; justify-content: center; }

/* Mobile slide-out (Bootstrap offcanvas) */
.zn-offcanvas { background: var(--secondary); color: var(--white); max-width: 320px; }
.zn-offcanvas .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.zn-offcanvas .btn-close { filter: invert(1); opacity: 0.8; }
.zn-mobile-menu { list-style: none; margin: 0; padding: 0; }
.zn-mobile-menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.zn-mobile-menu a, .zn-mobile-menu button {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 12px 0;
    background: none; border: 0;
    color: var(--white); font-size: 15px; font-weight: 600; text-transform: uppercase; text-align: left;
}
.zn-mobile-menu a.is-active, .zn-mobile-menu a:hover { color: var(--primary); }
.zn-mobile-menu .zn-mobile-sub li:last-child { border-bottom: 0; }
.zn-mobile-menu .zn-mobile-sub a { padding: 9px 0 9px 16px; font-size: 14px; font-weight: 500; text-transform: none; color: rgba(255, 255, 255, 0.8); }
.zn-offcanvas__contact { margin-top: 28px; display: grid; gap: 12px; font-size: 15px; }
.zn-offcanvas__contact a { color: var(--white); display: flex; gap: 12px; align-items: center; }
.zn-offcanvas__contact .zn-icon { color: var(--primary); font-size: 20px; }

@media (max-width: 1199px) {
    .zn-topbar__social span, .zn-topbar__info li:nth-child(3) { display: none; }
    .zn-menu, .zn-header__actions .zn-round { display: none; }
    .zn-burger { display: inline-flex; }
}

@media (max-width: 991px) {
    .zn-topbar__info { gap: 20px; }
    .zn-topbar__social { gap: 12px; }
}

@media (max-width: 767px) {
    .zn-topbar { display: none; }
    .zn-header__actions .zn-btn { display: none; }
    .zn-logo { min-width: 0; padding: 16px 0; }
    .zn-logo img { height: 42px; }
}
