/* Homepage Customer Results — scoped to .gd-home-customer-results */

.gd-home-customer-results {
	--gd-results-navy: #1F2A3A;
	--gd-results-primary: #E73F1E;
	--gd-results-primary-light: #F04B27;
	--gd-results-cream: #F8F8F6;
	--gd-results-white: #ffffff;
	--gd-results-gap: 1.25rem;
	position: relative;
	padding: var(--gd-home-section-space) 0;
	background:
		linear-gradient(180deg, var(--gd-results-cream) 0%, #F0F0EE 48%, var(--gd-results-white) 100%);
	overflow: hidden;
}

.gd-home-customer-results__bg-accent {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 12% 18%, rgba(var(--gd-primary-rgb), 0.12) 0%, transparent 42%),
		radial-gradient(circle at 88% 72%, rgba(var(--gd-secondary-rgb), 0.08) 0%, transparent 38%);
}

.gd-home-customer-results img {
	display: block;
	max-width: 100%;
	height: auto;
}

.gd-home-customer-results__inner,
.gd-home-customer-results .gd-home-customer-results__inner.container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: clamp(1rem, 3vw, 4rem);
}

.gd-home-customer-results__header {
	margin-bottom: clamp(2rem, 4vw, 3rem);
	text-align: center;
}

.gd-home-customer-results__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gd-results-primary);
}

.gd-home-customer-results__eyebrow-line {
	display: inline-block;
	width: 2.5rem;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gd-results-primary), var(--gd-results-primary-light));
}

.gd-home-customer-results--rtl .gd-home-customer-results__eyebrow-line {
	background: linear-gradient(270deg, transparent, var(--gd-results-primary), var(--gd-results-primary-light));
}

.gd-home-customer-results .gd-home-customer-results__heading.gd-section-heading {
	margin: 0 auto;
	max-width: none;
	width: 100%;
}

.gd-home-customer-results .gd-section-heading__title {
	color: var(--gd-results-navy);
}

.gd-home-customer-results .gd-section-heading__description,
.gd-home-customer-results .gd-section-heading__description p {
	color: rgba(var(--gd-secondary-rgb), 0.78);
}

.gd-home-customer-results .gd-section-heading__divider::before,
.gd-home-customer-results .gd-section-heading__divider::after {
	background: linear-gradient(90deg, transparent, var(--gd-results-primary-light), transparent);
}

.gd-home-customer-results__carousel {
	--gd-results-visible-desktop: 4;
	--gd-results-gap: 1.25rem;
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.75rem 1rem;
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.gd-home-customer-results__viewport {
	overflow: hidden;
	grid-column: 1 / -1;
	grid-row: 1;
	padding-inline: clamp(2.5rem, 4vw, 3.5rem);
}

.gd-home-customer-results__track {
	display: flex;
	gap: var(--gd-results-gap);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.gd-home-customer-results__carousel.is-reduced-motion .gd-home-customer-results__track {
	transition: none;
}

.gd-home-customer-results__carousel.is-static .gd-home-customer-results__track {
	transform: none !important;
}

.gd-home-customer-results .gd-home-customer-results__slide {
	flex: 0 0 calc(
		(100% - (var(--gd-results-gap) * (var(--gd-results-visible-desktop) - 1)))
		/ var(--gd-results-visible-desktop)
	);
	min-width: 0;
}

.gd-home-customer-results__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 1.125rem;
	background: var(--gd-results-white);
	border: 1px solid rgba(var(--gd-secondary-rgb), 0.08);
	box-shadow:
		0 14px 36px rgba(var(--gd-secondary-rgb), 0.08),
		0 2px 0 rgba(240, 75, 39, 0.35) inset;
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gd-home-customer-results__media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: linear-gradient(145deg, rgba(var(--gd-secondary-rgb), 0.06), rgba(var(--gd-primary-rgb), 0.08));
}

.gd-home-customer-results__image,
.gd-home-customer-results__video-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gd-home-customer-results__video-trigger {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: inherit;
}

.gd-home-customer-results__video-trigger:disabled {
	cursor: not-allowed;
	opacity: 0.72;
}

.gd-home-customer-results__video-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(var(--gd-secondary-rgb), 0.08) 0%, rgba(var(--gd-secondary-rgb), 0.55) 100%);
	pointer-events: none;
}

.gd-home-customer-results__video-label {
	position: absolute;
	top: 0.875rem;
	inset-inline-end: 0.875rem;
	z-index: 2;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gd-results-white);
	background: rgba(var(--gd-secondary-rgb), 0.82);
	box-shadow: 0 6px 16px rgba(var(--gd-secondary-rgb), 0.22);
}

.gd-home-customer-results__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
}

.gd-home-customer-results__play-ring {
	display: grid;
	place-items: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	background: rgba(var(--gd-secondary-rgb), 0.42);
	border: 2px solid rgba(240, 75, 39, 0.55);
	box-shadow: 0 10px 28px rgba(var(--gd-secondary-rgb), 0.28);
	transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.gd-home-customer-results__play-icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	color: var(--gd-results-navy);
	background: linear-gradient(135deg, var(--gd-results-primary-light), var(--gd-results-primary));
}

.gd-home-customer-results__card.is-video-result .gd-home-customer-results__badge {
	inset-inline-start: 0.875rem;
	inset-inline-end: auto;
}

.gd-home-customer-results__media-shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 42%, rgba(var(--gd-primary-rgb), 0.08) 100%);
	pointer-events: none;
}

