/* Shared header and footer used throughout the site. */
html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: clip;
}

html {
  color-scheme: dark;
  background: #000;
}

body {
  height: auto;
  min-height: 100vh;
  padding-top: 0;
  background: #000;
  color: #fff;
}

body.menu-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background: rgb(5 5 5 / 72%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1200px, calc(100% - 3rem));
  min-height: 78px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  margin-inline: auto;
}

.site-header .logo {
  width: 64px;
  height: 64px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.site-header .mobile-menu-logo {
  display: none;
}

.site-header .logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 0;
}

.site-header .nav-content,
.site-header .nav-links {
  display: flex;
  align-items: center;
}

.site-header .nav-content {
  display: contents;
}

.site-header .nav-links {
  grid-column: 2;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3.2rem);
}

.site-header .nav-links > a:not(.button) {
  color: #fff;
  font: 500 1.1rem "Oxanium", "Arial Narrow", sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s;
}

.site-header .nav-links > a:not(.button):hover {
  color: #ff2143;
}

/* Same 40px button footprint on every page, with a continuous animated fill. */
.site-header .nav-contact {
  box-sizing: border-box;
  width: max-content;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: .65rem .9rem;
  background: linear-gradient(110deg, #ff2143 0%, #c90d30 38%, #ff2143 68%, #ff5068 100%);
  background-size: 300% 100%;
  color: #fff;
  font: 600 1rem "Oxanium", "Arial Narrow", sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  animation: nav-contact-gradient 3.4s cubic-bezier(.45, 0, .55, 1) infinite alternate;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

@keyframes nav-contact-gradient {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.site-header .nav-contact:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 0 14px rgb(255 33 67 / 72%), 0 0 30px rgb(255 33 67 / 42%);
  filter: brightness(1.12);
}

.site-header .social-links {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.site-header .social-links a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.site-header .social-links a:last-child {
  border-radius: 7px;
}

.site-header .social-links img {
  width: 21px;
  height: 21px;
  display: block;
  object-fit: contain;
  filter: brightness(0);
}

.site-header .menu-toggle {
  display: none;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.site-footer {
  margin-top: auto;
  padding: 1.3rem 1rem;
  background: #3a0710;
  color: #fff;
  font: 600 1rem "Oxanium", "Arial Narrow", sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.site-header .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 800px) {
  .nav-wrap {
    width: min(680px, calc(100% - 2rem));
    min-height: 72px;
    display: flex;
    justify-content: flex-end;
  }

  .site-header .logo {
    display: none;
  }

  .site-header .menu-toggle {
    position: relative;
    z-index: 1002;
    width: 48px;
    height: 48px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    margin-left: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }

  .site-header .menu-toggle span:not(.sr-only) {
    width: 42px;
    height: 4px;
    border-radius: 4px;
    background: #ff2143;
    transition: transform .2s ease, opacity .2s ease;
  }

  .site-header .nav-content {
    position: fixed;
    z-index: 1001;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(8rem, 15.5vh, 10rem) 1.5rem 1.5rem;
    background: rgb(5 5 5 / 72%);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform .38s cubic-bezier(.22, .8, .26, 1),
      visibility 0s linear .38s;
  }

  .site-header .nav-content.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition:
      transform .38s cubic-bezier(.22, .8, .26, 1),
      visibility 0s;
  }

  body.menu-open .site-header {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header .mobile-menu-logo {
    width: 112px;
    height: 112px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    margin: 0 0 clamp(5rem, 14vh, 8rem);
  }

  .site-header .mobile-menu-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
  }

  .site-header .nav-links {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    align-items: center;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(2rem, 5vh, 3rem);
    z-index: auto;
    background: transparent;
    transform: none;
    transition: none;
    text-align: center;
  }

  .site-header .nav-links > a:not(.button) {
    padding: 0;
    font-size: clamp(1.75rem, 6vw, 2rem);
    line-height: 1.15;
    text-transform: none;
  }

  .site-header .nav-contact {
    width: max-content;
    margin-top: .15rem;
  }

  .site-header .social-links {
    align-self: center;
    flex-direction: column-reverse;
    gap: .45rem;
    margin-top: clamp(5rem, 14vh, 8rem);
    padding: 0;
  }

  .site-header .social-links a {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: transparent;
  }

  .site-header .social-links a:last-child {
    border-radius: 0;
  }

  .site-header .social-links img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
  }

  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(11px) rotate(45deg);
  }

  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-11px) rotate(-45deg);
  }
}

@media (max-width: 800px) and (max-height: 700px) {
  .site-header .nav-content {
    padding-top: 6rem;
  }

  .site-header .mobile-menu-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 2.5rem;
  }

  .site-header .nav-links {
    gap: 1.25rem;
  }

  .site-header .social-links {
    margin-top: 2.5rem;
  }
}
@media (max-width: 800px) {
  body.menu-open .site-header .menu-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .nav-contact {
    animation: none;
    transition: none;
  }
}
