.site-header {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 30;
  display: block;
  height: 66px;
  padding: 0;
  background: rgba(251, 250, 248, 0.98);
  border-bottom: 1px solid #e8e5de;
  box-shadow: none;
  backdrop-filter: none;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 100%;
}

.site-header.scrolled {
  position: sticky;
  height: 66px;
  background: rgba(251, 250, 248, 0.98);
  box-shadow: none;
  backdrop-filter: none;
}

.header-brand {
  grid-column: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.header-brand img {
  display: block;
  width: 108px;
  height: auto;
}

#main-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
}

.site-header #main-nav a {
  color: #505054;
  font-size: 12px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
}

.site-header #main-nav a:hover {
  color: #b9821b;
}

.header-cta {
  grid-column: 3;
  justify-self: end;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #e4b449, #f2c85b);
  color: #27221a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header-cta span {
  margin-left: 4px;
  color: inherit;
}

.site-header .menu-toggle {
  display: none;
}

.site-header #main-nav .mobile-login-link {
  display: none;
}

@media (max-width: 850px) {
  .site-header,
  .site-header.scrolled {
    height: 66px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #main-nav,
  .site-header #main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 18px;
    background: #fbfaf8;
    box-shadow: 0 16px 24px #122b461c;
  }

  #main-nav.open {
    display: flex;
  }

  .site-header #main-nav a {
    padding: 12px 2px;
    border-bottom: 1px solid #e8e5de;
    font-size: 13px;
  }

  .site-header #main-nav .mobile-login-link {
    display: block;
    margin-top: 8px;
    padding: 12px 14px;
    border: 0;
    border-radius: 999px;
    background: #edbb4c;
    color: #27221a;
    font-weight: 700;
    text-align: center;
  }

  .site-header .header-cta {
    display: none;
  }

  .site-header .menu-toggle {
    grid-column: 2;
    display: flex;
    justify-self: end;
    margin: 0;
    padding: 10px;
  }
}
