/* ==========================================================================
   Testimonials & Certificates — archive + single templates, plus the
   homepage Testimonials / Certificates sections that reuse the same cards.
   Loaded only on those views + the designed front page (inc/cpt/common.php).
   Tokens come from main.css.
   ========================================================================== */

/* Astra page-builder layout: let our sections span the full width. */
body.toa-cpt .site-content > .ast-container {
	max-width: 100%;
	padding: 0;
	display: block;
}

body.toa-cpt #primary.toa-cpt-page {
	margin: 0;
	padding: 0;
	width: 100%;
}

/* Astra's transparent header is position:absolute and would cover the top of
   the page hero; keep the solid sticky header (as on other inner pages). */
body.toa-cpt.ast-theme-transparent-header #masthead {
	position: sticky;
}

.toa-section--flush-top {
	padding-top: 0;
}

/* 1. Page hero ----------------------------------------------------------- */
.toa-page-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: var(--toa-section-md);
	background: linear-gradient(120deg, #033833 0%, #03524c 55%, #00665f 100%);
	color: rgba(255, 255, 255, 0.88);
}

.toa-page-hero__motif {
	right: -60px;
	top: -60px;
	width: 280px;
	height: 280px;
	color: var(--toa-primary-container);
	opacity: 0.2;
	z-index: -1;
}

.toa-page-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--toa-gutter-sm);
}

.toa-page-hero__back,
body.toa .toa-page-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: var(--toa-gutter-sm);
	font-size: 14px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color var(--toa-ease-state), gap var(--toa-ease-state);
}

.toa-page-hero__back .toa-icon {
	width: 18px;
	height: 18px;
}

.toa-page-hero__back:hover,
.toa-page-hero__back:focus-visible {
	color: var(--toa-on-primary);
	gap: 10px;
}

.toa-page-hero__eyebrow {
	margin: 0;
	font-size: 13px;
	line-height: 18px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--toa-olive-green);
}

body.toa .toa-page-hero__title {
	margin: 0;
	max-width: 820px;
	font-family: var(--toa-font-primary);
	font-weight: var(--toa-fw-bold);
	font-size: var(--toa-fs-h1);
	line-height: var(--toa-lh-display);
	letter-spacing: var(--toa-ls-heading);
	color: var(--toa-on-primary);
}

.toa-page-hero__intro {
	margin: 0;
	max-width: 672px;
	font-size: 18px;
	line-height: 28px;
	color: rgba(255, 255, 255, 0.88);
}

.toa-page-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.85);
}

.toa-page-hero__meta li {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	margin: 0;
}

.toa-page-hero__meta li + li::before {
	content: "";
	width: 4px;
	height: 4px;
	margin-left: -12px;
	border-radius: 50%;
	background: var(--toa-olive-green);
}

/* 2. Shared bits --------------------------------------------------------- */
.toa-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: var(--toa-radius-full);
	background: var(--toa-primary-container);
	border: 1px solid var(--toa-outline-variant);
	color: var(--toa-primary);
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.toa-badge .toa-icon {
	width: 14px;
	height: 14px;
	fill: #e0cf32;
	color: #e0cf32;
}

.toa-badge--overlay {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: var(--toa-shadow-sm);
}

.toa-stars .toa-star--empty {
	fill: none;
	opacity: 0.45;
}

.toa-cpt-grid {
	align-items: stretch;
}

.toa-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--toa-gutter-md);
	padding: var(--toa-section-sm) var(--toa-gutter-lg);
	text-align: center;
	border: 1px dashed var(--toa-outline-variant);
	border-radius: var(--toa-radius-2xl);
	background: var(--toa-surface);
}

.toa-empty .toa-icon {
	width: 40px;
	height: 40px;
	color: var(--toa-olive-green);
}

/* Pagination */
.toa-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--toa-gutter-sm);
}

.toa-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: var(--toa-radius-full);
	border: 1px solid var(--toa-outline-variant);
	background: var(--toa-surface);
	color: var(--toa-on-surface);
	font-weight: 700;
	text-decoration: none;
	transition: background-color var(--toa-ease-state), color var(--toa-ease-state), border-color var(--toa-ease-state);
}

