/* ==========================================================================
   RLP PROMOTIONS — Complete Front-end Styles
   Used by: single-promotion.php + archive-promotion.php
   Includes: archive grid, hero swiper slider, single page sections
             with up to 3 images per section + overlay + animations
   ========================================================================== */

:root {
  --rlp-fg: #1a1814;
  --rlp-fg-muted: #5a5346;
  --rlp-fg-soft: #8a8278;
  --rlp-bg: #faf6ec;
  --rlp-surface: #ffffff;
  --rlp-border: rgba(26, 24, 20, 0.08);
  --rlp-accent: #b8862a;
  --rlp-accent-soft: #f5d97e;
  --rlp-ink: #0f0d09;

  --rlp-font-display: "Cinzel", "Playfair Display", Georgia, serif;
  --rlp-font-body: "Cormorant Garamond", Georgia, serif;

  --rlp-container: min(1180px, 92%);
  --rlp-shadow-sm: 0 2px 8px rgba(15, 13, 9, 0.06);
  --rlp-shadow-md: 0 12px 30px rgba(15, 13, 9, 0.1);
  --rlp-shadow-lg: 0 24px 60px rgba(15, 13, 9, 0.18);

  --rlp-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --rlp-space-md: clamp(20px, 2.5vw, 32px);
  --rlp-space-lg: clamp(40px, 5vw, 80px);
  --rlp-space-xl: clamp(30px, 4vw, 60px);
}

.rlp-promo-archive-wrap,
.rlp-promo-single-wrap {
  background: var(--rlp-bg);
  color: var(--rlp-fg);
  font-family: var(--rlp-font-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  padding: 0 0 clamp(40px, 6vw, 100px);
}
.rlp-promo-archive-wrap *,
.rlp-promo-single-wrap *,
.rlp-promo-archive-wrap *::before,
.rlp-promo-archive-wrap *::after,
.rlp-promo-single-wrap *::before,
.rlp-promo-single-wrap *::after {
  box-sizing: border-box;
}
.rlp-promo-archive-wrap img,
.rlp-promo-single-wrap img {
  max-width: 100%;
  display: block;
}
.rlp-promo-archive-wrap a,
.rlp-promo-single-wrap a {
  color: inherit;
}

/* ==========================================================================
   ARCHIVE — HERO SWIPER SLIDER
   ========================================================================== */
.rlp-promo-hero-slider {
  position: relative;
  width: 100%;
  margin-bottom: clamp(50px, 6vw, 90px);
  background: var(--rlp-ink);
}

.rlp-hero-swiper {
  width: 100%;
  height: clamp(420px, 60vh, 640px);
  overflow: hidden;
}

.rlp-hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.rlp-hero-slide__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.rlp-hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s linear;
}
.rlp-hero-slide__media--empty {
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(184, 134, 42, 0.4),
      transparent 60%
    ),
    linear-gradient(135deg, #1a1814 0%, #0f0d09 100%);
}
/* Ken Burns slow zoom on the active slide */
.swiper-slide-active .rlp-hero-slide__media img {
  transform: scale(1.12);
}

.rlp-hero-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(15, 13, 9, 0.15) 0%,
    rgba(15, 13, 9, 0.55) 55%,
    rgba(15, 13, 9, 0.92) 100%
  );
}

.rlp-hero-slide__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: clamp(40px, 6vw, 80px) 0;
}
.rlp-hero-slide__inner {
  width: var(--rlp-container);
  max-width: 880px;
  margin: 0 auto;
  color: #faf6ec;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--rlp-ease) 0.2s,
    transform 0.8s var(--rlp-ease) 0.2s;
}
.swiper-slide-active .rlp-hero-slide__inner {
  opacity: 1;
  transform: translateY(0);
}

