/**
 * Real Results before & after comparison slider styles.
 *
 * @package Novacare
 */

.results-section {
	background-color: #f9f7f2;
	color: #1c1917;
}

.results-section__inner {
	padding-block: clamp(4rem, 8vw, 5.5rem);
}

.results-section__header {
	max-width: 42rem;
	margin-inline: auto;
	text-align: center;
}

.results-section__eyebrow {
	margin: 0 0 0.875rem;
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	font-weight: 500;
	font-style: normal;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-align: center;
	text-transform: uppercase;
	color: #B8965A;
}

.results-section__title {
	margin: 0 0 1.25rem;
	font-family: "Playfair Display", serif;
	font-size: 44px;
	font-weight: 500;
	font-style: normal;
	line-height: 66px;
	letter-spacing: 0;
	text-align: center;
	color: #1C1917;
}

.results-section__disclaimer,
.results-section__note {
	margin: 0;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: 28px;
	letter-spacing: 0;
	text-align: center;
	color: #6B6356;
}

.results-section__note {
	margin-top: 0.15rem;
}

.results-section__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.results-section__footer {
	display: flex;
	justify-content: center;
	margin-top: clamp(2.5rem, 5vw, 3rem);
}

.results-section__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	padding: 0.95rem 1.75rem;
	border: 1px solid #2D4739;
	background: transparent;
	color: #2D4739;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	font-weight: 500;
	font-style: normal;
	line-height: 20px;
	letter-spacing: 0.84px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.results-section__cta:hover,
.results-section__cta:focus-visible {
	background-color: #2D4739;
	border-color: #2D4739;
	color: #ffffff;
}

.results-section__cta svg {
	flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Results card
   ------------------------------------------------------------------------- */
.results-card {
	background: #ffffff;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
}

.results-card__comparison {
	position: relative;
}

.results-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ece7df;
	-webkit-tap-highlight-color: transparent;
	touch-action: pan-y;
}

.results-card__photo {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	margin: 0;
}

.results-card__photo--after {
	width: 100%;
	z-index: 1;
}

.results-card__photo--before {
	width: var(--compare-pos, 50%);
	z-index: 2;
	overflow: hidden;
}

.results-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.results-card__photo--before .results-card__image {
	position: absolute;
	top: 0;
	left: 0;
	max-width: none;
	height: 100%;
}

.results-card__badge {
	position: absolute;
	bottom: 0.625rem;
	z-index: 6;
	padding: 0.35rem 0.55rem;
	color: #ffffff;
	font-family: var(--mt-font-family);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
	pointer-events: none;
}

.results-card__photo--before .results-card__badge {
	left: 0.625rem;
	background: #1c1917b2;
}

.results-card__photo--after .results-card__badge {
	right: 0.625rem;
	background: #2d4739;
}

/* Handle */
.results-card__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--compare-pos, 50%);
	z-index: 3;
	width: 0;
	transform: translateX(-50%);
	pointer-events: none;
}

.results-card__handle-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
}

.results-card__handle-control {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.42);
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.results-card__handle-knob {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.125rem;
	width: 2.375rem;
	height: 2.375rem;
	border-radius: 50%;
	background: #ffffff;
	color: #6b6356;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

/* Range input overlay */
.results-card__slider {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	position: absolute;
	top: 50%;
	left: -25px;
	z-index: 4;
	width: calc(100% + 50px);
	height: 3.25rem;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	transform: translateY(-50%);
	cursor: ew-resize;
}

.results-card__slider:focus {
	outline: none;
}

.results-card__slider:focus-visible {
	outline: 2px solid #c8a46e;
	outline-offset: 2px;
}

.results-card__slider::-webkit-slider-runnable-track {
	height: 100%;
	background: transparent;
}

.results-card__slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 3.25rem;
	height: 3.25rem;
	border: none;
	border-radius: 50%;
	background: transparent;
	cursor: ew-resize;
}

.results-card__slider::-moz-range-track {
	height: 100%;
	background: transparent;
	border: none;
}

.results-card__slider::-moz-range-thumb {
	width: 3.25rem;
	height: 3.25rem;
	border: none;
	border-radius: 50%;
	background: transparent;
	cursor: ew-resize;
}

.results-card__body {
	padding: 1.125rem 1.25rem 1.35rem;
	text-align: left;
}

.results-card__category {
	margin: 0 0 0.5rem;
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	font-weight: 400;
	font-style: normal;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #B8965A;
}

.results-card__title {
	margin: 0;
	font-family: "Playfair Display", serif;
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: 22.86px;
	letter-spacing: 0;
	color: #1C1917;
}

body.is-rtl .results-card__body {
	text-align: right;
}

body.is-rtl .results-card__photo--before .results-card__badge {
	left: auto;
	right: 0.625rem;
}

body.is-rtl .results-card__photo--after .results-card__badge {
	right: auto;
	left: 0.625rem;
}

@media (max-width: 991px) {
	.results-section__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.results-section__grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 24rem;
		margin-inline: auto;
	}

	.results-card__handle-control,
	.results-card__slider::-webkit-slider-thumb,
	.results-card__slider::-moz-range-thumb {
		width: 3rem;
		height: 3rem;
	}

	.results-card__handle-knob {
		width: 2.125rem;
		height: 2.125rem;
	}

	.results-card__slider {
		height: 3rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.results-card__photo--before {
		transition: none !important;
	}
}
