/* =======================================================
   Main navigation
   Pseudo-elements:
     .elementor-item::before      -> animated underline  (position:absolute)
     .elementor-item::after       -> (unused / available)
     main-nav li > a::after       -> downward chevron    (inline flex item)
     dropdown a::before           -> gold left-bar       (position:absolute)
     dropdown a::after            -> rightward chevron   (inline flex item)
   ======================================================= */

/* -------------------------------------------------------
   0. HIDE THE DEFAULT MENU ICON
------------------------------------------------------- */
.bh-menu .sub-arrow {
    display: none !important;
}

/* -------------------------------------------------------
   1. MAIN NAV ITEMS - flex row with precise spacing
------------------------------------------------------- */
.bh-menu .elementor-nav-menu--main .elementor-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    position: relative;
    padding-bottom: 6px !important;
    transition: color 0.35s ease !important;
}

/* -------------------------------------------------------
   2. UNDERLINE - on ::before (absolute, no layout cost)
      Frees ::after for the chevron below.
------------------------------------------------------- */
.bh-menu .elementor-nav-menu--main .elementor-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C8B688 40%, #C8B688 60%, transparent);
    transform: scaleX(0);
    transform-origin: right center;
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        opacity   0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.bh-menu .elementor-nav-menu--main .elementor-item:hover::before,
.bh-menu .elementor-nav-menu--main .elementor-item.elementor-item-active::before,
.bh-menu .elementor-nav-menu--main .elementor-item:focus-visible::before {
    transform: scaleX(1);
    transform-origin: left center;
    opacity: 1;
}

/* Active page: permanent gold colour */
.bh-menu .elementor-nav-menu--main .elementor-item.elementor-item-active {
    color: #C8B688 !important;
}

/* -------------------------------------------------------
   3. MAIN NAV DOWNWARD CHEVRON - on ::after (inline flex)
      Sits naturally AFTER the link text in the flex row.
------------------------------------------------------- */
.bh-menu .elementor-nav-menu--main li.menu-item-has-children > a::after {
    content: '';
    display: inline-block !important; /* stays in flex flow, AFTER text */
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
    background: transparent !important;
    transform: translateY(-2px) rotate(45deg);
    transition:
        transform    0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s ease;
    /* keep in flow, not absolute */
    position: static !important;
}

/* Chevron rotates upward on hover */
.bh-menu .elementor-nav-menu--main li.menu-item-has-children:hover > a::after,
.bh-menu .elementor-nav-menu--main li.menu-item-has-children:focus-within > a::after {
    transform: translateY(2px) rotate(-135deg);
    border-color: #C8B688;
}

/* -------------------------------------------------------
   4. ACCESSIBILITY - focus rings
------------------------------------------------------- */
.bh-menu .elementor-item:focus-visible {
    outline: 2px solid rgba(200, 182, 136, 0.55) !important;
    outline-offset: 3px !important;
    border-radius: 2px !important;
}