.rlp-hero-slide__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.rlp-hero-slide__cat {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(245, 217, 126, 0.15);
  border: 1px solid rgba(245, 217, 126, 0.4);
  color: var(--rlp-accent-soft);
  font-family: var(--rlp-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rlp-hero-slide__title {
  font-family: var(--rlp-font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.rlp-hero-slide__title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(var(--rlp-accent-soft), var(--rlp-accent-soft))
    bottom left / 0% 2px no-repeat;
  transition: background-size 0.5s var(--rlp-ease);
}
.rlp-hero-slide__title a:hover {
  background-size: 100% 2px;
}

.rlp-hero-slide__excerpt {
  font-family: var(--rlp-font-body);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: rgba(250, 246, 236, 0.85);
  margin: 0 0 22px;
  max-width: 60ch;
}

.rlp-hero-slide__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--rlp-font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.6);
  margin-bottom: 28px;
}

.rlp-hero-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--rlp-accent);
  color: #fff;
  font-family: var(--rlp-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition:
    background 0.3s var(--rlp-ease),
    transform 0.3s var(--rlp-ease),
    box-shadow 0.3s var(--rlp-ease);
}
.rlp-hero-slide__cta span {
  transition: transform 0.3s var(--rlp-ease);
}
.rlp-hero-slide__cta:hover {
  background: var(--rlp-ink);
  color: var(--rlp-accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
.rlp-hero-slide__cta:hover span {
  transform: translateX(4px);
}

/* ---------- Swiper navigation arrows ---------- */
.rlp-hero-swiper__prev,
.rlp-hero-swiper__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  background: rgba(15, 13, 9, 0.4);
  border: 1px solid rgba(245, 217, 126, 0.3);
  border-radius: 50%;
  color: var(--rlp-accent-soft);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s var(--rlp-ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rlp-hero-swiper__prev::after,
.rlp-hero-swiper__next::after {
  font-family: swiper-icons;
  font-size: 16px;
  font-weight: 700;
  color: var(--rlp-accent-soft);
}
.rlp-hero-swiper__prev:hover,
.rlp-hero-swiper__next:hover {
  background: var(--rlp-accent);
  border-color: var(--rlp-accent);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}
.rlp-hero-swiper__prev:hover::after,
.rlp-hero-swiper__next:hover::after {
  color: #fff;
}
.rlp-hero-swiper__prev {
  left: clamp(16px, 3vw, 40px);
}
.rlp-hero-swiper__next {
  right: clamp(16px, 3vw, 40px);
}
@media (max-width: 720px) {
  .rlp-hero-swiper__prev,
  .rlp-hero-swiper__next {
    display: none;
  }
}

/* ---------- Swiper pagination dots ---------- */
.rlp-hero-swiper__pagination {
  position: absolute;
  bottom: clamp(16px, 2vw, 28px) !important;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.rlp-hero-swiper__pagination .swiper-pagination-bullet {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 0;
  opacity: 1;
  transition: all 0.3s var(--rlp-ease);
  cursor: pointer;
}
.rlp-hero-swiper__pagination .swiper-pagination-bullet-active {
  background: var(--rlp-accent-soft);
  width: 48px;
}

/* ==========================================================================
   ARCHIVE HEADER + GRID
   ========================================================================== */
.rlp-promo-archive__header {
  width: var(--rlp-container);
  margin: clamp(40px, 5vw, 70px) auto clamp(40px, 5vw, 70px);
  text-align: center;
}
.rlp-promo-hero-slider + .rlp-promo-archive__header {
  margin-top: 0;
}
.rlp-promo-archive__eyebrow {
  font-family: var(--rlp-font-display);
  font-weight: 500;
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rlp-accent);
  margin: 0 0 14px;
}
.rlp-promo-archive__title {
  font-family: var(--rlp-font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--rlp-ink);
}
.rlp-promo-archive__description {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--rlp-fg-muted);
  max-width: 60ch;
  margin: 0 auto;
}
.rlp-promo-archive__description p {
  margin: 0;
}

/* ---------- Filter chips ---------- */
.rlp-promo-archive__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(24px, 3vw, 40px);
}
.rlp-promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--rlp-surface);
  border: 1px solid var(--rlp-border);
  border-radius: 999px;
  font-family: var(--rlp-font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--rlp-fg);
  text-decoration: none;
  transition: all 0.25s var(--rlp-ease);
}
.rlp-promo-chip:hover {
  border-color: var(--rlp-accent);
  color: var(--rlp-accent);
  transform: translateY(-1px);
}
.rlp-promo-chip.is-active {
  background: var(--rlp-ink);
  border-color: var(--rlp-ink);
  color: var(--rlp-accent-soft);
}
.rlp-promo-chip__count {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  opacity: 0.6;
  font-weight: 400;
}

