/* Choe Magasin header — styled directly. Divi's own dynamic CSS
   generation for this Theme Builder header layout is not reliably
   loading in this environment, so the menu's base layout (horizontal,
   no bullets, mobile-list hidden on desktop) and colors are set here
   instead, using Divi's own module/class structure as the hooks. */

.choe-header-bar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(255,255,255,0) !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
body { padding-top: 0 !important; }

/* --- Fix: hide Divi's duplicate mobile menu list on desktop --- */
.et_mobile_menu {
    display: none !important;
}
@media (max-width: 980px) {
    .et_mobile_menu.et_mobile_menu_slide,
    .et_mobile_menu.mobile_menu_show {
        display: block !important;
    }
}

/* --- Fix: proper horizontal nav layout (Divi's own classes) --- */
.choe-header-menu .et_pb_menu_inner_container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.choe-header-menu .et-menu-nav {
    display: block;
}
.choe-header-menu ul.et-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none !important;
    margin: 0;
    padding: 0;
    gap: 30px;
}
.choe-header-menu ul.et-menu li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}
.choe-header-menu ul.et-menu li a {
    display: inline-block;
    text-decoration: none !important;
    font-family: 'Work Sans', sans-serif !important;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: #F4F2EC !important;
    transition: color 0.3s ease;
}

/* --- Wordmark --- */
.choe-header-wordmark h2 {
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.1;
    color: #F4F2EC;
    margin: 0;
    transition: color 0.3s ease;
}

/* --- Search --- */
.choe-header-search .et_pb_search_field {
    background-color: rgba(255,255,255,0.14) !important;
    color: #F4F2EC !important;
    border-radius: 100px !important;
}
.choe-header-search .et_pb_search_field::placeholder {
    color: rgba(244,242,236,0.65) !important;
}

/* --- Scrolled state (our own JS-driven class, not Divi's): swap to
   light bg + dark text once the visitor scrolls past the hero --- */
.choe-header-bar.choe-header-scrolled {
    background-color: #F4F2EC !important;
    box-shadow: 0 2px 16px rgba(37,40,37,0.08);
}
.choe-header-bar.choe-header-scrolled .choe-header-wordmark h2 {
    color: #252825 !important;
}
.choe-header-bar.choe-header-scrolled .choe-header-menu ul.et-menu li a {
    color: #252825 !important;
}
.choe-header-bar.choe-header-scrolled .choe-header-search .et_pb_search_field {
    background-color: #FFFFFE !important;
    color: #252825 !important;
}

/* --- Mobile fallback: always solid, always legible --- */
@media (max-width: 980px) {
    .choe-header-wordmark h2 { color: #252825 !important; }
    .choe-header-bar { background-color: #F4F2EC !important; }
    .choe-header-menu ul.et-menu li a { color: #252825 !important; }
}
