/* HDL Site Modules: Testimonials
   Layout and component treatment live here. Typography is deliberately inherited
   from the Bricks Theme Style and the shared HDL global classes where possible. */

.hdl-reviews {
	--hdl-reviews-card-bg: var(--primary-ultra-dark, #1a1917);
	--hdl-reviews-card-text: var(--primary-ultra-light, #f5f3f0);
	--hdl-reviews-muted: var(--primary-dark-trans-70, #756f67);
	--hdl-reviews-google-star: #fbbc04;
	--hdl-reviews-gap: 22px;
	--hdl-reviews-card-width: 400px;
	--hdl-reviews-fade: 56px;
	--hdl-speed: 64s;

	width: 100%;
	background: var(--primary-light, #e9e3dc);
	color: inherit;
	padding-block: var(--section-space-m, 74px);
	overflow: hidden;
}

.hdl-reviews *,
.hdl-reviews *::before,
.hdl-reviews *::after { box-sizing: border-box; }

.hdl-reviews__inner {
	width: 100%;
	max-width: var(--content-width, 1280px);
	margin-inline: auto;
	padding-inline: var(--section-padding-x, 40px);
}

.hdl-reviews__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 48px;
	align-items: end;
	margin-bottom: 34px;
}

.hdl-reviews__eyebrow,
.hdl-reviews__title,
.hdl-reviews__quote { margin: 0; }

.hdl-reviews__eyebrow {
	color: var(--primary-dark-trans-80, #655f57);
}

/*
 * Bricks global-class typography bridge.
 * The module markup is generated by PHP rather than by native Bricks Basic Text
 * elements. Bricks can scope global-class rules to its own element selectors,
 * so class names alone may not receive their typography. Keep these fallbacks
 * scoped to this module and aligned with the approved HDL typography roles.
 */
.hdl-reviews .hdl-eyebrow {
	font-family: var(--text-font-family, Jost, sans-serif);
	font-size: 13px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: .24em;
	text-transform: uppercase;
	text-decoration: none;
}

.hdl-reviews .hdl-card-body {
	font-family: var(--text-font-family, Jost, sans-serif);
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.65;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
}

.hdl-reviews .hdl-small {
	font-family: var(--text-font-family, Jost, sans-serif);
	font-size: 14px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.45;
	letter-spacing: .04em;
	text-decoration: none;
}

@media (max-width: 991px) {
	.hdl-reviews .hdl-eyebrow { font-size: 12px; }
}

@media (max-width: 478px) {
	.hdl-reviews .hdl-small { font-size: 13px; }
}

.hdl-reviews__title {
	color: inherit;
	font-family: var(--heading-font-family, Raleway, sans-serif);
	font-size: 48px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.01em;
	text-wrap: pretty;
	max-width: 100%;
	min-width: 0;
}

@media (max-width: 991px) {
	.hdl-reviews__title { font-size: 40px; }
}

@media (max-width: 600px) {
	.hdl-reviews__title { font-size: 34px; }
}

.hdl-reviews__rating {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 235px;
	padding: 16px 20px;
	background: var(--primary-ultra-light, #f5f3f0);
	border: 1px solid var(--primary-dark-trans-10, rgba(26, 25, 23, .1));
	color: inherit;
	text-decoration: none;
	transition: transform .2s ease, border-color .2s ease;
}

a.hdl-reviews__rating:hover,
a.hdl-reviews__rating:focus-visible {
	transform: translateY(-1px);
	border-color: var(--primary-dark-trans-30, rgba(26, 25, 23, .3));
}

a.hdl-reviews__rating:focus-visible,
.hdl-reviews__google-link:focus-visible,
.hdl-reviews__source:focus-visible,
.hdl-reviews__cta a:focus-visible {
	outline: 2px solid var(--primary, currentColor);
	outline-offset: 3px;
}

.hdl-reviews__rating-figure {
	display: flex;
	align-items: center;
	gap: 9px;
}

.hdl-reviews__score {
	font-size: 27px;
	font-weight: 600;
	line-height: 1;
}

.hdl-reviews__count {
	margin-top: 7px;
	text-transform: uppercase;
}

.hdl-reviews__stars {
	display: inline-flex;
	gap: 3px;
	flex: 0 0 auto;
}

.hdl-reviews__stars svg.is-filled { fill: var(--hdl-reviews-google-star); }
.hdl-reviews__stars svg.is-empty { fill: rgba(251, 188, 4, .24); }
.hdl-reviews__google-mark { display: block; flex: 0 0 auto; }

.hdl-reviews__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--hdl-reviews-fade), #000 calc(100% - var(--hdl-reviews-fade)), transparent);
	mask-image: linear-gradient(to right, transparent, #000 var(--hdl-reviews-fade), #000 calc(100% - var(--hdl-reviews-fade)), transparent);
}

.hdl-reviews__track {
	display: flex;
	width: max-content;
	animation: hdl-reviews-marquee var(--hdl-speed) linear infinite;
	will-change: transform;
}

.hdl-reviews__track:hover,
.hdl-reviews__track:focus-within { animation-play-state: paused; }

.hdl-reviews__group {
	display: flex;
	flex: 0 0 auto;
	align-items: stretch;
	gap: var(--hdl-reviews-gap);
	margin-right: var(--hdl-reviews-gap);
}

@keyframes hdl-reviews-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

.hdl-reviews__card {
	width: var(--hdl-reviews-card-width);
	max-width: var(--hdl-reviews-card-width);
	min-height: 286px;
	flex: 0 0 var(--hdl-reviews-card-width);
	background: var(--hdl-reviews-card-bg);
	padding: 30px 30px 26px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--hdl-reviews-card-text);
}

.hdl-reviews__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.hdl-reviews__google-link {
	display: inline-flex;
	text-decoration: none;
	border-radius: 2px;
}

.hdl-reviews__quote {
	color: inherit;
	text-wrap: pretty;
}

.hdl-reviews__foot {
	margin-top: auto;
	padding-top: 17px;
	border-top: 1px solid rgba(245, 243, 240, .16);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.hdl-reviews__author {
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
}

.hdl-reviews__source,
.hdl-reviews__place {
	display: inline-block;
	margin-top: 5px;
	color: rgba(245, 243, 240, .68);
	text-decoration: none;
}

.hdl-reviews__source { text-transform: uppercase; }
.hdl-reviews__source:hover { text-decoration: underline; text-underline-offset: 3px; }

.hdl-reviews__cta {
	margin-top: 34px;
}

.hdl-reviews__cta a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
	text-transform: uppercase;
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, gap .2s ease;
}

.hdl-reviews__cta a:hover { border-bottom-color: currentColor; gap: 12px; }

.hdl-reviews__empty {
	padding: 18px 20px;
	border: 1px dashed var(--primary-dark-trans-30, #b7aa98);
	background: var(--primary-ultra-light, #f5f3f0);
	color: inherit;
}

@media (max-width: 1200px) {
	.hdl-reviews {
		--hdl-reviews-fade: 40px;
	}
	.hdl-reviews__head {
		grid-template-columns: 1fr;
		gap: 22px;
		align-items: start;
		margin-bottom: 30px;
	}
	.hdl-reviews__rating { min-width: 0; width: fit-content; }
}

@media (max-width: 900px) {
	.hdl-reviews {
		--hdl-reviews-card-width: 340px;
		--hdl-reviews-fade: 28px;
	}
	.hdl-reviews__card { min-height: 270px; }
}

@media (max-width: 600px) {
	.hdl-reviews {
		--hdl-reviews-card-width: 84vw;
		--hdl-reviews-gap: 16px;
		--hdl-reviews-fade: 16px;
	}
	.hdl-reviews__inner { padding-inline: var(--section-padding-x, 20px); }
	.hdl-reviews__card { min-height: 300px; padding: 26px 24px 22px; }
	.hdl-reviews__rating { padding: 14px 16px; }
	.hdl-reviews__score { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.hdl-reviews__track { animation: none; }
	.hdl-reviews__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.hdl-reviews__rating,
	.hdl-reviews__cta a { transition: none; }
}