/* ---------- Grid ---------- */
.rlp-promo-grid {
  width: var(--rlp-container);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(20px, 2.5vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.rlp-promo-card {
  background: var(--rlp-surface);
  border: 1px solid var(--rlp-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--rlp-shadow-sm);
  transition:
    transform 0.4s var(--rlp-ease),
    box-shadow 0.4s var(--rlp-ease);
  display: flex;
  flex-direction: column;
}
.rlp-promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rlp-shadow-md);
}

.rlp-promo-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rlp-bg);
  text-decoration: none;
}
.rlp-promo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--rlp-ease);
}
.rlp-promo-card:hover .rlp-promo-card__img {
  transform: scale(1.05);
}

.rlp-promo-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3ead4, #e8dcb9);
  color: rgba(184, 134, 42, 0.4);
}
.rlp-promo-card__placeholder .dashicons {
  font-size: 64px;
  width: 64px;
  height: 64px;
}

.rlp-promo-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(15, 13, 9, 0.85);
  color: var(--rlp-accent-soft);
  font-family: var(--rlp-font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rlp-promo-card__body {
  padding: clamp(18px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.rlp-promo-card__title {
  font-family: var(--rlp-font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--rlp-ink);
}
.rlp-promo-card__title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) bottom left / 0% 1px
    no-repeat;
  transition: background-size 0.4s var(--rlp-ease);
}
.rlp-promo-card__title a:hover {
  background-size: 100% 1px;
}

.rlp-promo-card__excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--rlp-fg-muted);
  margin: 0;
}

.rlp-promo-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--rlp-fg-soft);
  font-family: var(--rlp-font-body);
}
.rlp-promo-card__author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rlp-promo-avatar {
  border-radius: 50%;
  border: 1px solid var(--rlp-border);
  width: 22px !important;
  height: 22px !important;
}
.rlp-promo-card__sep {
  opacity: 0.5;
}

.rlp-promo-card__more {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--rlp-font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rlp-accent);
  text-decoration: none;
  align-self: flex-start;
}
.rlp-promo-card__more:hover {
  color: var(--rlp-ink);
}

/* ---------- Pagination ---------- */
.rlp-promo-pagination {
  width: var(--rlp-container);
  margin: clamp(40px, 5vw, 70px) auto 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rlp-promo-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: var(--rlp-surface);
  border: 1px solid var(--rlp-border);
  border-radius: 4px;
  font-family: var(--rlp-font-display);
  font-size: 13px;
  color: var(--rlp-fg);
  text-decoration: none;
  transition: all 0.25s ease;
}
.rlp-promo-pagination .page-numbers:hover,
.rlp-promo-pagination .page-numbers.current {
  background: var(--rlp-ink);
  border-color: var(--rlp-ink);
  color: var(--rlp-accent-soft);
}

.rlp-promo-empty {
  width: var(--rlp-container);
  margin: 80px auto;
  text-align: center;
  color: var(--rlp-fg-muted);
}
.rlp-promo-empty-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--rlp-accent);
  font-family: var(--rlp-font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ==========================================================================
   SINGLE PROMOTION
   ========================================================================== */
.rlp-promo-single {
  width: 100%;
}

/* ---------- Hero ---------- */
.rlp-promo-single__hero {
  position: relative;
  margin-bottom: clamp(30px, 4vw, 60px);
}
.rlp-promo-single__cover {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  width: 100%;
  background: var(--rlp-ink);
}
@media (max-width: 720px) {
  .rlp-promo-single__cover {
    aspect-ratio: 4 / 3;
  }
}
.rlp-promo-single__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rlp-promo-single__cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 13, 9, 0.05) 0%,
    rgba(15, 13, 9, 0.25) 60%,
    rgba(15, 13, 9, 0.85) 100%
  );
}
.rlp-promo-single__hero-inner {
  position: relative;
  width: var(--rlp-container);
  margin: 0 auto;
  margin-top: clamp(-200px, -22vw, -120px);
  background: var(--rlp-surface);
  border: 1px solid var(--rlp-border);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--rlp-shadow-md);
  z-index: 2;
  max-width: 880px;
}

