/* ---------------------------------------------------------------------
 * PMBO - customer reviews carousel + grid
 * Used on home, export, hire-us pages and as the [pmbo_reviews] shortcode.
 * --------------------------------------------------------------------- */

.pmbo-reviews {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #0f172a;
	max-width: 1160px;
	margin: 0 auto;
	padding: 1.25rem;
	overflow: hidden;
}

.pmbo-reviews-head {
	text-align: center;
	margin-bottom: 1.5rem;
}

.pmbo-reviews-kicker {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .35rem .8rem;
	border-radius: 999px;
	background: rgba(245, 158, 11, .12);
	color: #b45309;
	font-weight: 600;
	font-size: .8rem;
	margin-bottom: .65rem;
}
.pmbo-reviews-stars {
	color: #f59e0b;
	letter-spacing: .04em;
	font-size: .9rem;
}
.pmbo-reviews-head h2 {
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	font-weight: 800;
	letter-spacing: -.01em;
	margin: 0;
}

/* ---------- Cards (shared) ---------- */
.pmbo-review {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 1.4rem 1.3rem 1.2rem;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: .9rem;
	min-height: 100%;
	transition: transform .2s, box-shadow .2s, border-color .2s;
	position: relative;
	overflow: hidden;
}

.pmbo-review::before {
	content: "“";
	position: absolute;
	top: -22px;
	right: 12px;
	font-size: 6rem;
	color: rgba(99, 102, 241, .08);
	font-family: Georgia, serif;
	line-height: 1;
	pointer-events: none;
}

.pmbo-review:hover {
	transform: translateY(-4px);
	border-color: rgba(99, 102, 241, .35);
	box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .2);
}

.pmbo-review-stars {
	color: #f59e0b;
	font-size: 1rem;
	letter-spacing: .04em;
}

.pmbo-review-text {
	font-size: 1rem;
	line-height: 1.55;
	color: #1f2937;
	margin: 0;
	font-style: italic;
	border-left: 0;
	padding-left: 0;
}

.pmbo-review-who {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin: 0;
	font-style: normal;
	border-top: 1px dashed #e2e8f0;
	padding-top: .85rem;
}

.pmbo-review-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .03em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}

.pmbo-review-who strong {
	display: block;
	font-size: .92rem;
	color: #0f172a;
	font-weight: 700;
}
.pmbo-review-who small {
	display: block;
	font-size: .78rem;
	color: #64748b;
}

/* ---------- GRID variant ---------- */
.pmbo-reviews--grid .pmbo-reviews-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}

/* ---------- CAROUSEL variant ---------- */
.pmbo-reviews--carousel {
	position: relative;
	/* Critical: clip the wide track. Without this, the .pmbo-reviews-track
	 * (width: max-content, ~4000px+) overflows the page and adds a
	 * horizontal scrollbar to the document. The mask-image only hides
	 * the edges visually - it doesn't constrain layout. */
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.pmbo-reviews-track {
	display: flex;
	gap: 1rem;
	width: max-content;
	animation: pmboReviewsScroll 38s linear infinite;
	will-change: transform;
}

.pmbo-reviews-track .pmbo-review {
	width: clamp(260px, 70vw, 340px);
	flex-shrink: 0;
}

.pmbo-reviews-track:hover { animation-play-state: paused; }

@keyframes pmboReviewsScroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
	.pmbo-reviews-track { animation-duration: 26s; }
	.pmbo-reviews-track .pmbo-review { width: 78vw; }
}

@media (prefers-reduced-motion: reduce) {
	.pmbo-reviews-track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
	}
	.pmbo-reviews--carousel { mask-image: none; -webkit-mask-image: none; }
	.pmbo-review { transition: none; }
}
