/* ====== Queen Cosmetics — Rewards page ======
   Flexible, block-based rewards/loyalty page: a pink loyalty banner, a dark
   hero with overlay, rich-text sections, and a tiers/columns grid. Recreates
   the live "Crown Club" page natively (live uses the GemPages app). */

.rewards {
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-text));
}

/* ---- Loyalty banner (pink band, crown icon + uppercase text on each side) ---- */
.rewards-banner {
  background-color: var(--banner-bg, #e592bc);
  color: var(--banner-color, #fff);
}
.rewards-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 64px;
  padding: 20px 16px;
  text-align: center;
}
/* Live: ~34px Montserrat, uppercase, bold, white. */
.rewards-banner__text {
  font-family: var(--sort-title-font);
  font-size: clamp(18px, 3vw, 34px);
  /* Live banner is weight 700 in a narrower system font; Montserrat 700 reads
     much heavier, so 600 better matches the live visual weight. */
  font-weight: 600;
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: 1.1;
}
.rewards-banner__icon {
  display: inline-flex;
  flex: 0 0 auto;
}
.rewards-banner__icon img,
.rewards-banner__icon-svg {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  color: inherit;
}
@media (max-width: 749px) {
  .rewards-banner__icon img,
  .rewards-banner__icon-svg { width: 40px; height: 40px; }
  .rewards-banner__inner { gap: 14px; }
}

/* ---- Hero (background image + overlay + centered content + button) ---- */
.rewards-hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--hero-height, 520px);
  overflow: hidden;
  color: var(--hero-text, #fff);
  /* Dark brand fallback so the hero (white text) stays legible even before a
     background image is assigned in the editor — also matches the live look. */
  background-color: #1b0c24;
}
@media (max-width: 749px) {
  .rewards-hero {
    min-height: var(--hero-height-mobile, 420px);
  }
}
.rewards-hero__media,
.rewards-hero__overlay {
  position: absolute;
  inset: 0;
}
.rewards-hero__image,
.rewards-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Parallax — overscan the image so the gentle vertical shift never reveals an
   edge, then translate it by the JS-driven --hero-parallax offset. */
.rewards-hero--parallax .rewards-hero__image,
.rewards-hero--parallax .rewards-hero__media img {
  transform: scale(1.12) translateY(var(--hero-parallax, 0));
  will-change: transform;
}
.rewards-hero__overlay {
  background-color: rgba(0, 0, 0, var(--hero-overlay, 0.45));
}
.rewards-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding-block: 56px;
}
.rewards-hero--center .rewards-hero__content {
  align-items: center;
  text-align: center;
}
.rewards-hero--left .rewards-hero__content {
  align-items: flex-start;
  text-align: left;
  max-width: 720px;
}
/* Eyebrow — live "QUEEN'S" is a large 50px Montserrat 700, not a small label. */
.rewards-hero__eyebrow {
  margin: 0;
  font-family: var(--sort-title-font);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1;
  text-transform: uppercase;
}
.rewards-hero__heading {
  margin: 0;
  font-family: var(--sort-title-font);
  font-size: clamp(48px, 7vw, 94px);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 0.95;
  text-transform: none;
}
.rewards-hero__text {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;
}
.rewards-hero__text p { margin-block: 0 0.75em; }
.rewards-hero__text > :last-child { margin-block-end: 0; }
.rewards-hero__button {
  margin-block-start: 8px;
}

/* ---- Rich text ---- */
.rewards-rich-text {
  padding-block: 64px;
}
@media (max-width: 749px) {
  .rewards-rich-text { padding-block: 44px; }
}
.rewards-rich-text__inner {
  max-width: 760px;
  margin-inline: auto;
}
.rewards-rich-text--center .rewards-rich-text__inner { text-align: center; }
.rewards-rich-text--left .rewards-rich-text__inner { text-align: left; margin-inline: 0; }
/* Section headings — match live: Montserrat, ~34px, weight 400, normal
   letter-spacing, uppercase. */
.rewards-rich-text__heading {
  margin-block: 0 16px;
  font-family: var(--sort-title-font);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: 1.3;
}
.rewards-rich-text__body {
  font-size: 15px;
  line-height: 1.7;
}
.rewards-rich-text__body p { margin-block: 0 1em; }
.rewards-rich-text__body > :last-child { margin-block-end: 0; }

