/* ============================================================
   HERO + NAV
   ============================================================ */

/* Wrapper lets the desktop nav sit absolutely over the hero
   while staying after the hero in DOM order (so mobile nav
   drops below naturally). */
.hero-wrapper {
  position: relative;
}

/* ---- Hero ---- */

#hero {
  position: relative;
  width: 100%;
  height: 92svh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(88, 17, 19, 0.55);
}

.hero__wordmark {
  position: relative; /* above overlay */
  z-index: 1;
  width: min(303px, 47vw);
}

.hero__wordmark img {
  width: 100%;
  height: auto;
}


/* ---- Nav ---- */

.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-cream);
  border-top: 1px solid rgba(40, 42, 108, 0.2);
  padding: var(--space-component) var(--space-element);
  display: flex;
  justify-content: center;
  /* Safe area for devices with home indicator */
  padding-bottom: max(var(--space-component), env(safe-area-inset-bottom));
}

.nav__list {
  display: flex;
  gap: var(--space-element);
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
}

.nav__list a {
  font-family: var(--font-meursault);
  font-size: var(--text-body);
  font-variation-settings: "wght" 400, "wdth" 100;
  color: var(--color-red);
  white-space: nowrap;
  letter-spacing: 0.005em;
  padding: var(--space-element) var(--space-element);
  transition: opacity 0.2s ease;
}

.nav__list a:hover {
  opacity: 0.65;
}


/* ============================================================
   DESKTOP — nav floats to top of hero
   ============================================================ */

@media (min-width: 768px) {
  .nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 2;
    padding: var(--space-component) var(--space-component);
    padding-top: 32px;
  }

  .nav__list {
    gap: 48px;
  }

  .nav__list a {
    font-size: var(--text-h5);
    color: var(--color-cream);
    padding: 0;
  }

  .hero__wordmark {
    width: min(425px, 30vw);
  }
}
