/*
 * CaryTamura Testimonials page (/testimonials/, Page 5481) — 2026 redesign.
 *
 * Loaded on this page only (functions.php), after page-hero.css and
 * sections.css. Below the split title band: the paginated list
 * (`.ct-testimonial-archive`, a Loop Grid of CT Loop – Testimonial Entry,
 * Query ID ct_testimonials_archive, 4 a page, AJAX pagination) as quote
 * cards two to a row on paper, each with the READ MORE fold
 * (`.ct-testimonial-text`, [ct_testimonial_text], testimonials.js — its
 * mechanics are unchanged below), then the contact band.
 *
 * The original single centred column with a large monogram and an
 * uppercase name above each quote is not reproduced.
 */

/* The page body's own padding is dropped: every section carries its own. */
.ct-page-body:has(.ct-testimonial-archive) {
	padding-block: 0;
}

/* --------------------------------------------------------------- section */
.ct-testimonial-archive.e-con {
	--padding-top: var(--ct-space-section);
	--padding-bottom: var(--ct-space-section);
	--padding-left: max(var(--ct-gutter), calc((100% - var(--ct-max)) / 2));
	--padding-right: max(var(--ct-gutter), calc((100% - var(--ct-max)) / 2));
	--row-gap: 0px;
	--kit-widget-spacing: 0px;
	background-color: var(--ct-paper);
}

.ct-testimonial-archive .ct-testimonial-archive__list.elementor-widget {
	--kit-widget-spacing: 0px;
	width: 100%;
	margin: 0;
	/* Page changes scroll the list back into view (Elementor's auto scroll). */
	scroll-margin-top: calc(var(--ct-header-h) + 32px);
}

.ct-testimonial-archive .ct-testimonial-archive__list .elementor-loop-container {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 24px;
}

/* ------------------------------------------------------------------- card
 * White card, a large accent quotation mark, the text in the display face,
 * and the client's name under a rule at the foot (the monogram beside it). */
.ct-testimonial-archive .ct-testimonial-entry.e-con {
	--padding-top: clamp(32px, 3.5vw, 48px);
	--padding-bottom: clamp(28px, 3vw, 40px);
	--padding-left: clamp(24px, 3.5vw, 48px);
	--padding-right: clamp(24px, 3.5vw, 48px);
	--gap: 0px;
	--row-gap: 0px;
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--ct-canvas);
}

.ct-testimonial-archive .ct-testimonial-entry.e-con::before {
	content: "\201C";
	display: block;
	height: 48px;
	margin-bottom: 12px;
	font-family: var(--ct-font-display);
	font-size: 96px;
	line-height: 1;
	color: var(--ct-accent);
}

/* Monogram and name move to the card's foot. */
.ct-testimonial-archive .ct-testimonial-entry__head.e-con {
	--padding-top: 20px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--padding-right: 0px;
	--gap: 14px;
	--flex-wrap: nowrap;
	order: 2;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	border-top: 1px solid var(--ct-border);
}

.ct-testimonial-archive .ct-testimonial-entry__mark.elementor-widget {
	--kit-widget-spacing: 0px;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	margin: 0;
	border-radius: 50%;
	overflow: hidden;
	background-color: var(--ct-paper);
}

