/* ============================================================
   Home page — client reviews / social proof section
   All selectors namespaced with .rv- to avoid collisions with
   Bootstrap utilities and the existing home/engine stylesheets.
   ============================================================ */

.rv-section {
	position: relative;
	overflow: hidden;
	background: #faf7f2;
}

/* Soft brand glow, purely decorative. */
.rv-section::before {
	content: "";
	position: absolute;
	top: -180px;
	right: -140px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle at center, rgba(235, 34, 39, .10) 0%, rgba(235, 34, 39, 0) 70%);
	pointer-events: none;
	z-index: 0;
}

.rv-section > .container {
	position: relative;
	z-index: 1;
}

/* ---------- Heading ---------- */
.rv-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #eb2227;
	margin-bottom: .75rem;
}

.rv-eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	background: #eb2227;
	display: inline-block;
}

.rv-lead {
	color: #5c5c66;
	max-width: 620px;
}

/* ---------- Video cards ---------- */
.rv-video-card {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: #0d0d10;
	box-shadow: 0 10px 30px rgba(10, 10, 15, .12);
	transition: transform .35s ease, box-shadow .35s ease;
}

.rv-video-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 44px rgba(10, 10, 15, .22);
}

/* The whole poster is the button, so keyboard users get it for free. */
.rv-video-btn {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	position: relative;
	aspect-ratio: 16 / 9;
}

.rv-video-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease, opacity .35s ease;
}

.rv-video-card:hover .rv-video-btn img {
	transform: scale(1.05);
	opacity: .82;
}

.rv-video-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(8, 8, 12, .88) 0%, rgba(8, 8, 12, .35) 38%, rgba(8, 8, 12, 0) 68%);
	pointer-events: none;
}

/* Play button */
.rv-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 66px;
	height: 66px;
	border-radius: 50%;
	background: #eb2227;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 22px rgba(235, 34, 39, .5);
	transition: transform .3s ease, background .3s ease;
	z-index: 2;
}

.rv-play::before {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .45);
	opacity: 0;
	transition: opacity .3s ease, transform .3s ease;
}

.rv-video-card:hover .rv-play,
.rv-video-btn:focus-visible .rv-play {
	transform: translate(-50%, -50%) scale(1.12);
	background: #ff2d33;
}

.rv-video-card:hover .rv-play::before,
.rv-video-btn:focus-visible .rv-play::before {
	opacity: 1;
	transform: scale(1.08);
}

/* Triangle */
.rv-play span {
	display: block;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 18px solid #fff;
}

.rv-video-btn:focus-visible {
	outline: 3px solid #eb2227;
	outline-offset: 3px;
}

/* Caption over the poster */
.rv-video-meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25rem 1.35rem;
	text-align: left;
	z-index: 2;
	pointer-events: none;
}

/* These are spans — a <button> may only contain phrasing content — so they
   need explicit block behaviour. */
.rv-video-name {
	display: block;
	color: #fff;
	font-weight: 700;
	font-size: 1.05rem;
	margin: 0 0 .15rem;
	line-height: 1.3;
}

.rv-video-role {
	display: block;
	color: rgba(255, 255, 255, .78);
	font-size: .82rem;
	margin: 0;
	line-height: 1.4;
}

.rv-tag {
	display: inline-block;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(235, 34, 39, .92);
	border-radius: 4px;
	padding: .22rem .5rem;
	margin-bottom: .6rem;
}

/* The iframe that replaces the poster after a click. */
.rv-video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

.rv-video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Text testimonial cards ---------- */
.rv-quote-card {
	position: relative;
	height: 100%;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	padding: 1.75rem 1.6rem 1.5rem;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.rv-quote-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #eb2227, #ff6163);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s ease;
}

.rv-quote-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(10, 10, 15, .10);
	border-color: #e0e0e0;
}

.rv-quote-card:hover::before {
	transform: scaleX(1);
}

/* Service categories the engagement covered. */
.rv-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin-bottom: .9rem;
}

.rv-chip {
	display: inline-block;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: #8f1114;
	background: rgba(235, 34, 39, .07);
	border: 1px solid rgba(235, 34, 39, .16);
	border-radius: 999px;
	padding: .2rem .6rem;
	line-height: 1.5;
}

.rv-quote-headline {
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.5;
	color: #17171c;
	margin: 0 0 .7rem;
}

/* Decorative quote glyph */
.rv-quote-mark {
	position: absolute;
	top: .55rem;
	right: 1.1rem;
	font-size: 4.5rem;
	line-height: 1;
	font-family: Georgia, "Times New Roman", serif;
	color: rgba(235, 34, 39, .10);
	pointer-events: none;
	user-select: none;
}

.rv-quote-text {
	position: relative;
	font-size: 15px;
	line-height: 1.75;
	color: #3d3d43;
	margin: 0 0 1.4rem;
}

.rv-quote-foot {
	display: flex;
	align-items: center;
	gap: .8rem;
	border-top: 1px solid #f0f0f0;
	padding-top: 1rem;
}

.rv-avatar {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: .95rem;
	color: #fff;
	background: linear-gradient(135deg, #eb2227 0%, #8f1114 100%);
	letter-spacing: .02em;
}

.rv-person {
	min-width: 0;
}

.rv-person-name {
	display: flex;
	align-items: center;
	gap: .35rem;
	font-weight: 700;
	font-size: .95rem;
	color: #17171c;
	margin: 0 0 .1rem;
	line-height: 1.3;
}

.rv-person-name .bi-linkedin {
	color: #0a66c2;
	font-size: .85rem;
}

.rv-person-role {
	font-size: .78rem;
	color: #6c6c76;
	margin: 0;
	line-height: 1.45;
}

.rv-person-meta {
	font-size: .72rem;
	color: #9a9aa2;
	margin: .3rem 0 0;
	line-height: 1.4;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
	.rv-play {
		width: 56px;
		height: 56px;
	}

	.rv-play span {
		border-top-width: 9px;
		border-bottom-width: 9px;
		border-left-width: 15px;
	}

	.rv-quote-card {
		padding: 1.5rem 1.35rem 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {

	.rv-video-card,
	.rv-video-btn img,
	.rv-play,
	.rv-play::before,
	.rv-quote-card,
	.rv-quote-card::before {
		transition: none;
	}

	.rv-video-card:hover,
	.rv-quote-card:hover {
		transform: none;
	}

	.rv-video-card:hover .rv-video-btn img {
		transform: none;
	}
}
