/* ==========================================================================
   [wayvo-home-reviews] — see shortcodes/wayvoHomeReviews.php for the three
   designs and where the reviews came from; js/wayvo-home-reviews.js moves it.

   Same unit as the other new sections: --wvrv-u is rendered px per laptop px
   (100cqw / 1440, stopping at 1.333). The cards have their own unit,
   --wvrv-cu: u, never below 0.711 — the mobile frame's cards are exactly the
   laptop cards at 0.711 — so they never shrink past that on a narrow laptop.

   The two section gaps go 80 -> 160 from 1440 to 1920 (the monitor frame
   doubles them), as in [wayvo-business-clients-small].

   Vendor fights: h2 / p / ul / button rules at (0,2,1), over Elementor's and
   the kit's (0,1,1). Buttons especially: the kit styles every <button>.
   ========================================================================== */

.wv-rv-wrap {
	container-type: inline-size;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wv-rv {
	/* --wv-cw, not 100cqw: the row stays full-bleed but the type, cards and
	   gutters stop growing at the content width (tokens.css, 2026-10-21). */
	--wvrv-u: clamp(0.5px, calc(var(--wv-cw, 100cqw) / 1440), 1.3334px);
	--wvrv-cu: max(0.7111px, var(--wvrv-u));
	--wvrv-pad: min(80px, max(calc(40 * var(--wvrv-u)), calc(var(--wv-cw, 100cqw) / 12 - 80px)));
	--wvrv-gap: min(160px, max(calc(80 * var(--wvrv-u)), calc(var(--wv-cw, 100cqw) / 6 - 160px)));
	--wvrv-card-gap: calc(20 * var(--wvrv-cu));

	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wvrv-gap);
	padding: calc(180 * var(--wvrv-u)) 0;
	overflow: hidden;
	background-color: var(--wv-white, #ffffff);
	color: var(--wv-ink, #101011);
	font-family: var(--wv-btn-font, "Geist", sans-serif);
}

/* ── Heading ───────────────────────────────────────────────────────────── */
.wv-rv__head {
	display: flex;
	flex-direction: column;
	gap: calc(20 * var(--wvrv-u));
	box-sizing: border-box;
	width: 100%;
	max-width: calc(827 * var(--wvrv-u) + 2 * var(--wvrv-pad));
	padding: 0 var(--wvrv-pad);
	text-align: center;
}

.wv-rv h2.wv-rv__title {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: max(40px, calc(56 * var(--wvrv-u)));
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
	text-align: center;
	text-transform: none;
}

.wv-rv p.wv-rv__text {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: max(18px, calc(24 * var(--wvrv-u)));
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.02em;
	text-align: center;
}

/* ── The row ───────────────────────────────────────────────────────────────
   Full screen width. Before the JS runs (or without it) the row scrolls
   sideways; the JS turns that off and positions the track itself. */
.wv-rv__viewport {
	width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

.wv-rv__viewport::-webkit-scrollbar {
	display: none;
}

.wv-rv.is-ready .wv-rv__viewport {
	overflow: hidden;
	/* Vertical page scroll stays native; sideways drags are the JS swipe. */
	touch-action: pan-y;
}

.wv-rv ul.wv-rv__track {
	display: flex;
	align-items: stretch;
	gap: var(--wvrv-card-gap);
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
	/* Flow easing, as the hero decks; the JS switches it off for the
	   invisible jump back to the middle copy. */
	transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
	will-change: transform;
}

.wv-rv ul.wv-rv__track.is-jumping {
	transition: none;
}

/* After a finger drag: the row is already moving, so it eases OUT to the
   card, quicker than the arrows' 0.7s in-out, which would stall first. */
.wv-rv ul.wv-rv__track.is-settling {
	transition-duration: 0.4s;
	transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── A card ────────────────────────────────────────────────────────────────
   Card TEXT has floors (13.5 / 11.5) above the mobile frame's 11.38 / 9.8 —
   Paul found it too small at narrow widths (2026-10-17). The card's box
   still follows --wvrv-cu; longer reviews just wrap to more lines. */
.wv-rv__card {
	flex: none;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	gap: calc(40 * var(--wvrv-cu));
	box-sizing: border-box;
	width: calc(440 * var(--wvrv-cu));
	min-height: calc(360 * var(--wvrv-cu));
	margin: 0;
	padding: calc(40 * var(--wvrv-cu));
	border-radius: calc(8 * var(--wvrv-cu));
	background-color: var(--wv-grey-200, #f5f5f5);
}

.wv-rv__card::before,
.wv-rv__card::marker {
	content: none;
}

.wv-rv__stars {
	display: flex;
	gap: calc(2 * var(--wvrv-cu));
	color: #fbb91d;
}

.wv-rv__star {
	display: block;
	width: calc(20 * var(--wvrv-cu));
	height: calc(20 * var(--wvrv-cu));
}

.wv-rv__body {
	display: flex;
	flex-direction: column;
	gap: calc(16 * var(--wvrv-cu));
	margin: 0;
	padding: 0;
}

/* Headline over the quote — the reviewers' own, from the old review images.
   Same size as the quote, weight 500 like the name. */
.wv-rv__words {
	display: flex;
	flex-direction: column;
	gap: calc(8 * var(--wvrv-cu));
}

.wv-rv p.wv-rv__headline {
	max-width: 21.875em;
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: max(13.5px, calc(16 * var(--wvrv-cu)));
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.wv-rv__quote {
	margin: 0;
	padding: 0;
	border: 0;
	quotes: none;
}

.wv-rv__quote::before,
.wv-rv__quote::after {
	content: none;
}

/* 350 wide at 16px in the design: 21.875em. */
.wv-rv .wv-rv__quote p {
	max-width: 21.875em;
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: max(13.5px, calc(16 * var(--wvrv-cu)));
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.wv-rv__by {
	display: flex;
	flex-direction: column;
	font-size: max(13.5px, calc(16 * var(--wvrv-cu)));
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.wv-rv__name {
	font-weight: 500;
}

.wv-rv__role {
	color: var(--wv-grey-500, #8d8b8b);
	font-weight: 400;
}

.wv-rv__pills {
	display: flex;
	flex-wrap: wrap;
	gap: calc(8 * var(--wvrv-cu));
}

.wv-rv__pill {
	padding: calc(2 * var(--wvrv-cu)) calc(8 * var(--wvrv-cu));
	border-radius: 9999px;
	font-size: max(11.5px, calc(13.79 * var(--wvrv-cu)));
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.02em;
	font-feature-settings: "tnum" on, "lnum" on;
	white-space: nowrap;
}

.wv-rv__pill--business { background-color: var(--wv-ink, #101011); color: var(--wv-white, #ffffff); }
.wv-rv__pill--personal { background-color: var(--wv-white, #ffffff); color: var(--wv-ink, #101011); }
.wv-rv__pill--gifter   { background-color: #56c8ce; color: var(--wv-ink, #101011); }
.wv-rv__pill--receiver { background-color: #ff8eff; color: var(--wv-ink, #101011); }

/* ── Arrows ────────────────────────────────────────────────────────────── */
.wv-rv__nav {
	display: flex;
	gap: calc(16 * var(--wvrv-u));
}

.wv-rv button.wv-rv__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: max(32.71px, calc(46 * var(--wvrv-u)));
	height: max(32.71px, calc(46 * var(--wvrv-u)));
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background-color: var(--wv-grey-200, #f5f5f5);
	box-shadow: none;
	color: var(--wv-ink, #101011);
	font-family: "Inter", var(--wv-btn-font, "Geist"), sans-serif;
	font-size: max(11.38px, calc(16 * var(--wvrv-u)));
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wv-rv button.wv-rv__arrow:hover,
.wv-rv button.wv-rv__arrow:focus {
	background-color: var(--wv-grey-300, #e5e5e5);
	color: var(--wv-ink, #101011);
}

.wv-rv button.wv-rv__arrow:focus-visible {
	outline: 2px solid var(--wv-ink, #101011);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.wv-rv ul.wv-rv__track {
		transition: none;
	}
}

/* ── Phones ──────────────────────────────────────────────────────────────────
   From the mobile frame: one card centred, neighbours peeking. */
@media (max-width: 767px) {

	.wv-rv {
		--wvrv-cu: 0.7111px;
		--wvrv-card-gap: 14.22px;
		gap: 56.89px;
		padding: 128px 0;
	}

	.wv-rv__head {
		gap: 14.22px;
		max-width: none;
		padding: 0 28.44px;
	}

	.wv-rv h2.wv-rv__title {
		font-size: 40px;
		line-height: 1.1;
		letter-spacing: -0.02em;
	}

	.wv-rv p.wv-rv__text {
		font-size: 20px;
		letter-spacing: -0.01em;
	}

	.wv-rv__nav {
		gap: 11.38px;
	}

	.wv-rv button.wv-rv__arrow {
		width: 32.71px;
		height: 32.71px;
		font-size: 11.38px;
	}
}

/* ── Phones: no copy under 15px (Paul, 2026-10-21) ───────────────────────────
   The same size as the phone buttons (tokens.css). max() so anything already
   bigger keeps its size; same selectors as above, later, so they win. */
@media (max-width: 767px) {

	.wv-rv p.wv-rv__headline,
	.wv-rv .wv-rv__quote p,
	.wv-rv__by,
	.wv-rv__pill {
		font-size: 15px;
	}
}
