.bh-siteheader {
  --hd: var(--bh-duration);
  position: relative;
  z-index: 40;
  color: var(--bh-on-brand);
  background: var(--bh-surface-deep);
  background-image: var(--bh-lagoon);
  isolation: isolate;
}

.bh-siteheader--sticky {
  position: sticky;
  inset-block-start: 0;
}

@media (max-width: 782px) {
  .admin-bar .bh-siteheader--sticky { inset-block-start: 46px; }
}

@media (max-width: 600px) {
  .admin-bar .bh-siteheader--sticky.bh-siteheader--scrolled { inset-block-start: 0; }
}

.bh-siteheader--overlay {
  position: fixed;
  inset-inline: 0;
  inset-block-start: 0;
  background: transparent;
  background-image: none;
}

.bh-siteheader::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgb(9 44 47 / 94%);
  background-image: var(--bh-grain);
  background-size: 160px 160px;
  border-block-end: 2px solid var(--bh-accent-dark);
  box-shadow: 0 1px 0 rgb(255 200 87 / 30%), 0 14px 30px -18px rgb(0 0 0 / 80%);
  opacity: 0;
  transition: opacity calc(var(--hd) * 2) var(--bh-ease);
}

.bh-siteheader--scrolled::after,
.bh-siteheader--open::after {
  opacity: 1;
}

.bh-siteheader__topbar { display: none; }

.bh-siteheader__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--bh-space-lg);
  width: min(100% - (var(--bh-space-lg) * 2), var(--bh-container-wide));
  margin-inline: auto;
  min-block-size: 96px;
  padding-block: 10px;
  transition: min-block-size calc(var(--hd) * 1.5) var(--bh-ease);
}

.bh-siteheader--scrolled .bh-siteheader__inner {
  min-block-size: 72px;
}

.bh-siteheader__brand {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bh-space-sm);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.bh-siteheader__logo { display: inline-flex; }

.bh-siteheader__logoimg {
  inline-size: auto;
  block-size: var(--bh-logo-h, 44px);
  object-fit: contain;
  transition: block-size calc(var(--hd) * 1.5) var(--bh-ease);
}

.bh-siteheader--scrolled .bh-siteheader__logoimg {
  block-size: calc(var(--bh-logo-h, 44px) * 0.82);
}

@media (max-width: 600px) {
  .bh-siteheader__logoimg {
    block-size: calc(var(--bh-logo-h, 44px) * 0.84);
  }

  .bh-siteheader--scrolled .bh-siteheader__logoimg {
    block-size: calc(var(--bh-logo-h, 44px) * 0.76);
  }
}

.bh-siteheader__title {
  font-family: var(--bh-font-heading);
  font-size: var(--bh-step-3);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  background: var(--bh-gold);
  -webkit-background-clip: text;
  background-clip: text;
}

.bh-siteheader__panel {
  display: contents;
}

.bh-siteheader__nav {
  order: 1;
  display: flex;
  align-items: center;
  justify-self: start;
}

