/**
 * MYC site header, Nov 2026 redesign. Markup: inc/myc-header.php ([myc_header]).
 *
 * Isolation from Divi:
 * - every rule starts with "#et-boc #myc-hdr.myc-hdr" (specificity 2-1-0), which beats
 *   Divi's Theme Builder rules such as ".et-db #et-boc .et-l ul" (1-2-1);
 * - the markup uses only "myc-hdr__" classes, no Divi classes (et_pb_menu, et-menu, sub-menu),
 *   so Divi menu CSS and the old mobile menu script do not touch it;
 * - a local reset below clears what Divi gives to ul, li, a, button and img;
 * - !important is used only where the site itself sets !important: the Theme Builder section,
 *   row, column and Code module wrappers (and the old numbered rules in myc-header.css), and
 *   text colors, because some pages carry a global "a { color: #0a104a !important }".
 */

/* ---------- Theme Builder wrappers (section / row / column / code module) ---------- */
/* The header is fixed to the top (like the old Divi sticky header). #et-boc has
   overflow:hidden, so position:sticky cannot work here. The section keeps the
   header's height as a placeholder; myc-hdr.js sets the exact --myc-hdr-h, the
   defaults below match the real heights so nothing jumps before the script runs. */
.et-l--header .et_pb_section.myc-hdr-section {
    padding: 0 !important;
    margin: 0 !important;
    height: var(--myc-hdr-h, 139px) !important;
    min-height: 0 !important;
    max-height: none !important;
    background: #ffffff !important;
    overflow: visible !important;
}
@media (max-width: 980px) {
    .et-l--header .et_pb_section.myc-hdr-section {
        height: var(--myc-hdr-h, 69px) !important;
    }
}
.et-l--header .et_pb_section.myc-hdr-section .et_pb_row.myc-hdr-row {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.et-l--header .et_pb_section.myc-hdr-section .et_pb_row.myc-hdr-row .et_pb_column.myc-hdr-col {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.et-l--header .et_pb_section.myc-hdr-section .et_pb_code.myc-hdr-code,
.et-l--header .et_pb_section.myc-hdr-section .et_pb_code.myc-hdr-code .et_pb_code_inner {
    margin: 0 !important;
    padding: 0 !important;
}

/* Divi gives the Theme Builder wrapper .et_builder_inner_content "position: relative;
   z-index: 2", which makes a stacking context: the fixed header's z-index 999 then only
   counts inside it, and page elements with z-index >= 2 that come later in the DOM (e.g.
   span.myc-card__city on /yachts-for-sale/) painted over the header while scrolling.
   Lift the header layout's wrapper itself above page content. */
.et-l--header > .et_builder_inner_content {
    z-index: 999 !important;
}

/* ---------- Local reset ---------- */
#et-boc #myc-hdr.myc-hdr,
#et-boc #myc-hdr.myc-hdr *,
#et-boc #myc-hdr.myc-hdr *::before,
#et-boc #myc-hdr.myc-hdr *::after {
    box-sizing: border-box;
}
#et-boc #myc-hdr.myc-hdr ul,
#et-boc #myc-hdr.myc-hdr li {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: inherit;
}
#et-boc #myc-hdr.myc-hdr li::before {
    content: none;
}
#et-boc #myc-hdr.myc-hdr a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    transition: color .15s ease, background-color .15s ease;
}
#et-boc #myc-hdr.myc-hdr button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
#et-boc #myc-hdr.myc-hdr svg {
    display: block;
    flex: none;
    pointer-events: none;
}
#et-boc #myc-hdr.myc-hdr img {
    display: block;
    max-width: none;
    height: auto;
}
#et-boc #myc-hdr.myc-hdr :focus-visible {
    outline: 2px solid #b8962e;
    outline-offset: 2px;
}