.toa-pagination a.page-numbers:hover,
.toa-pagination a.page-numbers:focus-visible {
	border-color: var(--toa-primary);
	color: var(--toa-primary);
}

.toa-pagination .page-numbers.current {
	background: var(--toa-primary);
	border-color: var(--toa-primary);
	color: var(--toa-on-primary);
}

/* 3. Testimonial card ---------------------------------------------------- */
.toa-tcard {
	background: var(--toa-surface);
	box-shadow: var(--toa-shadow-sm);
	transition:
		box-shadow var(--toa-hover-duration, 240ms) ease,
		transform var(--toa-hover-duration, 240ms) ease,
		border-color var(--toa-hover-duration, 240ms) ease;
}

.toa-tcard.is-featured {
	border-color: var(--toa-olive-green);
	box-shadow: 0 0 0 1px var(--toa-olive-green), var(--toa-shadow-sm);
}

@media (hover: hover) {
	.toa-tcard:hover {
		transform: translateY(-3px);
		box-shadow: var(--toa-shadow-md);
	}

	.toa-tcard.is-featured:hover {
		box-shadow: 0 0 0 1px var(--toa-olive-green), var(--toa-shadow-md);
	}
}

.toa-tcard__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--toa-gutter-sm);
}

.toa-tcard__more {
	align-self: flex-start;
	margin-top: auto;
	font-size: 15px;
}

.toa-tcard__more .toa-icon:first-child {
	width: 18px;
	height: 18px;
}

.toa-tcard__author {
	display: flex;
	align-items: center;
	gap: var(--toa-gutter-md);
	padding-top: var(--toa-gutter-md);
	border-top: 1px solid var(--toa-outline-variant);
}

.toa-tcard__photo,
body.toa .toa-tcard__photo {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: var(--toa-radius-full);
	object-fit: cover;
	border: 2px solid var(--toa-surface);
	box-shadow: 0 0 0 1px var(--toa-outline-variant);
	transition: transform var(--toa-hover-duration, 240ms) ease, box-shadow var(--toa-hover-duration, 240ms) ease;
}

.toa-tcard__photo--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--toa-primary-container);
	color: var(--toa-primary);
	font-family: var(--toa-font-primary);
	font-size: 22px;
	font-weight: var(--toa-fw-bold);
}

@media (hover: hover) {
	.toa-tcard:hover .toa-tcard__photo {
		transform: scale(1.06);
		box-shadow: 0 0 0 2px var(--toa-primary-container), 0 0 0 3px var(--toa-brand-green);
	}
}

.toa-tcard__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

body.toa .toa-tcard__name {
	margin: 0;
	font-family: var(--toa-font-primary);
	font-size: var(--toa-fs-title-md);
	line-height: var(--toa-lh-subheading);
}

body.toa .toa-tcard__name a {
	color: var(--toa-on-surface);
	text-decoration: none;
}

body.toa .toa-tcard__name a:hover,
body.toa .toa-tcard__name a:focus-visible {
	color: var(--toa-primary);
}

/* 4. Testimonial single -------------------------------------------------- */
.toa-tsingle {
	gap: var(--toa-gutter-lg);
	padding: var(--toa-gutter-xl);
	border-radius: var(--toa-radius-2xl);
}

.toa-tsingle.is-featured {
	border-color: var(--toa-olive-green);
}

.toa-tsingle__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--toa-gutter-lg);
}

.toa-tsingle__photo,
body.toa .toa-tsingle__photo {
	width: 112px;
	height: 112px;
	flex-shrink: 0;
	border-radius: var(--toa-radius-full);
	object-fit: cover;
	border: 3px solid var(--toa-surface);
	box-shadow: 0 0 0 1px var(--toa-outline-variant), var(--toa-shadow-md);
}

.toa-tsingle__who {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 200px;
}