/* When there's no cover, just normal flow */
.rlp-promo-single__hero:not(:has(.rlp-promo-single__cover))
  .rlp-promo-single__hero-inner {
  margin-top: clamp(40px, 5vw, 70px);
}

.rlp-promo-single__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.rlp-promo-cat {
  padding: 4px 12px;
  background: var(--rlp-bg);
  border: 1px solid var(--rlp-border);
  color: var(--rlp-accent);
  font-family: var(--rlp-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.rlp-promo-cat:hover {
  background: var(--rlp-accent);
  border-color: var(--rlp-accent);
  color: #fff;
}

.rlp-promo-single__title {
  font-family: var(--rlp-font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--rlp-ink);
  margin: 0 0 22px;
}

.rlp-promo-single__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 15px;
  color: var(--rlp-fg-muted);
}
.rlp-promo-single__author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rlp-promo-single__author .rlp-promo-avatar {
  width: 32px !important;
  height: 32px !important;
}
.rlp-promo-meta-label {
  color: var(--rlp-fg-soft);
}
.rlp-promo-single__author a {
  color: var(--rlp-fg);
  font-weight: 500;
  text-decoration: none;
}
.rlp-promo-single__author a:hover {
  color: var(--rlp-accent);
}
.rlp-promo-single__sep {
  opacity: 0.4;
}

/* ---------- Body ---------- */
.rlp-promo-single__body {
  width: var(--rlp-container);
  margin: 0 auto;
  max-width: 760px;
}
.rlp-promo-single__lede {
  font-family: var(--rlp-font-body);
  font-style: italic;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--rlp-fg-muted);
  padding-left: 20px;
  border-left: 2px solid var(--rlp-accent);
  margin: 0 0 36px;
}
.rlp-promo-single__content {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.75;
  color: var(--rlp-fg);
}
.rlp-promo-single__content > * + * {
  margin-top: 1.2em;
}
.rlp-promo-single__content p {
  margin: 0;
}
.rlp-promo-single__content strong {
  color: var(--rlp-ink);
  font-weight: 600;
}
.rlp-promo-single__content em {
  color: var(--rlp-accent);
  font-style: italic;
}
.rlp-promo-single__content a {
  color: var(--rlp-accent);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) bottom left / 100% 1px
    no-repeat;
  transition: background-size 0.3s var(--rlp-ease);
}
.rlp-promo-single__content a:hover {
  background-size: 0% 1px;
}

.rlp-promo-single__content h2,
.rlp-promo-single__content h3,
.rlp-promo-single__content h4 {
  font-family: var(--rlp-font-display);
  font-weight: 500;
  color: var(--rlp-ink);
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}
.rlp-promo-single__content h2 {
  font-size: clamp(22px, 2vw, 28px);
}
.rlp-promo-single__content h3 {
  font-size: clamp(19px, 1.6vw, 23px);
}
.rlp-promo-single__content h4 {
  font-size: clamp(17px, 1.3vw, 20px);
}

.rlp-promo-single__content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rlp-promo-single__content ul li {
  position: relative;
  padding-left: 1.6em;
  margin: 0.5em 0;
}
.rlp-promo-single__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.6em;
  height: 1px;
  background: var(--rlp-accent);
}
.rlp-promo-single__content ol {
  padding-left: 1.4em;
}
.rlp-promo-single__content ol li::marker {
  color: var(--rlp-accent);
  font-weight: 600;
}

.rlp-promo-single__content blockquote {
  border-left: 2px solid var(--rlp-accent);
  padding: 0.4em 0 0.4em 1.4em;
  font-style: italic;
  font-size: 1.1em;
  margin: 1.4em 0;
  color: var(--rlp-fg);
}
.rlp-promo-single__content img {
  border-radius: 4px;
  margin: 1.2em 0;
}
.rlp-promo-single__content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rlp-accent),
    transparent
  );
  margin: 2em 0;
}

