/**
 * Monument Testimonials Slider — background-agnostic card styles.
 */

.mew-testimonials {
	--mew-card-bg: #ffffff;
	--mew-card-border: #e6e6e6;
	--mew-card-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	--mew-card-shadow-hover: 0px 6px 16px rgba(0, 0, 0, 0.1);
	--mew-text: #333333;
	--mew-text-muted: #4a4a4a;
	--mew-nav-border: #d0d0d0;
	--mew-nav-color: #666666;
	--mew-gap: 24px;

	position: relative;
	width: 100%;
	box-sizing: border-box;
	/* Equal side gutter so arrows sit on the card edge, not fully inside it */
	padding: 0 20px;
}

.mew-testimonials *,
.mew-testimonials *::before,
.mew-testimonials *::after {
	box-sizing: border-box;
}

.mew-testimonials.is-loading .mew-testimonials__slider,
.mew-testimonials.is-empty .mew-testimonials__slider,
.mew-testimonials.is-error .mew-testimonials__slider {
	min-height: 120px;
}

.mew-testimonials.is-empty .mew-testimonials__nav,
.mew-testimonials.is-error .mew-testimonials__nav,
.mew-testimonials.is-loading .mew-testimonials__nav,
.mew-testimonials.mew-testimonials--nav-hidden .mew-testimonials__nav {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Loading */

.mew-testimonials__loading {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 160px;
}

.mew-testimonials.is-loading .mew-testimonials__loading {
	display: flex;
}

.mew-testimonials__loading-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mew-nav-border);
	animation: mew-pulse 1s ease-in-out infinite;
}

.mew-testimonials__loading-dot:nth-child(2) {
	animation-delay: 0.15s;
}

.mew-testimonials__loading-dot:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes mew-pulse {
	0%,
	100% {
		opacity: 0.35;
		transform: scale(0.9);
	}
	50% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Slider */

.mew-testimonials__slider {
	width: 100%;
	overflow: hidden;
	/* Vertical only — horizontal negative margin was pulling the track flush left */
	padding: 24px 0;
	margin: -24px 0;
}

.mew-testimonials__slider .swiper-slide {
	height: auto;
	display: flex;
	overflow: visible;
}

.mew-testimonials__slider .swiper-wrapper {
	overflow: visible;
}

/* Navigation */

.mew-testimonials__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 1px solid var(--mew-nav-border);
	border-radius: 50%;
	background: #ffffff;
	color: #010101;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.mew-testimonials__nav svg {
	display: block;
	width: 8px;
	height: 14px;
	flex-shrink: 0;
}

.mew-testimonials__nav:hover,
.mew-testimonials__nav:focus-visible {
	border-color: #999999;
	color: #010101;
	outline: none;
}

.mew-testimonials__nav--prev {
	left: 0;
}

.mew-testimonials__nav--next {
	right: 0;
}

.mew-testimonials__nav.swiper-button-disabled {
	opacity: 1;
	cursor: default;
	background: #ffffff;
	border-color: #e0e0e0;
	color: #c4c4c4;
	pointer-events: none;
}

/* Card */

.mew-testimonial-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 36px 28px 32px;
	background: var(--mew-card-bg);
	border: 1px solid var(--mew-card-border);
	border-radius: 0;
	box-shadow: none;
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease;
}

a.mew-testimonial-card--linked {
	cursor: pointer;
}

a.mew-testimonial-card--linked:hover,
a.mew-testimonial-card--linked:focus-visible {
	box-shadow: var(--mew-card-shadow-hover);
	outline: none;
}

.mew-testimonial-card__portrait {
	width: 96px;
	height: 96px;
	margin: 0 0 24px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #f0f0f0;
}

.mew-testimonial-card__portrait-img,
.mew-testimonial-card__portrait img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mew-testimonial-card__quote {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	flex: 1 1 auto;
}

.mew-testimonial-card__quote p {
	margin: 0;
	color: #1C1423;
	font-size: 18px;
	line-height: 24px;
	font-weight: 300;
	font-family: "Inter";
}

.mew-testimonial-card__name {
	margin: 0 0 20px;
	color: #1C1423;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
	font-family: "Inter";
}

.mew-testimonial-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	margin-top: auto;
}

.mew-testimonial-card__logo img {
	display: block;
	max-width: 140px;
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Responsive */

@media (max-width: 1024px) {
	.mew-testimonials {
		padding: 0 16px;
	}

	.mew-testimonial-card {
		padding: 28px 20px 24px;
	}
}

@media (max-width: 767px) {
	.mew-testimonials {
		padding: 0 14px;
	}

	.mew-testimonials__nav {
		width: 36px;
		height: 36px;
	}

	.mew-testimonial-card__portrait {
		width: 84px;
		height: 84px;
	}
}

/* Static fallback when Swiper is unavailable */

.mew-testimonials.is-static .swiper-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mew-gap);
}

.mew-testimonials.is-static .swiper-slide {
	flex: 1 1 280px;
	max-width: 100%;
}
