:root {
  --header-navy: #00053e;
  --header-gold: #ffc72c;
  --header-gold-ink: #765600;
  --header-surface: #ffffff;
  --header-height: 112px;
  --header-logo-slot: clamp(190px, 16vw, 236px);
}

.global-utility {
  min-height: 30px;
  padding: 6px clamp(24px, 7vw, 112px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--header-navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font: 700 10px/1.35 "DM Sans", Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.global-header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  width: 100%;
  height: var(--header-height);
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--header-surface);
  color: var(--header-navy);
  box-shadow: 0 1px 0 rgba(0, 5, 62, 0.1), 0 10px 28px rgba(0, 5, 62, 0.04);
}

.global-header .global-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.global-header .global-brand img {
  display: block;
  width: min(190px, calc(var(--header-logo-slot) - 24px));
  height: 92px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
}

/* Two balanced navigation links on either side keep the home logo centered. */
.global-header .global-nav {
	width: min(1080px, 100%);
  display: grid;
  grid-template-columns:
    repeat(2, minmax(92px, 1fr))
    var(--header-logo-slot)
		repeat(2, minmax(92px, 1fr));
  grid-template-rows: 1fr;
  align-items: center;
  gap: 0;
}

.global-header .global-nav a {
  grid-row: 1;
  min-height: 44px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 999px;
  color: var(--header-navy);
  font: 700 15px/1 "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 0.7px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.global-header .global-nav a:nth-child(1) { grid-column: 1; }
.global-header .global-nav a:nth-child(2) { grid-column: 2; }
.global-header .global-nav a:nth-child(3) { grid-column: 4; }
.global-header .global-nav a:nth-child(4) { grid-column: 5; }

.global-header .global-nav a:hover,
.global-header .global-nav a[aria-current="page"] {
  color: var(--header-gold-ink);
  background: rgba(255, 199, 44, 0.13);
}

.global-header .global-nav a:focus-visible,
.global-header .global-menu:focus-visible,
.global-header .global-brand:focus-visible {
  outline: 3px solid var(--header-gold);
  outline-offset: 3px;
}

.global-header .global-nav .nav-inquiry {
  min-height: 42px;
  padding: 9px 17px;
  border: 2px solid var(--header-navy);
  background: transparent;
}

.global-header .global-nav .nav-inquiry:hover,
.global-header .global-nav .nav-inquiry[aria-current="page"] {
  border-color: var(--header-gold);
  background: var(--header-gold);
  color: var(--header-navy);
}

.global-header .global-menu {
  display: none;
}

@media (max-width: 1080px) and (min-width: 801px) {
  :root { --header-logo-slot: 180px; }

  .global-header.site-header { padding-inline: 24px; }

  .global-header .global-nav {
    grid-template-columns:
      repeat(2, minmax(76px, 1fr))
      var(--header-logo-slot)
			repeat(2, minmax(76px, 1fr));
  }

  .global-header .global-nav a {
    padding-inline: 7px;
    font-size: 13px;
  }

  .global-header .global-brand img {
    width: 154px;
    height: 84px;
  }

  .global-header .global-nav .nav-inquiry { padding-inline: 12px; }
}

@media (max-width: 800px) {
  body.nav-open { overflow: hidden; }
  .global-utility { display: none; }

  .global-header.site-header {
    height: 72px;
    padding: 0 6vw;
    justify-content: space-between;
    background: var(--header-navy);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .global-header .global-brand {
    position: static;
    transform: none;
  }

  .global-header .global-brand img {
    width: 142px;
    height: 62px;
  }

  .global-header .global-menu {
    display: inline-flex;
    min-width: 72px;
    min-height: 44px;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: 700 10px/1 "DM Sans", Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
  }

  .global-header .global-nav {
    display: none !important;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 72px);
    padding: 16px 6vw 26px;
    overflow-y: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 2px;
    background: var(--header-navy);
    box-shadow: 0 18px 30px rgba(0, 5, 62, 0.24);
  }

  .global-header.open .global-nav { display: grid !important; }

  .global-header .global-nav a:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    min-height: 52px;
    padding: 10px 2px;
    justify-content: flex-start;
    justify-self: stretch;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 16px;
  }

  .global-header .global-nav a:hover,
  .global-header .global-nav a[aria-current="page"] {
    background: transparent;
    color: var(--header-gold);
  }

  .global-header .global-nav .nav-inquiry {
    width: fit-content;
    min-width: 150px;
    margin-top: 12px;
    padding: 12px 18px;
    justify-content: center;
    border: 2px solid var(--header-gold);
    border-radius: 999px;
    background: var(--header-gold);
    color: var(--header-navy);
  }
}

@media (max-width: 380px) {
  .global-header .global-brand img { width: 124px; }
}

@media (prefers-reduced-motion: reduce) {
  .global-header .global-nav a { transition: none; }
}
