/* =========================================================
   DESKTOP FLYER
   ========================================================= */

.hero-flyer-wrap {
  position: absolute;
  z-index: 8;

  right: clamp(35px, 7vw, 120px);
  top: 50%;

  transform: translateY(-50%);

  width: clamp(220px, 25vw, 360px);

  display: flex;
  flex-direction: column;
  align-items: center;

  pointer-events: auto;
}

.hero-flyer-slider {
  position: relative;

  width: 100%;
  aspect-ratio: 3 / 4;

  overflow: hidden;

  border-radius: 4px;

  background: rgba(0, 0, 0, .18);

  box-shadow:
    0 25px 70px rgba(0, 0, 0, .38),
    0 8px 25px rgba(0, 0, 0, .25);

  border:
    1px solid rgba(255, 255, 255, .22);

  backdrop-filter: blur(2px);
}

.hero-flyer {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  opacity: 0;

  transform: scale(1.035);

  transition:
    opacity .7s ease,
    transform 5s ease;
}

.hero-flyer.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-flyer-dots {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  margin-top: 14px;
}

.hero-flyer-dot {
  width: 7px;
  height: 7px;

  padding: 0;
  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, .45);

  cursor: pointer;

  transition:
    width .25s ease,
    background .25s ease,
    transform .25s ease;
}

.hero-flyer-dot:hover {
  transform: scale(1.2);
}

.hero-flyer-dot.is-active {
  width: 22px;

  border-radius: 10px;

  background: #d8a526;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 801px) and (max-width: 1100px) {

  .hero-flyer-wrap {
    right: 25px;
    width: clamp(180px, 23vw, 260px);
  }

}


/* =========================================================
   MOBILE
   FLYER BETWEEN HERO AND WELCOME
   ========================================================= */

@media (max-width: 800px) {

  /* -------------------------------------------------------
     HERO
     ------------------------------------------------------- */

  .hero {
    position: relative;

    width: 100%;

    min-height: 100svh;

    height: auto;

    overflow: hidden;

    padding: 0;
  }


  /* -------------------------------------------------------
     HERO CONTENT
     ------------------------------------------------------- */

  .hero-inner {
    position: relative;

    z-index: 5;

    min-height: 100svh;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding:
      100px 18px 55px;
  }


  .hero-kicker {
    margin-bottom: 10px;

    font-size: .68rem;
  }


  .hero-inner .display {
    font-size:
      clamp(2rem, 8.8vw, 2.7rem);

    line-height: 1;

    margin:
      0 auto 15px;

    max-width: 340px;
  }


  .hero-sub {
    max-width: 340px;

    margin:
      0 auto 18px;

    font-size: .79rem;

    line-height: 1.48;
  }


  .hero-meta {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 18px;
  }


  .hero-meta .mi {
    min-width: 75px;

    text-align: center;
  }


  .hero-meta .k {
    display: block;

    font-size: .56rem;

    letter-spacing: .12em;

    text-transform: uppercase;
  }


  .hero-meta .v {
    display: block;

    margin-top: 3px;

    font-size: .66rem;
  }


  .hero-actions {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;
  }


  .hero-actions .btn {
    padding:
      9px 12px;

    font-size: .7rem;
  }


  /* -------------------------------------------------------
     MOBILE FLYER SECTION

     This is OUTSIDE the hero.
     Therefore it appears between hero and welcome.
     ------------------------------------------------------- */

  .hero-flyer-mobile {
    position: relative;

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    box-sizing: border-box;

    padding:
      28px 15px 32px;

    background:
      linear-gradient(
        to bottom,
        #24170f 0%,
        #1a100b 100%
      );

    z-index: 10;
  }


  .hero-flyer-mobile .hero-flyer-wrap {

    position: relative;

    top: auto;
    left: auto;
    right: auto;

    transform: none;

    width:
      min(78vw, 300px);

    margin: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
  }


  .hero-flyer-mobile .hero-flyer-slider {

    position: relative;

    width: 100%;

    /*
      Complete flyer stays visible.
    */
    aspect-ratio: 3 / 4;

    overflow: hidden;

    background: transparent;

    border:
      1px solid rgba(255,255,255,.25);

    border-radius: 5px;

    box-shadow:
      0 15px 45px rgba(0,0,0,.5);
  }


  .hero-flyer-mobile .hero-flyer {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    /*
      IMPORTANT:
      complete flyer visible.
    */
    object-fit: contain;

    object-position: center;

    display: block;

    opacity: 0;

    transform: scale(1.02);

    transition:
      opacity .7s ease,
      transform 5s ease;
  }


  .hero-flyer-mobile .hero-flyer.is-active {
    opacity: 1;

    transform: scale(1);
  }


  .hero-flyer-mobile .hero-flyer-dots {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    margin-top: 9px;
  }


  .hero-flyer-mobile .hero-flyer-dot {

    width: 6px;
    height: 6px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background:
      rgba(255,255,255,.55);
  }


  .hero-flyer-mobile .hero-flyer-dot.is-active {

    width: 19px;

    border-radius: 10px;

    background: #d8a526;
  }


  /* -------------------------------------------------------
     SCROLL CUE
     ------------------------------------------------------- */

  .scroll-cue {
    display: none;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  .hero-inner {
    padding:
      85px 15px 45px;
  }


  .hero-flyer-mobile {
    padding:
      22px 12px 28px;
  }


  .hero-flyer-mobile .hero-flyer-wrap {
    width:
      min(82vw, 285px);
  }


  .hero-inner .display {
    font-size:
      clamp(1.85rem, 8.8vw, 2.5rem);
  }


  .hero-sub {
    font-size: .75rem;

    line-height: 1.43;

    max-width: 330px;
  }


  .hero-meta {
    gap: 6px;
  }


  .hero-meta .mi {
    min-width: 70px;
  }


  .hero-actions {
    gap: 6px;
  }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

  .hero-inner {
    padding:
      70px 13px 38px;
  }


  .hero-flyer-mobile {
    padding:
      18px 10px 25px;
  }


  .hero-flyer-mobile .hero-flyer-wrap {
    width:
      min(84vw, 250px);
  }


  .hero-inner .display {
    font-size:
      clamp(1.7rem, 8.8vw, 2.2rem);
  }


  .hero-sub {
    font-size: .71rem;

    line-height: 1.38;
  }


  .hero-meta .mi {
    min-width: 65px;
  }


  .hero-actions .btn {
    padding:
      7px 9px;

    font-size: .64rem;
  }
}

