/*
 * Testimonials page.
 *
 * There was no design file for this page, so the styling is built from the
 * tokens already used across the theme: the orange (#de711e), the cream
 * (#f4eadb / #fdf6f1), the dark brown (#24160a), the elyaris display face for
 * headings, and square corners throughout.
 */

.tp-section {
	padding: 89px 0 55px;
}

.tp-section--tight {
	padding-top: 0;
}

/* ---------------------------------------------------------------
   Highlight strip
   --------------------------------------------------------------- */

.tp-stats {
	background: #fdf6f1;
	border-top: 1px solid rgba(222, 113, 30, 0.18);
	border-bottom: 1px solid rgba(222, 113, 30, 0.18);
	padding: 54px 0;
}

.tp-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 30px;
}

.tp-stat {
	position: relative;
	text-align: center;
	padding: 0 20px;
}

.tp-stat + .tp-stat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 56px;
	background: rgba(36, 22, 10, 0.14);
}

.tp-stat-value {
	display: block;
	font-family: var(--headingFont);
	font-size: 56px;
	line-height: 1;
	color: #de711e;
	margin-bottom: 12px;
}

.tp-stat-label {
	display: block;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #52504e;
}

/* ---------------------------------------------------------------
   Featured pull quote
   --------------------------------------------------------------- */

.tp-featured {
	position: relative;
	background: #24160a;
	color: #f4eadb;
	padding: 96px 0;
	overflow: hidden;
}

.tp-featured-bg {
	position: absolute;
	right: 0;
	bottom: 0;
	max-width: 40%;
	opacity: 0.35;
	pointer-events: none;
}

.tp-featured-inner {
	position: relative;
	z-index: 1;
	max-width: 980px;
	margin: 0 auto;
	text-align: center;
}

.tp-featured-quote-mark {
	display: block;
	margin: 0 auto 26px;
	max-width: 74px;
}

.tp-eyebrow {
	display: block;
	font-size: 14px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #de711e;
	margin-bottom: 22px;
}

.tp-featured-text {
	font-family: var(--headingFont);
	font-size: 42px;
	line-height: 1.35;
	margin: 0 0 38px;
	color: #f4eadb;
}

.tp-featured-text p {
	margin: 0;
}

.tp-featured-rule {
	width: 72px;
	height: 2px;
	background: #de711e;
	margin: 0 auto 26px;
}

.tp-featured-author {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.tp-featured-author img {
	width: 68px;
	height: 68px;
	object-fit: cover;
	border: 2px solid rgba(222, 113, 30, 0.55);
}

.tp-author-name {
	display: block;
	font-family: var(--headingFont);
	font-size: 24px;
	line-height: 1.2;
	color: #fff;
}

.tp-author-role {
	display: block;
	font-size: 15px;
	letter-spacing: 0.06em;
	color: rgba(244, 234, 219, 0.72);
	margin-top: 4px;
}

/* ---------------------------------------------------------------
   Listing grid
   --------------------------------------------------------------- */

.tp-intro {
	max-width: 780px;
	margin: 0 auto 62px;
	text-align: center;
}

.tp-intro .title {
	margin-bottom: 18px;
}

.tp-intro p {
	font-size: 20px;
	line-height: 1.6;
	color: #52504e;
	margin: 0;
}

/* Rows stretch so every card in a row shares the tallest height, which keeps
   the author blocks sitting on a common baseline. */
.tp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 30px;
	align-items: stretch;
}

.tp-card {
	position: relative;
	background: #fdf6f1;
	border: 1px solid rgba(222, 113, 30, 0.14);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
	padding: 42px 36px 34px;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tp-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 3px;
	height: 0;
	background: #de711e;
	transition: height 0.45s ease;
}

.tp-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 26px 60px rgba(36, 22, 10, 0.14);
	border-color: rgba(222, 113, 30, 0.4);
}

.tp-card:hover::before {
	height: 100%;
}

.tp-card-rating {
	display: flex;
	gap: 6px;
	margin-bottom: 22px;
}

.tp-card-rating img {
	width: 18px;
	height: 18px;
}

.tp-card-quote {
	font-size: 18px;
	line-height: 1.7;
	color: #3a352f;
	margin: 0 0 28px;
	flex-grow: 1;
}

.tp-card-quote p {
	margin: 0 0 14px;
}

.tp-card-quote p:last-child {
	margin-bottom: 0;
}

.tp-card-divider {
	width: 100%;
	height: 1px;
	background: rgba(36, 22, 10, 0.12);
	margin-bottom: 22px;
}

.tp-card-author {
	display: flex;
	align-items: center;
	gap: 16px;
}

.tp-card-author img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border: 1px solid rgba(222, 113, 30, 0.35);
}

.tp-card-author .tp-author-name {
	color: #24160a;
	font-size: 21px;
}

.tp-card-author .tp-author-role {
	color: #7a736c;
}

.tp-empty {
	text-align: center;
	font-size: 19px;
	color: #52504e;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 1199px) {
	.tp-featured-text {
		font-size: 34px;
	}
}

@media (max-width: 991px) {
	.tp-section {
		padding: 64px 0 40px;
	}

	.tp-featured {
		padding: 70px 0;
	}

	.tp-featured-text {
		font-size: 28px;
	}

	.tp-stat-value {
		font-size: 44px;
	}

	.tp-grid {
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	}
}

@media (max-width: 767px) {
	.tp-stat + .tp-stat::before {
		display: none;
	}

	.tp-featured-text {
		font-size: 24px;
	}

	.tp-featured-author {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}

	.tp-card {
		padding: 34px 26px 28px;
	}

	.tp-grid {
		grid-template-columns: 1fr;
	}
}

/*
 * Monogram fallback.
 *
 * A testimonial with no portrait would otherwise leave the name sitting against
 * the card edge while its neighbours are indented by an avatar. The initials
 * occupy the same circle at the same size, so a row stays even whether or not
 * every client has supplied a photo.
 */
.tp-author-initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-family: var(--headingFont, "elyarisregular", serif);
	line-height: 1;
	color: #de711e;
	background: rgba(222, 113, 30, 0.1);
	letter-spacing: 0.02em;
}

.tp-featured-author .tp-author-initials {
	width: 68px;
	height: 68px;
	font-size: 26px;
	border: 2px solid rgba(222, 113, 30, 0.55);
	color: #f4eadb;
	background: rgba(244, 234, 219, 0.12);
}

.tp-card-author .tp-author-initials {
	width: 56px;
	height: 56px;
	font-size: 21px;
	border: 1px solid rgba(222, 113, 30, 0.35);
}
