/**
 * Homepage reviews carousel — test3.ant elementor-element-7127eb1
 */

.home-reviews {
	width: 100%;
	max-width: 100%;
	background: #fffafa;
	overflow-x: clip;
	--hq-review-image-width: 323px;
	--hq-review-image-height: 400px;
}

.home-reviews__carousel {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: min(100% - 2rem, 1170px);
	margin-inline: auto;
	padding: 70px 0;
	box-sizing: border-box;
}

.home-reviews__carousel.hq-scroll-reveal--from-bottom:not(.is-revealed) {
	opacity: 0;
	transform: translate3d(0, 80px, 0);
}

.home-reviews__carousel.hq-scroll-reveal--from-bottom.is-revealed {
	opacity: 1;
	animation: hq-bounce-in-up 1s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

@media (prefers-reduced-motion: reduce) {
	.home-reviews__carousel.hq-scroll-reveal--from-bottom:not(.is-revealed) {
		opacity: 1;
		transform: none;
	}

	.home-reviews__carousel.hq-scroll-reveal--from-bottom.is-revealed {
		animation: none;
	}
}

.home-reviews__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	touch-action: pan-y;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.home-reviews__viewport.is-dragging {
	cursor: grabbing;
	touch-action: none;
}

.home-reviews__track {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: 100%;
	will-change: transform;
}

.home-reviews__track.is-dragging {
	transition: none !important;
}

.home-reviews__slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	box-sizing: border-box;
}

.home-reviews__slide--clone {
	pointer-events: none;
}

.home-reviews__viewport.is-dragging .home-reviews__image {
	pointer-events: none;
}

.home-reviews__row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
}

.home-reviews__media {
	flex: 0 0 50%;
	max-width: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: var(--hq-review-image-height);
	padding: 0 clamp(1rem, 3vw, 2rem);
	box-sizing: border-box;
}

.home-reviews__image {
	width: var(--hq-review-image-width);
	height: var(--hq-review-image-height);
	max-width: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
	flex-shrink: 0;
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}

.home-reviews__content {
	position: relative;
	flex: 0 0 50%;
	max-width: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 clamp(1rem, 3vw, 2.5rem);
	box-sizing: border-box;
}

.home-reviews__content-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	max-width: 470px;
	margin-inline: auto;
	gap: 1rem;
}

.home-reviews__stars {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.home-reviews__star {
	display: inline-block;
	width: 18px;
	height: 18px;
	background-color: #c8c8c8;
	clip-path: polygon(
		50% 0%,
		61% 35%,
		98% 35%,
		68% 57%,
		79% 91%,
		50% 70%,
		21% 91%,
		32% 57%,
		2% 35%,
		39% 35%
	);
}

.home-reviews__star.is-filled {
	background-color: #54595f;
}

.home-reviews__quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.home-reviews__quote p {
	margin: 0;
	font-family: Andika, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #444;
}

.home-reviews__author {
	margin: 0;
	font-family: Andika, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #54595f;
}

.home-reviews__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #c8c8c8;
	cursor: pointer;
	transition: color 0.2s ease;
}

.home-reviews__arrow:hover,
.home-reviews__arrow:focus-visible {
	color: #54595f;
	outline: none;
}

.home-reviews__arrow-icon {
	font-size: 42px;
	line-height: 1;
	font-weight: 300;
}

@media (max-width: 767px) {
	.home-reviews {
		--hq-review-image-width: 280px;
		--hq-review-image-height: 340px;
	}

	.home-reviews__carousel {
		flex-direction: column;
		padding: 40px 1rem 48px;
		gap: 1rem;
	}

	.home-reviews__arrow {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 2;
	}

	.home-reviews__arrow--prev {
		left: 0;
	}

	.home-reviews__arrow--next {
		right: 0;
	}

	.home-reviews__viewport {
		width: 100%;
		padding-inline: 2.5rem;
	}

	.home-reviews__row {
		flex-direction: column;
	}

	.home-reviews__media,
	.home-reviews__content {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		min-height: var(--hq-review-image-height);
	}

	.home-reviews__image {
		width: var(--hq-review-image-width);
		height: var(--hq-review-image-height);
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-reviews__arrow {
		transition: none;
	}

	.home-reviews__track {
		transition: none !important;
	}
}