.toa-tsingle__who .toa-body-sm {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.toa-tsingle__who .toa-body-sm .toa-icon {
	width: 16px;
	height: 16px;
	color: var(--toa-primary);
}

.toa-tsingle__head .toa-badge {
	align-self: flex-start;
}

.toa-tsingle__mark {
	width: 44px;
	height: 44px;
	margin-bottom: calc(var(--toa-gutter-md) * -1);
}

.toa-tsingle__quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
	font-family: var(--toa-font-primary);
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	line-height: 1.55;
	color: var(--toa-on-surface);
}

.toa-tsingle__quote > :first-child {
	margin-top: 0;
}

.toa-tsingle__quote > :last-child {
	margin-bottom: 0;
}

.toa-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--toa-radius-xl);
	background: var(--toa-primary-10);
	box-shadow: var(--toa-shadow-md);
}

.toa-video iframe,
.toa-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* 5. Certificate card ---------------------------------------------------- */
.toa-ccard {
	padding: 0;
	gap: 0;
	overflow: hidden;
	transition:
		box-shadow var(--toa-hover-duration, 240ms) ease,
		transform var(--toa-hover-duration, 240ms) ease,
		border-color var(--toa-hover-duration, 240ms) ease;
}

.toa-ccard.is-featured {
	border-color: var(--toa-olive-green);
	box-shadow: 0 0 0 1px var(--toa-olive-green), var(--toa-shadow-sm);
}

@media (hover: hover) {
	.toa-ccard:hover {
		transform: translateY(-3px);
		box-shadow: var(--toa-shadow-md);
	}
}

.toa-ccard__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	padding: var(--toa-gutter-md);
	background: var(--toa-surface-container);
	border-bottom: 1px solid var(--toa-outline-variant);
	overflow: hidden;
}

.toa-ccard__media img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--toa-radius-sm);
	box-shadow: var(--toa-shadow-md);
	transition: transform 400ms var(--toa-reveal-ease, ease);
}

@media (hover: hover) {
	.toa-ccard:hover .toa-ccard__media img {
		transform: scale(1.03);
	}
}

/* Image opens the full-size lightbox (not the single page). */
.toa-ccard__media--zoom {
	cursor: zoom-in;
}

.toa-ccard__media--zoom:focus-visible {
	outline: 2px solid var(--toa-primary);
	outline-offset: -4px;
}

.toa-ccard__placeholder {
	width: 64px;
	height: 64px;
	color: var(--toa-olive-green);
}

.toa-ccard__body {
	display: flex;
	flex-direction: column;
	gap: var(--toa-gutter-md);
	flex: 1;
	padding: var(--toa-gutter-lg);
}

body.toa .toa-ccard__title {
	margin: 0;
	font-family: var(--toa-font-primary);
	font-size: var(--toa-fs-title-lg);
	line-height: var(--toa-lh-subheading);
}

body.toa .toa-ccard__title a {
	color: var(--toa-on-surface);
	text-decoration: none;
}

body.toa .toa-ccard__title a:hover,
body.toa .toa-ccard__title a:focus-visible {
	color: var(--toa-primary);
}

.toa-ccard__meta,
.toa-details {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.toa-ccard__meta > div {
	display: flex;
	gap: 8px;
	font-size: 14px;
	line-height: 20px;
}

.toa-ccard__meta dt {
	flex-shrink: 0;
	min-width: 72px;
	font-weight: 700;
	color: var(--toa-on-surface);
}

.toa-ccard__meta dd {
	margin: 0;
	color: var(--toa-on-surface-variant);
	overflow-wrap: anywhere;
}

.toa-ccard__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--toa-gutter-md);
	margin-top: auto;
	padding-top: var(--toa-gutter-md);
	border-top: 1px solid var(--toa-outline-variant);
}

.toa-ccard__pdf,
body.toa .toa-ccard__pdf {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	border-radius: var(--toa-radius-full);
	border: 1px solid var(--toa-outline-variant);
	font-size: 13px;
	font-weight: 700;
	color: var(--toa-primary);
	text-decoration: none;
	transition: background-color var(--toa-ease-state), border-color var(--toa-ease-state);
}

