/* ═════════════════════════════════════════════════════════════════
   PAGE — TESTIMONIALS
   About → Testimonials page (see /pages/page-testimonials.php).

   Page deltas only — cream background, hero blob decorations,
   testimonials 3-column card grid, and the green final CTA variant.

   Class prefix: `.testi-*`
   ═════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────
   PAGE BACKGROUND — cream end-to-end until the green final CTA.
   ───────────────────────────────────────────────────────────────── */
.testi-page {
	background: var(--cream);
}


/* ─────────────────────────────────────────────────────────────────
   HERO BAND — eyebrow + display headline + lede.
   Decorative blob layer sits behind content (z-index 0 vs 1).
   ───────────────────────────────────────────────────────────────── */
.testi-hero-band {
	padding-top: clamp(100px, 11vw, 144px);
	padding-bottom: clamp(40px, 5vw, 80px);
	position: relative;
	overflow-x: clip;
}

/* Decorative organic blobs — CSS approximation of the Figma abstract
   glass shapes. Three layered radial blurs positioned in the right
   half of the hero behind all text content. */
.testi-hero-blobs {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}
.testi-blob {
	position: absolute;
	border-radius: 50%;
}
.testi-blob-1 {
	width: 70vw;
	height: 70vw;
	max-width: 920px;
	max-height: 920px;
	background: rgba(245, 244, 240, 0.9);
	filter: blur(80px);
	right: -12%;
	top: -25%;
	opacity: 0.7;
}
.testi-blob-2 {
	width: 42vw;
	height: 42vw;
	max-width: 560px;
	max-height: 560px;
	background: rgba(11, 102, 35, 0.07);
	filter: blur(90px);
	right: 4%;
	top: 8%;
	opacity: 1;
}
.testi-blob-3 {
	width: 54vw;
	height: 32vw;
	max-width: 720px;
	max-height: 430px;
	background: rgba(245, 244, 240, 0.8);
	filter: blur(70px);
	right: -6%;
	bottom: -15%;
	opacity: 0.6;
}

.testi-hero-band .hero-bg { 
	/* top: -200px; 
	scale: 1; */
}

/* Keep text above blobs */
.testi-hero-wrap {
	position: relative;
	z-index: 1;
}

/* Headline — stacked left-aligned like .wwa-headline (overrides the
   default .hero-headline .it-tail right-align). */
.testi-headline {
	margin: 0 0 clamp(28px, 3.5vw, 50px);
}
.testi-headline .hl-line {
	display: block;
	text-transform: uppercase;
	line-height: 0.96;
}
.testi-headline .it-tail.testi-it-tail {
	display: block;
	text-align: left;
	white-space: normal;
	margin-top: 0;
	line-height: 1.02;
	letter-spacing: 0;
}

.testi-lede {
	max-width: 60ch;
	margin: 0;
}


/* ─────────────────────────────────────────────────────────────────
   TESTIMONIALS HEADING BAND — eyebrow + "TESTIMONIALS FROM OUR
   beloved clients". Same stacked layout as the hero headline.
   ───────────────────────────────────────────────────────────────── */
.testi-quotes-band {
	padding-top: clamp(60px, 7vw, 100px);
	padding-bottom: clamp(32px, 4vw, 56px);
}

.testi-quotes-headline {
	margin: 0;
}
.testi-quotes-headline .hl-line {
	text-transform: uppercase;
}
.testi-quotes-headline .it-tail.testi-quotes-it-tail {
	text-align: left;
	white-space: normal;
	margin-top: 0;
	letter-spacing: 0;
}


/* ─────────────────────────────────────────────────────────────────
   GRID SECTION — remove default .section top-padding so the
   heading band and grid read as one content block.
   ───────────────────────────────────────────────────────────────── */
.testi-grid-section {
	padding-top: 0;
	padding-bottom: clamp(60px, 8vw, 120px);
}


/* ─────────────────────────────────────────────────────────────────
   TESTIMONIALS GRID — 3 equal columns. `align-items: stretch` so
   all cards in a row share the same height, letting the date pin
   to the bottom via `justify-content: space-between` on each card.
   ───────────────────────────────────────────────────────────────── */
.testi-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.2vw, 32px);
	align-items: stretch;
}


/* ─────────────────────────────────────────────────────────────────
   TESTIMONIAL CARD — glassmorphism tile with scroll- and hover-driven
   shimmer band. --shimmer-pos is set by page-testimonials.js (same
   model as .po-step in journey-steps.css). @property is registered
   globally by journey-steps.css so CSS can transition it.
   ───────────────────────────────────────────────────────────────── */
.testi-card {
	--shimmer-pos: 120%;        /* off-screen right; JS updates this */

	background: var(--cream);
	border: 1px solid #d7d5d0;
	border-radius: 14px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: clamp(20px, 2.2vw, 30px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: clamp(16px, 1.8vw, 24px);
	position: relative;
	overflow: hidden;

	transition:
		--shimmer-pos 0.55s ease,
		border-color  0.25s ease,
		transform     0.25s ease,
		box-shadow    0.25s ease;
}

/* Shimmer band — sweeps across the card driven by scroll position
   and follows the cursor on hover (same model as .po-step::after). */
.testi-card::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		120deg,
		transparent                       0%,
		transparent                       calc(var(--shimmer-pos) - 28%),
		rgba(255, 255, 255, 0.18)         calc(var(--shimmer-pos) - 12%),
		rgba(255, 255, 255, 0.45)         var(--shimmer-pos),
		rgba(255, 255, 255, 0.18)         calc(var(--shimmer-pos) + 12%),
		transparent                       calc(var(--shimmer-pos) + 28%),
		transparent                       100%
	);
}

