﻿.customer-section {
	padding-top: clamp(24px, 3vw, 44px);
	padding-bottom: clamp(96px, 8vw, 150px);
}

.customer-heading h2 {
	font-size: clamp(36px, 3vw, 62px);
}

.reviews-slider {
	width: min(920px, 100%);
	margin: 38px auto 0;
}

.reviews-track {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.review-card {
	position: relative;
	overflow: hidden;
	min-height: 318px;
	border-radius: 12px;
	background: #331908;
	box-shadow: var(--solene-shadow);
}

.review-card img {
	width: 100%;
	height: 318px;
	object-fit: cover;
	object-position: top center;
}

.review-source {
	position: absolute;
	left: 18px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--solene-brown);
	color: var(--solene-white);
	font-size: 12px;
	font-weight: 900;
}

.review-source::before {
	content: "";
	width: 14px;
	height: 14px;
	margin-right: 6px;
	border-radius: 999px;
	background: #29d366;
}

.review-source.is-facebook::before {
	background: #1877f2;
}

.slider-controls {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 24px;
}

.slider-controls button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: var(--solene-brown);
	color: var(--solene-white);
	font-size: 28px;
	font-weight: 900;
	cursor: pointer;
}

@media (max-width: 1024px) {
	.reviews-track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 540px;
		margin-inline: auto;
	}
}

@media (max-width: 767px) {
	.customer-section {
		padding-bottom: 82px;
	}

	.reviews-slider {
		overflow: hidden;
	}

	.reviews-track {
		display: flex;
		gap: 14px;
		max-width: none;
		transform: translateX(var(--slide-offset, 0));
		transition: transform 0.28s ease;
	}

	.review-card {
		flex: 0 0 calc(78vw - 22px);
		min-height: 360px;
	}

	.review-card img {
		height: 360px;
	}
}

@media (max-width: 420px) {
	.review-card {
		flex-basis: calc(86vw - 22px);
	}
}