.toa-ccard__pdf .toa-icon {
	width: 16px;
	height: 16px;
}

.toa-ccard__pdf:hover,
.toa-ccard__pdf:focus-visible {
	background: var(--toa-primary-container);
	border-color: var(--toa-primary);
}

/* 6. Certificate single -------------------------------------------------- */
.toa-csingle {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--toa-gutter-xl);
	align-items: start;
}

@media (min-width: 1024px) {
	.toa-csingle {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--toa-gutter-xl) 48px;
	}

	.toa-csingle__aside {
		position: sticky;
		top: 120px;
	}
}

.toa-csingle__figure {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: var(--toa-gutter-lg);
	background: var(--toa-surface-container);
}

.toa-csingle__figure a {
	display: block;
	cursor: zoom-in;
}

.toa-csingle__figure img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 80vh;
	border-radius: var(--toa-radius-sm);
	box-shadow: var(--toa-shadow-lg);
}

.toa-csingle__aside {
	display: flex;
	flex-direction: column;
	gap: var(--toa-gutter-lg);
}

.toa-csingle__details {
	gap: var(--toa-gutter-lg);
	height: auto;
}

.toa-csingle__details .toa-badge {
	align-self: flex-start;
}

.toa-details {
	gap: 0;
}

.toa-details > div {
	display: grid;
	grid-template-columns: minmax(120px, 40%) 1fr;
	gap: var(--toa-gutter-md);
	padding-block: 12px;
	border-top: 1px solid var(--toa-outline-variant);
}

.toa-details > div:last-child {
	border-bottom: 1px solid var(--toa-outline-variant);
}

.toa-details dt {
	font-size: 14px;
	font-weight: 700;
	color: var(--toa-on-surface);
}

.toa-details dd {
	margin: 0;
	color: var(--toa-on-surface-variant);
	overflow-wrap: anywhere;
}

.toa-csingle__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--toa-gutter-sm);
}

.toa-csingle__actions .toa-btn {
	flex: 1 1 auto;
	text-decoration: none;
}

.toa-csingle__actions .toa-btn small {
	font-weight: 400;
	opacity: 0.85;
}

.toa-csingle__desc {
	height: auto;
	font-size: 16px;
	line-height: 1.7;
}

.toa-csingle__desc > :first-child {
	margin-top: 0;
}

.toa-csingle__desc > :last-child {
	margin-bottom: 0;
}

/* 6b. Homepage sections (template-parts/home/testimonials|certificates) -- */
.toa-home-testimonials .toa-tcard,
.toa-home-certificates .toa-ccard {
	height: 100%;
}

.toa-home-testimonials .toa-tcard blockquote p,
body.toa .toa-home-certificates .toa-ccard__title {
	overflow-wrap: anywhere;
}

.toa-home-certificates__grid {
	display: grid;
	gap: var(--toa-gutter-lg);
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
}

@media (min-width: 600px) {
	/* 1–4 cards stay centred and evenly sized; no empty columns. */
	.toa-home-certificates__grid {
		/* 4 × 280px + gaps fits the 1232px container on one row. */
		grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
		justify-content: center;
	}
}

.toa-home-certificates .toa-ccard {
	background: var(--toa-surface);
}

.toa-home-certificates .toa-ccard__actions {
	margin-top: auto;
}

.toa-home-certificates .toa-ccard__media {
	background: var(--toa-surface-dim);
}

