/* SL Header — floating bar: menu | logo | social + button */
.sl-header{
  --sl-header-top:10px;
  position:relative;
  z-index:100;
  width:100%;
  padding-top:var(--sl-header-top);
}
.sl-header__wrap{
  position:relative;
  max-width:var(--sl-max);
  margin:0 auto;
  padding:0 var(--sl-gutter);
}

/* ---------- bar ---------- */
.sl-header__bar{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);
  align-items:center;
  gap:24px;
  min-height:64px;
  padding:10px 20px;
  border:1px solid rgba(69,61,53,.06);
  border-radius:12px;
  background:var(--sl-panel);
  box-shadow:0 6px 24px rgba(56,50,44,.06);
  transition:box-shadow .25s ease;
}

/* logo in the centre (default) */
.sl-header__nav{ justify-self:start; min-width:0; }
.sl-header__logo{ justify-self:center; }
.sl-header__right{ justify-self:end; }

/* logo on the left: logo | menu | right */
.sl-header--logo-left .sl-header__bar{ grid-template-columns:auto minmax(0, 1fr) auto; }
.sl-header--logo-left .sl-header__logo{ order:-1; justify-self:start; }
.sl-header--logo-left .sl-header__nav{ justify-self:center; }

/* ---------- logo ---------- */
.sl-header__logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  color:var(--sl-text);
}
.sl-header__logo img{ display:block; width:auto; height:36px; }
.sl-header__logo-text{
  font-family:var(--sl-font);
  font-size:26px;
  font-weight:500;
  line-height:1;
  letter-spacing:-.01em;
  color:var(--sl-text);
  white-space:nowrap;
}

/* ---------- desktop menu ---------- */
.sl-header__menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:28px;
}
.sl-header__menu li{ position:relative; margin:0; padding:0; list-style:none; }
.sl-header__menu a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 0;
  font-family:var(--sl-font);
  font-size:13px;
  font-weight:500;
  letter-spacing:.06em;
  line-height:1.2;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--sl-text);
  transition:color .2s ease, opacity .2s ease;
}
.sl-header__menu > li > a:hover,
.sl-header__menu > .current-menu-item > a,
.sl-header__menu > .current-menu-ancestor > a{ color:var(--sl-btn); opacity:.7; }
.sl-header__menu a:focus-visible{ outline:2px solid var(--sl-btn); outline-offset:3px; border-radius:2px; }

/* dropdown */
.sl-header__menu .menu-item-has-children > a::after{
  content:"";
  width:6px;
  height:6px;
  margin-top:-3px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);
}
.sl-header__menu .sub-menu{
  position:absolute;
  top:100%;
  left:-16px;
  z-index:10;
  min-width:220px;
  margin:0;
  padding:10px;
  list-style:none;
  border:1px solid var(--sl-line);
  border-radius:10px;
  background:var(--sl-panel);
  box-shadow:0 14px 34px rgba(56,50,44,.12);
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.sl-header__menu li:hover > .sub-menu,
.sl-header__menu li:focus-within > .sub-menu{
  opacity:1;
  visibility:visible;
  transform:none;
  transition:opacity .18s ease, transform .18s ease, visibility 0s;
}
.sl-header__menu .sub-menu a{
  display:block;
  padding:9px 12px;
  border-radius:6px;
  text-transform:none;
  letter-spacing:0;
  font-size:15px;
}
.sl-header__menu .sub-menu a:hover{ background:var(--sl-bg); }

/* ---------- right: social + button ---------- */
.sl-header__right{ display:flex; align-items:center; gap:18px; }
.sl-header__social{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:14px;
}
.sl-header__social li{ margin:0; padding:0; list-style:none; }
.sl-header__social a{
  display:inline-flex;
  color:var(--sl-text);
  transition:color .2s ease, opacity .2s ease;
}
.sl-header__social a:hover{ opacity:.7; }
.sl-header__social a:focus-visible{ outline:2px solid var(--sl-btn); outline-offset:3px; border-radius:4px; }
.sl-header__social svg{ display:block; width:22px; height:22px; }
.sl-header__btn{ height:42px; padding:0 18px; font-size:12.5px; }

/* ---------- hamburger ---------- */
.sl-header__toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin:0;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  box-shadow:none;
  color:var(--sl-text);
  cursor:pointer;
}
.sl-header__toggle:hover,
.sl-header__toggle:focus{ background:var(--sl-bg); color:var(--sl-text); }
.sl-header__toggle:focus-visible{ outline:2px solid var(--sl-btn); outline-offset:2px; }
.sl-header__bars{ position:relative; display:block; width:22px; height:14px; }
.sl-header__bars span{
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transition:transform .25s ease, opacity .2s ease, top .25s ease;
}
.sl-header__bars span:nth-child(1){ top:0; }
.sl-header__bars span:nth-child(2){ top:6px; }
.sl-header__bars span:nth-child(3){ top:12px; }
.sl-header.is-open .sl-header__bars span:nth-child(1){ top:6px; transform:rotate(45deg); }
.sl-header.is-open .sl-header__bars span:nth-child(2){ opacity:0; }
.sl-header.is-open .sl-header__bars span:nth-child(3){ top:6px; transform:rotate(-45deg); }