/* ---- Tiers / columns ---- */
.rewards-tiers {
  padding-block: 64px;
}
@media (max-width: 749px) {
  .rewards-tiers { padding-block: 44px; }
}
/* Filled background variant (e.g. the pink "Crown Coins" section) */
.rewards-tiers--fill {
  background-color: var(--tiers-bg, #fbeffb);
}
.rewards-tiers__heading {
  margin-block: 0 12px;
  text-align: center;
  font-family: var(--sort-title-font);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: 1.3;
}
.rewards-tiers__subheading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: rgb(var(--color-text));
}
.rewards-tiers__subheading p { margin-block: 0 0.5em; }
.rewards-tiers__subheading > :last-child { margin-block-end: 0; }
/* when there's no subheading, restore the heading's bottom gap */
.rewards-tiers__heading:last-child { margin-block-end: 36px; }
.rewards-tiers__grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 3), 1fr);
  gap: 24px;
}
@media (max-width: 959px) {
  .rewards-tiers__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 749px) {
  .rewards-tiers__grid { grid-template-columns: 1fr; gap: 20px; }
}
.rewards-tiers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
/* Bordered card variant (e.g. the earn cards) */
.rewards-tiers--card-bordered .rewards-tiers__item {
  padding: 28px 18px;
  border: 1px solid rgba(var(--color-text), 0.18);
  background-color: rgb(var(--color-background));
}
.rewards-tiers__icon img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
/* Bundled SVG icons — sized + brand pink, matching the live circular icons.
   All reward icons are the consistent Phosphor set (currentColor fill). */
.rewards-tiers__icon--svg {
  color: #dd9fd7;
}
.rewards-tiers__icon--svg .rewards-tiers__icon-svg,
.rewards-tiers__icon--svg svg {
  display: block;
  width: 52px;
  height: 52px;
}
/* Card titles — live uses larger, sentence-case Montserrat, weight 400,
   normal letter-spacing (Join 30px, earn cards 24px). */
.rewards-tiers__title {
  margin: 0;
  font-family: var(--sort-title-font);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.25;
}
.rewards-tiers__text {
  font-size: 14px;
  line-height: 1.6;
  color: rgb(var(--color-light-text, var(--color-text)));
}
.rewards-tiers__text p { margin-block: 0 0.5em; }
.rewards-tiers__text > :last-child { margin-block-end: 0; }
.rewards-tiers__caption {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--color-light-text, var(--color-text)));
}
/* Optional CTA below the cards (footnote heading + button + secondary link) */
.rewards-tiers__footnote {
  margin-block-start: 40px;
  text-align: center;
  font-family: var(--sort-title-font);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.3;
}
.rewards-tiers__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-block-start: 28px;
}
.rewards-tiers__link {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--color-text));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rewards-tiers__link:hover { opacity: 0.7; }

/* ---- Trust bar ----
   Flex container that vertically centres the inner content within a fixed
   min-height, so the dark background shows equal space above and below the
   items regardless of icon/label glyph metrics. */
.rewards-trust {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 150px;
  background-color: var(--trust-bg, #1c1b1b);
  color: var(--trust-color, #fff);
  padding-block: 24px;
}
.rewards-trust__inner {
  width: 100%;
}
.rewards-trust__title {
  line-height: 1.2;
}
.rewards-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 24px;
}
@media (max-width: 749px) {
  .rewards-trust__grid { grid-template-columns: 1fr; gap: 28px; }
}
.rewards-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: center;
}
/* Trust items fade in WITHOUT the vertical shift — the translateY(24px) of the
   default reveal would otherwise drop them into the bottom padding while they
   animate, making the bar's bottom padding look smaller than the top. */
.rewards-trust__item.qc-reveal {
  transform: none;
}
.rewards-trust__item.qc-reveal--in {
  transform: none;
}
/* fixed icon box so every column aligns regardless of icon glyph height */
.rewards-trust__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}
.rewards-trust__icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
/* Bundled SVG icons inherit the trust bar text color (white on the dark bar). */
.rewards-trust__icon--svg {
  color: var(--trust-color, #fff);
}
.rewards-trust__icon--svg .rewards-tiers__icon-svg,
.rewards-trust__icon--svg svg {
  display: block;
  width: 38px;
  height: 38px;
}
.rewards-trust__title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
