.header {
  --logo-width: 260px;
  --logo-width-start: 260;
  --logo-width-end: 100;
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0);
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 15px 40px;
  transition:
    background-color 0.3s ease,
    padding 0.3s ease;
}

.header__container {
   display: flex;
  justify-content: space-between;
  align-items: center;
}

.branding {
  display: flex;
  align-items: center;
}

.branding__logo {
  display: flex;
  align-items: center;
}

.branding__logo--scrolled {
  display: none;
}

.branding .custom-logo,
.branding__img {
  width: var(--logo-width);
  max-width: var(--logo-width);
  height: auto;
  transition: opacity 0.3s ease;
}

.header--scrolled {
  background: #f2f0e8;
}

.header--static {
  --logo-width: calc(var(--logo-width-end) * 1px);
}

.header--scrolled .branding__logo--default {
  display: none;
}

.header--scrolled .branding__logo--scrolled {
  display: flex;
}

.header--scrolled .header-nav__menu a {
  color: #1f1f1f;
}

.header-nav__container {
  align-self: start;
}

.header-nav__menu {
  display: flex;
  gap: 20px;
  list-style: none;
  font-family: "Inter", sans-serif;
}

.header-nav__menu a {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-right: 10px;
}

.header-nav__menu a::after {
  content: "\2022"; 
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.header-nav__menu a:hover::after {
  opacity: 1;
}

.header-burger {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  color: #fff;
}

.header-burger__lines {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

.header-burger__lines::before,
.header-burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    top 0.25s ease,
    opacity 0.25s ease;
}

.header-burger__lines::before {
  top: -7px;
}

.header-burger__lines::after {
  top: 7px;
}

.is-mobile-menu-open .header-burger__lines {
  background: transparent;
}

.is-mobile-menu-open .header-burger__lines::before {
  top: 0;
  transform: rotate(45deg);
}

.is-mobile-menu-open .header-burger__lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.is-mobile-menu-open .header-burger {
  color: #111;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-menu.is-open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mobile-menu__panel {
  position: absolute;
  inset: 0;
  background: #f2f0e8;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: calc(24px + var(--wp-admin--admin-bar--height, 0)) 20px 32px;
  overflow: auto;
}

.mobile-menu__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  color: #111;
}

.mobile-menu__logo {
  margin-top: 0;
  margin-bottom: 10px;
  width: 200px;
}

.mobile-menu__logo img {
  width: 100%;
}

.mobile-menu__logo .branding__logo--scrolled,
.mobile-menu__logo .branding__img {
  display: block;
  width: min(200px, 70vw);
  max-width: min(200px, 70vw);
  height: auto;
}

.mobile-menu__nav {
  width: 100%;
  flex: 0;
  display: flex;
  align-items: flex-start;
}

.mobile-menu__menu {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-family: "Inter", sans-serif;
}

.mobile-menu__menu a {
  color: #111;
  font-size: 14px;
  text-transform: uppercase;
}

.is-mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .header {
    --logo-width-start: 170;
    --logo-width-end: 110;
    padding: 12px 1.5rem;
    top: 0;
  }

  .header-nav__container {
    display: none;
  }

  .header-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header--scrolled .header-burger {
    color: #111;
  }
}
