/* Shared header for the four AMOS service pages only. */
.service-header.service-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  min-height: 0;
  padding-top: 18px !important;
  background: transparent;
}

.service-header.service-header .nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px 64px !important;
}

.service-header.service-header .nav > a:first-child {
  position: static;
  display: flex;
  flex: 0 0 234px !important;
  align-items: center;
  width: 234px !important;
  height: auto;
  overflow: visible;
}

.service-header-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 144px;
  gap: 8px;
  line-height: 1;
}

.service-header-wordmark__mark {
  color: #F2EEE4;
  font: 400 42px/1 'Marcellus', serif;
  letter-spacing: .16em;
  white-space: nowrap;
}

.service-header-wordmark__sub {
  display: block;
  width: 100%;
  color: #D9B475;
  font: 400 9.9px/1 'Marcellus', serif;
  letter-spacing: .8em;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: .3px currentColor;
}

.service-header.service-header .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px) !important;
  margin-left: auto !important;
  color: rgba(242, 238, 228, .78);
  font: 400 clamp(15px, 1.25vw, 18px)/1.2 'Marcellus', serif;
  white-space: nowrap;
}

.service-header.service-header .nav-links a,
.service-header.service-header .nav-links .nav-cta {
  padding: 12px 0;
  border: 1px solid transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.service-header.service-header .nav-links a:nth-child(4) {
  margin-right: 34px;
}

.service-header.service-header .nav-links a:hover,
.service-header.service-header .nav-links a:focus-visible,
.service-header.service-header .nav-links a[aria-current='page'] {
  color: #D9B475;
  border-bottom-color: #D9B475;
}

.service-header.service-header .nav-links a:focus-visible {
  outline: 1px solid #D9B475;
  outline-offset: 4px;
}

.service-header.service-header .nav-links .nav-cta {
  padding: 9px 15px;
  border: 1px solid rgba(217, 180, 117, .62);
  border-radius: 999px;
  background: transparent;
  color: #F2EEE4;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.service-header.service-header .nav-links .nav-cta:hover,
.service-header.service-header .nav-links .nav-cta:focus-visible {
  border-color: #D9B475;
  background: #D9B475;
  color: #263024;
}

@media (max-width: 900px) {
  .service-header.service-header .nav {
    position: relative;
    max-width: none;
    padding: 18px 24px !important;
    gap: 16px;
  }

  .service-header.service-header .nav > a:first-child {
    flex-basis: 189px !important;
    width: 189px !important;
  }

  .service-header-wordmark {
    width: 130px;
    gap: 7px;
  }

  .service-header-wordmark__mark {
    font-size: 38px;
  }

  .service-header.service-header .nav-toggle {
    display: flex;
    flex: 0 0 32px;
    margin-left: auto;
  }

  .service-header.service-header .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    padding: 0 24px;
    margin-left: 0;
    overflow: hidden;
    background: rgba(20, 25, 18, .94);
    backdrop-filter: blur(14px);
    transition: max-height 350ms ease, padding 350ms ease;
  }

  .service-header.service-header .nav-links.is-open {
    max-height: 520px;
    padding: 8px 24px 20px;
  }

  .service-header.service-header .nav-links a,
  .service-header.service-header .nav-links .nav-cta {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(242, 238, 228, .12);
  }

  .service-header.service-header .nav-links a:nth-child(4) {
    margin-right: 0;
  }

  .service-header.service-header .nav-links a:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-header * {
    transition-duration: .01ms;
  }
}

@media (max-width: 900px) {
  .service-header.service-header .nav-links .nav-cta {
    width: auto;
    align-self: flex-start;
    margin-top: 6px;
    padding: 10px 15px;
    border: 1px solid rgba(217, 180, 117, .62);
    border-radius: 999px;
  }
}
