/*
 * "Our Client Testimonials" — slow, continuous video slider on the homepage,
 * directly under the Google reviews widget. Shares the reviews band's fill
 * (--surface-frame) so the two read as one section.
 */

.tvt {
	background: var(--surface-frame, #dde7dd);
	color: var(--forest-ink, #12312c);
	overflow: hidden;
	padding-block: 20px clamp(56px, 6.2vw, 100px);
}

.tvtInner {
	width: min(100% - (var(--gutter, 24px) * 2), var(--container, 1280px));
	margin-inline: auto;
}

.tvtTitle {
	margin: 0 0 clamp(28px, 3.2vw, 52px);
	font-family: var(--font, Georgia, serif);
	font-size: 42px;
	line-height: 1.364;
	font-weight: 400;
	text-align: center;
	text-wrap: balance;
	color: var(--forest-ink, #12312c);
}

/* Full-bleed strip with soft fades at both edges. */
.tvtViewport {
	position: relative;
	overflow: hidden;
	touch-action: pan-y;
	cursor: grab;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.tvt.isDragging .tvtViewport { cursor: grabbing; }
.tvt.isDragging .tvtCard { pointer-events: none; }

.tvtTrack {
	display: flex;
	gap: clamp(16px, 1.8vw, 26px);
	margin: 0;
	padding: 10px 0 18px;
	list-style: none;
	width: max-content;
	will-change: transform;
}

.tvtCard {
	position: relative;
	flex: 0 0 clamp(210px, 21vw, 280px);
	aspect-ratio: 9 / 16;
	margin: 0;
	border-radius: 28px;
	overflow: hidden;
	background: var(--forest-ink, #12312c);
	box-shadow: 0 14px 34px -18px rgba(18, 49, 44, 0.55);
	transition: transform 0.5s var(--ease, ease), box-shadow 0.5s var(--ease, ease);
}

.tvtCard:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 40px -20px rgba(18, 49, 44, 0.6);
}

.tvtVideo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--forest-ink, #12312c);
}

.tvtCard.isActive .tvtVideo { object-fit: contain; }

/* The whole card is the play target until a video starts. */
.tvtPlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 22px;
	border: 0;
	background: linear-gradient(to top, rgba(16, 34, 31, 0.82) 0%, rgba(16, 34, 31, 0.15) 45%, rgba(16, 34, 31, 0) 70%);
	color: #fff;
	text-align: left;
	cursor: pointer;
	transition: opacity 0.4s var(--ease, ease);
}

.tvtCard.isActive .tvtPlay {
	opacity: 0;
	pointer-events: none;
}

.tvtPlay:focus-visible {
	outline: 3px solid var(--accent-on-dark, #2fb89c);
	outline-offset: -3px;
	border-radius: 28px;
}

.tvtPlayIcon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--accent, #00967e);
	box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18);
	transform: translate(-50%, -50%);
	transition: transform 0.35s var(--ease, ease), background-color 0.35s var(--ease, ease);
}

.tvtPlayIcon svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }

.tvtPlay:hover .tvtPlayIcon,
.tvtPlay:focus-visible .tvtPlayIcon {
	background: var(--accent-hover, #00b294);
	transform: translate(-50%, -50%) scale(1.08);
}

.tvtMeta { display: flex; flex-direction: column; gap: 2px; }

.tvtKicker {
	font-family: var(--font-body, sans-serif);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-on-dark, #2fb89c);
}

.tvtName {
	font-family: var(--font, Georgia, serif);
	font-size: 22px;
	line-height: 1.25;
}

.tvtNav {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: clamp(20px, 2.4vw, 34px);
}

.tvtArrow {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border: 1px solid var(--forest-ink, #12312c);
	border-radius: 50%;
	background: transparent;
	color: var(--forest-ink, #12312c);
	cursor: pointer;
	transition: background-color 0.3s var(--ease, ease), color 0.3s var(--ease, ease), border-color 0.3s var(--ease, ease);
}

.tvtArrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.tvtArrow:hover,
.tvtArrow:focus-visible {
	background: var(--accent, #00967e);
	border-color: var(--accent, #00967e);
	color: #fff;
}

@media (max-width: 600px) {
	.tvtTitle { font-size: 32px; }
	.tvtCard { border-radius: 22px; }
	.tvtPlay { padding: 18px; }
	.tvtName { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	.tvtCard, .tvtPlay, .tvtPlayIcon { transition: none; }
	.tvtCard:hover { transform: none; }
}
/* Landscape (16:9) testimonials get wider cards. */
.tvtCard.isLandscape {
	flex-basis: clamp(300px, 38vw, 540px);
	aspect-ratio: 16 / 9;
}

@media (max-width: 600px) {
	.tvtCard.isLandscape { flex-basis: 82vw; }
}
