/* =========================================================
   lom Header — professional, responsive, animated
   Brand accent: #ff532b | Font: Effra (site default)
   ========================================================= */

:root {
    --lom-orange: #ff532b;
    --lom-orange-hover: #e84720;
    --lom-orange-soft: rgba(255, 83, 43, 0.1);
    --lom-ink: #1a1a1a;
    --lom-muted: #5c5c5c;
    --lom-line: rgba(26, 26, 26, 0.08);
    --lom-surface: #ffffff;
    --lom-surface-soft: #f7f7f9;
    --lom-header-h: 72px;
    --lom-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --lom-shadow: 0 10px 40px rgba(20, 20, 30, 0.08);
}

/* Neutralize old BeTheme header wrappers */
#Header_wrapper {
    position: relative;
    z-index: 1002;
    background: transparent !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.template-slider #Header_wrapper,
body:not(.template-slider) #Header_wrapper {
    background: transparent !important;
}

/* Kill legacy BeTheme mobile slide remnants */
#Side_slide,
#body_overlay,
.responsive-menu-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.lom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10020;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition:
        background 0.35s var(--lom-ease),
        box-shadow 0.35s var(--lom-ease),
        border-color 0.35s var(--lom-ease);
    animation: lomHeaderIn 0.45s var(--lom-ease) both;
}

@keyframes lomHeaderIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lom-header.is-scrolled {
    background: #fff;
    border-bottom-color: var(--lom-line);
    box-shadow: 0 4px 24px rgba(20, 20, 30, 0.06);
}

.lom-header-spacer {
    width: 100%;
    height: var(--lom-header-h);
    flex-shrink: 0;
}

.lom-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    padding-inline-start: 28px;
    padding-inline-end: 20px;
    min-height: var(--lom-header-h);
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ---------- Logo ---------- */
.lom-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-inline-end: 8px;
}

.lom-header__logo img {
    display: block;
    height: 32px;
    width: auto;
}

/* ---------- Desktop nav ---------- */
.lom-header__nav {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.lom-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 4px;
}

.lom-header__menu > li {
    position: relative;
}

/* Reset BeTheme orange button styles */
.lom-header button,
.lom-header .lom-header__trigger,
.lom-header__panel button,
.lom-header__panel .lom-header__panel-trigger,
.lom-header__close,
body.button-custom .lom-header button,
body.button-custom .lom-header__panel button,
body.button-custom .lom-header .lom-header__trigger,
body.button-custom .lom-header__panel .lom-header__panel-trigger,
body.button-custom .lom-header__close,
body.button-custom .lom-header__toggle {
    color: var(--lom-ink) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    padding: 0;
}

.lom-header__menu > li > a,
.lom-header__trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    color: var(--lom-ink) !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none !important;
    background: transparent !important;
    border: 0;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    transition: color 0.25s ease;
}

.lom-header__menu > li > a::after,
.lom-header__menu .lom-header__trigger::after {
    content: "";
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--lom-orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--lom-ease);
}

.lom-header__menu > li > a:hover,
.lom-header__menu > li > a:focus-visible,
.lom-header__menu .lom-header__trigger:hover,
.lom-header__menu .lom-header__trigger:focus-visible,
.lom-header__menu .lom-header__item--has-sub.is-open > .lom-header__trigger,
.lom-header__menu .lom-header__item--has-sub:hover > .lom-header__trigger {
    color: var(--lom-orange) !important;
    background: transparent !important;
    text-decoration: none !important;
}

.lom-header__menu > li > a:hover::after,
.lom-header__menu > li > a:focus-visible::after,
.lom-header__menu .lom-header__trigger:hover::after,
.lom-header__menu .lom-header__trigger:focus-visible::after,
.lom-header__menu .lom-header__item--has-sub.is-open > .lom-header__trigger::after,
.lom-header__menu .lom-header__item--has-sub:hover > .lom-header__trigger::after {
    transform: scaleX(1);
}

.lom-header__trigger i {
    font-size: 12px;
    transition: transform 0.3s var(--lom-ease);
}

.lom-header__item--has-sub.is-open > .lom-header__trigger i,
.lom-header__item--has-sub:hover > .lom-header__trigger i {
    transform: rotate(180deg);
}

