/* Homepage hero photograph and welcome video */

.consolidated-home .hero {
  --hero-stage-edge: max(16vw, calc((100% - 72rem) / 2));
  --hero-stage-inset: clamp(1.5rem, 3vw, 3rem);
}

.consolidated-home .hero__media {
  overflow: hidden;
}

.consolidated-home .hero__slide {
  position: absolute;
  inset: 0;
  object-position: var(--hero-position, center 28%);
  opacity: 0;
  animation: none;
  transition: opacity 600ms ease;
}

.consolidated-home .hero__slide.is-active {
  opacity: 1;
}

.hero__slideshow-controls {
  display: flex;
  position: absolute;
  z-index: 2;
  right: auto;
  left: auto;
  bottom: 5.25rem;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 999px;
  background: rgba(18, 27, 20, 0.58);
  box-shadow: 0 12px 32px rgba(7, 11, 8, 0.18);
  backdrop-filter: blur(10px);
}

@media (min-width: 901px) {
  .consolidated-home .hero {
    background-color: var(--olive-950);
    background-image:
      radial-gradient(circle at -4rem 27%, transparent 0 11rem, rgba(184, 198, 169, 0.16) 11rem calc(11rem + 1px), transparent calc(11rem + 2px)),
      radial-gradient(circle at calc(100% + 5rem) 74%, transparent 0 15rem, rgba(184, 198, 169, 0.13) 15rem calc(15rem + 1px), transparent calc(15rem + 2px));
  }

  .consolidated-home .hero__media,
  .consolidated-home .hero__overlay {
    right: var(--hero-stage-edge);
    left: var(--hero-stage-edge);
    width: auto;
    transform: none;
  }

  .consolidated-home .hero__media {
    border-inline: 1px solid rgba(255, 253, 248, 0.1);
    box-shadow: 0 24px 70px rgba(6, 10, 7, 0.28);
  }

  .consolidated-home .hero__content {
    width: auto;
    margin-inline: var(--hero-stage-edge);
    padding-inline: var(--hero-stage-inset);
  }

  .consolidated-home .hero__trust {
    right: var(--hero-stage-edge);
    left: var(--hero-stage-edge);
    width: auto;
    padding-inline: var(--hero-stage-inset);
    transform: none;
  }

  .hero__slideshow-controls {
    right: calc(var(--hero-stage-edge) + var(--hero-stage-inset));
    left: auto;
  }
}

.hero__slideshow-controls[hidden] {
  display: none;
}

.hero__slideshow-controls button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 253, 248, 0.82);
  background: transparent;
  transition: color 180ms ease, background 180ms ease;
}

.hero__slideshow-controls button:hover {
  color: var(--white);
  background: rgba(255, 253, 248, 0.12);
}

.hero__slideshow-controls button:focus-visible {
  outline: 2px solid var(--sage-light);
  outline-offset: 2px;
}

.hero__slideshow-controls button svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero__slideshow-controls [data-hero-play-icon] {
  fill: currentColor;
  stroke: none;
}

.hero__slideshow-controls [hidden] {
  display: none;
}

.hero__slide-count {
  display: flex;
  min-width: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding-inline: 0.4rem;
  color: rgba(255, 253, 248, 0.86);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.hero__slideshow-divider {
  width: 1px;
  height: 1.25rem;
  margin-inline: 0.2rem;
  background: rgba(255, 253, 248, 0.2);
}

.consolidated-home .menu-photo--compact img {
  object-position: center 52%;
}

.featured-quote__rating {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-quote__stars {
  color: var(--terracotta-dark);
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.12em;
}

.welcome-video {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.75rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.welcome-video::before {
  position: absolute;
  top: -14rem;
  right: -12rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(48, 68, 50, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.welcome-video__layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(20rem, 0.62fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: center;
}

.welcome-video__copy {
  max-width: 37rem;
}

.welcome-video__copy h2 {
  max-width: 10ch;
  margin-bottom: 1.25rem;
}

.consolidated-home .section-heading--title-only {
  grid-template-columns: 1fr;
}

.welcome-video__media {
  width: min(30rem, 100%);
  justify-self: end;
  margin: 0;
}

.welcome-video__frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius-lg);
  background: var(--olive-950);
  box-shadow: 0 24px 70px rgba(31, 40, 31, 0.18);
}

.welcome-video__frame::before {
  position: absolute;
  z-index: 0;
  inset: -1.5rem;
  background: linear-gradient(rgba(20, 29, 21, 0.28), rgba(20, 29, 21, 0.28)),
    url("../images/welcome-buffet-poster.webp") center / cover;
  content: "";
  filter: blur(20px);
  transform: scale(1.08);
}

.welcome-video video {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

@media (max-width: 900px) {
  .consolidated-home .hero__media {
    left: 0;
    width: 100%;
    transform: none;
  }

  .consolidated-home .hero__slide {
    object-position: var(--hero-position-mobile, 60% center);
  }

  .hero__slideshow-controls {
    top: 1rem;
    right: 1rem;
    bottom: auto;
    left: auto;
  }

  .welcome-video__layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .welcome-video__copy {
    max-width: 42rem;
  }

  .welcome-video__media {
    width: min(30rem, 100%);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consolidated-home .hero__slide {
    transition: none;
  }
}

@media (max-width: 680px) {
  .consolidated-home .menu-photo--compact img {
    object-position: center 56%;
  }

  .consolidated-home .menu-photo--compact figcaption {
    position: static;
    width: 100%;
    margin: 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-top: 0;
    box-shadow: none;
  }

  .welcome-video {
    padding-block: 3.25rem;
  }

  .welcome-video__layout {
    gap: 1.75rem;
  }

  .welcome-video__frame {
    border-radius: 18px;
  }
}