/* ---------- mobile panel ---------- */
.sl-header__panel{
  margin-top:8px;
  padding:8px 20px 20px;
  border-radius:12px;
  background:var(--sl-panel);
  box-shadow:0 14px 34px rgba(56,50,44,.12);
}
.sl-header__panel[hidden]{ display:none; }
.sl-header__mmenu{ list-style:none; margin:0; padding:0; }
.sl-header__mmenu li{ margin:0; padding:0; list-style:none; border-bottom:1px solid var(--sl-line); }
.sl-header__mmenu a{
  display:block;
  padding:14px 0;
  font-family:var(--sl-font);
  font-size:16px;
  font-weight:500;
  color:var(--sl-text);
  text-decoration:none;
}
.sl-header__mmenu .sub-menu{ list-style:none; margin:0 0 8px; padding:0 0 0 14px; }
.sl-header__mmenu .sub-menu li{ border:0; }
.sl-header__mmenu .sub-menu a{ padding:8px 0; font-size:15px; color:var(--sl-muted); }
.sl-header__panel-foot{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:16px;
  margin-top:18px;
}
.sl-header__panel-foot .sl-header__social{ justify-content:center; }
.sl-header__btn--mobile{ width:100%; height:48px; }

/* ---------- float over the hero (Theme Builder header) ---------- */
.elementor-location-header:has(.sl-header--overlay){
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:999;
}
body.admin-bar .elementor-location-header:has(.sl-header--overlay){ top:32px; }

/* ---------- sticky ---------- */
.sl-header--sticky.is-stuck .sl-header__wrap{
  position:fixed;
  top:var(--sl-header-top);
  left:0;
  right:0;
  z-index:999;
  animation:slHeaderDown .3s ease;
}
body.admin-bar .sl-header--sticky.is-stuck .sl-header__wrap{ top:calc(var(--sl-header-top) + 32px); }
.sl-header--sticky.is-stuck .sl-header__bar{ box-shadow:0 10px 30px rgba(56,50,44,.12); }
@keyframes slHeaderDown{ from{ transform:translateY(-12px); opacity:.6; } to{ transform:none; opacity:1; } }

/* ---------- breakpoints: hamburger ---------- */
@media (max-width:1200px){
  .sl-header__menu{ gap:20px; }
  .sl-header__right{ gap:14px; }
}
@media (max-width:1024px){
  .sl-header--bp-tablet .sl-header__bar{ grid-template-columns:auto 1fr; gap:12px; padding:8px 8px 8px 20px; }
  .sl-header--bp-tablet .sl-header__nav,
  .sl-header--bp-tablet .sl-header__right .sl-header__social,
  .sl-header--bp-tablet .sl-header__right .sl-header__btn{ display:none; }
  .sl-header--bp-tablet .sl-header__logo{ order:-1; justify-self:start; }
  .sl-header--bp-tablet .sl-header__toggle{ display:inline-flex; }
}
@media (max-width:782px){
  body.admin-bar .elementor-location-header:has(.sl-header--overlay){ top:46px; }
  body.admin-bar .sl-header--sticky.is-stuck .sl-header__wrap{ top:var(--sl-header-top); }
}
@media (max-width:767px){
  .sl-header--bp-mobile .sl-header__bar{ grid-template-columns:auto 1fr; gap:12px; padding:8px 8px 8px 18px; }
  .sl-header--bp-mobile .sl-header__nav,
  .sl-header--bp-mobile .sl-header__right .sl-header__social,
  .sl-header--bp-mobile .sl-header__right .sl-header__btn{ display:none; }
  .sl-header--bp-mobile .sl-header__logo{ order:-1; justify-self:start; }
  .sl-header--bp-mobile .sl-header__toggle{ display:inline-flex; }
  .sl-header__logo img{ height:30px; }
  .sl-header__logo-text{ font-size:22px; }
}
@media (min-width:1025px){
  .sl-header--bp-tablet .sl-header__panel{ display:none !important; }
}
@media (min-width:768px){
  .sl-header--bp-mobile .sl-header__panel{ display:none !important; }
}
@media (prefers-reduced-motion:reduce){
  .sl-header--sticky.is-stuck .sl-header__wrap{ animation:none; }
}
