.site-header {
  background: var(--black);
  color: var(--white);
}

.header-inner {
  width: min(var(--max-width), 100% - 48px);
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.header-top {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 32px;
}

.header-emergency {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: 260px;
  text-align: right;
  color: var(--caution-yellow);
}

.emergency-label {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  line-height: 1.2;
}

.emergency-phone {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.8px;
  animation: phone-pulse 2.4s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phone-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.phone-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes phone-pulse {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 0 rgba(242, 201, 76, 0);
  }
  50% {
    opacity: 0.6;
    text-shadow: 0 0 10px rgba(242, 201, 76, 0.6);
  }
}

.site-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  grid-column: 2;
  justify-self: center;
}

.nav-list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}

.nav-list a {
  color: var(--white);
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--link-hover);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--caution-yellow);
  opacity: 0.85;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  grid-column: 1;
  justify-self: start;
}

.logo-mark {
  height: var(--logo-size);
  width: auto;
  filter: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle .burger {
  position: relative;
  width: 24px;
  height: 16px;
  display: inline-block;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after,
.nav-toggle .burger span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.nav-toggle .burger::before {
  top: 0;
}

.nav-toggle .burger span {
  top: 7px;
}

.nav-toggle .burger::after {
  bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .emergency-phone {
    animation: none;
  }
}
