/* ==========================================================================
   Testimonial slider
   Used on: Home, About.
   ========================================================================== */

/* ---------- Testimonials ---------- */

.testimonials__grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

@media (min-width: 960px) {
	.testimonials__grid {
		grid-template-columns: 0.8fr 1.2fr;
		gap: 80px;
	}
}

.slider-controls {
	display: flex;
	gap: 10px;
	margin-top: 24px;
}

.slider-btn {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.slider-btn:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.slider-btn--light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.slider-btn--light:hover {
	background: #fff;
	color: var(--ink);
}

.testimonial-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.testimonial-slider__track {
	display: flex;
	transition: transform 0.8s var(--ease);
}

.testimonial {
	flex: 0 0 100%;
	margin: 0;
	padding: clamp(32px, 5vw, 56px);
}

.testimonial__quote-icon {
	display: block;
	height: 60px;
	font-family: var(--serif);
	font-size: 7rem;
	line-height: 1;
	color: var(--lime);
}

.testimonial__text {
	margin: 0 0 28px;
}

.testimonial__text p {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
	font-weight: 300;
	line-height: 1.45;
	color: var(--ink);
}

.testimonial__author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.testimonial__photo {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--sand);
}

.testimonial__author strong {
	display: block;
	color: var(--ink);
}

.testimonial__author small {
	color: var(--muted);
}

.testimonial__stars {
	display: flex;
	gap: 2px;
	margin-left: auto;
	color: var(--saffron);
}

.testimonial__stars .icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.slider-dots {
	display: flex;
	gap: 8px;
	padding: 0 clamp(32px, 5vw, 56px) 32px;
}

.slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: var(--pill);
	background: var(--sand-2);
	transition: width 0.4s var(--ease), background-color 0.3s;
}

.slider-dot[aria-current="true"] {
	width: 30px;
	background: var(--coral);
}
