/* Header layout and sticky reveal */
.site-header {
  width: 100%;
  background: #071b28;
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

.site-header .nav-wrap {
  gap: clamp(16px, 2vw, 36px);
  min-width: 0;
}

.site-header .wordmark {
  flex: 0 1 310px;
  min-width: 0;
}

.site-header .wordmark strong {
  line-height: 1.2;
  min-width: 0;
  white-space: nowrap;
}

.wordmark .brand-mark {
  display: block;
  width: 48px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
}

.wordmark strong {
  color: #c28f67;
  font-weight: 800;
  letter-spacing: .16em;
}

footer .wordmark .brand-mark {
  width: 44px;
  height: 50px;
}

.site-header nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 0;
  gap: clamp(18px, 2.2vw, 35px);
}

.site-header nav a,
.site-header .call-now {
  white-space: nowrap;
}

.site-header .call-now {
  flex: 0 0 auto;
  margin-left: clamp(0px, 1vw, 14px);
}

.site-header.is-sticky {
  position: fixed;
  background: rgba(7, 27, 40, .68);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: rgba(255, 255, 255, .18);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .1);
  animation: header-pop .52s cubic-bezier(.2, .9, .2, 1) both;
}

.site-header.is-sticky .nav-wrap {
  height: 76px;
}

.site-header.is-sticky .brand-mark {
  filter: brightness(0) invert(1);
  opacity: .96;
}

.site-header.is-sticky .wordmark strong {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .22);
}

@keyframes header-pop {
  from { opacity: 0; transform: translateY(-105%); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1060px) {
  .site-header { position: absolute; background: #071b28; }
  .site-header nav,
  .site-header .call-now { display: none; }
  .site-header .menu-button {
    display: grid;
    margin-left: auto;
    gap: 6px;
    width: 44px;
    height: 44px;
    place-content: center;
  }
  .site-header.open,
  .site-header.is-sticky {
    position: fixed;
    background: rgba(7, 27, 40, .72);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
  }
  .site-header.open nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 14px max(20px, calc((100vw - 680px) / 2)) 25px;
    background: rgba(7, 27, 40, .92);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, .16);
  }
  .site-header.open nav a { padding: 14px 0; }
  .site-header.is-sticky .nav-wrap { height: 72px; }
}

@media (max-width: 540px) {
  .site-header .wordmark { flex-basis: auto; }
  .site-header .wordmark strong { font-size: .66rem !important; }
}