/* ---------- Tags footer ---------- */
.rlp-promo-single__tags {
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--rlp-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rlp-promo-tags-label {
  font-family: var(--rlp-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rlp-fg-soft);
  margin-right: 6px;
}
.rlp-promo-tag {
  padding: 5px 12px;
  background: var(--rlp-surface);
  border: 1px solid var(--rlp-border);
  color: var(--rlp-fg-muted);
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.rlp-promo-tag:hover {
  border-color: var(--rlp-accent);
  color: var(--rlp-accent);
  transform: translateY(-1px);
}

/* ==========================================================================
   RLP SECTIONS (custom meta-box repeater)
   Used inside .rlp-promo-single__sections
   ========================================================================== */
.rlp-promo-single__sections {
  margin-top: clamp(50px, 6vw, 90px);
}

.rlp-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--rlp-space-xl) 0;
}

/* ---------- Layered background ---------- */
.sec-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sec-bg__img,
.sec-bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.sec-bg__img {
  z-index: 1;
}
.sec-bg__video {
  z-index: 2;
}
.sec-bg__color {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.sec-bg__gradient {
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* ---------- Overlay (only when bg image OR bg video is present) ---------- */
.sec-bg__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  mix-blend-mode: normal;
  background: linear-gradient(
    135deg,
    rgba(15, 13, 9, 0.95) 0%,
    rgba(26, 24, 20, 0.88) 50%,
    rgba(184, 134, 42, 0.2) 100%
  );
  opacity: 0.78; /* Overall — 13% more opaque */
}

/* ---------- Inner: 2-column layout when image exists ---------- */
.rlp-section__inner {
  position: relative;
  z-index: 5;
  width: var(--rlp-container);
  margin-inline: auto;
  display: grid;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.rlp-section--img-left .rlp-section__inner {
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "media content";
}
.rlp-section--img-right .rlp-section__inner {
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "content media";
}
.rlp-section--no-image .rlp-section__inner {
  display: block;
  width: var(--rlp-container);
  max-width: 760px;
  text-align: left;
}

/* ==========================================================================
   SECTION MEDIA — supports 1, 2, or 3 images
   ========================================================================== */
.rlp-section__media {
  grid-area: media;
  position: relative;
}
.rlp-section__media-item {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(15, 26, 44, 0.18);
  background: var(--rlp-bg);
}
.rlp-section__media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--rlp-ease);
}
.rlp-section__media-item:hover img {
  transform: scale(1.05);
}

