/**
 * RF Client Results — custom Rose Fit Elementor widget.
 *
 * Figma node 105:372 (1440 x 612 frame), 1:1 unless noted:
 *   eyebrow (Michroma 13/24) → title (Anton 58/62) → three testimonial
 *   cards (392px wide, 28px apart) → centred "see all" link.
 *
 * The section paints its own background: a flat colour with an optional
 * background video sitting behind it at low opacity, exactly as the Figma
 * frame layers a video fill at 10% over #100F0F.
 *
 * Everything is namespaced under .rf-results and driven by CSS custom
 * properties, so every Elementor control writes one variable instead of
 * fighting selector specificity.
 */

.rf-results {
	/* ---------- design tokens (Figma node 105:372) ---------- */
	--rf-results-bg: #100f0f;
	--rf-results-video-opacity: 0.1;

	--rf-results-inner-width: 1232px;   /* 1440 frame, 104px gutters */
	--rf-results-padding-top: 0px; /* ponytail: spacing owned by Elementor section */
	--rf-results-padding-bottom: 0px;
	--rf-results-padding-x: 20px;

	--rf-results-eyebrow-color: #ffb300;
	--rf-results-eyebrow-gap: 5px;      /* eyebrow 98..122, title starts 127 */
	--rf-results-title-color: #ffffff;
	--rf-results-title-gap: 20px;       /* title 127..189, cards start 209 */

	--rf-results-columns: 3;
	--rf-results-gap: 28px;             /* 524 - (104 + 392) */

	--rf-results-card-bg: rgba(0, 0, 0, 0.35);
	--rf-results-card-radius: 10px;
	--rf-results-card-border-width: 1px;
	--rf-results-card-border-color: #ffb300;
	--rf-results-card-padding-top: 30px;
	--rf-results-card-padding-bottom: 25px;
	--rf-results-card-padding-x: 15px;
	--rf-results-card-gap: 12px;

	--rf-results-star-color: #f29500;
	--rf-results-star-width: 18px;
	--rf-results-star-height: 22px;
	--rf-results-star-gap: 6.5px;       /* 5 x 18 + 4 x 6.5 = 116, the Figma row */

	--rf-results-text-color: #ffffff;
	--rf-results-text-min-height: 111px; /* keeps the three cards level */
	--rf-results-author-color: #f4ea8a;

	--rf-results-cta-color: #ffffff;
	--rf-results-cta-hover-color: #ffb300;
	--rf-results-cta-gap: 7px;
	--rf-results-cta-top: 22px;         /* cards end 472, link starts 494 */
	--rf-results-cta-icon-size: 20px;

	position: relative;
	isolation: isolate;
	z-index: 0;
	/* Stated rather than inherited: the padding has to live INSIDE the 100%
	 * width or the section overhangs its container and the 1232px content
	 * band stops landing on the Figma gutters. */
	box-sizing: border-box;
	width: 100%;
	background-color: var(--rf-results-bg);
	/* ponytail: !important beats Elementor's cached post-44.css, which still
	 * carries a saved padding value from before the control was removed. */
	padding: 0 !important;
	overflow: hidden;
}

/* ---------- optional background video ----------
 * Rendered only when a video URL is set. It sits behind content and in front of
 * the section's background colour, dimmed to --rf-results-video-opacity. */
.rf-results__video {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: var(--rf-results-video-opacity);
	pointer-events: none;
}

.rf-results__inner {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--rf-results-inner-width);
	margin-left: auto;
	margin-right: auto;
}

/* =========================================================
 * HEADINGS
 * ========================================================= */
.rf-results__eyebrow {
	margin: 0 0 var(--rf-results-eyebrow-gap);
	color: var(--rf-results-eyebrow-color);
	font-family: "Michroma", sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.52px;
	text-align: center;
	text-transform: uppercase;
}

.rf-results__title {
	margin: 0 0 var(--rf-results-title-gap);
	color: var(--rf-results-title-color);
	font-family: "Anton", sans-serif;
	font-size: 58px;
	font-weight: 400;
	line-height: 62px;
	letter-spacing: 2.32px;
	text-align: center;
	text-transform: uppercase;
}

/* =========================================================
 * CARD GRID
 * Equal columns rather than fixed 392px widths, so the row keeps
 * the Figma proportions at every container width.
 * ========================================================= */
.rf-results__grid {
	display: grid;
	grid-template-columns: repeat(var(--rf-results-columns), minmax(0, 1fr));
	gap: var(--rf-results-gap);
	align-items: stretch;
}

