/* =============================================
   REVIEWS PAGE — "What Mechanics Are Saying"
   Featured review on top, then a masonry wall of cards.
   Markup: src/reviews.njk
   ============================================= */

.rv-wall { margin-bottom: var(--space-3xl); }

.rv-wall__head { text-align: center; margin-bottom: var(--space-xl); }
.rv-wall__head .section-label { justify-content: center; }
.page-content .rv-wall__head h2 { margin-bottom: 18px; }

/* "5.0 from 9 reviews on Listings Junkie" pill */
.rv-source {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: var(--radius-full);
  background: var(--white); border: 1px solid rgba(13, 33, 35, 0.1);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-ui); font-size: 14px; color: var(--gray-700);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.rv-source strong { color: var(--dark-teal); }
.rv-source .rv-stars { font-size: 13px; gap: 2px; }
.rv-source > .fa-arrow-up-right-from-square { font-size: 11px; color: var(--orange-text); }
.rv-source:hover { border-color: rgba(246, 156, 82, 0.6); box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* bottom bar: where the reviews live + leave a review */
.rv-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  padding: 22px 28px;
  border: 1px dashed rgba(13, 33, 35, 0.18); border-radius: 18px;
}
.page-content .rv-foot p { margin: 0; max-width: 640px; font-size: 15.5px; line-height: 1.6; color: var(--gray-700); }
.rv-foot p i { color: var(--green); margin-right: 10px; }
.rv-foot .btn i { margin-left: 8px; font-size: 0.85em; }

/* ---------- shared bits ---------- */
.rv-stars { display: inline-flex; gap: 3px; color: var(--orange); font-size: 15px; }

.rv-wall blockquote { margin: 0; padding: 0; border: 0; }

.rv-person { display: flex; align-items: center; gap: 14px; }
.rv-person__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.rv-person__name { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--dark-teal); }
.rv-person__biz { font-size: 13.5px; color: var(--gray-600); }
.rv-person__city { font-size: 13px; color: var(--gray-500); display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.rv-person__city i { color: var(--orange-text); font-size: 11px; }

.rv-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-ui); font-weight: 800; font-size: 19px; color: var(--white);
  background: var(--dark-teal);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px rgba(13, 33, 35, 0.12);
}
.rv-avatar--1 { background: var(--blue); }
.rv-avatar--2 { background: var(--orange-text); }
.rv-avatar--3 { background: var(--dark-teal-light); }

/* ---------- featured review ---------- */
.rv-feature {
  position: relative; overflow: hidden;
  margin: 0 0 var(--space-lg);
  display: grid; grid-template-columns: 1.55fr 1fr; align-items: stretch;
  background:
    radial-gradient(circle at 100% 0%, rgba(246, 156, 82, 0.18), transparent 55%),
    var(--dark-teal);
  border: 1px solid rgba(246, 156, 82, 0.35);
  border-radius: 24px;
  box-shadow: var(--shadow-dark);
}
.rv-feature::before { /* giant quote mark watermark */
  content: "\201C";
  position: absolute; top: -40px; left: 28px;
  font-family: Georgia, serif; font-size: 260px; line-height: 1;
  color: rgba(246, 156, 82, 0.08);
  pointer-events: none;
}