/* -------------------------------------------------------
   5. DESKTOP DROPDOWN  (>= 1025 px)
      No overflow:hidden here, it hides the 3rd level submenu.
------------------------------------------------------- */
@media (min-width: 1025px) {

    .bh-menu ul.elementor-nav-menu--dropdown {
        background-color: rgba(7, 34, 26, 0.97) !important;
        backdrop-filter: blur(16px) saturate(1.4) !important;
        -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
        border: 1px solid rgba(200, 182, 136, 0.15) !important;
        border-top: 2px solid #C8B688 !important;    /* gold top frame */
        border-radius: 0 0 6px 6px !important;
        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.3),
            0 32px 64px rgba(0, 0, 0, 0.45) !important;
        min-width: 260px !important;
        padding: 6px 0 8px !important;
        /* leave overflow visible */
        /* Simple fade+slide entrance (no clip-path that fights border-top) */
        animation: dropdownOpen 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes dropdownOpen {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Faint row separator */
    .bh-menu ul.elementor-nav-menu--dropdown li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    }

    /* ---- Dropdown link base ---- */
    .bh-menu ul.elementor-nav-menu--dropdown a {
        position: relative;
        color: rgba(255, 255, 255, 0.72) !important;
        background-color: transparent !important;
        padding: 13px 26px 13px 24px !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        letter-spacing: 0.02em !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
        transition:
            color        0.3s ease,
            padding-left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
            background   0.3s ease !important;
    }

    /* Gold left-bar - position:absolute, doesn't affect layout */
    .bh-menu ul.elementor-nav-menu--dropdown a::before {
        content: '';
        position: absolute;
        left: 0; top: 0; bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, #C8B688 0%, rgba(200, 182, 136, 0.3) 100%);
        transform: scaleY(0);
        transform-origin: bottom center;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
    }

    /* Hover / active state */
    .bh-menu ul.elementor-nav-menu--dropdown a:hover,
    .bh-menu ul.elementor-nav-menu--dropdown a.elementor-item-active {
        color: #C8B688 !important;
        background-color: rgba(200, 182, 136, 0.06) !important;
        padding-left: 34px !important;
    }

    .bh-menu ul.elementor-nav-menu--dropdown a:hover::before,
    .bh-menu ul.elementor-nav-menu--dropdown a.elementor-item-active::before {
        transform: scaleY(1);
        transform-origin: top center;
    }

    /* Focus ring */
    .bh-menu ul.elementor-nav-menu--dropdown a:focus-visible {
        outline: 2px solid rgba(200, 182, 136, 0.5) !important;
        outline-offset: -2px !important;
    }

    /* ---- Rightward sub-menu chevron (inline ::after) ---- */
    .bh-menu ul.elementor-nav-menu--dropdown li.menu-item-has-children > a::after {
        content: '';
        display: block !important;
        flex-shrink: 0;
        width: 5px;
        height: 5px;
        border-right: 1.5px solid rgba(255, 255, 255, 0.35);
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
        transform: rotate(-45deg); /* points -> */
        transition:
            transform    0.35s cubic-bezier(0.16, 1, 0.3, 1),
            border-color 0.35s ease;
        position: static !important; /* keeps it in flex row */
    }

    .bh-menu ul.elementor-nav-menu--dropdown li.menu-item-has-children > a:hover::after {
        border-color: #C8B688;
        transform: rotate(-45deg) translate(3px, -3px);
    }

    /* ---- 3rd-level nested submenu ---- */
    .bh-menu ul.elementor-nav-menu--dropdown ul.sub-menu {
        left: calc(100% + 6px) !important;
        top: -8px !important;
        margin: 0 !important;
        border-radius: 4px !important;
        /* Inherit the same glass panel styles */
        background-color: rgba(7, 34, 26, 0.97) !important;
        backdrop-filter: blur(16px) saturate(1.4) !important;
        -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
        border: 1px solid rgba(200, 182, 136, 0.15) !important;
        border-top: 2px solid #C8B688 !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 24px 48px rgba(0,0,0,0.4) !important;
        animation: subMenuOpen 0.35s cubic-bezier(0.16, 1, 0.3, 1) both !important;
        min-width: 220px !important;
    }

    @keyframes subMenuOpen {
        from { opacity: 0; transform: translateX(-6px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Hover-bridge - stops menu closing when moving cursor across the gap */
    .bh-menu ul.elementor-nav-menu--dropdown li.menu-item-has-children {
        position: relative !important;
    }
    .bh-menu ul.elementor-nav-menu--dropdown ul.sub-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: -16px;
        width: 16px;
        height: 100%;
        background: transparent;
    }
}

/* -------------------------------------------------------
   6. MOBILE  (<= 1024 px)
------------------------------------------------------- */
@media (max-width: 1024px) {

    /* ---- Hamburger ---- */
    .bh-menu .elementor-menu-toggle {
        background-color: transparent !important;
        border: 1px solid rgba(200, 182, 136, 0.35) !important;
        border-radius: 4px !important;
        padding: 8px 10px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: border-color 0.3s ease, background 0.3s ease !important;
    }
    .bh-menu .elementor-menu-toggle:hover,
    .bh-menu .elementor-menu-toggle:focus-visible {
        border-color: #C8B688 !important;
        background-color: rgba(200, 182, 136, 0.06) !important;
    }
    .bh-menu .elementor-menu-toggle i,
    .bh-menu .elementor-menu-toggle svg {
        color: #C8B688 !important;
        fill: #C8B688 !important;
    }

    /* ---- Mobile dropdown panel ---- */
    .bh-menu .elementor-nav-menu--dropdown {
        background-color: #07221A !important;
        border: 1px solid rgba(200, 182, 136, 0.18) !important;
        border-top: 2px solid #C8B688 !important;
        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.2),
            0 20px 50px rgba(0, 0, 0, 0.55) !important;
        margin-top: 12px !important;
        padding: 4px 0 8px !important;
        border-radius: 6px !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(200, 182, 136, 0.3) transparent;
    }
    .bh-menu .elementor-nav-menu--dropdown::-webkit-scrollbar { width: 3px; }
    .bh-menu .elementor-nav-menu--dropdown::-webkit-scrollbar-thumb {
        background: rgba(200, 182, 136, 0.35);
        border-radius: 99px;
    }

    /* ---- Mobile links ---- */
    .bh-menu .elementor-nav-menu--dropdown a {
        color: rgba(255, 255, 255, 0.8) !important;
        background-color: transparent !important;
        padding: 15px 20px !important;
        font-size: 15px !important;
        letter-spacing: 0.01em !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
        min-height: 52px !important;
        transition: color 0.25s ease, background 0.25s ease, padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .bh-menu .elementor-nav-menu--dropdown li:last-child > a {
        border-bottom: none !important;
    }

    .bh-menu .elementor-nav-menu--dropdown a:hover,
    .bh-menu .elementor-nav-menu--dropdown a:focus-visible,
    .bh-menu .elementor-nav-menu--dropdown a.elementor-item-active {
        color: #C8B688 !important;
        background-color: rgba(200, 182, 136, 0.05) !important;
        padding-left: 28px !important;
    }

    /* Sub-level indent + darker tint for hierarchy */
    .bh-menu .elementor-nav-menu--dropdown .sub-menu a {
        padding-left: 32px !important;
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.6) !important;
        background-color: rgba(0, 0, 0, 0.15) !important;
    }
    .bh-menu .elementor-nav-menu--dropdown .sub-menu a:hover,
    .bh-menu .elementor-nav-menu--dropdown .sub-menu a.elementor-item-active {
        color: #C8B688 !important;
        padding-left: 40px !important;
    }

    /* 3rd level further indented */
    .bh-menu .elementor-nav-menu--dropdown .sub-menu .sub-menu a {
        padding-left: 44px !important;
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.5) !important;
        background-color: rgba(0, 0, 0, 0.25) !important;
    }

    /* ---- Mobile chevrons (downward, flips open) ---- */
    .bh-menu .elementor-nav-menu--dropdown li.menu-item-has-children > a::after {
        content: '';
        display: block !important;
        flex-shrink: 0;
        width: 7px;
        height: 7px;
        border-right: 1.5px solid rgba(255, 255, 255, 0.4);
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
        transform: rotate(45deg);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
        position: static !important;
    }

    .bh-menu .elementor-nav-menu--dropdown li.menu-item-has-children.elementor-active > a::after,
    .bh-menu .elementor-nav-menu--dropdown li.menu-item-has-children[aria-expanded="true"] > a::after {
        transform: rotate(-135deg);
        border-color: #C8B688;
    }

    /* Main nav chevrons hidden on mobile (toggle handles expand) */
    .bh-menu .elementor-nav-menu--main li.menu-item-has-children > a::after {
        display: none !important;
    }
}

