/* Homepage image-led offers carousel. Data and behavior live in data/offers.js and offers.js. */

.offers-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.25rem, 5vw, 4.75rem);
  background: var(--surface-alt);
}

.offers-section__intro { margin-bottom: 1.15rem; }
.offers-section__intro .eyebrow { margin: 0; }

.offers-carousel {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.offers-carousel__viewport {
  overflow: hidden;
  width: 100%;
  background: #24090d;
  touch-action: pan-y;
}

.offers-carousel__track {
  display: flex;
  transition: transform .8s var(--ease);
  will-change: transform;
}

.offer-banner {
  position: relative;
  display: block;
  flex: 0 0 100%;
  min-height: 430px;
  aspect-ratio: 5 / 2;
  max-height: 640px;
  overflow: hidden;
  color: #fff;
  background: #24090d;
  isolation: isolate;
}

.offer-banner::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 4, 7, .94) 0%, rgba(30, 6, 10, .84) 34%, rgba(30, 6, 10, .36) 58%, rgba(15, 3, 5, .06) 78%),
    linear-gradient(0deg, rgba(16, 3, 5, .42), transparent 34%);
}

.offer-banner::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.offer-banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 7s ease-out, filter .45s ease;
}

.offer-banner.is-active .offer-banner__image { transform: scale(1.035); }
.offer-banner:hover .offer-banner__image { filter: saturate(1.08) contrast(1.03); }

.offer-banner__location {
  position: absolute;
  z-index: 4;
  top: clamp(1rem, 2.4vw, 2rem);
  right: clamp(1rem, 3vw, 3rem);
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  max-width: min(44vw, 330px);
  padding: .56rem .78rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  color: #fff;
  background: rgba(26, 5, 9, .65);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
  backdrop-filter: blur(8px);
  font-family: var(--font-en);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.offer-banner__location i { color: var(--gold-400); }

.offer-banner__content {
  position: relative;
  z-index: 3;
  display: flex;
  width: min(100%, 1320px);
  min-height: inherit;
  height: 100%;
  margin-inline: auto;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(3.4rem, 7vw, 6.5rem) clamp(4.5rem, 9vw, 8.5rem);
}

.offer-banner__sample {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .42rem .66rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  color: #2b0c11;
  background: var(--gold-400);
  font-family: var(--font-en);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.offer-banner__eyebrow {
  margin: 0 0 .45rem;
  color: rgba(255, 255, 255, .78);
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.offer-banner h3 {
  max-width: 570px;
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 5vw, 5.25rem);
  font-weight: 600;
  line-height: .88;
  letter-spacing: 0;
  text-wrap: balance;
}

.offer-banner__offer {
  margin: .75rem 0 .6rem;
  color: var(--gold-400);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.1vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
}

.offer-banner__description {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-family: var(--font-en);
  font-size: clamp(.82rem, 1.1vw, 1rem);
  line-height: 1.6;
}

.offer-banner__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.offer-banner__validity {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  color: rgba(255, 255, 255, .7);
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 600;
}

.offer-banner__validity i { color: var(--gold-400); }

.offer-banner__action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .75rem;
  padding: .72rem 1rem;
  border-radius: 5px;
  color: #2b0c11;
  background: #fff;
  font-family: var(--font-en);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(255, 203, 77, .72);
  transition: color .25s ease, background .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}

.offer-banner:hover .offer-banner__action,
.offer-banner:focus-visible .offer-banner__action {
  color: #fff;
  background: #ef3b2d;
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--gold-400);
}

.offer-banner__action i {
  font-size: .68rem;
  transition: transform .25s var(--ease);
}

.offer-banner:hover .offer-banner__action i { transform: translateX(4px); }

.offers-carousel__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: rgba(24, 5, 8, .58);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: color .25s ease, background .25s ease, transform .25s var(--ease);
}

.offers-carousel__arrow:hover,
.offers-carousel__arrow:focus-visible {
  color: #2b0c11;
  background: var(--gold-400);
  transform: translateY(-50%) scale(1.06);
}

