/* ============================================================
   promos.css — Beyond J.C. Group OPC
   Promos & Rewards Page
   Matches site design system: Fraunces/DM Sans, green & yellow accents
   ============================================================ */

/* ── Tokens (mirrors styles.css vars) ────────────────────── */
:root {
  --pr-green:       #0d542b;
  --pr-green-hover: #0a4322;
  --pr-green-light: #dcfce7;
  --pr-yellow:      #eab308;
  --pr-yellow-hover:#ca8a04;
  --pr-yellow-light:#fef9c3;
  --pr-ink:         #111111;
  --pr-ink-mid:     #444444;
  --pr-ink-light:   #888888;
  --pr-white:       #ffffff;
  --pr-off-white:   #f8f8f8;
  --pr-border:      #efefef;
  --pr-border-dark: #e2e2e2;
  --pr-font-display: sans-serif;
  --pr-font-body:   sans-serif;
  --pr-max-w:       1380px;
  --pr-px:          clamp(20px, 5vw, 80px);
  --pr-r-card:      16px;
  --pr-r-pill:      9999px;
  --pr-sh-card:     0 1px 3px rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.04);
  --pr-sh-hover:    0 8px 28px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.04);
  --pr-t-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --pr-t-fast:      .18s ease;
}

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .52s ease, transform .52s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── 1. HERO ──────────────────────────────────────────────── */
.pr-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: calc(80px + 72px) var(--pr-px) 0;
  background: var(--pr-white);
  overflow: hidden;
}

/* Subtle green background blob */
.pr-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,84,43,.06) 0%, transparent 70%);
  pointer-events: none;
}

.pr-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding-bottom: 96px;
}

.pr-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pr-font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pr-green);
  margin-bottom: 24px;
}

.pr-eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--pr-green);
  border-radius: 50%;
  animation: prDotPulse 2.5s ease infinite;
}

.pr-hero__title {
  font-family: var(--pr-font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  line-height: .98;
  color: var(--pr-ink);
  letter-spacing: -3px;
  margin-bottom: 24px;
}
.pr-hero__title em {
  font-style: italic;
  color: var(--pr-green);
}

.pr-hero__sub {
  font-family: var(--pr-font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--pr-ink-light);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 40px;
}

.pr-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Floating badge */
.pr-hero__badge {
  position: absolute;
  right: clamp(60px, 12vw, 200px);
  top: 50%;
  transform: translateY(-50%);
  width: 120px; height: 120px;
  background: var(--pr-green);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 48px rgba(13,84,43,.25);
  animation: prFloat 6s ease-in-out infinite;
  z-index: 2;
}
.pr-hero__badge-pts {
  font-family: var(--pr-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--pr-yellow);
  line-height: 1;
}
.pr-hero__badge-label {
  font-family: var(--pr-font-body);
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Wave */
.pr-hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.pr-hero__wave svg { display: block; width: 100%; }

/* ── 2. BUTTONS ───────────────────────────────────────────── */
.pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--pr-r-pill);
  font-family: var(--pr-font-body);
  font-size: 14px;
  font-weight: 600;
  transition: transform .22s var(--pr-t-spring), box-shadow .22s;
  text-decoration: none;
}
.pr-btn:hover { transform: translateY(-2px); }