/* ---------- Root ---------- */
#et-boc #myc-hdr.myc-hdr {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
    background: #ffffff;
    color: #0f1438 !important;
    font-family: 'PoppinsMulti', 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: left;
    box-shadow: 0 1px 0 #e6e2d6;
}
.admin-bar #et-boc #myc-hdr.myc-hdr {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar #et-boc #myc-hdr.myc-hdr {
        top: 46px;
    }
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* ---------- Row 1: logo, social, phone ---------- */
#et-boc #myc-hdr.myc-hdr .myc-hdr__bar {
    border-bottom: 1px solid #ece8dc;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 64px;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__logo {
    display: flex;
    align-items: center;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__logo img {
    width: 64px;
    height: 64px;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__actions {
    display: flex;
    align-items: center;
    gap: 28px;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__social {
    display: flex;
    align-items: center;
    gap: 8px;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #0f1438 !important;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__social a:hover {
    color: #b8962e !important;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__call {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, #d6b65a, #a07c2a);
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: .3px;
    line-height: 1;
    white-space: nowrap;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__call:hover {
    background: linear-gradient(135deg, #c9a640, #8f6d1f);
    color: #ffffff !important;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__callicon,
#et-boc #myc-hdr.myc-hdr .myc-hdr__burger {
    display: none;
}

/* ---------- Row 2: menu ---------- */
#et-boc #myc-hdr.myc-hdr .myc-hdr__nav {
    padding: 0 52px;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    min-height: 58px;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__item {
    position: relative;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 14px;
    color: #0f1438 !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__link:hover,
#et-boc #myc-hdr.myc-hdr .myc-hdr__item.is-open > .myc-hdr__link {
    color: #8a6a1f !important;
}
/* Where am I: gold line under the current page or its section. */
#et-boc #myc-hdr.myc-hdr .myc-hdr__item.is-current > .myc-hdr__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: #b8962e;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__item.is-current > .myc-hdr__link {
    color: #0a104a !important;
    font-weight: 600;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__chev {
    transition: transform .15s ease;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__item.is-open > .myc-hdr__link .myc-hdr__chev {
    transform: rotate(180deg);
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__pm {
    display: none;
}

/* Dropdown panel */
#et-boc #myc-hdr.myc-hdr .myc-hdr__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    width: 260px;
    margin-top: 2px;
    padding: 8px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 20, 56, .14);
}
/* Hover bridge, so the pointer can travel from the button into the panel. */
#et-boc #myc-hdr.myc-hdr .myc-hdr__sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__item.is-open > .myc-hdr__sub {
    display: block;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__item--right > .myc-hdr__sub {
    left: auto;
    right: 0;
    width: 220px;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__sub--wide {
    width: 290px;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__sub--cols2 {
    width: 440px;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__sublist {
    display: flex;
    flex-direction: column;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__sub--cols2 .myc-hdr__sublist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__subitem--sep {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #ece8dc;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #0f1438 !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__sublink:hover {
    background: #faf8f2;
    color: #8a6a1f !important;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__subitem.is-current > .myc-hdr__sublink {
    color: #B18A10 !important;
    font-weight: 600;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__sublink--strong {
    color: #8a6a1f !important;
    font-weight: 600;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__subtext {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__sublink--desc .myc-hdr__subtitle {
    font-weight: 500;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__desc {
    color: #5b5f78 !important;
    font-size: 12px;
    font-weight: 400;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__badge {
    flex: none;
    padding: 2px 6px;
    border: 1px solid #d9c48a;
    border-radius: 4px;
    color: #8a6a1f !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}
#et-boc #myc-hdr.myc-hdr .myc-hdr__mfoot {
    display: none;
}

/* Narrower desktops */
@media (min-width: 981px) and (max-width: 1279px) {
    #et-boc #myc-hdr.myc-hdr .myc-hdr__top {
        padding: 8px 32px;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__nav {
        padding: 0 20px;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__menu {
        gap: 0;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__link {
        padding: 10px 10px;
        font-size: 14px;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__item.is-current > .myc-hdr__link::after {
        left: 10px;
        right: 10px;
    }
}
@media (min-width: 981px) and (max-width: 1080px) {
    #et-boc #myc-hdr.myc-hdr .myc-hdr__link {
        padding: 10px 8px;
        font-size: 13.5px;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__item.is-current > .myc-hdr__link::after {
        left: 8px;
        right: 8px;
    }
}

/* ---------- Mobile and tablet (980px and below) ---------- */
@media (max-width: 980px) {
    #et-boc #myc-hdr.myc-hdr .myc-hdr__top {
        padding: 8px 16px;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__logo img {
        width: 52px;
        height: 52px;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__actions {
        gap: 8px;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__social,
    #et-boc #myc-hdr.myc-hdr .myc-hdr__call {
        display: none;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__callicon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        background: linear-gradient(135deg, #d6b65a, #a07c2a);
        color: #ffffff !important;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        color: #0f1438 !important;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__burger .myc-hdr__icon-close {
        display: none;
    }
    #et-boc #myc-hdr.myc-hdr.myc-hdr--open .myc-hdr__burger .myc-hdr__icon-open {
        display: none;
    }
    #et-boc #myc-hdr.myc-hdr.myc-hdr--open .myc-hdr__burger .myc-hdr__icon-close {
        display: block;
    }

    /* The panel under the top bar */
    #et-boc #myc-hdr.myc-hdr .myc-hdr__panel {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        top: var(--myc-hdr-top, 69px);
        bottom: 0;
        z-index: 30;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        background: #ffffff;
    }
    #et-boc #myc-hdr.myc-hdr.myc-hdr--open .myc-hdr__panel {
        display: flex;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__nav {
        flex-grow: 1;
        padding: 8px 16px;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__menu {
        display: block;
        min-height: 0;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__item {
        border-bottom: 1px solid #f0ede4;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__link {
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 13px 4px;
        font-size: 16px;
        white-space: normal;
        text-align: left;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__item.is-current > .myc-hdr__link::after {
        left: 4px;
        right: auto;
        width: 32px;
        bottom: 6px;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__chev {
        display: none;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__pm {
        display: block;
        color: #8a6a1f !important;
        font-size: 20px;
        font-weight: 400;
        line-height: 1;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__pm-minus {
        display: none;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__item.is-open > .myc-hdr__link {
        color: #8a6a1f !important;
        font-weight: 600;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__item.is-open > .myc-hdr__link .myc-hdr__pm-plus {
        display: none;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__item.is-open > .myc-hdr__link .myc-hdr__pm-minus {
        display: block;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__sub,
    #et-boc #myc-hdr.myc-hdr .myc-hdr__sub--wide,
    #et-boc #myc-hdr.myc-hdr .myc-hdr__sub--cols2,
    #et-boc #myc-hdr.myc-hdr .myc-hdr__item--right > .myc-hdr__sub {
        position: static;
        width: auto;
        margin: 0 0 8px;
        padding: 0 0 8px 14px;
        background: #faf8f2;
        border-radius: 8px;
        box-shadow: none;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__sub::before {
        content: none;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__sub--cols2 .myc-hdr__sublist {
        display: flex;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__subitem--sep {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__sublink {
        padding: 11px 12px 11px 4px;
        font-size: 15px;
        border-radius: 0;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__sublink:hover {
        background: transparent;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__desc {
        display: none;
    }

    /* Panel footer: call button and social links */
    #et-boc #myc-hdr.myc-hdr .myc-hdr__mfoot {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
        border-top: 1px solid #ece8dc;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__mcall {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 52px;
        border-radius: 8px;
        background: linear-gradient(135deg, #d6b65a, #a07c2a);
        color: #ffffff !important;
        font-size: 18px;
        font-weight: 500;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__mfsocial {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    #et-boc #myc-hdr.myc-hdr .myc-hdr__mfsocial a {
        display: block;
        padding: 8px;
        color: #4a4e66 !important;
        font-size: 13px;
        font-weight: 400;
    }
}

/* Page scroll is frozen while the mobile menu is open. */
html.myc-hdr-lock,
html.myc-hdr-lock body {
    overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
    #et-boc #myc-hdr.myc-hdr *,
    #et-boc #myc-hdr.myc-hdr a {
        transition: none;
    }
}
