/* ============================================================
   REVIEWS — retro testimonials
   Atomic starbursts · overlapping avatars + quote badges
   · checker header rule · sage footer bar w/ "Thanks!" sign
   ============================================================ */
.rv {
  position: relative; background: var(--pd-cream);
  padding: var(--sp-section) clamp(16px, 4vw, 56px); overflow: hidden;
}
.rv__field { position: absolute; z-index: 0; }
.rv__inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }

/* thick checker peeking in from the section edges */
.rv__edge {
  position: absolute; top: 46%; transform: translateY(-50%);
  width: clamp(80px, 9vw, 132px); height: 48px; opacity: .5; z-index: 0;
  background-image:
    linear-gradient(45deg, var(--pd-teal) 25%, transparent 25% 75%, var(--pd-teal) 75%),
    linear-gradient(45deg, var(--pd-teal) 25%, transparent 25% 75%, var(--pd-teal) 75%);
  background-size: 24px 24px; background-position: 0 0, 12px 12px;
}
.rv__edge--l { left: 0; }
.rv__edge--r { right: 0; }

/* ---- header -------------------------------------------------- */
.rv__head { text-align: center; }
.rv__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-script); color: var(--pd-red);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1;
}
.rv__title {
  font-family: var(--font-display); font-weight: 800; color: var(--pd-teal-dark);
  font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.02; letter-spacing: -.015em;
  margin: .12em 0 .26em;
}
.rv__sub {
  font-family: var(--font-body); color: var(--pd-ink-60);
  font-size: clamp(.95rem, 1.3vw, 1.1rem); margin: 0 auto; max-width: 60ch;
}
.rv__rule { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 520px; margin: 18px auto 0; }
.rv__rule .ck {
  width: 56px; height: 13px; flex: none; opacity: .8;
  background-image:
    linear-gradient(45deg, var(--pd-teal) 25%, transparent 25% 75%, var(--pd-teal) 75%),
    linear-gradient(45deg, var(--pd-teal) 25%, transparent 25% 75%, var(--pd-teal) 75%);
  background-size: 13px 13px; background-position: 0 0, 6.5px 6.5px;
}
.rv__rule .ln { flex: 1; max-width: 88px; height: 2px; background: var(--pd-teal); }
.rv__rule .star { font-size: 15px; flex: none; }

/* ---- cards --------------------------------------------------- */
.rv__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  margin-top: clamp(74px, 8vw, 100px);
}
.rvcard {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fdfaf0;
  border: 2px solid var(--pd-teal); border-radius: 18px;
  padding: clamp(66px, 7vw, 86px) clamp(22px, 2.2vw, 32px) clamp(24px, 2.4vw, 32px);
  box-shadow: 0 14px 30px rgba(44, 44, 44, .12),
    inset 0 0 0 3px #fdfaf0, inset 0 0 0 4.5px rgba(23, 56, 59, .12);
}
.rvcard__avatar {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: clamp(116px, 12vw, 144px); height: clamp(116px, 12vw, 144px);
}
.rvcircle {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: var(--pd-teal-soft);
  box-shadow: 0 0 0 4px #fdfaf0, 0 0 0 7px var(--pd-teal), var(--pd-shadow-sm);
}
.rvcircle image-slot { display: block; width: 100%; height: 100%; }
.rvcard__qbadge {
  position: absolute; top: 4px; left: -12px; z-index: 3;
  width: clamp(42px, 4.6vw, 52px); height: clamp(42px, 4.6vw, 52px);
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 4px 9px rgba(44, 44, 44, .22);
}
.rvcard__qbadge--red { background: var(--pd-red); }
.rvcard__qbadge--teal { background: var(--pd-teal); }
.rvcard__qbadge span {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(2rem, 2.4vw, 2.5rem); line-height: 1; transform: translateY(.16em);
}
.rvcard__text {
  font-family: var(--font-body); color: var(--pd-teal-dark);
  font-size: clamp(.98rem, 1.3vw, 1.08rem); line-height: 1.55; margin: 2px 0 0;
  max-width: 30ch; min-height: 6.2em; display: flex; align-items: center;
}
.rvcard__div { width: 64%; max-width: 220px; height: 2px; background: var(--pd-teal); opacity: .5; margin: clamp(14px, 1.8vw, 20px) 0 clamp(13px, 1.5vw, 17px); }
.rvcard__name { font-family: var(--font-display); font-weight: 800; color: var(--pd-teal-dark); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.1; }
.rvcard__src { font-family: var(--font-label); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; margin-top: 5px; }
.rvcard__src--red { color: var(--pd-red); }
.rvcard__src--gold { color: var(--pd-gold); }
.rvcard__stars { color: var(--pd-teal); font-size: 1.05rem; letter-spacing: 3px; margin-top: clamp(14px, 1.8vw, 18px); }