.rf-results__card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--rf-results-card-gap);
	background: var(--rf-results-card-bg);
	border-radius: var(--rf-results-card-radius);
	border-bottom: var(--rf-results-card-border-width) solid var(--rf-results-card-border-color);
	padding: var(--rf-results-card-padding-top) var(--rf-results-card-padding-x) var(--rf-results-card-padding-bottom);
}

/* ---------- star rating ---------- */
.rf-results__stars {
	display: flex;
	align-items: center;
	gap: var(--rf-results-star-gap);
}

/* The glyph is the exported Figma star used as a mask, so the colour stays
 * a CSS variable instead of being baked into the SVG file. */
.rf-results__star {
	display: block;
	width: var(--rf-results-star-width);
	height: var(--rf-results-star-height);
	background-color: var(--rf-results-star-color);
	-webkit-mask: url("img/rf-star.svg") no-repeat center / contain;
	mask: url("img/rf-star.svg") no-repeat center / contain;
}

.rf-results__star--empty {
	opacity: 0.25;
}

/* ---------- quote + author ---------- */
.rf-results__text {
	margin: 0;
	min-height: var(--rf-results-text-min-height);
	color: var(--rf-results-text-color);
	font-family: "Manrope", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 26px;
	letter-spacing: 0.16px;
	text-wrap: pretty;
}

.rf-results__author {
	margin: 0;
	color: var(--rf-results-author-color);
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
	letter-spacing: 0.16px;
}

/* =========================================================
 * "SEE ALL CLIENT RESULTS" LINK
 * ========================================================= */
.rf-results__cta-row {
	display: flex;
	justify-content: center;
	margin-top: var(--rf-results-cta-top);
}

.rf-results__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--rf-results-cta-gap);
	color: var(--rf-results-cta-color);
	font-family: "Michroma", sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.52px;
	text-transform: uppercase;
	text-decoration: none;
	filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.55));
	transition: color 0.25s ease;
}

.rf-results__cta:hover,
.rf-results__cta:focus-visible {
	color: var(--rf-results-cta-hover-color);
	text-decoration: none;
}

/* Same masking trick as the stars: the arrow is the exported Figma icon,
 * rotated a quarter turn to point right, and it inherits the link colour. */
.rf-results__cta-icon {
	flex: 0 0 auto;
	width: var(--rf-results-cta-icon-size);
	height: var(--rf-results-cta-icon-size);
	background-color: currentColor;
	-webkit-mask: url("img/rf-arrow.svg") no-repeat center / 60% 68%;
	mask: url("img/rf-arrow.svg") no-repeat center / 60% 68%;
	transform: rotate(90deg);
	transition: transform 0.25s ease;
}

.rf-results__cta:hover .rf-results__cta-icon,
.rf-results__cta:focus-visible .rf-results__cta-icon {
	transform: rotate(90deg) translateY(-4px);
}

/* =========================================================
 * RESPONSIVE
 * ========================================================= */
@media (max-width: 1199.98px) {
	.rf-results {
		--rf-results-padding-top: 0px;
		--rf-results-padding-bottom: 0px;
	}

	.rf-results__title {
		font-size: 44px;
		line-height: 48px;
	}
}

@media (max-width: 1024px) {
	.rf-results {
		--rf-results-columns: 2;
		--rf-results-gap: 20px;
		--rf-results-text-min-height: 0px !important;
	}

	.rf-results .rf-results__text {
		min-height: 0 !important;
	}

	.rf-results__video {
		display: block !important;
		visibility: visible !important;
		z-index: 1 !important;
	}

	.rf-results__inner {
		position: relative;
		z-index: 2 !important;
	}
}

@media (max-width: 767.98px) {
	.rf-results {
		--rf-results-columns: 1;
		--rf-results-padding-top: 0px;
		--rf-results-padding-bottom: 0px;
		--rf-results-text-min-height: 0px !important;
	}

	.rf-results .rf-results__text {
		min-height: 0 !important;
	}

	.rf-results__video {
		display: block !important;
		visibility: visible !important;
		z-index: 1 !important;
	}

	.rf-results__inner {
		position: relative;
		z-index: 2 !important;
	}

	.rf-results__title {
		font-size: 32px;
		line-height: 38px;
		letter-spacing: 1.2px;
	}
}

/* =========================================================
 * ACCESSIBILITY
 * ========================================================= */
@media (prefers-reduced-motion: reduce) {
	.rf-results__cta,
	.rf-results__cta-icon {
		transition: none;
	}
}