.bh-siteheader__menu {
  display: flex;
  align-items: center;
  gap: var(--bh-space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-siteheader__item {
  position: relative;
  display: flex;
  align-items: center;
}

.bh-siteheader__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: 6px;
  color: inherit;
  font-family: var(--bh-font-body);
  font-size: var(--bh-step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.86;
  background: linear-gradient(#ffc857, #ffc857) no-repeat 50% 100% / 0% 2px;
  transition: opacity var(--hd) var(--bh-ease), color var(--hd) var(--bh-ease), background-size calc(var(--hd) * 1.6) var(--bh-ease-out-expo);
}

.bh-siteheader__link:hover,
.bh-siteheader__link:focus-visible,
.bh-siteheader__link[aria-current='page'] {
  opacity: 1;
  color: #fbf4e4;
  background-size: 100% 2px;
}

.bh-siteheader__subtoggle {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 4px;
  padding: 4px;
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
}

.bh-siteheader__subtoggle svg { transition: transform calc(var(--hd) * 1.5) var(--bh-ease); }

.bh-siteheader__item--has-sub:hover > .bh-siteheader__subtoggle svg,
.bh-siteheader__item--has-sub:focus-within > .bh-siteheader__subtoggle svg { transform: rotate(180deg); }

.bh-siteheader__sub {
  position: absolute;
  inset-block-start: calc(100% + 14px);
  inset-inline-start: -14px;
  z-index: 5;
  min-inline-size: 220px;
  margin: 0;
  padding: var(--bh-space-xs);
  border: 2px solid var(--bh-accent-dark);
  border-radius: var(--bh-radius);
  background: rgb(13 57 60 / 97%);
  box-shadow: inset 0 0 0 3px rgb(13 57 60), inset 0 0 0 4px rgb(255 200 87 / 30%), var(--bh-shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 6px, 0);
  transition: opacity var(--hd) var(--bh-ease), transform calc(var(--hd) * 1.6) var(--bh-ease-out-expo), visibility 0s linear var(--hd);
}

.bh-siteheader__item--has-sub:hover .bh-siteheader__sub,
.bh-siteheader__item--has-sub:focus-within .bh-siteheader__sub,
.bh-siteheader__item--open .bh-siteheader__sub {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.bh-siteheader__sublink {
  display: block;
  padding: var(--bh-space-sm) var(--bh-space-md);
  border-radius: var(--bh-radius);
  color: rgb(247 241 227 / 84%);
  font-size: var(--bh-step--1);
  text-decoration: none;
  transition: background-color var(--hd) var(--bh-ease), color var(--hd) var(--bh-ease);
}

.bh-siteheader__sublink:hover {
  background: rgb(255 200 87 / 12%);
  color: #ffc857;
}

.bh-siteheader__actions {
  order: 3;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: var(--bh-space-lg);
}

.bh-siteheader__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: var(--bh-step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0.78;
  transition: opacity var(--hd) var(--bh-ease);
}

.bh-siteheader__phone:hover { opacity: 1; }

.bh-siteheader__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 46px;
  padding: 0 var(--bh-space-lg);
  border: 2px solid #b4470b;
  border-radius: var(--bh-radius);
  background-color: var(--bh-accent);
  background-image: var(--bh-gold);
  color: var(--bh-on-accent);
  font-family: var(--bh-font-body);
  font-size: var(--bh-step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 2px rgb(255 230 160 / 55%), 0 3px 0 #9a3b08;
  transition: box-shadow calc(var(--hd) * 1.4) var(--bh-ease), transform calc(var(--hd) * 1.6) var(--bh-ease-out-expo);
}


.bh-siteheader__cta:hover {
  box-shadow: inset 0 0 0 2px rgb(255 230 160 / 80%), 0 5px 0 #9a3b08;
  transform: translate3d(0, -2px, 0);
}

.bh-siteheader__cta:active { transform: scale3d(0.97, 0.97, 1); }

.bh-siteheader__toggle {
  order: 3;
  display: none;
  justify-self: end;
  inline-size: 48px;
  block-size: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.bh-siteheader__bars {
  position: relative;
  display: block;
  inline-size: 24px;
  block-size: 14px;
  margin-inline: auto;
}

.bh-siteheader__bars i {
  position: absolute;
  inset-inline: 0;
  block-size: 1px;
  background: currentcolor;
  transition: transform calc(var(--hd) * 1.6) var(--bh-ease-out-expo), opacity var(--hd) var(--bh-ease);
}

.bh-siteheader__bars i:nth-child(1) { inset-block-start: 0; }
.bh-siteheader__bars i:nth-child(2) { inset-block-start: 50%; translate: 0 -50%; }
.bh-siteheader__bars i:nth-child(3) { inset-block-end: 0; }

.bh-siteheader--open .bh-siteheader__bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.bh-siteheader--open .bh-siteheader__bars i:nth-child(2) { opacity: 0; }
.bh-siteheader--open .bh-siteheader__bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.bh-siteheader__link:focus-visible,
.bh-siteheader__cta:focus-visible,
.bh-siteheader__toggle:focus-visible,
.bh-siteheader__subtoggle:focus-visible,
.bh-siteheader__sublink:focus-visible {
  outline: 2px solid #ffc857;
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .bh-siteheader__inner {
    grid-template-columns: 1fr auto;
  }

  .bh-siteheader__brand { order: 1; justify-content: flex-start; justify-self: start; }
  .bh-siteheader__toggle { display: inline-flex; align-items: center; justify-content: center; order: 2; }

  .bh-siteheader__panel {
    display: flex;
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    max-block-size: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: var(--bh-space-md);
    padding: var(--bh-space-lg) var(--bh-space-lg) var(--bh-space-2xl);
    background-color: rgb(9 44 47 / 98%);
    background-image: var(--bh-grain);
    background-size: 160px 160px;
    border-block-end: 2px solid var(--bh-accent-dark);
    box-shadow: var(--bh-shadow-lg);
    transition: opacity calc(var(--hd) * 1.4) var(--bh-ease), transform calc(var(--hd) * 1.8) var(--bh-ease-out-expo), visibility 0s linear calc(var(--hd) * 1.4);
  }

  .bh-siteheader--js .bh-siteheader__panel {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -8px, 0);
  }

  .bh-siteheader--js.bh-siteheader--open .bh-siteheader__panel {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
  }

  .bh-siteheader__nav,
  .bh-siteheader__menu { display: block; }

  .bh-siteheader__item { flex-wrap: wrap; align-items: center; }
  .bh-siteheader__item--has-sub > .bh-siteheader__link { border-block-end: 0; }

  .bh-siteheader__link {
    flex: 1;
    min-block-size: 54px;
    border-block-end: 1px solid rgb(255 200 87 / 16%);
    font-family: var(--bh-font-heading);
    font-size: var(--bh-step-2);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    background: none;
    opacity: 0.94;
  }

  .bh-siteheader__subtoggle { margin-inline-start: auto; padding: 12px; }

  .bh-siteheader__sub {
    position: static;
    min-inline-size: 0;
    flex-basis: 100%;
    padding: 0 0 var(--bh-space-sm) var(--bh-space-md);
    border: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .bh-siteheader--js .bh-siteheader__item--open .bh-siteheader__sub { display: block; }
  .bh-siteheader__sublink { font-size: var(--bh-step-0); }

  .bh-siteheader__actions {
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    gap: var(--bh-space-md);
    padding-block-start: var(--bh-space-md);
    border-block-start: 1px solid rgb(247 241 227 / 12%);
  }

  .bh-siteheader__cta { justify-content: center; min-block-size: 52px; }
}

.bh-siteheader__ctaicon {
  flex-shrink: 0;
  opacity: 0.85;
}
