/*
  BORABORA editorial hero and navigation.
  This file is loaded after style.css and only overrides the header and hero.
*/

/* Transparent header over the hero */
.site-header,
.site-header.is-scrolled,
.site-header.is-menu-open {
  height: 92px;
  box-shadow: none;
  text-shadow: none;
}

.site-header {
  background: transparent;
  color: var(--rum-deep);
}

.site-header.is-scrolled {
  background: rgba(255, 250, 240, 0.94);
  color: var(--rum-deep);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header.is-menu-open {
  background: var(--lagoon);
  color: var(--cream);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header::after,
.site-header.is-scrolled::after,
.site-header.is-menu-open::after {
  background: transparent;
}

.site-header .header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
}

.site-header .menu-toggle {
  display: block;
  justify-self: start;
  grid-column: 1;
  grid-row: 1;
}

.site-header .brand-logo {
  justify-self: center;
  grid-column: 2;
  grid-row: 1;
}

.site-header .brand-logo img,
.site-header.is-scrolled .brand-logo img {
  width: clamp(155px, 13vw, 190px);
  filter: none;
}

.site-header.is-menu-open .brand-logo img {
  filter: invert(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 22px;
  grid-column: 3;
  grid-row: 1;
}

.header-legal,
.site-header .header-instagram {
  padding: 0;
  border: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.header-legal {
  color: var(--spice);
}

.site-header.is-menu-open .header-legal {
  color: var(--gold-light);
}

.site-header .desktop-nav {
  display: none;
}

/* Clean full-screen menu */
.mobile-nav {
  position: fixed;
  z-index: 1;
  inset: 0;
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 130px max(28px, calc((100vw - 1180px) / 2)) 60px;
  background: var(--lagoon);
  color: var(--cream);
  text-align: left;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  width: min(900px, 100%);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(2.65rem, 5.5vw, 5.6rem);
  letter-spacing: -0.025em;
  line-height: 0.96;
  transition: color 220ms ease, padding-left 350ms var(--ease);
}

.mobile-nav a:last-child {
  margin-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--serif);
  font-size: clamp(2.65rem, 5.5vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-transform: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  padding-left: 18px;
  color: var(--gold-light);
}

/* Full-bleed hero without an overlay */
.hero.hero--editorial {
  position: relative;
  display: block;
  min-height: max(720px, 100svh);
  overflow: hidden;
  background: #e7ad80;
  isolation: isolate;
}

.hero--editorial .hero__visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: 0;
  overflow: hidden;
}

.hero--editorial .hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  animation: none;
  transform: none;
}

.hero--editorial .hero__visual-shade {
  display: none;
}

.hero--editorial h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero__bottom-meta,
.hero--editorial .scroll-cue {
  display: none;
}

@media (max-width: 760px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-menu-open {
    height: 78px;
  }

  .site-header .header-inner {
    width: min(calc(100% - var(--page-gutters)), var(--container));
    gap: 12px;
  }

  .site-header .brand-logo img,
  .site-header.is-scrolled .brand-logo img {
    width: 145px;
  }

  .header-actions {
    gap: 12px;
  }

  .header-legal,
  .site-header .header-instagram {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .mobile-nav {
    justify-content: flex-start;
    padding: 125px 24px 50px;
  }

  .mobile-nav a,
  .mobile-nav a:last-child {
    padding-block: 15px;
    font-size: clamp(2.25rem, 12vw, 4rem);
    line-height: 1;
  }

  .hero.hero--editorial {
    min-height: max(700px, 100svh);
    grid-template-rows: none;
  }

  .hero--editorial .hero__visual {
    min-height: 0;
  }

  .hero--editorial .hero__visual img {
    object-position: 50% 55%;
  }

}

@media (max-width: 420px) {
  .site-header .brand-logo img,
  .site-header.is-scrolled .brand-logo img {
    width: 125px;
  }

  .header-legal {
    display: none;
  }

  .site-header .header-instagram {
    font-size: 0.5rem;
  }

}