/* ---------- Dropdown ---------- */
.lom-header__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    min-width: 260px;
    padding: 8px;
    background: var(--lom-surface);
    border: 1px solid var(--lom-line);
    border-radius: 14px;
    box-shadow: var(--lom-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.98);
    transition:
        opacity 0.28s var(--lom-ease),
        transform 0.28s var(--lom-ease),
        visibility 0.28s;
    z-index: 20;
}

.lom-header__item--has-sub:hover > .lom-header__dropdown,
.lom-header__item--has-sub:focus-within > .lom-header__dropdown,
.lom-header__item--has-sub.is-open > .lom-header__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

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

.lom-header__dropdown a i {
    color: var(--lom-orange);
    font-size: 16px;
    width: 1.25em;
    text-align: center;
    flex-shrink: 0;
}

.lom-header__dropdown a:hover,
.lom-header__dropdown a:focus-visible {
    background: var(--lom-surface-soft);
    color: var(--lom-orange);
    text-decoration: none;
}

/* ---------- Actions ---------- */
.lom-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-inline-start: auto;
}

.lom-header__lang {
    position: relative;
}

.lom-header__lang-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 12px !important;
    color: var(--lom-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    border: 1px solid var(--lom-line) !important;
    background: #fff !important;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.lom-header__lang-btn::after {
    display: none !important;
}

.lom-header__lang-btn:hover,
.lom-header__lang-btn:focus-visible,
.lom-header__lang.is-open > .lom-header__lang-btn {
    color: var(--lom-orange) !important;
    border-color: rgba(255, 83, 43, 0.35) !important;
    background: var(--lom-orange-soft) !important;
}

.lom-header__lang-icon {
    flex-shrink: 0;
}

.lom-header__lang-code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.lom-header__dropdown--lang {
    inset-inline-start: auto;
    inset-inline-end: 0;
    min-width: 180px;
}

.lom-header__dropdown--lang a.is-active {
    background: var(--lom-orange-soft);
    color: var(--lom-orange);
}

.lom-header__dropdown--lang .lom-header__lang-code {
    min-width: 28px;
    color: var(--lom-orange);
}

.lom-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lom-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease;
}

.lom-header__phone i {
    color: var(--lom-orange);
    font-size: 15px;
}

.lom-header__phone:hover,
.lom-header__phone:focus-visible {
    color: var(--lom-orange);
    background: var(--lom-orange-soft);
    text-decoration: none;
}

.lom-header__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    background: var(--lom-orange);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(255, 83, 43, 0.28);
    white-space: nowrap;
    transition:
        background 0.25s ease,
        transform 0.25s var(--lom-ease),
        box-shadow 0.25s ease;
}

.lom-header__cta:hover,
.lom-header__cta:focus-visible {
    background: var(--lom-orange-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(255, 83, 43, 0.36);
}

.lom-header__cta--block {
    width: 100%;
    padding: 14px 20px;
    display: inline-flex !important;
}

/* ---------- Hamburger ---------- */
.lom-header__toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--lom-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--lom-ink) !important;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none !important;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.lom-header__toggle:hover,
.lom-header__toggle:focus-visible,
.lom-header.is-open .lom-header__toggle {
    background: var(--lom-orange-soft) !important;
    border-color: rgba(255, 83, 43, 0.35) !important;
    color: var(--lom-orange) !important;
}

.lom-header__toggle-icon {
    display: block;
    pointer-events: none;
}

.lom-header__toggle-icon--close {
    display: none;
}

.lom-header.is-open .lom-header__toggle-icon--open {
    display: none;
}

.lom-header.is-open .lom-header__toggle-icon--close {
    display: block;
}