.ct-testimonial-archive .ct-testimonial-entry__mark img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.ct-testimonial-archive .ct-testimonial-entry__name.elementor-widget {
	--kit-widget-spacing: 0px;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.ct-testimonial-archive .ct-testimonial-entry__name .elementor-heading-title {
	margin: 0;
	font-family: var(--ct-font-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--ct-ink);
}

.ct-testimonial-archive .ct-testimonial-entry__text.elementor-widget {
	--kit-widget-spacing: 0px;
	order: 1;
	width: 100%;
	margin: 0;
}

/* ------------------------------------------------------------------ text --
 * The quote in the display face; the testimonial's own line breaks kept. */
.ct-testimonial-text p {
	margin: 0;
	font-family: var(--ct-font-display);
	font-size: clamp(17px, 1.35vw, 19px);
	font-weight: 400;
	line-height: 1.65;
	letter-spacing: 0;
	white-space: pre-line;
	color: var(--ct-ink);
}

/* The fold. Collapsed: the first 900 characters and "…". Opening, the box
 * animates from one height to the other while the two versions cross-fade
 * (both are lifted out of flow for the duration); open, the full text. */
.ct-testimonial-text__content {
	position: relative;
	width: 100%;
	overflow: hidden;
	transition: all 0.5s ease;
}

.ct-testimonial-text__short,
.ct-testimonial-text__full,
.ct-testimonial-text__more {
	transition: all 0.5s ease;
}

.ct-testimonial-text--fold .ct-testimonial-text__full {
	display: none;
}

.ct-testimonial-text.is-collapsing .ct-testimonial-text__full,
.ct-testimonial-text.is-expanding .ct-testimonial-text__full {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

.ct-testimonial-text.is-collapsing .ct-testimonial-text__short,
.ct-testimonial-text.is-expanding .ct-testimonial-text__short {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

.ct-testimonial-text.is-collapsing .ct-testimonial-text__full { opacity: 0; }
.ct-testimonial-text.is-collapsing .ct-testimonial-text__short { opacity: 1; }
.ct-testimonial-text.is-expanding .ct-testimonial-text__full { opacity: 1; }
.ct-testimonial-text.is-expanding .ct-testimonial-text__short { opacity: 0; }

.ct-testimonial-text.is-expanded .ct-testimonial-text__full {
	display: block;
	opacity: 1;
}

.ct-testimonial-text.is-expanded .ct-testimonial-text__short {
	display: none;
	opacity: 0;
}

/* READ MORE / READ LESS: one 39px row, the two controls stacked in it and
 * swapped by opacity. Lato 700 14px, 1.5px tracking, a 1px #CCC underline
 * that turns red on hover, and a ⌄ stretched 1.5× (turned over for LESS). */
.ct-testimonial-text__toggle {
	position: relative;
	width: 100%;
	height: 39px;
}

.ct-testimonial-text__more {
	position: absolute;
	bottom: 0;
	left: 0;
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font-family: var(--ct-font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--ct-ink);
	cursor: pointer;
	opacity: 0;
}

.ct-testimonial-text__more:hover,
.ct-testimonial-text__more:focus {
	background: none;
	color: var(--ct-ink);
}

.ct-testimonial-text__more::before {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	bottom: 2px;
	width: 100%;
	height: 1px;
	background: var(--ct-accent);
	transition: all 0.3s ease;
}

.ct-testimonial-text__more:hover::before {
	background: var(--ct-ink);
}

.ct-testimonial-text__more::after {
	content: "\2304";
	display: inline-block;
	position: relative;
	bottom: 3px;
	left: 4px;
	padding-right: 3px;
	transform: scaleX(1.5);
}

.ct-testimonial-text__more--collapse::after {
	bottom: -3px;
	left: -1px;
	transform: scaleX(1.5) rotate(180deg);
}

.ct-testimonial-text:not(.is-expanded) .ct-testimonial-text__more--expand {
	opacity: 1;
	z-index: 1;
}

.ct-testimonial-text.is-expanding .ct-testimonial-text__more--expand {
	opacity: 0;
}

.ct-testimonial-text.is-expanding .ct-testimonial-text__more--collapse,
.ct-testimonial-text.is-expanded .ct-testimonial-text__more--collapse {
	opacity: 1;
	z-index: 1;
}

.ct-testimonial-text.is-collapsing .ct-testimonial-text__more--collapse {
	opacity: 0;
}

/* ------------------------------------------------------------ pagination --
 * Centred, 12px under the last testimonial. 48px squares in the accent;
 * the current page and a hovered link fill red with white figures; "…" and
 * an unavailable arrow sit at half strength. Previous/Next are chevrons drawn
 * from two borders, 16px clear of the numbers (12px from 768). */
.ct-testimonial-archive .elementor-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	font-family: var(--ct-font-body);
	line-height: 1;
}

.ct-testimonial-archive .elementor-pagination .page-numbers {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 48px;
	height: 48px;
	margin: 0 5px;
	padding: 0 14px;
	border: 1px solid var(--ct-border);
	background: var(--ct-canvas);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	color: var(--ct-ink);
	transition: all 0.3s;
}

.ct-testimonial-archive .elementor-pagination a.page-numbers:hover,
.ct-testimonial-archive .elementor-pagination a.page-numbers:focus-visible,
.ct-testimonial-archive .elementor-pagination .page-numbers.current {
	border-color: var(--ct-ink);
	background-color: var(--ct-ink);
	color: var(--ct-on-dark);
}

.ct-testimonial-archive .elementor-pagination {
	margin-top: 48px;
}

.ct-testimonial-archive .elementor-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	opacity: 0.5;
}

.ct-testimonial-archive .elementor-pagination .page-numbers.prev,
.ct-testimonial-archive .elementor-pagination .page-numbers.next {
	width: 48px;
	font-size: 0;
}

/* The numbers' 5px sides are the grid's own Pagination › Spacing (10px);
 * the arrows and "…" take live's spacing instead. Written to outrank the
 * rule Elementor generates for that control. */
body:not(.rtl) .ct-testimonial-archive .elementor-element.ct-testimonial-archive__list .elementor-pagination .page-numbers.dots {
	margin-left: 0;
	margin-right: 0;
}

body:not(.rtl) .ct-testimonial-archive .elementor-element.ct-testimonial-archive__list .elementor-pagination .page-numbers.prev {
	margin-left: 0;
	margin-right: var(--ct-testimonial-arrow-gap, 16px);
}

body:not(.rtl) .ct-testimonial-archive .elementor-element.ct-testimonial-archive__list .elementor-pagination .page-numbers.next {
	margin-left: var(--ct-testimonial-arrow-gap, 16px);
	margin-right: 0;
}

.ct-testimonial-archive .elementor-pagination span.page-numbers.prev,
.ct-testimonial-archive .elementor-pagination span.page-numbers.next {
	opacity: 0.5;
	pointer-events: none;
}

.ct-testimonial-archive .elementor-pagination .page-numbers.prev::before,
.ct-testimonial-archive .elementor-pagination .page-numbers.next::before {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 11px;
	border-bottom: 2px solid;
	border-left: 2px solid;
	transform: translate(calc(-50% + 2px), -50%) rotate(45deg) skew(4deg, 4deg);
}

.ct-testimonial-archive .elementor-pagination .page-numbers.next::before {
	transform: translate(calc(-50% - 2px), -50%) rotate(-135deg) skew(4deg, 4deg);
}

/* Elementor pulses the grid's opacity while a page loads (.e-loading-overlay);
 * live swaps the list without a fade. */
.ct-testimonial-archive .ct-testimonial-archive__list.e-loading-overlay {
	animation: none;
}

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 900px) {
	.ct-testimonial-archive .ct-testimonial-archive__list .elementor-loop-container {
		grid-template-columns: minmax(0, 1fr);
	}

	.ct-testimonial-archive .elementor-pagination {
		--ct-testimonial-arrow-gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ct-testimonial-text__content,
	.ct-testimonial-text__short,
	.ct-testimonial-text__full,
	.ct-testimonial-text__more,
	.ct-testimonial-text__more::before,
	.ct-testimonial-archive .elementor-pagination .page-numbers {
		transition: none;
	}
}
