/* ===== ST Header ===== */
.st-el--header .st-header{
  position:relative;z-index:20;margin:0;
  background:var(--st-bg);
  background:color-mix(in srgb,var(--st-bg) 86%,transparent);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--st-line);
}
.st-el--header .st-header>.st-wrap{display:flex;align-items:center;justify-content:space-between;height:var(--st-header-h);gap:1rem}

/* sticky: fixed bar + spacer that keeps its place in the layout */
.st-el--sticky .st-header{position:fixed;top:var(--wp-admin--admin-bar--height,0px);left:0;right:0;z-index:999;padding-top:env(safe-area-inset-top,0px)}
.st-el--sticky .st-header-spacer{height:calc(var(--st-header-h) + env(safe-area-inset-top,0px));background:var(--st-bg)}
/* non-sticky: solid backdrop so the bar looks the same on any page background */
.st-el--header:not(.st-el--sticky){background:var(--st-bg)}
html:has(.st-el--sticky){scroll-padding-top:calc(var(--st-header-h) + env(safe-area-inset-top,0px) + var(--wp-admin--admin-bar--height,0px))}
@media (max-width:600px){.admin-bar .st-el--sticky .st-header{top:0}}
/* in the Elementor editor keep it in the flow so other elements stay clickable */
body.elementor-editor-active .st-el--sticky .st-header{position:relative;top:0}
body.elementor-editor-active .st-el--sticky .st-header-spacer{display:none}

/* nav */
.st-el .st-nav{display:flex;gap:1.6rem;align-items:center;margin:0;padding:0;background:none}
.st-el .st-nav a,.st-el .st-nav a:hover,.st-el .st-nav a:focus,.st-el .st-nav a:visited{
  text-decoration:none;font-family:var(--st-sans);font-size:.95rem;font-weight:500;line-height:1.65;
  color:var(--st-text);padding:.4rem 0;margin:0;border:0;border-bottom:2px solid transparent;background:none;box-shadow:none;
}
.st-el .st-nav a[aria-current="page"]{border-bottom-color:var(--st-gold)}

/* button link */
.st-el .st-nav a.st-btn,.st-el .st-nav a.st-btn:visited,.st-el .st-nav a.st-btn:focus{
  display:inline-flex;align-items:center;gap:.5rem;padding:.6rem 1.1rem;border-radius:999px;
  font-weight:500;font-size:.9rem;text-transform:capitalize;cursor:pointer;
  color:var(--st-btn-ink);background:var(--st-btn-bg);border:1.5px solid transparent;
  transition:background .2s,color .2s,border-color .2s,transform .2s;
}
.st-el .st-nav a.st-btn:hover{background:var(--st-btn-bg-hover);color:var(--st-btn-ink)}
.st-el .st-nav a.st-btn:active{transform:scale(.98)}
.st-el .st-nav a.st-btn[aria-current="page"]{border-color:var(--st-gold);border-bottom-color:transparent}

/* mobile menu button (reset theme button styles) */
.st-el .st-menu-btn,.st-el .st-menu-btn:hover,.st-el .st-menu-btn:focus,.st-el .st-menu-btn:active{
  display:none;background:none;border:1.5px solid var(--st-line);border-radius:10px;padding:.5rem .7rem;margin:0;
  color:var(--st-text);font:inherit;font-family:var(--st-sans);line-height:1.65;cursor:pointer;
  text-transform:none;letter-spacing:normal;box-shadow:none;min-height:0;width:auto;
}

@media (min-width:901px) and (max-width:1180px){
  .st-el .st-nav{gap:1.1rem}
  .st-el .st-nav a,.st-el .st-nav a:hover,.st-el .st-nav a:focus{font-size:.88rem}
  .st-el .st-nav a.st-btn,.st-el .st-nav a.st-btn:hover,.st-el .st-nav a.st-btn:focus{padding:.55rem .9rem;font-size:.85rem}
}

@media (max-width:900px){
  .st-el .st-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--st-bg);flex-direction:column;align-items:stretch;gap:0;padding:.5rem 1.25rem 1.25rem;border-bottom:1px solid var(--st-line)}
  .st-el .st-nav.is-open{display:flex}
  .st-el .st-nav a,.st-el .st-nav a:hover,.st-el .st-nav a:focus{padding:.85rem 0;border-bottom:1px solid var(--st-line);font-size:1.05rem}
  .st-el .st-nav a[aria-current="page"]{color:var(--st-plum);border-bottom-color:var(--st-line)}
  .st-el .st-nav a.st-btn,.st-el .st-nav a.st-btn:hover,.st-el .st-nav a.st-btn:focus{margin-top:1rem;justify-content:center;padding:.6rem 1.1rem;font-size:.9rem;border-bottom:1.5px solid transparent;color:var(--st-btn-ink)}
  .st-el .st-menu-btn,.st-el .st-menu-btn:hover,.st-el .st-menu-btn:focus,.st-el .st-menu-btn:active{display:inline-block}
  .st-el .st-nav a.st-btn[aria-current="page"]{border-color:var(--st-line);border-bottom-color:transparent}
}
@media (max-width:640px){
  .st-el--header{--st-header-h:64px}
  .st-el .st-nav{max-height:calc(100vh - var(--st-header-h));max-height:calc(100dvh - var(--st-header-h) - env(safe-area-inset-top,0px));overflow-y:auto}
}
@media (max-height:520px) and (orientation:landscape){
  .st-el .st-nav{max-height:calc(100vh - var(--st-header-h));max-height:calc(100dvh - var(--st-header-h) - env(safe-area-inset-top,0px));overflow-y:auto}
}

/* optional: follow the device's dark mode, like the original site */
@media (prefers-color-scheme:dark){
  .st-el--auto-dark{--st-bg:#1D0F19;--st-text:#F3E9E4;--st-line:rgba(243,233,228,.16);--st-plum:#F3E9E4;color-scheme:dark}
}
