/**
 * Promo Carousel — Stylesheet
 *
 * The slides are real markup and the track is a native scroll-snap strip, so
 * the carousel is swipeable, keyboard-reachable and fully readable with no
 * JavaScript at all. That is deliberate: Elementor Pro's nested carousel broke
 * under LiteSpeed's JS delay because its handler never ran, and anything that
 * builds slides in JS reproduces that failure.
 *
 * promo-carousel.js only ADDS arrows, dot state and autoplay. Until it runs —
 * and it may be delayed, or never run at all — the carousel still works, so the
 * arrows and dots stay hidden rather than sitting there inert.
 */

.ra-promo {
  --rp-gold: #c8995c;
  --rp-gold-lit: #e7c98a;
  --rp-navy: #00243a;
  --rp-max: 1040px;
  --rp-ratio: 1024 / 239;
  --rp-ratio-mobile: 2.2 / 1;

  padding: 0;
  background: transparent;
}

.ra-promo .rp-frame {
  position: relative;
  max-width: var(--rp-max);
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .14);
}

/* scroll-snap is what makes this work without JS */
.ra-promo .rp-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ra-promo .rp-track::-webkit-scrollbar {
  display: none;
}

.ra-promo .rp-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: block;
  text-decoration: none;
  position: relative;
  aspect-ratio: var(--rp-ratio);
  overflow: hidden;
}

.ra-promo .rp-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ra-promo .rp-composed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 7%;
  background: linear-gradient(90deg, rgba(0, 36, 58, .85) 0%, rgba(0, 36, 58, .45) 48%, rgba(0, 36, 58, 0) 75%);
}

/* no image behind it: fall back to the full navy panel */
.ra-promo .rp-composed.rp-solid {
  background: linear-gradient(115deg, var(--rp-navy) 0%, #00324b 55%, #0a4a66 100%);
}

.ra-promo .rp-kick {
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rp-gold);
  margin: 0 0 8px;
}

.ra-promo .rp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 6px;
}

.ra-promo .rp-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  margin: 0 0 10px;
  font-weight: 300;
}

.ra-promo .rp-cta {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rp-gold);
  border-bottom: 1px solid rgba(200, 153, 92, .5);
  padding-bottom: 3px;
  transition: color .3s, border-color .3s;
}

.ra-promo a.rp-slide:hover .rp-cta {
  color: var(--rp-gold-lit);
  border-color: var(--rp-gold-lit);
}

/**
 * Controls are hidden until promo-carousel.js adds .rp-js. Without the script
 * they would do nothing, and a dead button is worse than no button.
 */
.ra-promo .rp-dots {
  display: none;
  gap: 9px;
  justify-content: center;
  margin-top: 16px;
}

.ra-promo.rp-js .rp-dots {
  display: flex;
}

.ra-promo .rp-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--rp-gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.ra-promo .rp-dots button.on {
  background: var(--rp-gold);
}

.ra-promo .rp-arrow {
  display: none;
}

.ra-promo.rp-js .rp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 28, 38, .32);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
  opacity: .9;
  -webkit-tap-highlight-color: transparent;
}

.ra-promo .rp-arrow:hover {
  background: rgba(20, 28, 38, .55);
  opacity: 1;
}

.ra-promo .rp-arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.ra-promo .rp-prev { left: 18px; }
.ra-promo .rp-next { right: 18px; }

.ra-promo .rp-track:focus-visible {
  outline: 2px solid var(--rp-gold);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .ra-promo .rp-slide { aspect-ratio: var(--rp-ratio-mobile); }
  .ra-promo .rp-sub { display: none; }
  .ra-promo .rp-composed { padding: 0 8%; }
  .ra-promo.rp-js .rp-arrow { width: 38px; height: 38px; }
  .ra-promo .rp-arrow svg { width: 20px; height: 20px; }
  .ra-promo .rp-prev { left: 10px; }
  .ra-promo .rp-next { right: 10px; }
}
