/* =========================================
   HEADER / NAV
========================================= */

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 5%;
  isolation: isolate;
}

/* Fading blurred backdrop */
.site-header::before {
  content: "";
  position: absolute;
  inset: -1.5rem 0 -2.5rem 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(18, 16, 60, 0.92),
    rgba(18, 16, 60, 0.6) 55%,
    transparent
  );
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* Solid block above the viewport so overscroll never shows a gap */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 20rem;
  z-index: -1;
  pointer-events: none;
  background: #13113f;
}

.site-header a {
  color: var(--text);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  transition: color 180ms ease;
}

.site-header a:hover,
.site-header a:focus-visible {
  color: var(--gold);
}

.site-logo img,
.footer-logo img {
  width: clamp(7.5rem, 14vw, 12rem);
  height: auto;
  transition: transform 0.3s ease;
}

.site-logo img:hover,
.footer-logo img:hover {
  transform: scale(1.03);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

@media (max-width: 1000px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }
}

/* On phones the header sits in the page flow as a plain solid bar */
@media (max-width: 760px) {
  .site-header {
    position: relative;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1rem 0.9rem;
    background: #13113f;
    border-bottom: 1px solid var(--line);
  }

  .site-header::before,
  .site-header::after {
    display: none;
  }

  .site-logo img {
    width: 8.5rem;
  }

  .site-nav {
    justify-content: center;
    gap: 0.35rem 1.1rem;
    font-size: 0.82rem;
    text-align: center;
  }

  .site-nav .nav-cta {
    padding: 0.15rem 0.8rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--gold);
  }
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  padding: 20vh var(--side-gutter) 2rem;
  background: var(--floor) url("../img/redesign/sponsorFloor.png") center / 100% 100% no-repeat;
  color: #efe6d4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-brand p {
  max-width: 32ch;
  margin: 1rem 0 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-col h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-col a,
.footer-bottom a {
  transition: color 180ms ease;
}

.footer-col a:hover,
.footer-bottom a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .footer-logo img {
    width: 9.5rem;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
