/*
 * Home testimonials (patterns/home-voices.php). Values from the old
 * testimonials-swiper.tsx and the .custom-swiper-pagination rules in
 * globals.css. theme.js (sp-slider) runs the slides, arrows and bars.
 */
.sp-home-voices.wp-block-cover {
	position: relative;
	isolation: isolate;
	display: block;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}
.sp-home-voices > .wp-block-cover__image-background {
	object-fit: cover;
	object-position: center;
}
.sp-home-voices > .wp-block-cover__inner-container {
	position: relative;
	z-index: 10;
	width: 100%;
	color: var(--wp--preset--color--white);
}
.sp-home-voices .sp-home-voices__container { padding-block: 40px; }
@media (min-width: 1024px) {
	.sp-home-voices .sp-home-voices__container { padding-block: 100px; }
}
.sp-home-voices .sp-home-voices__label.sp-home-voices__label {
	margin-bottom: 40px;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center;
	color: var(--wp--preset--color--white);
}
@media (min-width: 1024px) {
	.sp-home-voices .sp-home-voices__label.sp-home-voices__label { margin-bottom: 60px; }
}
.sp-home-voices .sp-home-voices__slider {
	max-width: 1080px;
	margin-inline: auto;
}
.sp-home-voices .sp-home-voices__frame { position: relative; }

/* Slide. */
.sp-home-voices .sp-home-voices__slide {
	display: grid;
	align-items: center;
	gap: 40px;
	height: 100%;
	color: var(--wp--preset--color--white);
}
@media (min-width: 640px) {
	.sp-home-voices .sp-home-voices__slide { grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.6fr); }
}
@media (min-width: 1024px) {
	.sp-home-voices .sp-home-voices__slide { grid-template-columns: minmax(260px, 0.7fr) minmax(380px, 1.6fr); }
}
@media (min-width: 1280px) {
	.sp-home-voices .sp-home-voices__slide { gap: 56px; }
}
.sp-home-voices .sp-home-voices__portrait {
	position: relative;
	width: 100%;
	max-width: 220px;
	margin-inline: auto;
	aspect-ratio: 300 / 330;
}
@media (min-width: 640px) {
	.sp-home-voices .sp-home-voices__portrait { margin-inline: 0; }
}
@media (min-width: 1024px) {
	.sp-home-voices .sp-home-voices__portrait { max-width: 270px; }
}
.sp-home-voices .sp-home-voices__portrait::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--primary);
	clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}
.sp-home-voices .sp-home-voices__face {
	position: absolute;
	inset: 0;
	z-index: 10;
	margin: 0;
}
.sp-home-voices .sp-home-voices__face img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: bottom;
}
.sp-home-voices .sp-home-voices__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.sp-home-voices .sp-home-voices__name.sp-home-voices__name {
	margin-bottom: 8px;
	font-size: clamp(1.8rem, 3vw, 2.2rem);
	line-height: 1.04;
	font-weight: 500;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--white);
}
.sp-home-voices .sp-home-voices__role {
	font-size: var(--wp--preset--font-size--label);
	line-height: 1;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.sp-home-voices .sp-home-voices__logo.sp-home-voices__logo {
	position: relative;
	width: 120px;
	height: 32px;
	margin: 16px 0 0;
}
.sp-home-voices .sp-home-voices__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left;
}
.sp-home-voices .sp-home-voices__quote.sp-home-voices__quote {
	margin: 36px 0 0;
	padding: 0;
	border: 0;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--white);
}
.sp-home-voices .sp-home-voices__quote p { margin: 0; }

/* Arrows: from xl, 96px outside the slides. */
.sp-home-voices .sp-home-voices__arrow.sp-home-voices__arrow {
	position: absolute;
	top: 50%;
	z-index: 20;
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -22px 0 0;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 30%, transparent);
	border-radius: 9999px;
	background: color-mix(in srgb, var(--wp--preset--color--white) 5%, transparent);
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}
.sp-home-voices .sp-home-voices__arrow img { width: 20px; height: 20px; transition: filter 0.15s; }
.sp-home-voices .sp-home-voices__arrow--prev img { margin-left: -1px; }
.sp-home-voices .sp-home-voices__arrow--next img { margin-left: 1px; }
.sp-home-voices .sp-home-voices__arrow:hover {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
}
.sp-home-voices .sp-home-voices__arrow:hover img { filter: brightness(0); }
@media (min-width: 1280px) {
	.sp-home-voices .sp-home-voices__arrow.sp-home-voices__arrow { display: flex; }
	.sp-home-voices .sp-home-voices__arrow--prev { left: -96px; }
	.sp-home-voices .sp-home-voices__arrow--next { right: -96px; }
}

/* Bars under the slides. */
.sp-home-voices .sp-home-voices__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 10px;
	margin: 40px auto 0;
}
@media (min-width: 1024px) {
	.sp-home-voices .sp-home-voices__dots { margin-top: 60px; }
}
.sp-home-voices .sp-slider__dot {
	width: 42px;
	height: 5px;
	margin: 0 6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: color-mix(in srgb, var(--wp--preset--color--white) 32%, transparent);
	transform: skewX(-45deg);
	cursor: pointer;
	transition: background-color 0.25s ease;
}
.sp-home-voices .sp-slider__dot:last-child { margin-right: 0; }
.sp-home-voices .sp-slider__dot.is-active { background: var(--wp--preset--color--primary); }