.pr-btn--dark {
  background: var(--pr-ink);
  color: var(--pr-white);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.pr-btn--dark:hover { box-shadow: 0 8px 24px rgba(0,0,0,.22); }

.pr-btn--outline {
  background: transparent;
  color: var(--pr-ink);
  border: 1.5px solid var(--pr-border-dark);
}
.pr-btn--outline:hover { border-color: var(--pr-ink); }

/* ── 3. SECTION CHROME ────────────────────────────────────── */
.pr-eyebrow {
  font-family: var(--pr-font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pr-green);
  display: block;
  margin-bottom: 8px;
}
.pr-eyebrow--yellow { color: var(--pr-yellow-hover); }
.pr-eyebrow--green  { color: var(--pr-green); }
.pr-eyebrow--light  { color: rgba(255,255,255,.6); }

.pr-section-title {
  font-family: var(--pr-font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  color: var(--pr-ink);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.pr-section-sub {
  font-family: var(--pr-font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--pr-ink-light);
  line-height: 1.7;
  max-width: 520px;
}

.pr-section-header {
  text-align: center;
  margin-bottom: 52px;
}
.pr-section-header .pr-section-sub { margin-inline: auto; }

/* ── 4. HOW IT WORKS ──────────────────────────────────────── */
.pr-how {
  background: var(--pr-off-white);
  padding: 10% 0 88px;
}
.pr-how__inner {
  max-width: var(--pr-max-w);
  margin-inline: auto;
  padding-inline: var(--pr-px);
}

.pr-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.pr-step {
  background: var(--pr-white);
  border-radius: var(--pr-r-card);
  border: 1px solid var(--pr-border);
  padding: 36px 32px;
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  box-shadow: var(--pr-sh-card);
  transition: transform .28s var(--pr-t-spring), box-shadow .28s;
  position: relative;
}
.pr-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--pr-sh-hover);
}

.pr-step__num {
  font-family: var(--pr-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--pr-green);
  margin-bottom: 16px;
}

.pr-step__icon {
  width: 60px; height: 60px;
  background: var(--pr-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--pr-green);
  transition: background .2s, transform .22s var(--pr-t-spring);
}
.pr-step:hover .pr-step__icon {
  background: var(--pr-green);
  color: var(--pr-white);
  transform: scale(1.08);
}

.pr-step__title {
  font-family: var(--pr-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--pr-ink);
  letter-spacing: -.5px;
  margin-bottom: 10px;
}

.pr-step__desc {
  font-family: var(--pr-font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--pr-ink-light);
  line-height: 1.65;
}

.pr-step__connector {
  color: var(--pr-border-dark);
  flex-shrink: 0;
  padding: 0 16px;
  margin-top: -20px;
}

/* ── 5. BRAND SECTIONS ────────────────────────────────────── */
.pr-brand-section {
  padding: 80px 0 88px;
}
.pr-brand-section--green { background: var(--pr-white); }
.pr-brand-section--yellow { background: var(--pr-off-white); }

.pr-brand-section__inner {
  max-width: var(--pr-max-w);
  margin-inline: auto;
  padding-inline: var(--pr-px);
}

.pr-brand-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.pr-brand-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pr-brand-logo--green { background: var(--pr-green); }
.pr-brand-logo--yellow { background: var(--pr-yellow); }

.pr-brand-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pr-brand-logo__fallback {
  font-family: var(--pr-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--pr-white);
}

.pr-brand-title {
  font-family: var(--pr-font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--pr-ink);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.pr-brand-tagline {
  font-family: var(--pr-font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--pr-ink-light);
}

/* ── 6. PROMO CARDS ───────────────────────────────────────── */
.pr-promos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pr-promo-card {
  background: var(--pr-white);
  border-radius: var(--pr-r-card);
  border: 1px solid var(--pr-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--pr-sh-card);
  transition: transform .28s var(--pr-t-spring), box-shadow .28s, border-color .2s;
}
.pr-promo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--pr-sh-hover);
}
.pr-promo-card--green:hover  { border-color: rgba(13,84,43,.2); }
.pr-promo-card--yellow:hover { border-color: rgba(234,179,8,.3); }
.pr-promo-card--sage:hover   { border-color: rgba(22,163,74,.2); }

/* Top accent stripe */
.pr-promo-card--green  { border-top: 3px solid var(--pr-green); }
.pr-promo-card--yellow { border-top: 3px solid var(--pr-yellow); }
.pr-promo-card--sage   { border-top: 3px solid #16a34a; }

.pr-promo-card__img-wrap {
  position: relative;
  height: 180px;
  background: var(--pr-off-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-promo-card__img {
  width: 130px; height: 130px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,.09);
  transition: transform .35s var(--pr-t-spring);
}
.pr-promo-card:hover .pr-promo-card__img { transform: scale(1.07); }

.pr-promo-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--pr-green);
  color: var(--pr-white);
  font-family: var(--pr-font-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 3px 10px;
  border-radius: var(--pr-r-pill);
}
.pr-promo-card__badge--yellow {
  background: var(--pr-yellow);
  color: var(--pr-ink);
}

.pr-promo-card__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--pr-border);
}

.pr-promo-card__title {
  font-family: var(--pr-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--pr-ink);
  letter-spacing: -.4px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.pr-promo-card__desc {
  font-family: var(--pr-font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--pr-ink-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.pr-promo-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pr-promo-card__expiry {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--pr-font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--pr-ink-light);
}

.pr-promo-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pr-green);
  color: var(--pr-white);
  font-family: var(--pr-font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--pr-r-pill);
  text-decoration: none;
  transition: background var(--pr-t-fast), transform .22s var(--pr-t-spring);
}
.pr-promo-card__cta:hover {
  background: var(--pr-green-hover);
  transform: translateY(-2px);
}
.pr-promo-card__cta--yellow {
  background: var(--pr-yellow);
  color: var(--pr-ink);
}
.pr-promo-card__cta--yellow:hover {
  background: var(--pr-yellow-hover);
  color: var(--pr-white);
}

