/* MB Spectrums — Header / Navbar widget */

/* ============================================================
   Self-contained sticky + seamless header (works without the theme).
   Elementor tags each widget wrapper with .elementor-widget-<name>, so we
   target the exact section/container that holds the header and make IT sticky
   and dark — covering the gap between the top bar and the nav (the white strip)
   no matter what spacing Elementor applies. Requires :has() (modern browsers).
   ============================================================ */
.elementor-widget-spectrums_topbar{margin-bottom:0 !important}
.elementor-section:has(.elementor-widget-spectrums_header),
.elementor-top-section:has(.elementor-widget-spectrums_header),
.e-con:has(.elementor-widget-spectrums_header),
.e-con-inner:has(.elementor-widget-spectrums_header){
  position:sticky;
  top:0;
  z-index:999;
  background:var(--header-bg);
  gap:0 !important;
  row-gap:0 !important;
}
.elementor-section:has(.elementor-widget-spectrums_header) .elementor-widget,
.e-con:has(.elementor-widget-spectrums_header) .elementor-widget{margin-bottom:0 !important}
body.admin-bar .elementor-section:has(.elementor-widget-spectrums_header),
body.admin-bar .elementor-top-section:has(.elementor-widget-spectrums_header),
body.admin-bar .e-con:has(.elementor-widget-spectrums_header){top:32px}
@media screen and (max-width:782px){
  body.admin-bar .elementor-section:has(.elementor-widget-spectrums_header),
  body.admin-bar .e-con:has(.elementor-widget-spectrums_header){top:46px}
}

.site-header{position:sticky;top:0;z-index:60;background:var(--header-bg);border-bottom:1px solid rgba(180,137,58,.32);transition:box-shadow .3s}
.site-header.scrolled{box-shadow:0 8px 30px rgba(36,31,24,.10)}
.nav{display:flex;align-items:center;justify-content:space-between;min-height:78px;gap:24px}
.brand{display:flex;flex-direction:column;line-height:1;flex-shrink:0}
.brand .name{font-family:"Cormorant Garamond",serif;font-weight:700;font-size:1.7rem;color:var(--gold-light);letter-spacing:.14em;white-space:nowrap}
.brand .tag{font-size:.58rem;letter-spacing:.42em;text-transform:uppercase;color:var(--on-deep-faint);margin-top:4px;padding-left:.16em;white-space:nowrap}
.menu{display:flex;gap:28px;align-items:center;flex-wrap:nowrap}
.menu a{font-size:.82rem;font-weight:500;letter-spacing:.06em;color:var(--on-deep-soft);text-transform:uppercase;transition:.2s;position:relative;white-space:nowrap}
.menu a::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:1px;background:var(--gold);transition:.25s}
.menu a:hover{color:var(--gold-light)}
.menu a:hover::after,.menu a.active::after{width:100%}
.menu a.active{color:var(--gold-light)}
.nav-cta{display:flex;align-items:center;gap:16px;flex-shrink:0}
.nav-cta .btn{white-space:nowrap}
.burger{display:none;background:none;border:0;cursor:pointer;flex-direction:column;gap:5px;padding:6px;width:36px;height:32px;align-items:center;justify-content:center}
.burger span{width:24px;height:2px;background:var(--gold-light);display:block;border-radius:2px;transition:transform .3s ease,opacity .2s ease}
/* animate to an ✕ when open */
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* in-drawer elements are desktop-hidden */
.menu-close,.menu-heading{display:none}
.sx-nav-overlay{display:none}
.sx-nav-lock{overflow:hidden}

@media(max-width:980px){
  .burger{display:flex}
  .nav-cta .btn{display:none}

  /* ---- slide-in drawer ---- */
  .menu{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    width:min(86vw,360px);
    height:100vh;
    height:100dvh;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:0;
    background:linear-gradient(180deg,var(--header-bg),var(--header-bg-2));
    border-left:1px solid var(--line-gold);
    padding:0 0 28px;
    transform:translateX(100%);
    transition:transform .34s cubic-bezier(.4,0,.2,1);
    box-shadow:-26px 0 60px rgba(36,31,24,.18);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    z-index:1001;
  }
  .menu.open{transform:translateX(0)}

  /* drawer header (brand + close) */
  .menu-heading{
    display:block;
    font-family:"Cormorant Garamond",serif;
    font-size:1.25rem;
    letter-spacing:.14em;
    color:var(--gold-light);
    padding:26px 26px 18px;
    border-bottom:1px solid rgba(180,137,58,.32);
    margin-bottom:8px;
  }
  .menu-close{
    display:flex;
    position:absolute;
    top:20px;
    right:20px;
    width:38px;
    height:38px;
    align-items:center;
    justify-content:center;
    background:none;
    border:1px solid var(--line-gold);
    border-radius:50%;
    cursor:pointer;
    transition:.2s;
  }
  .menu-close:hover{background:rgba(201,162,75,.12)}
  .menu-close span{position:absolute;width:16px;height:2px;background:var(--gold-light);border-radius:2px}
  .menu-close span:first-child{transform:rotate(45deg)}
  .menu-close span:last-child{transform:rotate(-45deg)}

  /* drawer links */
  .menu a{
    padding:16px 28px;
    font-size:.98rem;
    letter-spacing:.1em;
    color:var(--on-deep);
    border-bottom:1px solid rgba(180,137,58,.18);
  }
  .menu a:last-child{border-bottom:0}
  .menu a::after{display:none}
  .menu a:hover{color:var(--gold-light);background:rgba(201,162,75,.06)}
  .menu a.active{
    color:var(--gold-light);
    background:rgba(201,162,75,.1);
    box-shadow:inset 3px 0 0 var(--gold);
  }
  /* reveal links one-by-one when the drawer opens */
  .menu.open a{animation:sx-link-in .4s ease both}
  .menu.open a:nth-of-type(1){animation-delay:.07s}
  .menu.open a:nth-of-type(2){animation-delay:.13s}
  .menu.open a:nth-of-type(3){animation-delay:.19s}
  .menu.open a:nth-of-type(4){animation-delay:.25s}
  .menu.open a:nth-of-type(5){animation-delay:.31s}
  .menu.open a:nth-of-type(6){animation-delay:.37s}
  .menu.open a:nth-of-type(7){animation-delay:.43s}

  /* dimmed backdrop */
  .sx-nav-overlay{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(36,31,24,.45);
    -webkit-backdrop-filter:blur(2px);
    backdrop-filter:blur(2px);
    opacity:0;
    visibility:hidden;
    transition:opacity .3s ease,visibility .3s ease;
    z-index:1000;
  }
  .sx-nav-overlay.open{opacity:1;visibility:visible}
}
@keyframes sx-link-in{from{opacity:0;transform:translateX(26px)}to{opacity:1;transform:none}}