/* ---------- Overlay ---------- */
.lom-header__overlay {
    position: fixed;
    inset: 0;
    z-index: 10030;
    background: rgba(15, 15, 20, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
}

body.lom-nav-open .lom-header__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lom-header__overlay[hidden] {
    display: none !important;
}

body.lom-nav-open .lom-header__overlay[hidden] {
    display: block !important;
}

/* ---------- Mobile panel ---------- */
.lom-header__panel {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 10040;
    width: min(86vw, 340px);
    max-width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.38s var(--lom-ease),
        visibility 0.38s;
}

html[dir="rtl"] .lom-header__panel {
    right: 0;
    left: auto;
    transform: translate3d(105%, 0, 0);
    box-shadow: 8px 0 40px rgba(20, 20, 30, 0.14);
}

html[dir="ltr"] .lom-header__panel,
html:not([dir]) .lom-header__panel {
    left: 0;
    right: auto;
    transform: translate3d(-105%, 0, 0);
    box-shadow: -8px 0 40px rgba(20, 20, 30, 0.14);
}

body.lom-nav-open .lom-header__panel {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible;
    pointer-events: auto;
}

.lom-header__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--lom-line);
    min-height: 64px;
}

.lom-header__close {
    width: 40px !important;
    height: 40px !important;
    border: 1px solid var(--lom-line) !important;
    border-radius: 10px !important;
    background: var(--lom-surface-soft) !important;
    color: var(--lom-ink) !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lom-header__close:hover,
.lom-header__close:focus-visible {
    background: var(--lom-orange-soft) !important;
    color: var(--lom-orange) !important;
    border-color: rgba(255, 83, 43, 0.35) !important;
}

.lom-header__panel-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 8px;
    -webkit-overflow-scrolling: touch;
}

.lom-header__panel-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lom-header__panel-menu > li > a,
.lom-header__panel-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px !important;
    color: var(--lom-ink) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 12px !important;
    cursor: pointer;
    text-align: start;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.lom-header__panel-menu > li > a:hover,
.lom-header__panel-menu > li > a:focus-visible,
.lom-header__panel-trigger:hover,
.lom-header__panel-trigger:focus-visible,
.lom-header__panel-item--has-sub.is-open > .lom-header__panel-trigger {
    background: var(--lom-surface-soft) !important;
    color: var(--lom-orange) !important;
    text-decoration: none !important;
}

.lom-header__panel-trigger i {
    font-size: 13px;
    transition: transform 0.3s var(--lom-ease);
}

.lom-header__panel-item--has-sub.is-open > .lom-header__panel-trigger i {
    transform: rotate(180deg);
}

.lom-header__panel-sub {
    max-height: 0;
    overflow: hidden;
    padding-inline-start: 8px;
    transition: max-height 0.35s var(--lom-ease);
}

.lom-header__panel-item--has-sub.is-open > .lom-header__panel-sub {
    max-height: 320px;
}

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

.lom-header__panel-sub a i {
    color: var(--lom-orange);
}

.lom-header__panel-sub a:hover,
.lom-header__panel-sub a:focus-visible,
.lom-header__panel-sub a.is-active {
    background: var(--lom-orange-soft);
    color: var(--lom-orange);
    text-decoration: none;
}

.lom-header__panel-foot {
    padding: 16px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--lom-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

.lom-header__phone--panel {
    display: inline-flex !important;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--lom-line);
    border-radius: 999px;
    padding: 12px 16px;
}

body.lom-nav-locked {
    overflow: hidden !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .lom-header__menu > li > a,
    .lom-header__menu .lom-header__trigger {
        padding: 10px 8px;
        font-size: 14px;
    }

    .lom-header__phone span {
        display: none;
    }
}

@media (max-width: 992px) {
    .lom-header__nav {
        display: none !important;
    }

    .lom-header__toggle {
        display: inline-flex !important;
    }

    .lom-header__cta:not(.lom-header__cta--block) {
        display: none !important;
    }

    .lom-header__phone:not(.lom-header__phone--panel) {
        display: none !important;
    }

    .lom-header__inner {
        padding: 0 16px !important;
        padding-inline-start: 22px !important;
        padding-inline-end: 16px !important;
        min-height: 60px;
        justify-content: space-between;
    }

    .lom-header__actions {
        gap: 8px;
    }

    .lom-header__lang-btn {
        padding: 8px 10px !important;
    }

    :root {
        --lom-header-h: 60px;
    }
}

@media (min-width: 993px) {
    .lom-header__panel,
    .lom-header__overlay,
    .lom-header__toggle {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lom-header,
    .lom-header__panel,
    .lom-header__overlay {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