/* 7. Responsive ---------------------------------------------------------- */
@media (max-width: 767px) {
	.toa-page-hero {
		padding-block: var(--toa-section-sm);
	}

	.toa-page-hero__intro {
		font-size: 16px;
		line-height: 26px;
	}

	.toa-page-hero__motif {
		--toa-pattern-size: 80px;
		width: 180px;
		height: 180px;
		right: -60px;
		top: -60px;
	}

	.toa-tsingle {
		padding: var(--toa-gutter-lg);
		border-radius: var(--toa-radius-xl);
	}

	.toa-tsingle__photo,
	body.toa .toa-tsingle__photo {
		width: 80px;
		height: 80px;
	}

	.toa-csingle__figure {
		padding: var(--toa-gutter-md);
	}

	.toa-csingle__actions .toa-btn {
		flex-basis: 100%;
	}

	.toa-details > div {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.toa-tcard,
	.toa-ccard,
	.toa-tcard__photo,
	.toa-ccard__media img,
	.toa-page-hero__back {
		transition: none;
	}

	.toa-tcard:hover,
	.toa-ccard:hover,
	.toa-tcard:hover .toa-tcard__photo,
	.toa-ccard:hover .toa-ccard__media img {
		transform: none;
	}
}

/* ==========================================================================
   WhatsApp-screenshot testimonials: CSS-only phone mockup, phone card,
   single view and the screenshot lightbox (assets/js/testimonial-lightbox.js).
   Markup: toa_testimonial_phone_mockup() + template-parts/cpt/testimonial-phone.php.
   ========================================================================== */
.toa-tcard--wa,
.toa-tsingle__phone,
.toa-lightbox {
	--toa-wa-green: #25d366;
	--toa-wa-ink: #009288; /* ≥4.5:1 on the badge tint. */
	--toa-wa-tint: #e8f8ee;
	--toa-wa-paper: #efeae2; /* WhatsApp chat wallpaper, shown while loading. */
	--toa-phone-body: #1d2320;
	--toa-phone-edge: #46504a;
}

/* Phone mockup ----------------------------------------------------------- */
.toa-phone {
	--w: var(--toa-phone-w, 150px);
	--bezel: calc(var(--w) * 0.042);
	--r: calc(var(--w) * 0.165);
	position: relative;
	display: block;
	flex-shrink: 0;
	width: var(--w);
	aspect-ratio: 9 / 19;
	padding: var(--bezel);
	box-sizing: border-box;
	border-radius: var(--r);
	background: linear-gradient(150deg, #39423f 0%, var(--toa-phone-body) 38%, #0e1211 100%);
	box-shadow:
		inset 0 0 0 1.5px var(--toa-phone-edge),
		inset 0 0 0 calc(var(--bezel) * 0.55) #0b0e0d,
		0 22px 40px -18px rgba(42, 1, 55, 0.45),
		0 6px 14px -6px rgba(31, 50, 48, 0.25);
	color: inherit;
	text-decoration: none;
	cursor: zoom-in;
	-webkit-tap-highlight-color: transparent;
	transition: transform var(--toa-hover-duration, 240ms) ease, box-shadow var(--toa-hover-duration, 240ms) ease;
}

.toa-phone:focus-visible {
	outline: 3px solid var(--toa-primary);
	outline-offset: 5px;
}

/* Side buttons: volume up/down (left, one element + its shadow) and power. */
.toa-phone__btn {
	position: absolute;
	width: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, #2c3432, #4b5552);
}

.toa-phone__btn--vol {
	left: -2px;
	top: 21%;
	height: 7.5%;
	box-shadow: 0 calc(var(--w) * 0.24) 0 #3a4340;
}

.toa-phone__btn--power {
	right: -2px;
	top: 27%;
	height: 12%;
	background: linear-gradient(270deg, #2c3432, #4b5552);
}

.toa-phone__screen {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: calc(var(--r) - var(--bezel));
	background: var(--toa-wa-paper, #efeae2);
	isolation: isolate;
}

/* Beat Astra's global img { height: auto } — the screenshot fills the
   screen, anchored to the top (status bar + latest header stay visible). */
.toa-phone .toa-phone__img,
body.toa .toa-phone .toa-phone__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: top center;
	border-radius: 0;
}

/* Cropped (shorter) screenshots: fit to width, centred, blurred backdrop. */
.toa-phone--fit .toa-phone__screen {
	display: flex;
	align-items: center;
	background: #0b141a;
}

.toa-phone--fit .toa-phone__img,
body.toa .toa-phone--fit .toa-phone__img {
	position: relative;
	z-index: 1;
	height: auto;
	object-fit: contain;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.toa-phone__bg {
	position: absolute;
	inset: -14%;
	background-position: center;
	background-size: cover;
	filter: blur(14px) brightness(0.62) saturate(1.15);
	transform: translateZ(0);
}

/* Dynamic island. */
.toa-phone__island {
	position: absolute;
	z-index: 2;
	top: calc(var(--w) * 0.03);
	left: 50%;
	width: 31%;
	height: calc(var(--w) * 0.075);
	min-height: 8px;
	border-radius: 999px;
	background: #050605;
	transform: translateX(-50%);
	box-shadow: inset calc(var(--w) * -0.03) 0 0 -1px #1b2a3a; /* camera lens glint */
}

/* Glass sheen + "view full" chip. */
.toa-phone__screen::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 32%);
	pointer-events: none;
}

.toa-phone__zoom {
	position: absolute;
	z-index: 2;
	right: 8%;
	bottom: 4%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(15, 27, 26, 0.72);
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	transition: transform var(--toa-hover-duration, 240ms) ease, background-color var(--toa-hover-duration, 240ms) ease;
}

.toa-phone__zoom .toa-icon {
	width: 15px;
	height: 15px;
	stroke-width: 2.2;
}

@media (hover: hover) {
	.toa-phone:hover {
		transform: translateY(-4px);
		box-shadow:
			inset 0 0 0 1.5px var(--toa-phone-edge),
			inset 0 0 0 calc(var(--bezel) * 0.55) #0b0e0d,
			0 28px 48px -18px rgba(42, 1, 55, 0.5),
			0 8px 18px -6px rgba(31, 50, 48, 0.28);
	}
}

.toa-phone:hover .toa-phone__zoom,
.toa-phone:focus-visible .toa-phone__zoom {
	transform: scale(1.12);
	background: var(--toa-primary);
}

/* WhatsApp badge --------------------------------------------------------- */
.toa-badge--wa {
	background: var(--toa-wa-tint);
	border-color: #c4ebdd;
	color: var(--toa-wa-ink);
	letter-spacing: 0.02em;
}

.toa-badge--wa .toa-icon {
	fill: currentColor;
	color: var(--toa-wa-green);
}

/* Phone card (grid) -----------------------------------------------------
   Phone on the start side, details on the end side: the card stays about as
   tall as a text card, so mixed rows look even. Narrow cards (one-column
   phones) stack the phone on top at a larger size. */
.toa-tcard--wa {
	container-type: inline-size;
	padding: 0;
	overflow: hidden;
}

.toa-tcard__wa {
	display: flex;
	flex: 1 1 auto;
	flex-direction: row;
	align-items: stretch;
	gap: var(--toa-gutter-lg);
}

.toa-tcard__stage {
	--toa-phone-w: clamp(112px, 34cqi, 140px);
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: var(--toa-gutter-lg) 18px;
	background:
		radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 55%),
		linear-gradient(165deg, var(--toa-surface-container) 0%, var(--toa-surface-container-high) 100%);
	border-inline-end: 1px solid var(--toa-outline-variant);
}

.toa-tcard__wa-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--toa-gutter-sm);
	min-width: 0;
	padding: var(--toa-gutter-lg) var(--toa-gutter-lg) var(--toa-gutter-lg) 0;
}

