/* Sale 20% Off template (page-sale-20.php): code box, countdown, deal tiers, steps,
   reviews, final call to action and sticky code bar. Base sale styles live in style.css. */

/* ── Hero ──────────────────────────────────────────────────────────────── */
.vf-sale20 .vf-sale-hero {
  padding: 64px 40px 48px;
}

.vf-sale20 .vf-sale-hero h1 {
  font-size: 58px;
}

.vf-sale20 h1,
.vf-sale20 h2 {
  text-wrap: balance;
}

.vf-sale20 p {
  text-wrap: pretty;
}

.vf-sale-codebox {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0.5rem 0 1.75rem;
  padding: 14px 14px 14px 24px;
  border: 1px dashed rgba(201, 169, 110, 0.7);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.vf-sale-codebox-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.vf-sale20 .vf-sale-code {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  color: #fff;
}

.vf-sale-copy {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vf-charcoal, #1c1c1c);
  background: var(--vf-gold, #c9a96e);
  border: 0;
  border-radius: 4px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.vf-sale-copy:hover,
.vf-sale-copy:focus-visible {
  background: var(--vf-gold-light, #e2c99a);
}

.vf-sale-copy.is-copied {
  background: #fff;
}

.vf-sale-countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 1rem;
}

.vf-sale-countdown-unit {
  min-width: 72px;
  text-align: center;
  padding: 10px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.vf-sale-countdown-unit span {
  display: block;
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.vf-sale-countdown-unit small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.vf-sale-countdown.is-ended {
  display: none;
}

.vf-sale20 .vf-sale-note {
  margin-bottom: 1.75rem;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.vf-sale-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.vf-sale-trust li {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.vf-sale-trust li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--vf-gold, #c9a96e);
  font-weight: 700;
}

/* Hero photo: full-bleed background fading to dark behind the copy */
.vf-sale-hero--photo {
  position: relative;
  overflow: hidden;
  text-align: left;
}

.vf-sale20 .vf-sale-hero--photo {
  padding: 96px 40px 80px;
}

.vf-sale-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.vf-sale-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #1c1c1c 0%, rgba(28, 28, 28, 0.95) 34%, rgba(28, 28, 28, 0.55) 58%, rgba(28, 28, 28, 0.05) 85%);
}

.vf-sale-hero--photo .vf-sale-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  text-align: left;
}

.vf-sale-hero--photo .vf-sale-hero-copy {
  max-width: 560px;
}

.vf-sale-hero--photo .vf-sale-countdown,
.vf-sale-hero--photo .vf-sale-trust {
  justify-content: flex-start;
}

.vf-sale-hero--photo .vf-sale-countdown {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  /* Photo becomes a band above the copy, fading into the dark background. */
  .vf-sale20 .vf-sale-hero.vf-sale-hero--photo {
    padding-top: 0;
    text-align: center;
  }

  .vf-sale-hero--photo .vf-sale-hero-bg {
    position: relative;
    display: block;
    width: calc(100% + 40px);
    max-width: none;
    height: 240px;
    margin: 0 -20px -40px;
  }

  .vf-sale-hero--photo::before {
    bottom: auto;
    height: 240px;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0) 35%, #1c1c1c 100%);
  }

  .vf-sale-hero--photo .vf-sale-hero-inner {
    text-align: center;
  }

  .vf-sale-hero--photo .vf-sale-hero-copy {
    max-width: none;
  }

  .vf-sale-hero--photo .vf-sale-countdown,
  .vf-sale-hero--photo .vf-sale-trust {
    justify-content: center;
  }
}

/* ── Pick Your Deal ────────────────────────────────────────────────────── */
.vf-sale-deals {
  background: #fff;
  padding: 4.5rem 0 4rem;
}

.vf-sale-deals h2,
.vf-sale-reviews h2,
.vf-sale-final h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--vf-charcoal, #1c1c1c);
  margin: 0 0 0.75rem;
}

.vf-sale-deals-sub,
.vf-sale-packs-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--vf-text-secondary, #6b6b6b);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.vf-sale20 .vf-sale-packs h2 {
  margin-bottom: 0.75rem;
}

.vf-sale-deal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.vf-sale-deal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 28px 30px;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  background: #faf8f5;
}