/* ----- 1 image: classic single ----- */
.rlp-section__media--1 {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rlp-section__media--1 .rlp-section__media-item {
  aspect-ratio: 4 / 3;
  flex: 1;
  animation: rlp-media-slide-up 0.8s var(--rlp-ease) 0.05s forwards;
  opacity: 0;
}

/* ----- 2 images: stacked vertically with gap ----- */
.rlp-section__media--2 {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rlp-section__media--2 .rlp-section__media-item {
  aspect-ratio: 16 / 10;
  flex: 1;
  min-height: 0;
  animation: rlp-media-slide-up 0.8s var(--rlp-ease) forwards;
  opacity: 0;
}
.rlp-section__media--2 .rlp-section__media-item--1 {
  animation-delay: 0.05s;
}
.rlp-section__media--2 .rlp-section__media-item--2 {
  animation-delay: 0.15s;
}

/* ----- 3 images: all stacked vertically (beautiful cascade) ----- */
.rlp-section__media--3 {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rlp-section__media--3 .rlp-section__media-item {
  aspect-ratio: 16 / 10;
  flex: 1;
  min-height: 0;
  /* Subtle stagger animation on each image */
  animation: rlp-media-slide-up 0.8s var(--rlp-ease) forwards;
  opacity: 0;
}
.rlp-section__media--3 .rlp-section__media-item--1 {
  animation-delay: 0.05s;
}
.rlp-section__media--3 .rlp-section__media-item--2 {
  animation-delay: 0.15s;
}
.rlp-section__media--3 .rlp-section__media-item--3 {
  animation-delay: 0.25s;
}

/* ===== OPTIONAL: Uncomment the below for a different 3-image layout =====
   This creates a "Masonry-style" look: first image takes full width,
   then two images side-by-side below. Better for landscape photos.
   
   To use: uncomment these rules and add a class="rlp-section__media--3-masonry"
   to the .rlp-section__media div in single-promotion.php
*/
/* 
.rlp-section__media--3-masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.rlp-section__media--3-masonry .rlp-section__media-item--1 {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 8;
  animation: rlp-media-slide-up 0.8s var(--rlp-ease) 0.05s forwards;
  opacity: 0;
}
.rlp-section__media--3-masonry .rlp-section__media-item--2,
.rlp-section__media--3-masonry .rlp-section__media-item--3 {
  aspect-ratio: 8 / 5;
  animation: rlp-media-slide-up 0.8s var(--rlp-ease) forwards;
  opacity: 0;
}
.rlp-section__media--3-masonry .rlp-section__media-item--2 {
  animation-delay: 0.15s;
}
.rlp-section__media--3-masonry .rlp-section__media-item--3 {
  animation-delay: 0.25s;
}
*/

/* ---------- Content ---------- */
.rlp-section__content {
  grid-area: content;
}

.rlp-section__eyebrow {
  display: inline-block;
  font-family: var(--rlp-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rlp-accent);
  margin: 0 0 14px;
  padding-bottom: 6px;
  position: relative;
}
.rlp-section__eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 1px;
  background: var(--rlp-accent);
}

.rlp-section__heading {
  font-family: var(--rlp-font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(16px, 2vw, 28px);
  color: var(--rlp-ink);
}

/* ---------- Body (WYSIWYG output) ---------- */
.rlp-section__body {
  color: var(--rlp-fg-muted);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.7;
}
.rlp-section__body > * + * {
  margin-top: 1em;
}

.rlp-section__body p {
  margin: 0;
}
.rlp-section__body strong,
.rlp-section__body b {
  color: var(--rlp-ink);
  font-weight: 600;
}
.rlp-section__body em,
.rlp-section__body i {
  color: var(--rlp-accent);
  font-style: italic;
}
.rlp-section__body a {
  color: var(--rlp-accent);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) bottom left / 100% 1px
    no-repeat;
  transition: background-size 0.3s var(--rlp-ease);
}
.rlp-section__body a:hover {
  background-size: 0% 1px;
}

.rlp-section__body ul,
.rlp-section__body ol {
  padding-left: 1.4em;
  margin: 0;
}
.rlp-section__body ul {
  list-style: none;
  padding-left: 0;
}
.rlp-section__body ul li {
  position: relative;
  padding-left: 1.6em;
  margin: 0.45em 0;
}
.rlp-section__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.6em;
  height: 1px;
  background: var(--rlp-accent);
}
.rlp-section__body ol li {
  margin: 0.4em 0;
}
.rlp-section__body ol li::marker {
  color: var(--rlp-accent);
  font-weight: 600;
}

.rlp-section__body h1,
.rlp-section__body h2,
.rlp-section__body h3,
.rlp-section__body h4,
.rlp-section__body h5,
.rlp-section__body h6 {
  font-family: var(--rlp-font-display);
  font-weight: 500;
  color: var(--rlp-ink);
  line-height: 1.25;
  margin: 1.4em 0 0.4em;
}
.rlp-section__body h2 {
  font-size: clamp(22px, 2vw, 28px);
}
.rlp-section__body h3 {
  font-size: clamp(19px, 1.6vw, 23px);
}
.rlp-section__body h4 {
  font-size: clamp(17px, 1.3vw, 20px);
}

.rlp-section__body blockquote {
  border-left: 2px solid var(--rlp-accent);
  padding: 0.4em 0 0.4em 1.2em;
  font-style: italic;
  color: var(--rlp-ink);
  font-size: 1.1em;
  margin: 0;
}

.rlp-section__body img {
  border-radius: 3px;
  margin: 0.6em 0;
  max-width: 100%;
  height: auto;
}
.rlp-section__content img.aligncenter,
.rlp-section__content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.rlp-section__body code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}

.rlp-section__body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rlp-accent),
    transparent
  );
  margin: 2em 0;
}

.rlp-section__body table {
  width: 100%;
  border-collapse: collapse;
}
.rlp-section__body th,
.rlp-section__body td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rlp-border);
}
.rlp-section__body th {
  font-weight: 600;
  color: var(--rlp-ink);
}

/* ==========================================================================
   SECTION VARIANTS — When the background has an overlay (image/video),
   invert text colors for readability
   ========================================================================== */
