/**
 * Reviews Block Styles
 * Auto-loaded when the reviews block is present on the page.
 * Design: Figma → Martin Heat Reviews (node 7-597)
 * Slider powered by slick (loaded by the parent theme).
 */

/* ── Variables ────────────────────────────────────────────────────────────── */
.reviews {
	--rv-dark:   #191032;
	--rv-orange: #F17E25;
	--rv-blue:   #41BCF9;
	--rv-grey:   #DADADA;
}

/* ── Section ──────────────────────────────────────────────────────────────── */
.reviews {
	background: var(--rv-dark);
	padding-top: 88px;
	padding-bottom: 88px;
	position: relative;
}

/* ── Top row ──────────────────────────────────────────────────────────────── */
.reviews__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 56px;
}

.reviews__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 56px;
	line-height: 1.05;
	letter-spacing: -2.5px;
	color: var(--rv-orange);
	margin: 0;
	max-width: 405px;
}

.reviews__title span {
	color: #fff;
}

/* Google badge (hardcoded) */
.reviews__google {
	flex-shrink: 0;
	width: 379px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 32px 16px;
	background: var(--rv-dark);
	border: 1px solid #F16D23;
	border-radius: 14px;
}

.reviews__google-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.reviews__google-icon {
	width: 64px;
	height: 65px;
	display: block;
}

.reviews__google-score {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 100px;
	line-height: 0.86;
	color: var(--rv-orange);
}

.reviews__google-stars {
	display: flex;
	gap: 4px;
	background: var(--rv-orange);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	padding: 2px 4px;
	border-radius: 2px;
}

.reviews__google-label {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 16px;
	letter-spacing: 1px;
	color: var(--rv-grey);
	margin: 0;
}

/* ── Slider track ─────────────────────────────────────────────────────────── */
.reviews__track {
	margin: 0 -10px 48px;
}

/* Equal-height slides */
.reviews__track .slick-track {
	display: flex;
}

.reviews__track .slick-slide {
	height: auto;
}

.reviews__track .slick-slide > div {
	height: 100%;
}

.reviews__slide {
	height: 100%;
	padding: 0 10px;
	box-sizing: border-box;
}

/* Before slick initialises, show the cards in a row to avoid a flash of stacked content */
.reviews__track:not(.slick-initialized) {
	display: flex;
	overflow: hidden;
}

.reviews__track:not(.slick-initialized) .reviews__slide {
	flex: 0 0 33.3333%;
}

/* ── Review card ──────────────────────────────────────────────────────────── */
.reviews__card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 290px;
	padding: 32px;
	border-radius: 24px;
	background: var(--rv-dark);
	border: 1px solid var(--rv-orange);
	transition: background 0.3s ease, border-color 0.3s ease;
}

.reviews__quote {
	display: block;
	color: var(--rv-orange);
	margin-bottom: 20px;
	line-height: 0;
}

.reviews__text {
	font-family: 'Montserrat', sans-serif;
	font-style: italic;
	font-size: 18px;
	line-height: 1.46;
	color: #fff;
}

.reviews__text p {
	margin: 0;
}

.reviews__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.reviews__name {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 24px;
	letter-spacing: 1px;
	color: #fff;
}

.reviews__stars {
	font-size: 12px;
	letter-spacing: 2px;
	color: var(--rv-orange);
	white-space: nowrap;
}

/* Active (centered) card */
.reviews__track .slick-center .reviews__card {
	background: var(--rv-orange);
	border-color: var(--rv-dark);
}

.slick-center .reviews__quote,
.slick-center .reviews__text,
.slick-center .reviews__name,
.slick-center .reviews__stars {
	color: var(--rv-dark);
}

.slick-center .reviews__foot {
	border-top-color: rgba(25, 16, 50, 0.25);
}

/* ── CTAs ─────────────────────────────────────────────────────────────────── */
.reviews__ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.reviews__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 60px;
	padding: 8px 8px 8px 24px;
	border-radius: 9999px;
	text-decoration: none !important;
	transition: filter 0.2s ease;
}

.reviews__cta:hover {
	filter: brightness(0.94);
}

.reviews__cta-text {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 17px;
	letter-spacing: 0.5px;
	line-height: 1;
	white-space: nowrap;
	color: var(--rv-dark) !important;
}

.reviews__cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--rv-dark);
	border-radius: 50%;
	flex-shrink: 0;
	color: var(--rv-orange);
}

.reviews__cta--orange {
	background: var(--rv-orange);
}

.reviews__cta--blue {
	background: transparent;
	box-shadow: inset 0 0 0 2px #FFFFFF;
}

.reviews__cta--blue .reviews__cta-text {
	color: #FFFFFF !important;
}

.reviews__cta--blue .reviews__cta-icon {
	background: #FFFFFF;
	color: var(--rv-dark);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
	.reviews__title {
		font-size: 46px;
		letter-spacing: -2px;
	}
}

@media (max-width: 991px) {
	.reviews {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.reviews__top {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 40px;
	}

	.reviews__google {
		align-self: stretch;
		width: auto;
	}

	.reviews__title {
		font-size: 40px;
	}

	/* Single centered card with peeking neighbours handled by slick centerPadding */
	.reviews__track:not(.slick-initialized) .reviews__slide {
		flex: 0 0 100%;
	}
}

@media (max-width: 575px) {
	.reviews__title {
		font-size: 32px;
		letter-spacing: -1.2px;
	}

	.reviews__google-score {
		font-size: 76px;
	}

	.reviews__ctas {
		flex-direction: column;
		align-items: stretch;
	}

	.reviews__cta {
		justify-content: space-between;
	}
}