.vf-sale-deal.is-featured {
  background: var(--vf-charcoal, #1c1c1c);
  border-color: var(--vf-gold, #c9a96e);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.vf-sale-deal-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--vf-gold, #c9a96e);
  color: var(--vf-charcoal, #1c1c1c);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.vf-sale-deal-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--vf-charcoal, #1c1c1c);
  margin: 0 0 0.5rem;
}

.vf-sale-deal-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--vf-text-secondary, #6b6b6b);
  margin: 0 0 1.25rem;
  min-height: 3em;
}

.vf-sale-deal-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 0 0 0.5rem;
  line-height: 1;
}

.vf-sale-deal-now {
  font-family: var(--font-serif);
  font-size: 52px;
  color: var(--vf-charcoal, #1c1c1c);
}

.vf-sale-deal-was {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--vf-gray-mid, #9a9a9a);
}

.vf-sale-deal-save {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2f7f81;
  margin: 0 0 0.25rem;
}

.vf-sale-deal-extra {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--vf-text-secondary, #6b6b6b);
  margin: 0;
}

.vf-sale-deal.is-featured .vf-sale-deal-title,
.vf-sale-deal.is-featured .vf-sale-deal-now {
  color: #fff;
}

.vf-sale-deal.is-featured .vf-sale-deal-desc,
.vf-sale-deal.is-featured .vf-sale-deal-was {
  color: rgba(255, 255, 255, 0.6);
}

.vf-sale-deal.is-featured .vf-sale-deal-save {
  color: var(--vf-gold, #c9a96e);
}

.vf-sale-deal-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding: 14px 20px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}

.vf-sale-deal-save + .vf-sale-deal-cta,
.vf-sale-deal-extra + .vf-sale-deal-cta,
.vf-sale-deal-price + .vf-sale-deal-cta {
  margin-top: 1.5rem;
}

.vf-sale-deal-cta.is-outline {
  border: 1px solid var(--vf-charcoal, #1c1c1c);
  color: var(--vf-charcoal, #1c1c1c);
  transition: background 0.2s, color 0.2s;
}

.vf-sale-deal-cta.is-outline:hover {
  background: var(--vf-charcoal, #1c1c1c);
  color: #fff;
}

/* How it works */
.vf-sale-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1040px;
  margin: 3rem auto 0;
  padding: 0;
  list-style: none;
  counter-reset: vf-step;
  text-align: left;
}

.vf-sale-steps li {
  position: relative;
  margin: 0;
  padding: 0 0 0 52px;
  counter-increment: vf-step;
}

.vf-sale-steps li::before {
  content: counter(vf-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--vf-gold, #c9a96e);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 34px;
  text-align: center;
  color: var(--vf-gold, #c9a96e);
}

.vf-sale-steps strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--vf-charcoal, #1c1c1c);
}

.vf-sale-steps span {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--vf-text-secondary, #6b6b6b);
}

/* ── Kit prices ────────────────────────────────────────────────────────── */
.vf-sale-kit-card-price .vf-sale-kit-now {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--vf-charcoal, #1c1c1c);
}

.vf-sale-kit-card-price .vf-sale-kit-was {
  font-size: 14px;
  color: var(--vf-gray-mid, #9a9a9a);
}

/* ── Reviews ───────────────────────────────────────────────────────────── */
.vf-sale-reviews {
  background: #fff;
  padding: 4.5rem 0;
}

.vf-sale-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.vf-sale-review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 28px;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  background: #faf8f5;
}

.vf-sale-review blockquote {
  flex: 1;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  color: var(--vf-charcoal, #1c1c1c);
}

.vf-sale-review figcaption {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vf-sale-review figcaption a {
  color: var(--vf-gold, #c9a96e);
  text-decoration: none;
}

/* ── Final call to action ──────────────────────────────────────────────── */
.vf-sale-final {
  background: var(--vf-black, #0f0f0f);
  border-bottom: 1px solid rgba(201, 169, 110, 0.25); /* Separates it from the dark footer. */
  padding: 4.5rem 0;
  text-align: center;
}

.vf-sale-final h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.vf-sale-final .vf-sale-countdown {
  margin-bottom: 1.75rem;
}

.vf-sale-final .vf-sale-codebox {
  display: flex;
  width: fit-content;
  margin: 0 auto 1.75rem;
}

/* ── Sticky code bar ───────────────────────────────────────────────────── */
.vf-sale-sticky {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(28, 28, 28, 0.97);
  border-top: 1px solid rgba(201, 169, 110, 0.5);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.vf-sale-sticky.is-visible {
  transform: none;
}

.vf-sale-sticky-code {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.vf-sale-sticky-code strong {
  color: #fff;
  letter-spacing: 0.08em;
}

.vf-sale-copy-sm {
  padding: 8px 12px;
}

.vf-sale-countdown-compact {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--vf-gold, #c9a96e);
  font-variant-numeric: tabular-nums;
}

.vf-sale-sticky .vf-btn-gold {
  padding: 9px 22px;
}

@media (prefers-reduced-motion: reduce) {
  .vf-sale-sticky {
    transition: none;
  }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .vf-sale-deal-grid,
  .vf-sale-review-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .vf-sale-deal.is-featured {
    order: -1; /* Lead with the best value on small screens. */
  }

  .vf-sale-deal-grid {
    gap: 2rem;
  }

  .vf-sale-deal-desc {
    min-height: 0;
  }

  .vf-sale-steps {
    grid-template-columns: 1fr;
    max-width: 460px;
    gap: 1.25rem;
  }

  .vf-sale-review-grid {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .vf-sale20 .vf-sale-hero {
    padding: 3rem 20px 2.5rem;
  }

  .vf-sale20 .vf-sale-hero h1 {
    font-size: 40px;
  }

  .vf-sale-codebox {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    padding: 14px 16px;
  }

  .vf-sale-codebox-label {
    width: 100%;
  }

  .vf-sale20 .vf-sale-code {
    font-size: 30px;
  }

  .vf-sale-countdown {
    gap: 6px;
  }

  .vf-sale-countdown-unit {
    min-width: 0;
    flex: 1;
    max-width: 76px;
  }

  .vf-sale-countdown-unit span {
    font-size: 28px;
  }

  .vf-sale-deals h2,
  .vf-sale-reviews h2,
  .vf-sale-final h2 {
    font-size: 30px;
  }

  .vf-sale-deal-now {
    font-size: 44px;
  }

  .vf-sale-sticky {
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .vf-sale-countdown-compact {
    display: none;
  }
}

@media (max-width: 480px) {
  .vf-sale20 .vf-sale-hero h1 {
    font-size: 34px;
  }

  .vf-sale-trust {
    flex-direction: column;
    align-items: center;
  }
}