/* ---- footer bar ---------------------------------------------- */
.rv__foot {
  position: relative; z-index: 1; margin-top: clamp(64px, 6vw, 84px);
  display: flex; align-items: center; gap: clamp(18px, 3vw, 42px);
  background: #a3c5bc; border-radius: 16px; overflow: visible;
  padding: clamp(8px, 1.2vw, 14px) clamp(22px, 3vw, 44px);
  padding-left: clamp(200px, 20vw, 270px);
}
.rv__foot .rv__field { z-index: 0; opacity: .5; }
.rv__sign { position: absolute; left: clamp(14px, 2.4vw, 38px); bottom: -4px; width: clamp(150px, 15.5vw, 208px); z-index: 3; }
.rv__sign svg, .rv__sign img { width: 100%; height: auto; display: block; }
.rv__footcopy { flex: 1; min-width: 0; position: relative; z-index: 1; text-align: center; }
.rv__footcopy h3 { font-family: var(--font-display); font-weight: 800; color: #fdfaf0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; margin: 0 0 7px; }
.rv__footcopy p { font-family: var(--font-body); color: #fdfaf0; opacity: .9; font-size: clamp(.92rem, 1.3vw, 1.05rem); line-height: 1.4; margin: 0 auto; max-width: 42ch; }
.rv__leave {
  flex: none; position: relative; z-index: 1; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--pd-red); color: #fff; border: none; border-radius: var(--r-sm);
  font-family: var(--font-label); font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(.8rem, 1vw, .92rem); padding: 16px 28px;
  box-shadow: 0 6px 16px rgba(44, 44, 44, .2); transition: transform .12s ease;
}
.rv__leave::before {   /* spinning laser comet */
  content: ""; position: absolute; inset: -160%; z-index: -2;
  background: conic-gradient(from 0deg, transparent 0 68%, #fff 84%, transparent 100%);
  animation: pd-laser-spin 3s linear infinite;
}
.rv__leave::after {    /* inner fill */
  content: ""; position: absolute; inset: 3px; z-index: -1; border-radius: 4px; background: var(--pd-red);
}
.rv__leave:hover::after { background: var(--pd-red-dark); }
.rv__leave:active { transform: scale(.97); }
.rv__leave .star { font-size: 14px; color: #fff; }
@media (prefers-reduced-motion: reduce) { .rv__leave::before { animation: none; } }

/* ---- responsive ---------------------------------------------- */
@media (max-width: 820px) {
  .rv__grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; gap: clamp(78px, 14vw, 100px); }
  .rvcard__text { min-height: 0; }
  .rv__edge { display: none; }
}
@media (max-width: 720px) {
  .rv__foot { flex-direction: column; text-align: center; padding-left: clamp(22px, 3vw, 44px); padding-top: 0; }
  .rv__footcopy { text-align: center; }
  .rv__footcopy p { margin: 0 auto; }
  .rv__sign { position: static; width: clamp(140px, 42vw, 184px); margin: -52px auto 6px; }
}

/* ---- mobile: single-card carousel ---------------------------- */
@media (max-width: 900px) {
  .rv__grid {
    display: block;
    position: relative;
    max-width: 360px;
    margin: clamp(74px, 8vw, 100px) auto 0;
    min-height: 320px;
  }
  .rvcard {
    display: none;
    width: 100%;
  }
  .rvcard.rv-active {
    display: flex;
    animation: rv-fade-in .4s ease;
  }
  @keyframes rv-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
  /* dot indicators */
  .rv-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
  }
  .rv-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--pd-teal-soft);
    border: 2px solid var(--pd-teal);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
  }
  .rv-dot.is-active {
    background: var(--pd-red);
    border-color: var(--pd-red);
    transform: scale(1.25);
  }
}
