/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--space-8);
  padding-bottom: var(--space-9);
  text-align: center;
  color: var(--color-heading);
  overflow-x: hidden;
}

.hero__video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  object-fit: cover;
  z-index: -1;
}

.hero__stars {
  width: 55px;
  margin-bottom: var(--space-2);
}

.hero__fold {
  width: 100%;
  height: calc(100svh - var(--measured-nav-height, 6rem) - var(--space-8));
  display: grid;
  grid-template-rows: 1fr auto 1fr auto;
  justify-items: center;
  padding-bottom: var(--space-4);
}

.hero__fold > .hero__date {
  grid-row: 2;
}

.hero__fold > .hero__title {
  grid-row: 4;
}

.hero__fold--end {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
}

.hero__title {
  font-size: var(--text-display);
  font-weight: 400;
  padding-inline: 0.3em;
  line-height: 1;
  margin: 0;
}

.hero__title-word:not(:last-child) {
  margin-right: 0.2em;
}

@media (max-width: 640px) {
  .hero__title {
    font-size: var(--text-display-mobile);
    padding-inline: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__title-word {
    display: block;
  }
  .hero__title-word:not(:last-child) {
    margin-right: 0;
  }
}

.hero__facts {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  font-family: var(--font-h4);
  font-size: var(--text-h4);
  letter-spacing: 0.03em;
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.hero__banner {
  width: 80%;
  max-width: none;
  margin-top: var(--space-8) !important;
  margin-bottom: var(--space-6) !important;
  display: block;
}

@media (max-width: 640px) {
  .hero__banner {
    width: 200%;
    margin-top: var(--space-6) !important;
    margin-bottom: var(--space-4) !important;
  }
}

.hero__date {
  font-family: var(--font-h4);
  font-size: var(--text-h4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@media (min-width: 641px) {
  .hero__date {
    font-size: clamp(1rem, 0.6vw + 0.9rem, 1.5rem);
  }
}

.hero__invite {
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-body);
}

@media (max-width: 640px) {
  .hero__invite {
    max-width: min(60ch, calc(100% - 2 * var(--space-3)));
  }
}

/* ================= SECTION COLOR ASSIGNMENTS ================= */
.section--ivory  { background: var(--color-bg-alt); color: var(--color-heading); }
.section--deep   { background: var(--color-bg-deep); color: var(--raw-satin); }
.section--deep h2, .section--deep .eyebrow { color: var(--raw-satin); }
.section--olive  { background: var(--color-bg-olive); color: var(--raw-satin); }
.section--olive h2, .section--olive h3 { color: var(--raw-satin); }

/* Transparent on purpose: Our Story's sections use this to let the fixed
   Komorebi background photo show through continuously behind the whole
   page, down to the footer. */
.section--contact { background: transparent; color: var(--color-text); }

/* ================= OUR STORY (placeholder state) ================= */
.story__placeholder-note {
  display: inline-block;
  background: var(--raw-tomato);
  color: var(--raw-ivory);
  font-family: var(--font-h4);
  font-size: var(--text-sm);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

/* ================= GETTING THERE ================= */
.getting-there-title {
  font-family: var(--font-h1-h2);
  font-size: var(--text-h2);
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--space-8);
  margin-top: var(--space-4);
}

@media (max-width: 640px) {
  .getting-there-title {
    margin-top: var(--space-3);
  }
}

.map-frame {
  width: 100%;
  max-width: 700px;
  margin: var(--space-4) auto 0;
}

.address {
  font-family: var(--font-h4);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: underline;
}

.please-dont-drive {
  font-family: var(--font-h3);
  font-size: var(--text-h3);
  font-weight: 400;
  color: var(--raw-satin);
  text-align: center;
  margin-bottom: var(--space-2);
  margin-top: var(--space-8);
}

/* ================= GET IN TOUCH ================= */
.contact-hero {
  height: calc(100svh - var(--measured-nav-height, 6rem));
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
  /* .hero sets overflow-x: hidden, which forces overflow-y to compute as
     "auto" even when overflow-y is explicitly written as "visible" (that's
     a CSS spec rule, not a bug in the value) — so a fixed-height box like
     this one could grab scroll. Nothing in this header needs horizontal
     clipping, so set both axes visible here to opt all the way out. */
  overflow: visible;
}

.contact-hero .hero__fold {
  height: 100%;
  min-height: auto;
  padding-bottom: var(--space-4);
}

.get-in-touch-title {
  font-family: var(--font-h1-h2);
  font-size: var(--text-display);
  font-weight: 400;
  color: var(--raw-satin);
  text-align: center;
  line-height: 1;
  margin: 0;
}

@media (max-width: 640px) {
  .get-in-touch-title {
    font-size: var(--text-display-mobile);
  }
}

.faq-image {
  width: 80%;
  max-width: 400px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.frequently-asked-title {
  font-family: var(--font-h1-h2);
  font-size: var(--text-h3);
  font-weight: 400;
  color: var(--raw-satin);
  text-align: center;
  margin-bottom: var(--space-8);
}

/* ================= FOOTER ================= */
.footer {
  text-align: center;
  padding: var(--space-8) var(--space-3);
}

.footer__nav {
  font-size: var(--text-body);
  margin-top: var(--space-8);
}

.footer__nav a { text-decoration: none; }