/**
 * New Realm Transportation LLC — Testimonials Section Styles
 *
 * Centered testimonial carousel slider with fade transitions.
 *
 * @package NewRealm
 * @since   1.0.0
 */

/* ignoring loop detection */
.testimonials-section {
	background-color: var(--color-white, #ffffff);
	padding: 4.5rem 0;
	color: var(--color-dark);
	position: relative;
	overflow: hidden;
}

.testimonials-section__header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.testimonials-section__title {
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--color-dark);
	margin: 0;
	letter-spacing: -0.75px;
}

/* Slider Container */
.testimonials-slider {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	min-height: 280px; /* Keep height stable during transitions */
}

/* Slides Wrapper */
.testimonials-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

/* Individual Slide */
.testimonial-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition: opacity 0.6s ease, visibility 0.6s ease;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.testimonial-slide.is-active {
	position: relative; /* Takes up space so container auto-heights */
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* Star Rating */
.testimonial-slide__stars {
	display: flex;
	justify-content: center;
	gap: 0.25rem;
	color: var(--color-gold);
	margin-bottom: 1.5rem;
}

/* Quote Text */
.testimonial-slide__quote {
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--color-dark);
	margin: 0 0 2rem 0;
	position: relative;
	font-family: var(--font-primary), 'Inter', sans-serif;
	letter-spacing: -0.5px;
}

/* Large decorative quote marks */
.testimonial-slide__quote::before {
	content: '“';
	font-size: 5rem;
	line-height: 1;
	color: rgba(128, 0, 32, 0.08); /* Faint Maroon */
	position: absolute;
	top: -2.5rem;
	left: -2rem;
	font-family: Georgia, serif;
}

/* Client Details */
.testimonial-slide__meta {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.testimonial-slide__author {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--color-dark);
	margin-top: 0;
	margin-bottom: 0.25rem;
}

.testimonial-slide__company {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-maroon);
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

/* Pagination Dots */
.testimonial-dots {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 3rem;
}

.testimonial-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--color-border);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: all 0.3s ease;
}

.testimonial-dot:hover {
	background-color: var(--color-gold);
}

.testimonial-dot.is-active {
	background-color: var(--color-maroon);
	transform: scale(1.2);
}

/* Navigation Arrow Buttons (Optional - for desktop accessibility) */
.testimonial-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	color: var(--color-dark);
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-nav-btn:hover {
	background-color: var(--color-maroon);
	color: var(--color-white);
	border-color: var(--color-maroon);
	box-shadow: 0 6px 15px rgba(128, 0, 32, 0.2);
}

.testimonial-nav-btn--prev {
	left: -60px;
}

.testimonial-nav-btn--next {
	right: -60px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 991px) {
	.testimonials-section {
		padding: 3.5rem 0;
	}
	.testimonials-section__title {
		font-size: 2.5rem;
	}
	.testimonial-slide__quote {
		font-size: 1.5rem;
	}
	/* Hide side navigation arrows on tablets/mobiles, rely on dots */
	.testimonial-nav-btn {
		display: none;
	}
}

@media screen and (max-width: 768px) {
	.testimonials-section {
		padding: 3rem 0;
	}
	.testimonials-section__title {
		font-size: 2.15rem;
	}
	.testimonial-slide__quote {
		font-size: 1.35rem;
		padding: 0 1rem;
	}
	.testimonial-slide__quote::before {
		font-size: 4rem;
		top: -2rem;
		left: -1rem;
	}
}

@media screen and (max-width: 480px) {
	.testimonials-section__title {
		font-size: 1.85rem;
	}
}