.gd-home-customer-results__badge {
	position: absolute;
	top: 0.875rem;
	inset-inline-start: 0.875rem;
	z-index: 2;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gd-results-navy);
	background: linear-gradient(135deg, var(--gd-results-primary-light), var(--gd-results-primary));
	box-shadow: 0 6px 18px rgba(var(--gd-primary-rgb), 0.28);
}

.gd-home-customer-results__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	padding: 1.15rem 1.5rem 1.3rem;
	text-align: center;
}

.gd-home-customer-results__card-title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.35;
	font-weight: 700;
	color: var(--gd-results-navy);
	text-align: center;
}

.gd-home-customer-results__card-button,
.gd-home-customer-results__card-button:visited,
.gd-home-customer-results__card-button:hover,
.gd-home-customer-results__card-button:focus,
.gd-home-customer-results__card-button:focus-visible,
.gd-home-customer-results__card-button:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	margin-top: 0.35rem;
	padding: 0.6875rem 1.375rem;
	border-radius: 999px;
	background: var(--gd-results-primary);
	color: var(--gd-button-text);
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gd-home-customer-results__arrow {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(var(--gd-secondary-rgb), 0.12);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--gd-results-navy);
	box-shadow: 0 8px 22px rgba(var(--gd-secondary-rgb), 0.1);
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.gd-home-customer-results__arrow--prev {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.gd-home-customer-results__arrow--next {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
}

.gd-home-customer-results__arrow:disabled,
.gd-home-customer-results__arrow.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.gd-home-customer-results__dots {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	grid-column: 1 / -1;
	margin-top: 1.25rem;
}

.gd-home-customer-results__dots.is-hidden {
	display: none;
}

.gd-home-customer-results__dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(var(--gd-secondary-rgb), 0.22);
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease;
}

.gd-home-customer-results__dot.is-active,
.gd-home-customer-results__dot[aria-current="true"] {
	background: var(--gd-results-primary);
	transform: scale(1.25);
}

@media (hover: hover) and (pointer: fine) {
	.gd-home-customer-results__card:hover {
		transform: translateY(-4px);
		box-shadow:
			0 18px 42px rgba(var(--gd-secondary-rgb), 0.12),
			0 2px 0 rgba(240, 75, 39, 0.45) inset;
	}

	.gd-home-customer-results__card:hover .gd-home-customer-results__image,
	.gd-home-customer-results__card:hover .gd-home-customer-results__video-image {
		transform: scale(1.05);
	}

	.gd-home-customer-results__video-trigger:not(:disabled):hover .gd-home-customer-results__play-ring {
		transform: scale(1.06);
		background: rgba(var(--gd-secondary-rgb), 0.55);
		border-color: var(--gd-results-primary-light);
	}

	.gd-home-customer-results__arrow:not(:disabled):hover {
		background: var(--gd-results-navy);
		color: var(--gd-results-white);
		border-color: var(--gd-results-navy);
	}

	.gd-home-customer-results__card-button:hover {
		transform: translateY(-2px);
		box-shadow: 0 12px 28px rgba(var(--gd-primary-rgb), 0.24);
		background: var(--gd-results-primary-light);
	}
}

.gd-home-customer-results__arrow:focus-visible,
.gd-home-customer-results__dot:focus-visible,
.gd-home-customer-results__video-trigger:focus-visible,
.gd-home-customer-results__card-button:focus-visible,
.gd-home-customer-results__modal-close:focus-visible {
	outline: 2px solid var(--gd-results-primary);
	outline-offset: 2px;
}

body.gd-home-customer-results-modal-open {
	overflow: hidden;
}

.gd-home-customer-results__modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 1.25rem;
}

.gd-home-customer-results__modal[hidden] {
	display: none;
}

.gd-home-customer-results__modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(var(--gd-secondary-rgb), 0.72);
}

.gd-home-customer-results__modal-dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	border-radius: 1rem;
	overflow: hidden;
	background: var(--gd-results-navy);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.gd-home-customer-results__modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1rem;
	background: rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid rgba(240, 75, 39, 0.18);
}

.gd-home-customer-results__modal-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--gd-results-white);
}

.gd-home-customer-results__modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--gd-results-white);
	cursor: pointer;
	transition: background 0.25s ease;
}

.gd-home-customer-results__modal-body {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.gd-home-customer-results__modal-body iframe,
.gd-home-customer-results__modal-body video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 1024px) {
	.gd-home-customer-results .gd-home-customer-results__carousel {
		max-width: 100%;
		width: 100%;
		margin-inline: 0;
		--gd-results-gap: 1.125rem;
	}

	.gd-home-customer-results__viewport {
		padding-inline: clamp(2rem, 4vw, 2.5rem);
	}

	.gd-home-customer-results .gd-home-customer-results__slide {
		flex-basis: calc((100% - var(--gd-results-gap)) / 2);
	}

	.gd-home-customer-results__content {
		padding-inline: 1.25rem;
	}
}

@media (max-width: 640px) {
	.gd-home-customer-results .gd-home-customer-results__carousel {
		--gd-results-gap: 1rem;
	}

	.gd-home-customer-results__viewport {
		padding-inline: 0;
	}

	.gd-home-customer-results__arrow {
		display: none;
	}

	.gd-home-customer-results .gd-home-customer-results__slide {
		flex-basis: 100%;
	}

	.gd-home-customer-results__content {
		padding-inline: 1.125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gd-home-customer-results__track,
	.gd-home-customer-results__image,
	.gd-home-customer-results__video-image,
	.gd-home-customer-results__card,
	.gd-home-customer-results__arrow,
	.gd-home-customer-results__dot,
	.gd-home-customer-results__play-ring,
	.gd-home-customer-results__modal-close {
		transition: none;
	}
}
