/* ==========================================================================
   Siam District — Homepage reviews section (stacked/coverflow carousel)
   ========================================================================== */

.reviews {
	background: var(--sd-color-page-bg);
	padding: 64px 0;
	overflow: hidden;
}

.reviews__container {
	max-width: var(--sd-container-width);
	margin: 0 auto;
	padding: 0 24px;
}

.reviews__title {
	margin: 0 0 40px;
	font-family: var(--sd-font-heading);
	font-size: 34px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	color: var(--sd-color-body-text);
}

/* ---- Stage: each card is absolutely positioned and placed by JS via
   a data-offset attribute (0 = active, -1/1 = either side, etc.) ---- */

.reviews__stage {
	position: relative;
	height: 260px;
	max-width: 640px;
	margin: 0 auto;
}

.review-card {
	position: absolute;
	top: 0;
	left: 50%;
	width: 460px;
	max-width: 82vw;
	background: var(--sd-color-white);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	padding: 32px 36px;
	text-align: center;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
	cursor: pointer;
}

.review-card[data-offset="0"] {
	transform: translate(-50%, 0) scale(1);
	opacity: 1;
	z-index: 5;
	cursor: default;
	pointer-events: none;
}

.review-card[data-offset="-1"] {
	transform: translate(-115%, 0) scale(0.86);
	opacity: 0.55;
	z-index: 4;
}

.review-card[data-offset="1"] {
	transform: translate(15%, 0) scale(0.86);
	opacity: 0.55;
	z-index: 4;
}

.review-card[data-offset="-2"] {
	transform: translate(-160%, 0) scale(0.72);
	opacity: 0;
	z-index: 3;
	pointer-events: none;
}

.review-card[data-offset="2"] {
	transform: translate(60%, 0) scale(0.72);
	opacity: 0;
	z-index: 3;
	pointer-events: none;
}

.review-card[data-offset="hidden"] {
	transform: translate(-50%, 0) scale(0.6);
	opacity: 0;
	z-index: 1;
	pointer-events: none;
}

.review-card__stars {
	display: flex;
	justify-content: center;
	gap: 3px;
	margin-bottom: 16px;
	color: var(--sd-color-brand);
}

.review-card__stars svg {
	width: 18px;
	height: 18px;
}

.review-card__quote {
	margin: 0 0 16px;
	font-family: var(--sd-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--sd-color-body-text);
}

.review-card__name {
	margin: 0;
	font-family: var(--sd-font-button);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--sd-color-body-text);
	opacity: 0.6;
}

/* ---- Controls ---- */

.reviews__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 28px;
}

.reviews__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	background: none;
	border: 1px solid var(--sd-color-border);
	border-radius: 999px;
	cursor: pointer;
	color: var(--sd-color-body-text);
	transition: color 0.15s ease, border-color 0.15s ease;
}

.reviews__arrow svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
}

.reviews__arrow:hover,
.reviews__arrow:focus-visible {
	color: var(--sd-color-brand);
	border-color: var(--sd-color-brand);
}

.reviews__dots {
	display: flex;
	gap: 8px;
}

.reviews__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: var(--sd-color-border);
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.reviews__dot.is-active {
	background: var(--sd-color-brand);
	transform: scale(1.3);
}

@media (max-width: 999.98px) {
	.reviews {
		padding: 48px 0;
	}

	.reviews__stage {
		height: 300px;
	}

	.review-card {
		width: 380px;
		padding: 28px;
	}

	.review-card[data-offset="-1"] {
		transform: translate(-105%, 0) scale(0.82);
	}

	.review-card[data-offset="1"] {
		transform: translate(5%, 0) scale(0.82);
	}

	.reviews__title {
		font-size: 26px;
		margin-bottom: 28px;
	}
}

@media (max-width: 599.98px) {
	.reviews__stage {
		height: 340px;
	}

	.review-card {
		width: 300px;
		padding: 24px 20px;
	}

	.review-card__quote {
		font-size: 14px;
	}

	.reviews__title {
		font-size: 22px;
	}
}