/* Hover: green outline + subtle lift + near-instant cursor tracking */
.testi-card:hover {
	border-color: var(--green);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
	transition:
		--shimmer-pos 0.06s linear,
		border-color  0.25s ease,
		transform     0.25s ease,
		box-shadow    0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
	.testi-card {
		transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	}
	.testi-card::after { display: none; }
}

/* Quote body text */
.testi-card-body {
	font-family: var(--f-sans);
	font-weight: 400;
	font-size: var(--fs-body-sm);
	line-height: 1.54;
	color: var(--ink-soft);
	margin: 0;
}

/* Opening / closing quote marks — bold, coloured by variant */
.testi-qm {
	font-family: var(--f-sans);
	font-weight: 900;
}

/* Highlighted words inside quote — colour set by variant class */
/* (intentionally empty rule — colour provided below) */


/* Orange-accented cards */
.testi-card.is-orange .testi-qm,
.testi-card.is-orange .testi-hi  { color: var(--orange); }

/* Green-accented cards */
.testi-card.is-green .testi-qm,
.testi-card.is-green .testi-hi   { color: var(--green); }

/* All-green cards — entire body is green, not muted */
.testi-card.is-all-green .testi-card-body { color: var(--green); }
.testi-card.is-all-green .testi-qm,
.testi-card.is-all-green .testi-hi        { color: var(--green); }

/* Role label — colour driven by member vs staff, not card accent */
.testi-card-role {
	margin: 0;
	font-family: var(--f-sans);
	font-weight: 600;
	font-size: var(--fs-eyebrow);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.1;
}
.testi-card-role.is-member { color: var(--orange); }
.testi-card-role.is-staff  { color: var(--green); }


/* ─────────────────────────────────────────────────────────────────
   VIEW MORE — centered button beneath the grid.
   ───────────────────────────────────────────────────────────────── */
.testi-viewmore {
	display: flex;
	justify-content: center;
	margin-top: clamp(40px, 5vw, 78px);
}


/* ─────────────────────────────────────────────────────────────────
   FINAL CTA — green band + orange button (mirrors .wwa-finalcta).
   The last .hl-line ("Request") and the .it-tail ("a live demo.")
   are switched to `display: inline` so they land on one visual
   line: "REQUEST a live demo."
   ───────────────────────────────────────────────────────────────── */
.testi-finalcta {
	background: var(--green);
}
.testi-finalcta h2 {
	display: block;
	letter-spacing: -0.02em;
	line-height: 0.96;
	white-space: normal;
}
.testi-finalcta h2 .hl-line {
	display: inline;
	line-height: 0.96;
}
.testi-finalcta h2 .hl-line:first-child {
	display: block;
}
.testi-finalcta h2 .it-tail {
	display: inline;
	letter-spacing: 0;
}
.testi-finalcta p {
	font-size: var(--fs-body-sm);
	line-height: 1.54;
}
.testi-finalcta .btn,
.testi-finalcta .btn-orange {
	background: var(--orange);
	color: var(--cream);
	border: 1px solid rgba(26, 26, 26, 0.15);
	border-radius: 12px;
	padding: 22px 32px;
	font-weight: 600;
	width: auto;
}
.testi-finalcta .btn:hover,
.testi-finalcta .btn-orange:hover {
	background: #d94300;
	box-shadow: 0 10px 30px rgba(255, 79, 0, 0.35);
	transform: translateY(-1px);
}


/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────── */
.testi-quotes-headline .testi-quotes-hl-mobile { display: none; }
.testi-quotes-headline .it-tail.testi-quotes-it-mobile { display: none; }

@media (max-width: 900px) {
	.testi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.testi-grid {
		grid-template-columns: 1fr;
	}
}

.testi-finalcta .fcta-it-word {
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 400;
	text-transform: none;
	letter-spacing: -1.4px;
	color: var(--cream);
}

.testi-finalcta .hl-line.fcta-hl-mobile { display: none; }
.testi-finalcta .it-tail.fcta-it-mobile { display: none; }

@media (max-width: 700px) {
	.testi-finalcta h2 .hl-line.fcta-hl-desktop { display: none; }
	.testi-finalcta h2 .hl-line.fcta-hl-mobile  { display: block; }
	.testi-finalcta h2 .it-tail.fcta-it-desktop  { display: none; }
	.testi-finalcta h2 .it-tail.fcta-it-mobile   { display: block; }

	.testi-quotes-headline .testi-quotes-hl-desktop { display: none; }
	.testi-quotes-headline .testi-quotes-hl-mobile  { display: block; }
	.testi-quotes-headline .it-tail.testi-quotes-it-mobile { display: block; }
	.testi-quotes-it-mobile, .fcta-it-mobile { line-height: clamp(36px, 6.94vw, 90px) !important; }
}
