/*
 * Homepage Testimonials ("What Our Customers Say")
 *
 * Card width/gap pixel-measured from the Figma reference: 400px card
 * width, 24px gap (3×400 + 2×24 = 1248px, matching --qehs-container-max
 * exactly) — a plain 3-column grid, not a slider, since all 3 cards
 * fit the container with no need to scroll. Star and background
 * colors confirmed via pixel sampling to be existing tokens — no new
 * colors introduced.
 */

.qehs-testimonials {
	padding-block: var(--qehs-space-2xl);
	background-color: var(--qehs-accent-blue-tint);
}

.qehs-testimonials__title {
	margin: 0 0 var(--qehs-space-2xl);
	text-align: center;
	font-size: 2.25rem;
	font-weight: 700;
	color: var(--qehs-text);
}

.qehs-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--qehs-space-lg);
	/* Grid rows stretch to equal height by default — gives the 3 cards
	   consistent height automatically, without a hardcoded value that
	   could clip longer testimonial text later. */
}

.qehs-testimonial-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background-color: var(--qehs-background);
	border: 1px solid var(--qehs-border);
	border-radius: var(--qehs-radius-lg);
	padding: var(--qehs-space-xl) var(--qehs-space-lg);
}

.qehs-testimonial-card__stars {
	display: flex;
	gap: 2px;
	margin-bottom: var(--qehs-space-md);
}

.qehs-testimonial-card__quote {
	margin: 0 0 var(--qehs-space-lg);
	font-style: italic;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--qehs-text);
}

.qehs-testimonial-card__quote::before {
	content: '\201C';
}

.qehs-testimonial-card__quote::after {
	content: '\201D';
}

.qehs-testimonial-card__attribution {
	margin: 0;
	margin-top: auto;
	font-weight: 700;
	font-style: italic;
	font-size: 1rem;
	color: var(--qehs-text);
}

/* --- Tablet: 2 columns where space permits, matching the site's
   existing 1024px breakpoint. --- */
@media (max-width: 1024px) {
	.qehs-testimonials__title {
		font-size: 1.875rem;
	}

	.qehs-testimonials__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --- Mobile: single column. --- */
@media (max-width: 768px) {
	.qehs-testimonials__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.qehs-testimonials {
		padding-block: var(--qehs-space-xl);
	}

	.qehs-testimonials__title {
		margin-bottom: var(--qehs-space-xl);
		font-size: 1.5rem;
	}
}