.customer-section {
	background:
		radial-gradient(circle at 82% 10%, rgba(183, 169, 151, 0.2), transparent 32%),
		linear-gradient(180deg, #4d382a 0%, #f4f1eb 100%);
}

.customer-heading h2,
.customer-heading p {
	color: #f4f1eb;
}

.reviews-slider {
	width: min(1040px, 100%);
}

.reviews-track {
	gap: clamp(14px, 1.8vw, 22px);
	align-items: stretch;
}

.review-card {
	min-height: 336px;
	border: 1px solid rgba(244, 241, 235, 0.2);
	border-radius: 8px;
	background: #f4f1eb;
	box-shadow: 0 18px 42px rgba(77, 56, 42, 0.18);
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.review-card:hover,
.review-card:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 24px 54px rgba(77, 56, 42, 0.24);
}

.review-card img {
	height: 336px;
}

.review-source {
	background: #4d382a;
	color: #f4f1eb;
	box-shadow: 0 10px 22px rgba(77, 56, 42, 0.18);
}

.slider-controls button {
	background: #4d382a;
	color: #f4f1eb;
	box-shadow: 0 12px 24px rgba(77, 56, 42, 0.18);
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.slider-controls button:hover,
.slider-controls button:focus-visible {
	background: #b7a997;
	color: #4d382a;
	transform: translateY(-2px);
}

@media (max-width: 767px) {
	.review-card {
		min-height: 360px;
	}

	.review-card:hover,
	.review-card:focus-within {
		transform: none;
	}
}

.customer-section {
	background:
		linear-gradient(135deg, rgba(200, 164, 93, 0.14), transparent 32%),
		linear-gradient(180deg, #ffffff 0%, #f4f1eb 100%);
	color: #4d382a;
}

.customer-heading h2,
.customer-heading p {
	color: #4d382a;
}

.review-card {
	border-color: rgba(200, 164, 93, 0.24);
	background: #ffffff;
	box-shadow: 0 18px 42px rgba(77, 56, 42, 0.14);
}

.review-source {
	background: #4d382a;
	color: #ffffff;
}

.slider-controls button {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #4d382a;
	box-shadow: none;
	font-size: 34px;
	line-height: 1;
}

.slider-controls button:hover,
.slider-controls button:focus-visible {
	background: transparent;
	color: #c8a45d;
	transform: translateY(-1px);
}

/* ملاحظة تعديل: القواعد التالية تجعل قسم آراء العملاء بنفس هوية الأقسام السابقة وتضيف نافذة تكبير الصورة. */
.customer-section {
	position: relative;
	overflow: hidden;
	padding-top: clamp(64px, 6vw, 96px);
	background:
		linear-gradient(135deg, rgba(200, 164, 93, 0.14), transparent 32%),
		linear-gradient(180deg, #ffffff 0%, #f4f1eb 100%);
}

.customer-heading h2 {
	color: #4d382a;
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 900;
	line-height: 1.02;
	text-transform: uppercase;
	text-shadow:
		0 0 16px rgba(200, 164, 93, 0.42),
		0 5px 0 rgba(200, 164, 93, 0.18),
		0 18px 34px rgba(77, 56, 42, 0.16);
}

.customer-heading p {
	position: relative;
	width: fit-content;
	max-width: min(780px, calc(100vw - 34px));
	margin-inline: auto;
	padding: 14px 28px;
	border: 1px solid rgba(200, 164, 93, 0.54);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: #4d382a;
	font-size: clamp(16px, 1.45vw, 20px);
	font-weight: 900;
	line-height: 1.35;
	box-shadow:
		0 0 0 7px rgba(200, 164, 93, 0.08),
		0 0 38px rgba(200, 164, 93, 0.28),
		0 18px 48px rgba(77, 56, 42, 0.1);
}

.customer-heading p::before {
	content: "";
	position: absolute;
	inset: -9px;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(circle, rgba(200, 164, 93, 0.22), transparent 68%);
	filter: blur(3px);
}

.reviews-slider {
	position: relative;
	width: min(1060px, 100%);
	padding-inline: clamp(44px, 5vw, 64px);
	overflow: visible;
}

.reviews-track {
	transition: transform 0.52s cubic-bezier(0.2, 0.78, 0.22, 1);
}

.review-card {
	border: 1px solid rgba(200, 164, 93, 0.48);
	border-radius: 8px;
	background: #ffffff;
	box-shadow:
		0 0 0 6px rgba(200, 164, 93, 0.08),
		0 0 32px rgba(200, 164, 93, 0.2),
		0 18px 42px rgba(77, 56, 42, 0.14);
	transition: transform 0.34s ease, box-shadow 0.34s ease, opacity 0.34s ease;
}

.review-card:hover,
.review-card:focus-within,
.review-card.is-active {
	box-shadow:
		0 0 0 8px rgba(200, 164, 93, 0.1),
		0 0 44px rgba(200, 164, 93, 0.32),
		0 24px 54px rgba(77, 56, 42, 0.2);
}

.review-image-button {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.review-image-button img,
.review-card img {
	width: 100%;
	height: 336px;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.42s ease, filter 0.42s ease;
}

.review-card:hover img,
.review-card:focus-within img {
	transform: scale(1.035);
	filter: saturate(1.08) contrast(1.03);
}

.review-source {
	left: auto;
	right: 14px;
	bottom: 14px;
	gap: 7px;
	background: #4d382a;
	color: #ffffff;
	box-shadow: 0 10px 22px rgba(77, 56, 42, 0.22);
}

.review-source::before {
	margin-right: 0;
}

body.rtl .review-source {
	right: auto;
	left: 14px;
}

.slider-controls {
	position: absolute;
	inset: 50% 0 auto;
	z-index: 8;
	display: flex;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	pointer-events: none;
	transform: translateY(-50%);
}

.slider-controls button {
	pointer-events: auto;
	display: grid;
	place-items: center;
	width: 38px;
	height: 64px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #4d382a;
	box-shadow: none;
	font-size: 44px;
	font-weight: 800;
	line-height: 1;
	transition: transform 0.2s ease, color 0.2s ease;
}

.slider-controls button:hover,
.slider-controls button:focus-visible {
	color: #c8a45d;
	transform: scale(1.08);
}

.slider-controls button:disabled {
	opacity: 0.35;
	cursor: default;
}

.review-modal {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	padding: 22px;
	background: rgba(33, 21, 14, 0.82);
	backdrop-filter: blur(10px);
}

.review-modal[hidden] {
	display: none;
}

.review-modal-image {
	width: min(92vw, 520px);
	max-height: 88vh;
	object-fit: contain;
	border: 1px solid rgba(200, 164, 93, 0.56);
	border-radius: 8px;
	background: #ffffff;
	box-shadow:
		0 0 0 8px rgba(200, 164, 93, 0.12),
		0 0 54px rgba(200, 164, 93, 0.34),
		0 24px 70px rgba(0, 0, 0, 0.38);
	animation: solene-review-popup-in 0.28s ease both;
}

.review-modal-close {
	position: fixed;
	top: 18px;
	right: 22px;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(200, 164, 93, 0.44);
	border-radius: 999px;
	background: #ffffff;
	color: #4d382a;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

@keyframes solene-review-popup-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 767px) {
	.customer-heading h2 {
		font-size: clamp(30px, 8vw, 38px);
		text-shadow:
			0 0 14px rgba(200, 164, 93, 0.44),
			0 12px 28px rgba(77, 56, 42, 0.16);
	}

	.customer-heading p {
		width: min(100%, 390px);
		padding: 13px 18px;
		font-size: clamp(15px, 3.8vw, 17px);
		line-height: 1.42;
	}

	.reviews-slider {
		width: 100%;
		padding-inline: 46px;
		overflow: visible;
	}

	.reviews-track {
		gap: 16px;
	}

	.review-card {
		flex: 0 0 min(74vw, 360px);
		min-height: auto;
		aspect-ratio: 9 / 16;
		opacity: 0.68;
		transform: scale(0.96);
	}

	.review-card.is-active {
		opacity: 1;
		transform: scale(1);
	}

	.review-image-button,
	.review-image-button img,
	.review-card img {
		height: 100%;
		aspect-ratio: 9 / 16;
	}

	.slider-controls {
		inset-inline: 8px;
		width: auto;
	}
}

@media (max-width: 420px) {
	.review-card {
		flex-basis: min(76vw, 330px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.reviews-track,
	.review-card,
	.review-card img,
	.review-modal-image {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}
}

/* ملاحظة تعديل: هذا الجزء يجعل سلايدر آراء العملاء يعرض صورة واحدة فقط، والأسهم خارج الصورة يمين ويسار. */
.reviews-viewport {
	width: 100%;
	overflow: visible;
}

@media (max-width: 767px) {
	.reviews-slider {
		width: min(430px, 100%);
		padding-inline: 44px;
		overflow: visible;
	}

	.reviews-viewport {
		overflow: hidden;
		border-radius: 8px;
	}

	.reviews-track {
		display: flex;
		gap: 0 !important;
		width: 100%;
		max-width: none;
		margin: 0;
		transform: translate3d(var(--slide-offset, 0), 0, 0);
		transition: transform 0.48s cubic-bezier(0.2, 0.78, 0.22, 1);
		will-change: transform;
	}

	.review-card {
		flex: 0 0 100% !important;
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
		opacity: 1;
		transform: none;
	}

	.review-card.is-active {
		transform: none;
	}

	.slider-controls {
		inset: 50% 0 auto 0;
		width: 100%;
		transform: translateY(-50%);
	}

	.slider-controls button {
		width: 34px;
		height: 62px;
		color: #4d382a;
		background: transparent !important;
	}

	.slider-prev {
		justify-self: start;
	}

	.slider-next {
		justify-self: end;
	}
}
