:root{
  --sam-header-bg: #132436;
  --sam-header-text: #ffffff;
  --sam-header-dark: #181d27;
  --sam-header-radius: 50px;
  --sam-header-font: "Inter", sans-serif;
}

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

.sam-header{
  width: 100%;
  position: relative;
  z-index: 999;
  padding-bottom:15px;
}

.sam-header__outer{
  width: 100%;
  background: var(--sam-header-bg);
  border-radius: var(--sam-header-radius);
}

.sam-header__inner{
  display: flex;
  min-height: 64px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 0 24px;
  gap: 24px;
}

.sam-header__brand{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.sam-header__logo-link,
.sam-offcanvas__logo-link{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.sam-header__logo,
.sam-offcanvas__logo{
  border: none;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  max-width: 100%;
  display: block;
}

.sam-header__logo{
  max-height: 34px;
  width: auto;
}

.sam-header__logo--desktop{
  display: block;
}

.sam-header__logo--mobile{
  display: none;
}

.sam-header__logo-text,
.sam-offcanvas__logo-text{
  font-family: var(--sam-header-font);
  font-size: 24px;
  font-weight: 600;
  color: #111;
}

.sam-header__nav{
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.sam-menu,
.sam-menu ul,
.sam-mobile-menu,
.sam-mobile-menu ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.sam-menu{
  display: flex;
  align-items: center;
  gap: 34px;
}

.sam-menu > li{
  position: relative;
}

.sam-menu a{
  color: #fff;
  text-decoration: none;
  font-family: var(--sam-header-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  transition: opacity .25s ease;
}

.sam-menu a:hover{
  color:#2563eb;
}

.sam-menu .menu-item-has-children > a::after{
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'><path d='M5.5 7.5 10 12l4.5-4.5'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'><path d='M5.5 7.5 10 12l4.5-4.5'/></svg>") no-repeat center / contain;
}

.sam-menu .sub-menu{
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 0;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
  z-index: 20;
}

.sam-menu .sub-menu li{
  position: relative;
}

.sam-menu .sub-menu a{
  color: #111;
  padding: 10px 18px;
  width: 100%;
  justify-content: space-between;
}

.sam-menu li:hover > .sub-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sam-menu .sub-menu .sub-menu{
  top: 0;
  left: calc(100% + 10px);
}

.sam-header__actions{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sam-header__btn{
  text-decoration: none;
  font-family: var(--sam-header-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  border-style: solid;
  border-width: 0;
  border-radius: 50px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, opacity .2s ease;
}

.sam-header__btn:hover{
  transform: translateY(-1px);
  opacity: .95;
}

.sam-header__btn--ghost{
  color: #FFFFFF;
  background-color: transparent;
}

.sam-header__btn--solid{
  color: #181d27;
  background-color: #FFFFFF;
}

.sam-header__toggle{
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.sam-header__toggle img{
  width: 28px;
  height: 28px;
  display: block;
}

/* Offcanvas */
.sam-offcanvas{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
  z-index: 2000;
}

.sam-offcanvas.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sam-offcanvas__panel{
  width: min(430px, calc(100% - 32px));
  max-width: 430px;
  height: 100%;
  background: #fff;
  margin-left: auto;
  padding: 28px 34px 34px;
  position: relative;
  transform: translateX(100%);
  transition: transform .32s ease;
  overflow-y: auto;
}

.sam-offcanvas.is-open .sam-offcanvas__panel{
  transform: translateX(0);
}

.sam-offcanvas__close{
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: #132436;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.sam-offcanvas__close img{
  width: 16px;
  height: 16px;
  display: block;
}

.sam-offcanvas__brand{
  margin: 14px 0 34px;
}

.sam-offcanvas__logo{
  max-height: 54px;
  width: auto;
}

.sam-offcanvas__search{
  margin-bottom: 26px;
}

.sam-search-form{
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: stretch;
  position: relative;
}

.sam-search-form label{
  display: none;
}

.sam-search-form > span{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sam-search-form__icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  opacity: .9;
}

.sam-search-form input{
  width: 100%;
  height: 42px;
  border: 0;
  background: #f3f3f3;
  border-radius: 10px 0 0 10px;
  padding: 0 16px 0 42px;
  font-family: var(--sam-header-font);
  font-size: 14px;
  color: #181d27;
  outline: none;
}

.sam-search-form button{
  width: 48px;
  height: 42px;
  border: 0;
  background: #132436;
  color: #fff;
  font-size: 20px;
  border-radius: 0;
  cursor: pointer;
}

.sam-mobile-menu > li{
  border-bottom: 1px solid #ececec;
}

.sam-mobile-menu a{
  text-decoration: none;
  color: #181d27;
  font-family: var(--sam-header-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
}

.sam-mobile-menu .sub-menu{
  display: none;
  padding: 0 0 12px 14px;
}

.sam-mobile-menu .sub-menu a{
  padding: 12px 0;
  font-size: 15px;
}

.sam-mobile-menu .menu-item-has-children > a::after{
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: #111;
  opacity: .85;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'><path d='M5.5 7.5 10 12l4.5-4.5'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'><path d='M5.5 7.5 10 12l4.5-4.5'/></svg>") no-repeat center / contain;
  transition: transform .2s ease;
}

.sam-mobile-menu .menu-item-has-children.is-open > a::after{
  transform: rotate(180deg);
}

.sam-offcanvas__actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.sam-offcanvas__actions .sam-header__btn{
  width: 100%;
}

@media (max-width: 1199px){
  .sam-header__nav,
  .sam-header__actions{
    display: none;
  }

  .sam-header__toggle{
    display: flex;
  }

  .sam-header__inner{
    padding: 0 18px 0 18px;
  }

  .sam-header__logo{
    max-height: 30px;
  }
}

@media (max-width: 767px){
  .sam-header__outer{
    border-radius: 0;
    background: transparent;
  }

  .sam-header__inner{
    min-height: auto;
    padding: 0;
  }

  .sam-header__logo--desktop{
    display: none;
  }

  .sam-header__logo--mobile{
    display: block;
  }

  .sam-offcanvas__panel{
    width: min(430px, calc(100% - 44px));
    padding: 28px 36px 34px;
  }

  .sam-offcanvas__brand{
    margin-top: 10px;
  }
}