/* ============================================================
   SPLIT HEADER — Top Bar
   ============================================================ */
.ot-top-bar {
    background-color: #ede8e1;
    padding: 11px 0;
    text-align: center;
    border-bottom: 1px solid #e0d9d0;
}

.ot-top-bar .top-bar-text {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #7a7065;
    line-height: 1;
}

.ot-top-bar .top-bar-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.ot-top-bar .top-bar-text a:hover {
    color: #2c2520;
}

/* ============================================================
   SPLIT HEADER — Main header bar
   ============================================================ */
.octf-main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f0ebe3;
}

.split-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    gap: 20px;
}

/* ============================================================
   SPLIT HEADER — Navigation (shared)
   ============================================================ */
.split-nav {
    flex: 1;
    min-width: 0;
}

.split-nav-left {
    display: flex;
    justify-content: flex-end;
}

.split-nav-right {
    display: flex;
    justify-content: flex-start;
}

/* Top-level list */
.split-nav > ul,
.split-nav ul#split-left-menu,
.split-nav ul#split-right-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.split-nav > ul > li {
    position: relative;
}

.split-nav > ul > li > a {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #6b6256;
    text-decoration: none;
    padding: 7px 16px;
    white-space: nowrap;
    transition: color 0.25s ease;
    line-height: 1;
}

.split-nav > ul > li > a:hover {
    color: #2c2520;
}

/* Active page — outlined box */
.split-nav > ul > li.current-menu-item > a,
.split-nav > ul > li.current-menu-ancestor > a {
    outline: 1px solid #6b6256;
    color: #2c2520;
}

/* ============================================================
   SPLIT HEADER — Logo (center)
   ============================================================ */
.split-logo {
    flex-shrink: 0;
    text-align: center;
}

.split-logo a {
    display: inline-block;
    line-height: 1;
}

.split-logo img,
.split-logo img.logo-static {
    height: 72px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.split-logo img.logo-scroll {
    display: none;
    height: 72px;
    width: auto;
}

.split-logo a:hover img {
    opacity: 0.8;
}

.split-logo-text {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #2c2520;
}

/* ============================================================
   SPLIT HEADER — Dropdown menus
   ============================================================ */
.split-nav > ul > li > ul {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #ffffff;
    min-width: 190px;
    list-style: none;
    padding: 14px 0;
    margin: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border-top: 2px solid #ede8e1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

/* Right-side nav: align dropdowns to the right */
.split-nav-right > ul > li > ul {
    left: auto;
    right: 0;
    transform: translateY(6px);
}

.split-nav > ul > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.split-nav-right > ul > li:hover > ul {
    transform: translateY(0);
}

.split-nav > ul > li > ul > li > a {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7a7065;
    padding: 9px 22px;
    white-space: nowrap;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.split-nav > ul > li > ul > li > a:hover {
    color: #2c2520;
    padding-left: 26px;
}

/* ============================================================
   SPLIT HEADER — Sticky state
   ============================================================ */
.octf-main-header.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
    animation: splitHeaderDown 0.28s ease forwards;
}

/* Smaller logo when stuck */
.octf-main-header.is-stuck .split-logo img {
    height: 52px;
}

.octf-main-header.is-stuck .split-header-inner {
    padding: 14px 0;
}

@keyframes splitHeaderDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================
   SPLIT HEADER — Mobile (hide desktop header)
   ============================================================ */
@media (max-width: 991px) {
    .octf-main-header {
        display: none;
    }

    .ot-top-bar {
        display: none;
    }
}

/* ============================================================
   MOBILE HEADER — refined styling to match the design
   ============================================================ */
@media (max-width: 991px) {
    .header_mobile {
        background-color: #ffffff;
        border-bottom: 1px solid #f0ebe3;
        position: relative;
        z-index: 999;
    }

    .header_mobile .container {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .header_mobile .mlogo_wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header_mobile .mobile_logo img {
        height: 48px;
        width: auto;
    }

    .header_mobile #mmenu_toggle button {
        background: none;
        border: none;
        cursor: pointer;
        width: 28px;
        height: 22px;
        position: relative;
        padding: 0;
    }

    .header_mobile #mmenu_toggle button::before,
    .header_mobile #mmenu_toggle button::after,
    .header_mobile #mmenu_toggle button span {
        content: '';
        display: block;
        height: 1.5px;
        width: 100%;
        background: #6b6256;
        position: absolute;
        left: 0;
        transition: all 0.25s ease;
    }

    .header_mobile #mmenu_toggle button::before {
        top: 0;
    }

    .header_mobile #mmenu_toggle button::after {
        bottom: 0;
    }

    .header_mobile #mmenu_toggle.active button::before {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header_mobile #mmenu_toggle.active button::after {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .header_mobile .mobile_nav {
        background: #ffffff;
        border-top: 1px solid #f0ebe3;
        display: none;
    }

    .header_mobile.open .mobile_nav {
        display: block;
    }

    .header_mobile .mobile_mainmenu {
        list-style: none;
        margin: 0;
        padding: 10px 0;
    }

    .header_mobile .mobile_mainmenu > li > a {
        display: block;
        font-family: 'Raleway', sans-serif;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        color: #6b6256;
        padding: 13px 0;
        border-bottom: 1px solid #f5f2ee;
        text-decoration: none;
    }

    .header_mobile .mobile_mainmenu > li > a:hover {
        color: #2c2520;
    }

    .header_mobile .mobile_mainmenu ul {
        list-style: none;
        padding-left: 16px;
        margin: 0;
    }

    .header_mobile .mobile_mainmenu ul li a {
        display: block;
        font-family: 'Raleway', sans-serif;
        font-size: 10px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #9a9086;
        padding: 10px 0;
        border-bottom: 1px solid #f5f2ee;
        text-decoration: none;
    }
}
