@charset "utf-8";

:root {
    --sh-primary: #118554;
    --sh-text: #2c3e50;
    --sh-muted: #6b7280;
    --sh-border: #eef1f0;
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 999;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.is-stuck {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: height 0.3s ease;
}

.site-header.is-stuck .site-header__inner {
    height: 70px;
}

.site-header__logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.site-header__logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.site-header.is-stuck .site-header__logo img {
    height: 44px;
}

.site-header__logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--sh-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-header__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__menu > li > a {
    display: inline-block;
    position: relative;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--sh-text);
    text-decoration: none;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.site-header__menu > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--sh-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.site-header__menu > li > a:hover {
    color: var(--sh-primary);
}

.site-header__menu > li.is-active > a {
    color: var(--sh-primary);
}

.site-header__menu > li.is-active > a::after,
.site-header__menu > li > a:hover::after {
    transform: scaleX(1);
}

.site-header__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.site-header__more {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--sh-text);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.25s ease, color 0.25s ease;
}

.site-header__more:hover {
    background: #f4faf8;
    color: var(--sh-primary);
}

.site-header__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-start: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--sh-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.site-header__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--sh-text);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-header__dropdown a:hover {
    background: #f4faf8;
    color: var(--sh-primary);
}

.site-header__dropdown a i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.site-header__dropdown-cta {
    background: var(--sh-primary) !important;
    color: #ffffff !important;
    justify-content: center;
    margin-top: 4px;
}

.site-header__dropdown-cta:hover {
    background: var(--sh-primary-dark, #21959b) !important;
    color: #ffffff !important;
}

.site-header__toggler {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--sh-text);
    font-size: 22px;
    cursor: pointer;
}

/* ---------- Mobile drawer ---------- */
.site-drawer {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    z-index: 1100;
    padding: 24px;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .site-drawer {
    transform: translateX(110%);
}

.site-drawer.is-open {
    transform: translateX(0) !important;
}

.site-drawer__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1099;
}

.site-drawer__backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.site-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.site-drawer__head img {
    height: 46px;
    width: auto;
}

.site-drawer__close {
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--sh-text);
    cursor: pointer;
}

.site-drawer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-drawer__menu li a {
    display: block;
    padding: 13px 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--sh-text);
    text-decoration: none;
    border-bottom: 1px solid var(--sh-border);
}

.site-drawer__menu li.is-active a,
.site-drawer__menu li a:hover {
    color: var(--sh-primary);
}

.site-drawer__cta {
    display: block;
    margin-top: 22px;
    padding: 13px;
    text-align: center;
    background: var(--sh-primary);
    color: #ffffff !important;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 1199px) {
    .site-header__menu > li > a {
        padding: 10px 10px;
        font-size: 15px;
    }

    .site-header__menu > li > a::after {
        left: 10px;
        right: 10px;
    }
}

@media only screen and (max-width: 1050px) {
    .site-header__nav,
    .site-header__more {
        display: none;
    }

    .site-header__toggler {
        display: inline-flex;
    }

    .site-header__inner {
        padding: 0 18px;
        height: 72px;
    }
}