.rlp-section--has-overlay {
  --rlp-fg: #faf6ec;
  --rlp-fg-muted: rgba(243, 234, 212, 0.88);
  --rlp-ink: #ffffff;
  --rlp-border: rgba(245, 217, 126, 0.2);
}
.rlp-section--has-overlay .rlp-section__heading {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.rlp-section--has-overlay .rlp-section__eyebrow {
  color: var(--rlp-accent-soft);
}
.rlp-section--has-overlay .rlp-section__eyebrow::after {
  background: var(--rlp-accent-soft);
}
.rlp-section--has-overlay .rlp-section__body {
  color: rgba(243, 234, 212, 0.88);
}
.rlp-section--has-overlay .rlp-section__body strong,
.rlp-section--has-overlay .rlp-section__body b,
.rlp-section--has-overlay .rlp-section__body h2,
.rlp-section--has-overlay .rlp-section__body h3,
.rlp-section--has-overlay .rlp-section__body h4,
.rlp-section--has-overlay .rlp-section__body blockquote,
.rlp-section--has-overlay .rlp-section__body th {
  color: #fff;
}
.rlp-section--has-overlay .rlp-section__body em,
.rlp-section--has-overlay .rlp-section__body i,
.rlp-section--has-overlay .rlp-section__body a {
  color: var(--rlp-accent-soft);
}

/* ==========================================================================
   ENTRANCE ANIMATIONS
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .rlp-section__inner > * {
    opacity: 0;
    transform: translateY(24px);
    animation: rlp-rise 1s var(--rlp-ease) forwards;
  }
  .rlp-section--img-left .rlp-section__media {
    animation-delay: 0.05s;
  }
  .rlp-section--img-left .rlp-section__content {
    animation-delay: 0.2s;
  }
  .rlp-section--img-right .rlp-section__content {
    animation-delay: 0.05s;
  }
  .rlp-section--img-right .rlp-section__media {
    animation-delay: 0.2s;
  }
}
@keyframes rlp-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rlp-media-slide-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   BACK TO ALL PROMOTIONS BUTTON
   ========================================================================== */
.rlp-promo-single__back {
  width: var(--rlp-container);
  max-width: 880px;
  margin: clamp(50px, 6vw, 80px) auto 0;
  display: flex;
  justify-content: center;
}
.rlp-promo-back-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  background: var(--rlp-ink);
  color: var(--rlp-accent-soft) !important;
  font-family: var(--rlp-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--rlp-ink);
  border-radius: 4px;
  transition:
    transform 0.3s var(--rlp-ease),
    background 0.3s var(--rlp-ease),
    color 0.3s var(--rlp-ease),
    box-shadow 0.3s var(--rlp-ease);
}
.rlp-promo-back-arrow {
  display: inline-block;
  transition: transform 0.3s var(--rlp-ease);
  font-size: 14px;
}
.rlp-promo-back-link:hover {
  background: var(--rlp-accent);
  border-color: var(--rlp-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--rlp-shadow-md);
}
.rlp-promo-back-link:hover .rlp-promo-back-arrow {
  transform: translateX(-4px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 820px) {
  .rlp-section--img-left .rlp-section__inner,
  .rlp-section--img-right .rlp-section__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
  }
  .rlp-section {
    padding: var(--rlp-space-lg) 0;
  }

  /* On small screens, simplify multi-image layouts */
  .rlp-section__media--2 .rlp-section__media-item--1,
  .rlp-section__media--2 .rlp-section__media-item--2 {
    margin: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .rlp-section__heading {
    font-size: clamp(24px, 6vw, 32px);
  }
  .rlp-hero-swiper {
    height: 480px;
  }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .rlp-promo-archive-wrap *,
  .rlp-promo-archive-wrap *::before,
  .rlp-promo-archive-wrap *::after,
  .rlp-promo-single-wrap *,
  .rlp-promo-single-wrap *::before,
  .rlp-promo-single-wrap *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .rlp-hero-slide__media img {
    transform: none !important;
  }
}

@media print {
  .sec-bg,
  .rlp-promo-hero-slider,
  .rlp-promo-single__back {
    display: none;
  }
  .rlp-section {
    padding: 20px 0;
    color: #000;
  }
  .rlp-section--has-overlay {
    --rlp-fg: #1a1814;
    --rlp-fg-muted: #5a5346;
    --rlp-ink: #0f0d09;
  }
}
