/* =========================
   HERO / SLIDER
   ========================= */

.site-hero {
  position: relative;
  width: min(
    calc(100% - (var(--page-padding) * 2)),
    var(--site-width-wide)
  );
  margin: clamp(1.45rem, 2.8vw, 2.8rem) auto 0;
  overflow: hidden;
  border-radius: clamp(1rem, 1.7vw, var(--radius-large));
  background: var(--color-brown-dark);
  box-shadow: var(--shadow-medium);
  isolation: isolate;
}

.site-hero--page {
  display: grid;
  min-height: clamp(18rem, 30vw, 25rem);
}

.site-hero--page::after,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(32, 18, 12, 0.9) 0%,
      rgba(32, 18, 12, 0.72) 40%,
      rgba(32, 18, 12, 0.34) 72%,
      rgba(32, 18, 12, 0.16) 100%
    ),
    radial-gradient(
      circle at 22% 45%,
      rgba(184, 135, 43, 0.2),
      transparent 25rem
    );
  pointer-events: none;
}

.site-hero__media,
.hero-slide__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.site-hero__image,
.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.site-hero__content,
.hero-slide__content {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(100%, 42rem);
  padding:
    clamp(1.35rem, 2.2vw, 2rem)
    clamp(1.25rem, 5vw, 5.5rem);
  color: var(--color-white);
  pointer-events: none;
}

.site-hero__content a,
.hero-slide__content a {
  pointer-events: auto;
}

.site-hero__eyebrow,
.hero-slide__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--color-gold);
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.92rem);
  line-height: 1.2;
}

.site-hero__title,
.hero-slide__title {
  max-width: 22ch;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.45rem + 1vw, 2.65rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: var(--letter-spacing-heading);
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: wrap;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.site-hero__text,
.hero-slide__text {
  max-width: 50ch;
  margin-top: 0.8rem;
  color: rgba(255, 253, 248, 0.94);
  font-size: clamp(1rem, 0.96rem + 0.14vw, 1.08rem);
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

.site-hero .button,
.hero-slide .button {
  min-height: 2.9rem;
  margin-top: 1rem;
  padding-block: 0.74rem;
}

.site-hero__notice,
.hero-slide__notice {
  max-width: 50ch;
  margin-top: 0.95rem;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.92rem);
  font-weight: 800;
  line-height: 1.35;
}

.site-hero--slider {
  min-height: 0;
  cursor: pointer;
}

.hero-slider__track {
  position: relative;
  height: clamp(18.5rem, 25vw, 24.5rem);
  min-height: 18.5rem;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-slider__controls {
  display: none;
}

@media (min-width: 480px) {
  .hero-slider__track {
    height: clamp(19.5rem, 26vw, 25rem);
  }
}

@media (min-width: 768px) {
  .site-hero {
    margin-top: clamp(1.6rem, 2.8vw, 3rem);
  }

  .site-hero--page {
    min-height: clamp(19rem, 29vw, 26rem);
  }

  .hero-slider__track {
    height: clamp(20rem, 27vw, 26rem);
  }

  .site-hero__content,
  .hero-slide__content {
    width: min(100%, 43rem);
    padding-block: clamp(1.3rem, 2vw, 1.8rem);
  }

  .site-hero__title,
  .hero-slide__title {
    max-width: 22ch;
    font-size: clamp(2rem, 1.55rem + 1.1vw, 2.6rem);
  }

  .site-hero__text,
  .hero-slide__text {
    max-width: 50ch;
    font-size: clamp(1rem, 0.96rem + 0.16vw, 1.08rem);
  }
}

@media (min-width: 1024px) {
  .site-hero--page {
    min-height: clamp(20rem, 27vw, 26rem);
  }

  .hero-slider__track {
    height: clamp(20.5rem, 24vw, 26rem);
  }
}

@media (min-width: 1280px) {
  .hero-slider__track {
    height: clamp(21rem, 22vw, 25.5rem);
  }

  .site-hero__content,
  .hero-slide__content {
    width: min(100%, 44rem);
  }

  .site-hero__title,
  .hero-slide__title {
    max-width: 22ch;
    font-size: clamp(2.15rem, 1.62rem + 0.9vw, 2.65rem);
  }
}

@media (min-width: 1440px) {
  .hero-slider__track {
    height: clamp(21rem, 21vw, 25rem);
  }
}

@media (min-width: 1920px) {
  .site-hero--page {
    min-height: clamp(22rem, 24vw, 29rem);
  }

  .hero-slider__track {
    height: clamp(22rem, 19vw, 27rem);
  }
}

@media (max-width: 767px) {
  .site-hero {
    width: min(
      calc(100% - 1rem),
      var(--site-width-wide)
    );
    margin-top: clamp(1rem, 4vw, 1.25rem);
    border-radius: 1rem;
  }

  .site-hero--page {
    min-height: clamp(17.5rem, 76vw, 20rem);
  }

  .hero-slider__track {
    height: clamp(17.5rem, 76vw, 20rem);
    min-height: 17.5rem;
  }

  .site-hero--page::after,
  .hero-slide::after {
    background:
      linear-gradient(
        90deg,
        rgba(32, 18, 12, 0.95) 0%,
        rgba(32, 18, 12, 0.82) 68%,
        rgba(32, 18, 12, 0.48) 100%
      ),
      linear-gradient(
        0deg,
        rgba(32, 18, 12, 0.6) 0%,
        transparent 52%
      );
  }

  .site-hero__content,
  .hero-slide__content {
    width: 100%;
    padding: 1rem 1.1rem;
  }

  .site-hero__eyebrow,
  .hero-slide__eyebrow {
    margin-bottom: 0.4rem;
    font-size: clamp(0.74rem, 2.9vw, 0.82rem);
  }

  .site-hero__title,
  .hero-slide__title {
    max-width: 18ch;
    font-size: clamp(1.45rem, 5.8vw, 1.85rem);
    line-height: 1.06;
  }

  .site-hero__text,
  .hero-slide__text {
    max-width: 36ch;
    margin-top: 0.65rem;
    font-size: clamp(0.94rem, 3.5vw, 1rem);
    line-height: 1.45;
  }

  .site-hero .button,
  .hero-slide .button {
    display: none;
  }

  .site-hero__notice,
  .hero-slide__notice {
    max-width: 36ch;
    margin-top: 0.75rem;
    font-size: clamp(0.74rem, 2.9vw, 0.82rem);
    line-height: 1.3;
  }
}

@media (max-width: 374px) {
  .site-hero__content,
  .hero-slide__content {
    padding: 0.85rem 0.9rem;
  }

  .site-hero__title,
  .hero-slide__title {
    max-width: 17ch;
    font-size: clamp(1.35rem, 6vw, 1.6rem);
  }

  .site-hero__text,
  .hero-slide__text {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .site-hero__notice,
  .hero-slide__notice {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}