.rv-feature__body {
  position: relative;
  padding: 56px 56px 48px;
  display: flex; flex-direction: column; gap: 22px;
}
.rv-feature__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-feature__meta time { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.rv-feature__tag {
  font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dark-teal); background: var(--orange);
  padding: 6px 14px; border-radius: var(--radius-full);
}
.page-content .rv-feature__quote p {
  margin: 0; max-width: none;
  font-size: clamp(19px, 2vw, 23px); line-height: 1.6; font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.rv-feature__quote strong { color: var(--orange); font-weight: 700; }
.page-content .rv-feature__quote p a:not(.btn) { color: var(--peach); border-bottom-color: rgba(248, 207, 169, 0.45); }
.page-content .rv-feature__quote p a:not(.btn):hover { color: var(--white); border-bottom-color: var(--white); }

.rv-feature .rv-person { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.rv-feature .rv-avatar { background: var(--orange); color: var(--dark-teal); box-shadow: 0 0 0 3px var(--dark-teal), 0 0 0 4px rgba(246, 156, 82, 0.5); }
.rv-feature .rv-person__name { color: var(--white); }
.rv-feature .rv-person__biz { color: rgba(255, 255, 255, 0.65); }
.rv-feature .rv-person__city { color: rgba(255, 255, 255, 0.55); }
.rv-feature .rv-person__city i { color: var(--orange); }

/* result panel */
.rv-feature__stat {
  position: relative;
  padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.rv-feature__kicker {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.rv-feature__headline {
  font-family: var(--font-display); font-size: clamp(38px, 4vw, 52px); line-height: 0.95; letter-spacing: 1px;
  color: var(--white);
}
.rv-feature__headline span { color: var(--orange); }

.rv-bar { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px; }
.rv-bar__label { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.rv-bar__track { height: 12px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rv-bar__fill {
  display: block; height: 100%; width: var(--w); border-radius: inherit;
  background: rgba(255, 255, 255, 0.35);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease-out) 0.25s;
}
.rv-bar--after .rv-bar__fill { /* solid to 18, lighter to 22 = the range */
  background: linear-gradient(90deg, var(--orange) 0 82%, rgba(246, 156, 82, 0.45) 82% 100%);
  transition-delay: 0.45s;
}
.rv-feature.is-visible .rv-bar__fill { transform: scaleX(1); }
.rv-bar__num { font-family: var(--font-display); font-size: 26px; letter-spacing: 1px; color: var(--white); min-width: 58px; text-align: right; }
.rv-bar--after .rv-bar__num { color: var(--orange); }
.rv-feature__note { font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ---------- card wall (masonry) ---------- */
.rv-grid { columns: 3 300px; column-gap: var(--space-lg); }

.rv-card {
  position: relative;
  break-inside: avoid;
  margin: 0 0 var(--space-lg);
  padding: 32px 30px 28px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white);
  border: 1px solid rgba(13, 33, 35, 0.08);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(13, 33, 35, 0.04), 0 10px 30px rgba(13, 33, 35, 0.06);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out), opacity 0.6s var(--ease-out);
}
.rv-card::before { /* orange top edge that grows in on hover */
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--orange);
  transform: scaleX(0); transition: transform 0.35s var(--ease-out);
}
.rv-card.is-visible:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 156, 82, 0.4);
  box-shadow: 0 2px 4px rgba(13, 33, 35, 0.04), 0 22px 48px rgba(13, 33, 35, 0.12);
}
.rv-card:hover::before { transform: scaleX(1); }

.rv-card__top { display: flex; align-items: center; justify-content: space-between; }
.rv-card__date { font-family: var(--font-ui); font-size: 12.5px; color: var(--gray-500); }

.page-content .rv-card__title {
  margin: 4px 0 0;
  font-family: var(--font-display); font-size: 27px; line-height: 1.05; letter-spacing: 1px;
  color: var(--dark-teal);
}
.page-content .rv-card__quote p {
  margin: 0; max-width: none;
  font-size: 15.5px; line-height: 1.75;
  color: var(--gray-700);
}
.rv-card__quote strong { color: var(--dark-teal); }

.rv-card .rv-person { margin-top: 6px; padding-top: 18px; border-top: 1px dashed rgba(13, 33, 35, 0.12); }

/* closing tile — fills the last column */
.rv-cta {
  break-inside: avoid;
  margin: 0 0 var(--space-lg);
  padding: 34px 30px;
  border-radius: 20px;
  background: var(--peach-light);
  border: 1px solid rgba(212, 121, 42, 0.25);
  text-align: left;
}
.rv-cta__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--dark-teal); color: var(--orange); font-size: 18px;
  margin-bottom: 18px;
}
.page-content .rv-cta__title {
  margin: 0 0 10px;
  font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: 1px;
  color: var(--dark-teal);
}
.page-content .rv-cta p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.65; color: var(--gray-700); max-width: none; }
.rv-cta .btn i { margin-left: 8px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .rv-feature { grid-template-columns: 1fr; }
  .rv-feature__body { padding: 44px 32px 36px; }
  .rv-feature__stat { padding: 36px 32px 40px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
}
@media (max-width: 600px) {
  .rv-feature { border-radius: 20px; }
  .rv-feature::before { font-size: 180px; top: -28px; left: 14px; }
  .rv-feature__body { padding: 36px 22px 30px; gap: 18px; }
  .rv-feature__stat { padding: 30px 22px 34px; }
  .rv-bar { grid-template-columns: 48px 1fr auto; gap: 10px; }
  .rv-card { padding: 26px 22px 22px; border-radius: 18px; }
  .page-content .rv-card__title { font-size: 25px; }
  .rv-source { font-size: 13px; padding: 8px 16px; gap: 8px; }
  .rv-source .rv-stars { display: none; }
  .rv-foot { padding: 20px; }
  .rv-foot .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-bar__fill { transform: none; transition: none; }
  .rv-card, .rv-card::before { transition: none; }
  .rv-card.is-visible:hover { transform: none; }
}
