/*
 * Client testimonials section (template-parts/testimonials.php), shown on the
 * homepage and About Us. Hand-written, enqueued by Testimonials::enqueueStyles().
 * Lives outside the Vite build like about-page.css.
 *
 * Mobile-first, same frames as the About Us design:
 *   base  → 390w  (16px gutter, 40px section padding, 24px heading)
 *   768+  → 768w  (24px gutter, 56px section padding, 30px heading)
 *   1024+ → 1440w (1200 content, 60px section padding)
 */

.dm-testimonials {
	--testimonials-ink: #262626;
	--testimonials-heading: #120b0c;
	padding-block: 40px;
	background: #f8f1f0;
	color: var(--testimonials-ink);
	font-size: 16px;
	line-height: 24px;
}

.dm-testimonials__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
	max-width: 1248px; /* 1200 content + 2×24 gutter */
	margin-inline: auto;
	padding-inline: 16px;
}

.dm-testimonials__title {
	margin: 0;
	color: var(--testimonials-heading);
	font-size: 24px;
	font-weight: 400;
	line-height: 36px;
	text-align: center;
}

/* Slider: arrows flank the cards from 768px, dots underneath. */
.dm-testimonials__slider { display: flex; align-items: center; gap: 16px; width: 100%; }
.dm-testimonials__swiper { flex: 1 1 auto; min-width: 0; }
.dm-testimonials__nav {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 2px solid var(--testimonials-ink);
	border-radius: 50%;
	background: transparent;
	color: var(--testimonials-ink);
	cursor: pointer;
	transition: background-color .2s, color .2s, opacity .2s;
}
.dm-testimonials__nav svg { width: 20px; height: 20px; }
.dm-testimonials__nav:hover { background: var(--testimonials-ink); color: #fff; }
.dm-testimonials__nav.swiper-button-disabled { opacity: .3; pointer-events: none; }
.dm-testimonials__nav.swiper-button-lock { display: none; }

.dm-testimonial.swiper-slide {
	display: flex;
	flex-direction: column;
	height: auto;
	padding: 24px;
	border-radius: 8px;
	background: #fff;
}
.dm-testimonial__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dm-testimonial__stars { display: inline-flex; gap: 3px; }
.dm-testimonial__stars svg { width: 29px; height: 29px; fill: #dcdce6; }
.dm-testimonial__stars svg.is-filled { fill: #00b67a; }
.dm-testimonial__date { color: var(--testimonials-ink); font-size: 16px; line-height: 24px; white-space: nowrap; }
.dm-testimonial__title {
	display: -webkit-box;
	margin: 0 0 12px;
	overflow: hidden;
	color: var(--testimonials-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 28px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}
.dm-testimonial__text { margin: 0; }

.dm-testimonials__pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	--swiper-pagination-color: var(--testimonials-ink);
	--swiper-pagination-bullet-inactive-color: #d9d9d9;
	--swiper-pagination-bullet-inactive-opacity: 1;
}
.dm-testimonials__pagination .swiper-pagination-bullet { margin: 0 !important; }
.dm-testimonials__pagination.swiper-pagination-lock { display: none; }

/* TrustBox drop target: keeps a clickable area under the slider for the
   plugin's placement tool, then collapses once a widget lands in or beside it. */
.dm-testimonials__trustbox { width: 100%; min-height: 48px; }
.dm-testimonials__trustbox:has(.trustpilot-widget),
.dm-testimonials__trustbox:has(+ .trustpilot-widget),
.trustpilot-widget + .dm-testimonials__trustbox { min-height: 0; }

@media (min-width: 768px) {
	.dm-testimonials { padding-block: 56px; }
	.dm-testimonials__inner { gap: 32px; padding-inline: 24px; }
	.dm-testimonials__title { font-size: 30px; line-height: 45px; }
	.dm-testimonials__nav { display: inline-flex; }
}

@media (min-width: 1024px) {
	.dm-testimonials { padding-block: 60px; }
}

/* ≥1360px: arrows sit outside the 1200 content, as in the design. */
@media (min-width: 1360px) {
	.dm-testimonials__slider { width: calc(100% + 104px); margin-inline: -52px; }
}
