.testimonials {
	margin-inline: calc(-1 * var(--page-inset));
	width: calc(100% + (2 * var(--page-inset)));
	padding-inline: var(--page-inset);
	box-sizing: border-box;
	background: var(--color-surface-panel);
	color: var(--color-text);
	overflow-x: clip;
}

.testimonials__shell {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(1.5rem, 3vw, 2.625rem);
	width: min(100%, var(--container));
	margin-inline: auto;
	padding: var(--section-pad-block) var(--section-pad-inline);
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
	box-sizing: border-box;
}

.testimonials__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	text-align: center;
}

.testimonials__heading {
	max-width: 100%;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 5vw, var(--font-size-h3));
	font-weight: var(--font-weight-bold);
	line-height: 1.5;
	color: #1c1c1c;
	overflow-wrap: break-word;
}

.testimonials__heading > *:first-child {
	margin: 0;
}

.testimonials__heading p {
	margin: 0;
}

.testimonials__heading strong {
	font-weight: inherit;
	color: var(--color-brand);
}

.testimonials__subtitle {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-regular);
	line-height: 1.5;
	color: var(--color-text);
}

/* Eyebrow dot — matches the other section labels */
.testimonials__subtitle::before {
	content: "";
	display: inline-block;
	width: 0.875rem;
	height: 0.875rem;
	border-radius: 50%;
	background: var(--color-accent);
	flex-shrink: 0;
}

.testimonials__carousel {
	position: relative;
	width: 100%;
}

.testimonials__nav {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.testimonials__nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 2px solid #23622d;
	border-radius: 50%;
	background: #ffffff;
	color: #000000;
	cursor: pointer;
	line-height: 0;
	flex-shrink: 0;
	overflow: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.testimonials__nav-icon {
	line-height: 1;
}

.testimonials__nav-icon--prev {
	transform: scaleX(-1);
}

.testimonials__nav-btn:hover:not(:disabled) {
	transform: scale(1.04);
}

.testimonials__nav-btn:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.testimonials__nav-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.testimonials__swiper {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.testimonials__swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.testimonials__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 2rem;
	border-radius: 1rem;
	background: var(--color-bg);
	box-sizing: border-box;
	box-shadow:
		0 1px 1.5px rgba(0, 0, 0, 0.1),
		0 1px 1px rgba(0, 0, 0, 0.1);
}

.testimonials__rating {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 1.25rem;
}

.testimonials__star {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	flex: 0 0 1.25rem;
}

.testimonials__quote {
	margin: 0;
	width: 100%;
	flex: 1 1 auto;
}

.testimonials__quote p {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--font-size-base);
	font-style: italic;
	font-weight: var(--font-weight-regular);
	line-height: 1.625;
	color: var(--color-text);
}

.testimonials__author {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	width: 100%;
	margin-top: auto;
	padding-top: 1.0625rem;
	border-top: 1px solid rgba(28, 28, 28, 0.1);
}

.testimonials__name {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--font-size-base);
	font-weight: 600;
	line-height: 1.5;
	color: var(--color-text);
}

.testimonials__role {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-regular);
	line-height: 1.4286;
	color: rgba(28, 28, 28, 0.6);
}

.testimonials__pagination {
	margin-top: 1.25rem;
	position: static;
	text-align: center;
}

.testimonials__pagination .swiper-pagination-bullet {
	width: 0.5rem;
	height: 0.5rem;
	background: var(--color-border);
	opacity: 1;
}

.testimonials__pagination .swiper-pagination-bullet-active {
	background: var(--color-accent);
}

@media (min-width: 48rem) {
	.testimonials__shell {
		gap: 2.5rem;
	}

	.testimonials__nav-btn {
		width: 3.75rem;
		height: 3.75rem;
	}

	.testimonials__card {
		min-height: 20.1875rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.testimonials__nav-btn {
		transition: none;
	}
}

/* Scroll entrance animations */
@media (prefers-reduced-motion: no-preference) {
	.testimonials--motion:not(.testimonials--in) .testimonials__heading,
	.testimonials--motion:not(.testimonials--in) .testimonials__subtitle {
		opacity: 0;
		transform: translateY(-2.5rem);
	}

	.testimonials--motion:not(.testimonials--in) .testimonials__nav {
		opacity: 0;
		transform: translateY(-1.5rem);
	}

	.testimonials--motion:not(.testimonials--in) .testimonials__card {
		opacity: 0;
		transform: translateY(-2.5rem);
	}

	.testimonials.testimonials--in .testimonials__heading {
		opacity: 1;
		transform: translateY(0);
		transition:
			opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
			transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.testimonials.testimonials--in .testimonials__subtitle {
		opacity: 1;
		transform: translateY(0);
		transition:
			opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s,
			transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
	}

	.testimonials.testimonials--in .testimonials__nav {
		opacity: 1;
		transform: translateY(0);
		transition:
			opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
			transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
	}

	.testimonials.testimonials--in .testimonials__card {
		opacity: 1;
		transform: translateY(0);
		transition:
			opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--testimonials-card-delay, 0.32s),
			transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--testimonials-card-delay, 0.32s);
	}
}
