/* Sweet Reviews — front end.
   No max-width and no font-family on purpose: width follows the theme/Elementor
   container, and typography is inherited from the theme. */

.srv {
	background: var(--srv-bg, #f3e7ec);
	padding: 84px 0 96px;
	box-sizing: border-box;
	--srv-gap: 24px;
	--srv-card-w: 520px;
	overflow: hidden;
}

.srv *,
.srv *::before,
.srv *::after {
	box-sizing: border-box;
}

/* ---- Heading block (keeps side gutter; rows run edge to edge) ---- */
.srv__eyebrow {
	margin: 0 0 14px;
	padding: 0 24px;
	text-align: center;
	color: var(--srv-eyebrow, #c9a24b);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.srv__heading {
	margin: 0 0 56px;
	padding: 0 24px;
	text-align: center;
	color: var(--srv-heading, #2b2422);
	font-size: clamp(32px, 5vw, 60px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

/* ---- Marquee rows ---- */
.srv__rows {
	display: flex;
	flex-direction: column;
	gap: var(--srv-gap);
}

.srv__row {
	overflow: hidden;
	/* Fade both side edges. */
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.srv__marquee {
	display: flex;
	gap: var(--srv-gap);
	width: max-content;
	animation: srv-scroll-ltr linear infinite;
	will-change: transform;
}

.srv__row--rtl .srv__marquee {
	animation-name: srv-scroll-rtl;
}

/* Two identical halves → shift by half for a seamless loop.
   ltr = cards travel left→right; rtl = right→left. */
@keyframes srv-scroll-ltr {
	from { transform: translate3d(-50%, 0, 0); }
	to   { transform: translate3d(0, 0, 0); }
}
@keyframes srv-scroll-rtl {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

.srv--pause .srv__row:hover .srv__marquee {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.srv__marquee { animation: none; }
	.srv__row { overflow-x: auto; }
}

/* ---- Card ---- */
.srv-card {
	flex: 0 0 var(--srv-card-w);
	width: var(--srv-card-w);
	background: var(--srv-card, #fbf6ec);
	border-radius: 22px;
	padding: 30px 32px 26px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	box-shadow: 0 18px 40px -28px rgba(43, 36, 34, 0.35);
}

.srv-card__head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.srv-card__avatar {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(43, 36, 34, 0.06);
}

.srv-card__avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.srv-card__person {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.srv-card__name {
	color: var(--srv-name, #2b2422);
	font-size: 23px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.srv-card__role {
	color: var(--srv-role, #6b6560);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.srv-card__quote {
	margin: 0;
	color: var(--srv-quote, #5c5650);
	font-size: 16.5px;
	line-height: 1.65;
	flex: 1 1 auto;
}

/* Decorative curly quotes — type the quote WITHOUT surrounding quotation marks. */
.srv-card__quote::before { content: "\201C"; }
.srv-card__quote::after  { content: "\201D"; }

.srv-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
}

.srv-card__stars {
	display: inline-flex;
	gap: 3px;
}

.srv-card__star {
	width: 20px;
	height: 20px;
	fill: rgba(43, 36, 34, 0.16);
}

.srv-card__star.is-on {
	fill: var(--srv-star, #f5b301);
}

.srv-card__date {
	color: var(--srv-date, #9a948e);
	font-size: 14.5px;
	white-space: nowrap;
}

/* ---- Responsive card width ---- */
@media (max-width: 1024px) {
	.srv { --srv-card-w: 400px; }
}

@media (max-width: 680px) {
	.srv {
		--srv-card-w: 80vw;
		--srv-gap: 16px;
		padding: 60px 0 70px;
	}
	.srv__eyebrow, .srv__heading { padding: 0 16px; }
}
