/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-section {
	padding: 80px 0;
	background: #fff;
}

.testimonials-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 40px;
}

/* Header
   ========================================================================== */
.testimonials-header {
	text-align: center;
	margin-bottom: 50px;
}

.testimonials-headline {
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.testimonials-subheadline {
	font-size: 17px;
	color: #555;
	margin: 0 auto;
	max-width: 600px;
	line-height: 1.6;
}

/* Slider Container
   ========================================================================== */
.testimonials-slider {
	position: relative;
	overflow: hidden;
}

.testimonials-track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
	flex: 0 0 100%;
	min-width: 100%;
	padding: 0 10px;
	box-sizing: border-box;
}

/* Testimonial Card
   ========================================================================== */
.testimonial-card {
	background: #f9f9f9;
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	max-width: 700px;
	margin: 0 auto;
}

/* Rating Stars */
.testimonial-rating {
	margin-bottom: 24px;
}

.testimonial-rating i {
	font-size: 18px;
	color: #f5c518;
	margin: 0 2px;
}

/* Quote */
.testimonial-quote {
	font-size: 20px;
	line-height: 1.7;
	color: #333;
	margin: 0 0 32px;
	font-style: italic;
	position: relative;
}

.testimonial-quote::before {
	content: '"';
	font-size: 60px;
	font-family: Georgia, serif;
	color: var(--morrell-red, #900);
	opacity: 0.2;
	position: absolute;
	top: -20px;
	left: -10px;
	line-height: 1;
}

/* Author */
.testimonial-author {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.author-image {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.author-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.author-info {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.author-name {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
}

.author-title {
	font-size: 14px;
	color: #777;
	margin-top: 2px;
}

/* Without image - center the text */
.testimonial-author:not(:has(.author-image)) .author-info {
	text-align: center;
}

/* Slider Arrows
   ========================================================================== */
.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
	z-index: 10;
}

.slider-arrow:hover {
	background: var(--morrell-red, #900);
	border-color: var(--morrell-red, #900);
}

.slider-arrow i {
	font-size: 16px;
	color: #333;
	transition: color 0.3s ease;
}

.slider-arrow:hover i {
	color: #fff;
}

.slider-prev {
	left: 0;
}

.slider-next {
	right: 0;
}

.slider-arrow:active {
	transform: translateY(-50%) scale(0.95);
}

/* Slider Dots
   ========================================================================== */
.slider-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 32px;
}

.slider-dot {
	width: 10px;
	height: 10px;
	background: #ddd;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.3s ease;
	padding: 0;
}

.slider-dot:hover {
	background: #bbb;
}

.slider-dot.active {
	background: var(--morrell-red, #900);
	transform: scale(1.2);
}

/* Scroll Animations
   ========================================================================== */
.js-animations .testimonials-header {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-animations .testimonials-slider {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.js-animations .testimonials-section.in-view .testimonials-header,
.js-animations .testimonials-section.in-view .testimonials-slider {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.testimonial-card {
		padding: 32px;
	}
	
	.testimonial-quote {
		font-size: 18px;
	}
	
	.slider-arrow {
		width: 40px;
		height: 40px;
	}
	
	.slider-prev {
		left: -5px;
	}
	
	.slider-next {
		right: -5px;
	}
}

@media (max-width: 600px) {
	.testimonials-section {
		padding: 60px 0;
	}
	
	.testimonials-container {
		padding: 0 24px;
	}
	
	.testimonials-header {
		margin-bottom: 40px;
	}
	
	.testimonial-card {
		padding: 28px 24px;
	}
	
	.testimonial-quote {
		font-size: 16px;
	}
	
	.testimonial-quote::before {
		font-size: 48px;
		top: -15px;
		left: -5px;
	}
	
	.slider-arrow {
		display: none;
	}
	
	.author-image {
		width: 48px;
		height: 48px;
	}
	
	.slider-dots {
		margin-top: 24px;
	}
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.testimonials-track {
		transition: none;
	}
	
	.js-animations .testimonials-header,
	.js-animations .testimonials-slider {
		opacity: 1;
		transform: none;
		transition: none;
	}
}