/**
 * Module: Client Feedback Section (Testimonials Marquee)
 * Loaded when a `client_feedback_section` layout is present on the page.
 */

:root {
	--indigo: #002B5C;
	--crimson: #ED1C24;
	--slate: #060606;
	--mist: #A5A4A4;
	--frost: #EDEDED;
	--white: #FFFFFF;
	--indigo-deep: #001A3A;
	--indigo-tint: #F2F5F9;
	--ink: #1C2230;
	--ink-soft: #4A5568;
	--line: #D9DCE1;
	--display: 'Gotham', 'Montserrat', system-ui, sans-serif;
	--body: 'Open Sans', system-ui, sans-serif;
}

/* ==========================================================================
   Section Base & Header
   ========================================================================== */
.testimonials {
	background: var(--white);
	overflow: hidden;
	padding: 64px 0 56px;
}

.testimonials .wrap {
	max-width: var(--max, 1180px);
	margin: 0 auto;
	padding: 0 var(--gutter, clamp(20px, 4vw, 48px));
}

.testimonials .head {
	max-width: 640px;
	margin-bottom: 28px;
}

.testimonials .head .eyebrow {
	display: inline-block;
	font-family: var(--display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--crimson);
	margin-bottom: 12px;
}

.testimonials .head h2 {
	font-family: var(--display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	color: var(--indigo);
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0;
}

.testimonials .head p {
	font-family: var(--body);
	color: var(--ink-soft);
	font-size: 17px;
	line-height: 1.6;
	margin-top: 14px;
	margin-bottom: 0;
}

/* ==========================================================================
   Marquee Slider Track
   ========================================================================== */
.testimonials .marquee {
	position: relative;
	width: 100%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.testimonials .track {
	display: flex;
	gap: 24px;
	width: max-content;
	padding: 8px 0 20px;
	animation: slide 60s linear infinite;
}

.testimonials .marquee:hover .track {
	animation-play-state: paused;
}

@keyframes slide {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(calc(-50% - 12px));
	}
}

/* ==========================================================================
   Quote Card (Figure)
   ========================================================================== */
.testimonials .quote {
	width: 440px;
	flex: none;
	background: var(--indigo-tint);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 32px 32px 28px;
	position: relative;
	display: flex;
	flex-direction: column;
	box-shadow: 0 8px 24px rgba(0, 43, 92, .06);
	margin: 0;
}

.testimonials .quote::before {
	content: "\201C";
	position: absolute;
	top: 10px;
	right: 26px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 84px;
	line-height: 1;
	color: var(--crimson);
	opacity: .9;
	pointer-events: none;
}

.testimonials .quote.has-icon::before {
	display: none;
}

.testimonials .quote .quote-icon {
	position: absolute;
	top: 26px;
	right: 26px;
	width: 38px;
	height: 38px;
	object-fit: contain;
	pointer-events: none;
}

.testimonials .quote blockquote {
	font-family: var(--body);
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--ink);
	flex: 1;
	padding-right: 30px;
	margin: 0;
}

.testimonials .quote blockquote p {
	margin: 0 0 12px 0;
}

.testimonials .quote blockquote p:last-child {
	margin-bottom: 0;
}

.testimonials .quote blockquote strong,
.testimonials .quote blockquote b {
	font-weight: 600;
	color: var(--indigo);
}

.testimonials .who {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.testimonials .avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--indigo);
	color: var(--white);
	font-family: var(--display);
	font-weight: 700;
	font-size: 16px;
	display: grid;
	place-items: center;
	letter-spacing: .04em;
	flex: none;
	overflow: hidden;
	box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--crimson);
}

.testimonials .avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.testimonials .who .name {
	font-family: var(--display);
	font-weight: 700;
	color: var(--indigo);
	font-size: 15px;
	line-height: 1.3;
}

.testimonials .who .role {
	font-family: var(--body);
	font-size: 13px;
	color: var(--ink-soft);
	line-height: 1.4;
	margin-top: 2px;
}

.testimonials .who .role b,
.testimonials .who .role strong {
	color: var(--ink);
	font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints & Motion Reductions
   ========================================================================== */
@media (max-width: 980px) {
	.testimonials {
		padding: 48px 0;
	}

	.testimonials .quote {
		width: 320px;
		padding: 24px 22px 20px;
	}

	.testimonials .quote .quote-icon {
		top: 18px;
		right: 18px;
		width: 28px;
		height: 28px;
	}
}

@media (max-width: 600px) {
	.testimonials .head h2 {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.testimonials .track {
		animation: none;
		overflow-x: auto;
	}
}


/* ==========================================================================
   Home Page Scoped Overrides (body.home / body.page-id-7)
   ========================================================================== */
body.home .testimonials,
body.page-id-7 .testimonials {
	background: var(--indigo-tint);
	padding: 64px 0 56px;
}

body.home .testimonials .head .eyebrow,
body.page-id-7 .testimonials .head .eyebrow {
	display: block;
}

body.home .testimonials .quote,
body.page-id-7 .testimonials .quote {
	width: 440px;
	padding: 32px 32px 28px;
	background: var(--white);
}

body.home .testimonials .who .name,
body.page-id-7 .testimonials .who .name {
	line-height: 1.6;
}

body.home .testimonials .who .role,
body.page-id-7 .testimonials .who .role {
	margin-top: 0;
	line-height: 1.6;
}

/* Home Page Tablet: 721px - 980px preserves desktop card sizing matching Netlify */
@media (max-width: 980px) and (min-width: 721px) {
	body.home .testimonials,
	body.page-id-7 .testimonials {
		padding: 64px 0 56px;
	}

	body.home .testimonials .quote,
	body.page-id-7 .testimonials .quote {
		width: 440px;
		padding: 32px 32px 28px;
	}
}

/* Home Page Mobile: <= 720px */
@media (max-width: 720px) {
	body.home .testimonials,
	body.page-id-7 .testimonials {
		padding: 48px 0 56px;
	}

	body.home .testimonials .quote,
	body.page-id-7 .testimonials .quote {
		width: 320px;
		padding: 32px 32px 28px;
	}
}