.toa-tcard__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.toa-tcard__wa-quote,
body.toa .toa-tcard__wa-quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
	overflow-wrap: anywhere;
}

.toa-tcard__wa-quote p {
	margin: 0;
}

.toa-tcard__wa-hint,
body.toa .toa-tcard__wa-hint {
	margin: 0;
	color: var(--toa-on-surface-variant);
}

.toa-tcard__wa-author {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	padding-top: var(--toa-gutter-md);
	border-top: 1px solid var(--toa-outline-variant);
	overflow-wrap: anywhere;
}

body.toa .toa-tcard__wa-author .toa-body-sm {
	color: var(--toa-on-surface-variant);
}

@container (max-width: 359px) {
	.toa-tcard__wa {
		flex-direction: column;
		gap: 0;
	}

	.toa-tcard__stage {
		--toa-phone-w: min(176px, 56cqi);
		padding: 28px var(--toa-gutter-lg) var(--toa-gutter-lg);
		border-inline-end: 0;
		border-bottom: 1px solid var(--toa-outline-variant);
	}

	.toa-tcard__wa-body {
		padding: var(--toa-gutter-lg);
	}
}

/* Single testimonial ---------------------------------------------------- */
.toa-tsingle__phone {
	--toa-phone-w: min(300px, 70vw);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--toa-gutter-lg);
	margin: 0;
	padding: var(--toa-gutter-xl) var(--toa-gutter-md);
	border-radius: var(--toa-radius-xl);
	background:
		radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 50%),
		linear-gradient(165deg, var(--toa-surface-container) 0%, var(--toa-surface-container-high) 100%);
}

