/* "What Clients Say" — Google review social proof. Token-driven only. */

.zre-reviews-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--space-2);
	margin-bottom: var(--space-6);
}
.zre-reviews-stars {
	display: flex;
	gap: 2px;
}
.zre-reviews-stars svg { width: 20px; height: 20px; fill: var(--color-gold); }
.zre-reviews-head h2 { margin: 0; }
.zre-reviews-sub { color: var(--color-muted); font-size: var(--text-small); margin: 0; }
.zre-reviews-summary {
	font-size: var(--text-small);
	color: var(--color-muted);
	margin: var(--space-1) 0 0;
}
.zre-reviews-summary b { color: var(--color-ink); font-weight: 700; }

.zre-reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-6);
	max-width: var(--container-max);
	margin: 0 auto;
}
.zre-reviews-grid--cols-1 { grid-template-columns: 1fr; max-width: 560px; }
.zre-reviews-grid--cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; }

.zre-review-slot {
	position: relative;
	/* Fixed, not min-height -- this is what keeps all 3 visible cards the
	   same height regardless of how long any one review's text is; the
	   clamp below keeps that text from ever needing more room than this
	   box provides. */
	height: 360px;
}
.zre-review-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.1s ease;
}
.zre-review-slide.is-active { opacity: 1; position: relative; z-index: 1; }

.zre-review-card {
	height: 100%;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-6);
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}
.zre-review-card__stars { display: flex; gap: 2px; }
.zre-review-card__stars svg { width: 14px; height: 14px; fill: var(--color-gold); }
.zre-review-card__text {
	font-family: var(--font-serif);
	font-size: 1.05rem;
	line-height: var(--leading-body);
	color: var(--color-ink);
	flex: 1;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 8;
	overflow: hidden;
}
.zre-review-card__text::before { content: "\201C"; }
.zre-review-card__text::after { content: "\201D"; }

/* Reserves its own space at all times (visibility, not display) so
   revealing it for a genuinely-truncated review never shifts anything
   else in the card or row. */
.zre-review-card__more {
	align-self: flex-start;
	background: none;
	border: none;
	padding: 0;
	margin-top: calc(-1 * var(--space-2));
	font-family: var(--font-body);
	font-size: var(--text-small);
	font-weight: 700;
	color: var(--color-cobalt);
	cursor: pointer;
	visibility: hidden;
}
.zre-review-card__more.is-visible { visibility: visible; }
.zre-review-card__more:hover { text-decoration: underline; }

.zre-review-dialog {
	max-width: 520px;
	width: calc(100% - var(--space-6));
	border: none;
	border-radius: var(--radius-lg);
	padding: var(--space-7);
	background: var(--color-surface);
	color: var(--color-ink);
	box-shadow: 0 24px 48px -24px rgba(16, 35, 63, 0.4);
}
.zre-review-dialog::backdrop { background: rgba(16, 35, 63, 0.55); }
.zre-review-dialog .zre-review-card__stars { margin-bottom: var(--space-3); }
.zre-review-dialog .zre-review-card__text {
	-webkit-line-clamp: unset;
	overflow: visible;
	font-size: 1.1rem;
}
.zre-review-dialog__close {
	display: block;
	margin: var(--space-5) 0 0 auto;
	background: none;
	border: none;
	padding: 0;
	font-family: var(--font-body);
	font-size: var(--text-small);
	font-weight: 700;
	color: var(--color-muted);
	cursor: pointer;
}
.zre-review-dialog__close:hover { color: var(--color-cobalt); }

.zre-review-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	font-size: var(--text-small);
	color: var(--color-muted);
	padding-top: var(--space-3);
	border-top: 1px solid var(--color-border);
}
.zre-review-card__name { font-weight: 700; color: var(--color-ink); }
.zre-review-card__source {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--text-micro);
	color: var(--color-muted);
	white-space: nowrap;
}
.zre-review-card__source svg { width: 14px; height: 14px; flex: none; }

.zre-reviews-cta {
	text-align: center;
	margin-top: var(--space-6);
}

.zre-reviews-empty {
	max-width: var(--container-max);
	margin: 0 auto;
	text-align: center;
	color: var(--color-muted);
	padding: var(--space-8) 0;
}

@media (max-width: 820px) {
	.zre-reviews-grid,
	.zre-reviews-grid--cols-1,
	.zre-reviews-grid--cols-2 {
		display: flex;
		grid-template-columns: none;
		max-width: none;
		gap: var(--space-4);
		margin: 0 calc(-1 * var(--container-pad));
		padding: 0 var(--container-pad) var(--space-2);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.zre-reviews-grid::-webkit-scrollbar { display: none; }
	.zre-review-slot {
		flex: 0 0 86%;
		max-width: 420px;
		scroll-snap-align: center;
		height: 360px;
	}
}
