/* ----------------------------------------------------------------
   Custom Header - Split Menu with Centered Logo
---------------------------------------------------------------- */

/* Base header resets - since we moved styles inline, just minor overrides here */
#header.split-menu #header-wrap {
    background: #fff !important;
}

#header.split-menu {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
    background: #fff;
}

/* Ensure proper layering */
#header.split-menu .header-row {
    position: relative;
}

/* RTL Support */
html[dir="rtl"] .nav-left {
    padding-right: 0;
    padding-left: 30px;
    justify-content: flex-start;
}

html[dir="rtl"] .nav-right {
    padding-left: 0;
    padding-right: 30px;
    justify-content: flex-end;
}

html[dir="rtl"] #primary-menu-trigger2 {
    left: auto;
    right: 15px;
}

html[dir="rtl"] .mobile-nav {
    left: auto;
    right: -280px;
}

html[dir="rtl"] .mobile-nav.open {
    right: 0;
}

html[dir="rtl"] .submenu {
    left: auto;
    right: 0;
}

html[dir="rtl"] .submenu-right {
    right: auto;
    left: 0;
}

/* Hover effects enhancement */
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1abc9c;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 70%;
}

/* Sticky header adjustments */
#header.sticky-header.split-menu #header-wrap {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header.sticky-header.split-menu .header-row {
    min-height: 70px;
}

#header.sticky-header.split-menu #logo.center-logo img {
    height: 55px;
}

/* Force phone numbers to display LTR in RTL layout */
html[dir="rtl"] a[href^="tel"],
html[dir="rtl"] [dir="ltr"] {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