/* ── 7. REWARDS TIERS ─────────────────────────────────────── */
.pr-tiers {
  background: var(--pr-white);
  padding: 80px 0 88px;
}
.pr-tiers__inner {
  max-width: var(--pr-max-w);
  margin-inline: auto;
  padding-inline: var(--pr-px);
}

.pr-tiers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.pr-tier {
  background: var(--pr-off-white);
  border-radius: var(--pr-r-card);
  border: 1px solid var(--pr-border);
  padding: 32px 24px;
  text-align: center;
  transition: transform .28s var(--pr-t-spring), box-shadow .28s, background .2s;
}
.pr-tier:hover {
  background: var(--pr-white);
  transform: translateY(-5px);
  box-shadow: var(--pr-sh-hover);
}
.pr-tier:nth-child(4) {
  background: var(--pr-green);
  border-color: var(--pr-green);
}
.pr-tier:nth-child(4):hover {
  background: var(--pr-green-hover);
}
.pr-tier:nth-child(4) .pr-tier__pts,
.pr-tier:nth-child(4) .pr-tier__name,
.pr-tier:nth-child(4) .pr-tier__perks { color: var(--pr-white); }
.pr-tier:nth-child(4) .pr-tier__perks { color: rgba(255,255,255,.7); }

.pr-tier__icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.pr-tier__pts {
  font-family: var(--pr-font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pr-green);
  margin-bottom: 8px;
}

.pr-tier__name {
  font-family: var(--pr-font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--pr-ink);
  letter-spacing: -.5px;
  margin-bottom: 12px;
}

.pr-tier__perks {
  font-family: var(--pr-font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--pr-ink-light);
  line-height: 1.65;
}

.pr-tiers__note {
  text-align: center;
  font-family: var(--pr-font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--pr-ink-light);
  border-top: 1px solid var(--pr-border);
  padding-top: 20px;
}

/* ── 8. CTA BAND ──────────────────────────────────────────── */
.pr-cta {
  background: var(--pr-green);
  padding: 88px var(--pr-px);
  text-align: center;
}
.pr-cta__inner { max-width: 600px; margin-inline: auto; }

.pr-cta__title {
  font-family: var(--pr-font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 600;
  color: var(--pr-white);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  margin-top: 12px;
}

.pr-cta__sub {
  font-family: var(--pr-font-body);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 36px;
}

.pr-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pr-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pr-font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--pr-r-pill);
  text-decoration: none;
  transition: transform .22s var(--pr-t-spring), box-shadow .22s, background .18s;
}
.pr-cta__btn:hover { transform: translateY(-3px); }

.pr-cta__btn--primary {
  background: var(--pr-yellow);
  color: var(--pr-ink);
  box-shadow: 0 4px 16px rgba(234,179,8,.25);
}
.pr-cta__btn--primary:hover {
  background: var(--pr-yellow-hover);
  color: var(--pr-white);
  box-shadow: 0 10px 28px rgba(234,179,8,.35);
}

.pr-cta__btn--secondary {
  background: rgba(255,255,255,.12);
  color: var(--pr-white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.pr-cta__btn--secondary:hover {
  background: rgba(255,255,255,.2);
}

/* ── 9. ANIMATIONS ────────────────────────────────────────── */
@keyframes prFloat {
  0%,100% { transform: translateY(-50%); }
  50%     { transform: translateY(calc(-50% - 12px)); }
}
@keyframes prDotPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.6); opacity: .5; }
}

/* ── 10. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .pr-promos-grid  { grid-template-columns: repeat(2, 1fr); }
  .pr-tiers__grid  { grid-template-columns: repeat(2, 1fr); }
  .pr-hero__badge  { display: none; }
}
@media (max-width: 860px) {
  .pr-hero { min-height: auto; padding-bottom: 56px; }
  .pr-promos-grid  { grid-template-columns: repeat(2, 1fr); }
  .pr-steps        { flex-direction: column; align-items: stretch; }
  .pr-step         { max-width: 100%; }
  .pr-step__connector { transform: rotate(90deg); padding: 8px 0; margin: 0 auto; }
}
@media (max-width: 540px) {
  .pr-promos-grid { grid-template-columns: 1fr; }
  .pr-tiers__grid { grid-template-columns: 1fr; }
  .pr-hero__ctas  { flex-direction: column; }
  .pr-cta__btns   { flex-direction: column; align-items: center; }
}