
:root{
  --siako-header-brand:#8F7C68;
  --siako-header-brand-dark:#756353;
  --siako-header-ink:#1D2328;
  --siako-header-muted:#687178;
  --siako-header-line:rgba(29,35,40,.09);
}

.siako-custom-header,
.siako-custom-header *{
  box-sizing:border-box;
}

.siako-custom-header{
  position:sticky;
  top:0;
  z-index:9998;
  width:100%;
  background:rgba(255,255,255,.90);
  border-bottom:1px solid var(--siako-header-line);
  box-shadow:0 8px 28px rgba(29,35,40,.04);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
}

body.admin-bar .siako-custom-header{
  top:32px;
}

.siako-header-inner{
  width:min(100% - 34px,1180px);
  min-height:78px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}

.siako-header-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:max-content;
  color:var(--siako-header-ink);
  text-decoration:none !important;
}

.siako-header-logo{
  display:block;
  width:76px;
  height:46px;
  object-fit:contain;
}

.siako-header-wordmark{
  display:flex;
  flex-direction:column;
  line-height:1;
}

.siako-header-name{
  font-size:18px;
  font-weight:800;
  letter-spacing:-.35px;
}

.siako-header-tagline{
  margin-top:6px;
  color:var(--siako-header-brand);
  font-size:9px;
  font-weight:800;
  letter-spacing:2.3px;
}

.siako-header-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}

.siako-header-nav a{
  position:relative;
  padding:12px 13px;
  border-radius:11px;
  color:var(--siako-header-ink);
  text-decoration:none !important;
  font-size:14px;
  font-weight:650;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}

.siako-header-nav a:not(.siako-header-cta)::after{
  content:"";
  position:absolute;
  left:13px;
  right:13px;
  bottom:7px;
  height:2px;
  border-radius:10px;
  background:var(--siako-header-brand);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .25s ease;
}

.siako-header-nav a:not(.siako-header-cta):hover{
  color:var(--siako-header-brand-dark);
  background:rgba(143,124,104,.07);
}

.siako-header-nav a:not(.siako-header-cta):hover::after{
  transform:scaleX(1);
}

.siako-header-cta{
  margin-left:7px;
  padding:13px 18px !important;
  background:var(--siako-header-brand);
  color:#fff !important;
  box-shadow:0 8px 20px rgba(143,124,104,.20);
}

.siako-header-cta:hover{
  background:var(--siako-header-brand-dark);
  transform:translateY(-2px);
}

.siako-header-toggle{
  display:none;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--siako-header-line);
  border-radius:13px;
  background:#fff;
  color:var(--siako-header-ink);
  cursor:pointer;
  box-shadow:0 7px 20px rgba(29,35,40,.05);
}

.siako-header-toggle span,
.siako-header-toggle::before,
.siako-header-toggle::after{
  display:block;
  width:21px;
  height:2px;
  border-radius:8px;
  background:currentColor;
  transition:transform .25s ease,opacity .2s ease;
}

.siako-header-toggle{
  flex-direction:column;
  gap:5px;
}

.siako-header-toggle::before,
.siako-header-toggle::after{
  content:"";
}

.siako-header-toggle.is-open span{
  opacity:0;
}

.siako-header-toggle.is-open::before{
  transform:translateY(7px) rotate(45deg);
}

.siako-header-toggle.is-open::after{
  transform:translateY(-7px) rotate(-45deg);
}

@media(max-width:900px){
  body.admin-bar .siako-custom-header{
    top:46px;
  }

  .siako-header-inner{
    min-height:70px;
    position:relative;
  }

  .siako-header-logo{
    width:66px;
    height:40px;
  }

  .siako-header-name{
    font-size:17px;
  }

  .siako-header-toggle{
    display:flex;
  }

  .siako-header-nav{
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    right:0;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:5px;
    padding:12px;
    border:1px solid var(--siako-header-line);
    border-radius:20px;
    background:rgba(255,255,255,.98);
    box-shadow:0 24px 60px rgba(29,35,40,.15);
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px) scale(.98);
    transform-origin:top;
    transition:opacity .2s ease,visibility .2s ease,transform .25s ease;
  }

  .siako-header-nav.is-open{
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
  }

  .siako-header-nav a{
    width:100%;
    padding:14px 15px;
  }

  .siako-header-nav a::after{
    display:none;
  }

  .siako-header-cta{
    margin:5px 0 0;
    text-align:center;
  }
}

@media(max-width:520px){
  .siako-header-inner{
    width:min(100% - 22px,1180px);
  }

  .siako-header-wordmark{
    display:none;
  }

  .siako-header-logo{
    width:74px;
    height:43px;
  }
}