.toa-tsingle__phone-cap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

body.toa .toa-tsingle__phone-cap .toa-body-sm {
	margin: 0;
	color: var(--toa-on-surface-variant);
}

/* Lightbox (native <dialog>, built by testimonial-lightbox.js) ---------- */
.toa-lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	overflow: hidden;
}

.toa-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: toa-lightbox-in 200ms ease-out;
}

.toa-lightbox::backdrop {
	background: rgba(6, 20, 19, 0.86);
}

.toa-lightbox__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-height: 100%;
	padding: 64px 16px 20px;
	box-sizing: border-box;
}

.toa-lightbox__scroll {
	max-height: calc(100vh - 130px);
	max-height: calc(100dvh - 130px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 18px;
	background: var(--toa-wa-paper);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	scrollbar-width: thin;
}

.toa-lightbox__scroll:focus-visible {
	outline: 3px solid var(--toa-wa-green);
	outline-offset: 4px;
}

.toa-lightbox__img,
body.toa .toa-lightbox__img {
	display: block;
	width: min(440px, calc(100vw - 32px));
	max-width: none;
	height: auto;
}

.toa-lightbox__cap {
	max-width: 440px;
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 15px;
	line-height: 22px;
	text-align: center;
}

.toa-lightbox__close {
	position: fixed;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--toa-on-surface, #24332e);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.toa-lightbox__close:hover,
.toa-lightbox__close:focus-visible {
	background: var(--toa-primary-container, #ecf6f3);
	color: var(--toa-primary, #009288);
}

.toa-lightbox__close:focus-visible {
	outline: 3px solid var(--toa-wa-green);
	outline-offset: 3px;
}

.toa-lightbox__close svg {
	width: 22px;
	height: 22px;
}

/* Wide mode (certificates): landscape image fitted to the viewport. */
.toa-lightbox--wide .toa-lightbox__inner {
	width: 100%;
}

.toa-lightbox--wide .toa-lightbox__scroll {
	max-height: none;
	overflow: visible;
	border-radius: 8px;
	background: #fff;
}

.toa-lightbox--wide .toa-lightbox__img,
body.toa .toa-lightbox--wide .toa-lightbox__img {
	width: auto;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 130px);
	max-height: calc(100dvh - 130px);
	border-radius: 8px;
}

.toa-lightbox--wide .toa-lightbox__cap {
	max-width: min(720px, calc(100vw - 32px));
}

.toa-lightbox--wide .toa-lightbox__scroll:focus-visible {
	outline-color: #fff;
}

html.toa-lightbox-open {
	overflow: hidden;
}

@keyframes toa-lightbox-in {
	from {
		opacity: 0;
		transform: scale(0.97);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.toa-phone,
	.toa-phone__zoom {
		transition: none;
	}

	.toa-phone:hover,
	.toa-phone:hover .toa-phone__zoom,
	.toa-phone:focus-visible .toa-phone__zoom {
		transform: none;
	}

	.toa-lightbox[open] {
		animation: none;
	}
}