/* -------------------------------------------------------
   7. PRINT
------------------------------------------------------- */
@media print {
    .bh-menu .elementor-nav-menu--dropdown,
    .bh-menu .elementor-menu-toggle {
        display: none !important;
    }
}
/* ===============================
   HEADER GLASSMORPHISM SYSTEM
   Matches plugin hover panel style
   =============================== */

/* Base header (before scroll) */
position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;

  transition:
    background-color 350ms ease,
    backdrop-filter 350ms ease,
    box-shadow 350ms ease,
    border-color 350ms ease;
}

/* Sticky state */
.bh-header{
  background: rgba(0,0,0,0.38) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;

  border-bottom: 1px solid rgba(255,255,255,0.18) !important;

  box-shadow: 0 16px 48px rgba(0,0,0,0.35) !important;
}

/* Gold accent line (matches card accent rule) */
.bh-header::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;

  background: linear-gradient(
    90deg,
    #c8a96e 0%,
    rgba(200,169,110,0) 60%
  );

  transform-origin: left;
  animation: bhAccentIn 420ms ease forwards;
}

/* Accent animation */
@keyframes bhAccentIn{
  from{
    transform: scaleX(0.3);
    opacity: 0;
  }
  to{
    transform: scaleX(1);
    opacity: 1;
  }
}

/* smooth text colour change */
.bh-header a,
.bh-header .elementor-nav-menu a{
  transition: color 250ms ease;
}