.offers-carousel__arrow--previous { left: clamp(.75rem, 2.5vw, 2.5rem); }
.offers-carousel__arrow--next { right: clamp(.75rem, 2.5vw, 2.5rem); }

.offers-carousel__footer {
  position: absolute;
  z-index: 5;
  right: 50%;
  bottom: 1rem;
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: .85rem;
  padding: .45rem .65rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(24, 5, 8, .62);
  backdrop-filter: blur(9px);
  transform: translateX(50%);
}

.offers-carousel__dots {
  display: flex;
  align-items: center;
  gap: .42rem;
}

.offers-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .48);
  transition: width .25s var(--ease), border-radius .25s ease, background .25s ease;
}

.offers-carousel__dot:hover { background: #fff; }
.offers-carousel__dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--gold-400);
}

.offers-carousel__status {
  min-width: 36px;
  font-family: var(--font-en);
  font-size: .65rem;
  font-weight: 700;
  text-align: center;
}

.offers-section__noscript {
  margin: 0;
  padding: 1rem;
  color: #fff;
  background: #24090d;
  font-family: var(--font-en);
  text-align: center;
}

@media (max-width: 900px) {
  .offer-banner {
    min-height: 400px;
    aspect-ratio: 16 / 7;
  }

  .offer-banner__content { padding-inline: clamp(4.2rem, 10vw, 6rem); }
  .offer-banner h3 { max-width: 470px; }
  .offer-banner__description { max-width: 440px; }
}

@media (max-width: 640px) {
  .offers-section { padding-block: 2.9rem; }
  .offers-section__intro { margin-bottom: .85rem; }

  .offer-banner {
    min-height: 340px;
    aspect-ratio: 16 / 13;
  }

  .offer-banner::before {
    background:
      linear-gradient(90deg, rgba(20, 4, 7, .9) 0%, rgba(25, 5, 9, .7) 58%, rgba(15, 3, 5, .15) 100%),
      linear-gradient(0deg, rgba(16, 3, 5, .58), transparent 48%);
  }

  .offer-banner__image { object-position: 58% center; }
  .offer-banner__location {
    top: .75rem;
    right: .75rem;
    max-width: 48vw;
    padding: .42rem .54rem;
    font-size: .55rem;
  }
  .offer-banner__content {
    justify-content: flex-end;
    padding: 2.5rem 3.65rem 3.45rem;
  }

  .offer-banner__sample {
    margin-bottom: .65rem;
    padding: .34rem .5rem;
    font-size: .55rem;
  }

  .offer-banner__eyebrow { font-size: .6rem; }
  .offer-banner h3 { max-width: 280px; font-size: clamp(2rem, 10vw, 2.75rem); }
  .offer-banner__offer { margin: .42rem 0 .35rem; font-size: clamp(1.55rem, 7vw, 2rem); }
  .offer-banner__description { display: none; }
  .offer-banner__meta { gap: .7rem; margin-top: .75rem; }
  .offer-banner__validity { max-width: 150px; font-size: .61rem; line-height: 1.35; }
  .offer-banner__action { min-height: 38px; padding: .55rem .72rem; font-size: .64rem; }

  .offers-carousel__arrow {
    width: 38px;
    height: 38px;
    font-size: .72rem;
  }

  .offers-carousel__arrow--previous { left: .55rem; }
  .offers-carousel__arrow--next { right: .55rem; }
  .offers-carousel__footer { bottom: .55rem; }
  .offers-carousel__status { display: none; }
}

@media (max-width: 390px) {
  .offer-banner { min-height: 355px; }
  .offer-banner__content { padding-inline: 3.2rem; }
  .offer-banner__validity { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .offers-carousel__track,
  .offer-banner__image,
  .offer-banner__action,
  .offer-banner__action i,
  .offers-carousel__arrow,
  .offers-carousel__dot {
    transition: none;
  }
}
