/* ══════════════════════════════════════════
   Promotions  (page-promotions.php + single-cleanon_promo.php)
   ══════════════════════════════════════════ */

/* ── Listing: hero ── */
.promotions-hero {
  padding: 0 var(--padding-x);
  margin-bottom: 48px;
  max-width: 829px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Listing: cards grid ── */
.promotions-grid {
  padding: 0 var(--padding-x);
  margin-bottom: 192px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Empty state ── */
.promotions-grid__empty {
  grid-column: 1 / -1;
  background: var(--bg_beige);
  border-radius: 32px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.promotions-grid__empty-icon {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.promotions-grid__empty-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: 100%;
}

/* ── Cards ── */
.promos-grid__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  color: white;
  background-color: var(--bg_beige);
  text-decoration: none;
}
.promos-grid__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .4s ease-out;
}
.promos-grid__card:hover .promos-grid__card-img {
  transform: scale(1.04);
}
.promos-grid__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 14, 0, 0) 0%, rgba(27, 14, 0, 0.70) 100%);
  z-index: 1;
}
.promos-grid__card-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.promos-grid__card-content .card-badge {
  position: static;
  width: fit-content;
}
.promos-grid__card-content h5 {
  color: white;
}

/* ── FAQ (home.css not loaded here) ── */
.faq {
  margin: 0 auto 192px;
  width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faq .badge {
  margin-bottom: 0;
}
.faq h2 {
  margin-top: 16px;
  margin-bottom: 48px;
}

/* ── Single: title block (full-width beige) ── */
.promo-single__title {
  width: 100%;
  background-color: var(--bg_beige);
  padding: 96px var(--padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.promo-single__date {
  color: var(--dark);
}

/* ── Single: article (centered 8-col) ── */
.promo-single {
  width: var(--cols8-width);
  margin: 32px auto 192px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.promo-single__hero {
  width: 100%;
  height: 556px;
  border-radius: 32px;
  overflow: hidden;
  flex-shrink: 0;
}
.promo-single__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Single: body content ── */
.promo-single__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: var(--black);
  font-size: 18px;
  line-height: 28px;
}
.promo-single__body > * {
  margin: 0;
}
.promo-single__body p {
  color: var(--black);
}
.promo-single__body h4 {
  font-size: 32px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: -0.2px;
}
.promo-single__body h3 {
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
}
.promo-single__body ul,
.promo-single__body ol {
  padding-left: 27px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.promo-single__body li {
  line-height: 28px;
}
/* Info callout box — add class "is-style-info" in editor */
.promo-single__body .is-style-info,
.promo-single__body blockquote {
  background-color: #eaf3fb;
  border-radius: 8px;
  padding: 16px 24px;
  border: none;
  color: var(--black);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  display: flex;
  gap: 12px;
  align-items: center;
}
.promo-single__body .is-style-info::before,
.promo-single__body blockquote::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  background-image: url('/wp-content/themes/cleanon/assets/icons/alert-circle-blue.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Single: sale CTA (full-width) ── */
.promo-single__sale {
  width: 100%;
  display: flex;
  align-items: stretch;
}
.promo-single__sale-info {
  flex: 0 0 51%;
  background-color: var(--bg_beige);
  padding: 96px var(--padding-x);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}
.promo-single__sale-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.promo-single__sale-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.promo-single__sale-gift {
  background: white;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}
.promo-single__sale-img {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.promo-single__sale-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  /* ── Listing: hero ── */
  .promotions-hero {
    padding: 0 16px;
    margin-bottom: 32px;
    max-width: 100%;
  }

  /* ── Listing: cards grid → 1 col ── */
  .promotions-grid {
    padding: 0 16px;
    margin-bottom: 64px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .promos-grid__card {
    border-radius: 16px;
  }
  .promos-grid__card-content {
    padding: 20px;
  }

  /* ── Empty state ── */
  .promotions-grid__empty {
    border-radius: 16px;
    padding: 32px 24px;
    gap: 16px;
  }
  .promotions-grid__empty-icon {
    width: 64px;
    height: 64px;
  }

  /* ── FAQ container ── */
  .faq {
    width: 100%;
    padding: 0 16px;
    margin-bottom: 64px;
  }

  /* ── Single promo: title ── */
  .promo-single__title {
    padding: 40px 16px;
  }

  /* ── Single promo: article ── */
  .promo-single {
    width: 100%;
    padding: 0 16px;
    margin: 24px auto 64px;
    gap: 24px;
  }
  .promo-single__hero {
    height: 220px;
    border-radius: 16px;
  }
  .promo-single__body {
    font-size: 16px;
  }

  /* ── Single promo: sale CTA ── */
  .promo-single__sale {
    flex-direction: column;
  }
  .promo-single__sale-info {
    flex: none;
    padding: 40px 16px;
  }
  .promo-single__sale-img {
    height: 295px;
  }
}
