/*
 * RRPS Testimonials — [rrps_testimonials] shortcode.
 *
 * Light cards on the brand gradient section: photo + logo pill, quote mark,
 * bold quote, then role/company beside a teal rule.
 */

.rrps-testimonials {
	display: grid;
	grid-template-columns: repeat(var(--rrps-cols, 3), minmax(0, 1fr));
	gap: 24px;
}

.rrps-testimonials__card {
	display: flex;
	flex-direction: column;
	gap: 32px;
	box-sizing: border-box;
	padding: 32px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--rrps-radius-card, 16px);
	background: var(--rrps-gray-50);
	color: var(--rrps-navy);
}

/* ---- Head: avatar + logo ---- */

.rrps-testimonials__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.rrps-testimonials__avatar {
	display: block;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.rrps-testimonials__avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--rrps-teal-dark);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}

.rrps-testimonials__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 150px;
	height: 50px;
	padding: 10px 18px;
	border: 1px solid var(--rrps-teal-light);
	border-radius: 100px;
	background: #fff;
}

.rrps-testimonials__logo-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* ---- Quote ---- */

.rrps-testimonials__mark {
	display: block;
	color: var(--rrps-blue);
}

.rrps-testimonials__quote {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-style: normal;
}

.rrps-testimonials .rrps-testimonials__quote p {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--rrps-navy);
	text-wrap: pretty;
}

/* ---- Meta ---- */

.rrps-testimonials__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 24px;
	padding-left: 12px;
	border-left: 2px solid var(--rrps-teal-light);
	font-size: 14px;
	line-height: 1.5;
	color: var(--rrps-gray-800);
}

.rrps-testimonials__role {
	font-weight: 700;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
	.rrps-testimonials {
		grid-template-columns: repeat(min(var(--rrps-cols, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rrps-testimonials {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.rrps-testimonials__card {
		padding: 24px;
		gap: 24px;
	}

	.rrps-testimonials__quote p {
		font-size: 18px;
	}
}

/* Two classes so the round crop beats Elementor's `.elementor img` reset. */
.rrps-testimonials .rrps-testimonials__avatar {
	border-radius: 50%;
}

/* ---- [rrps_testimonials slider="tablet"]: swipe row with dots ----
 * Two cards per view on tablet, one on phones. The row bleeds to the section
 * edge (negative margin = the section's side padding) so cards scroll off
 * screen rather than being clipped at the content edge. */
@media (max-width: 1024px) {
	.rrps-testimonials--slider {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
		margin-inline: -32px;
		padding-inline: 32px;
		scroll-padding-inline: 32px;
	}

	.rrps-testimonials--slider::-webkit-scrollbar {
		display: none;
	}

	.rrps-testimonials--slider .rrps-testimonials__card {
		flex: 0 0 calc((100% - 16px) / 2);
		scroll-snap-align: start;
	}

	.rrps-testimonials .rrps-testimonials__card {
		padding: 24px;
		gap: 24px;
	}

	.rrps-testimonials .rrps-testimonials__quote p {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.rrps-testimonials--slider {
		margin-inline: -16px;
		padding-inline: 16px;
		scroll-padding-inline: 16px;
	}

	.rrps-testimonials--slider .rrps-testimonials__card {
		flex-basis: 100%;
	}

	.rrps-testimonials .rrps-testimonials__quote p {
		font-size: 17px;
	}
}

