/* ==========================================================================
   Shared tokens + layout helpers for the Testimonials / Certificates /
   Teachers / WhatsApp modules (cpt.css, teachers.css, whatsapp.css).
   Every value maps onto the The Opening Academy tokens in main.css.
   ========================================================================== */
:root {
	--toa-brand-green: var(--toa-purple);
	--toa-olive-green: var(--toa-orange);
	--toa-on-primary: #fff;
	--toa-on-surface: var(--toa-ink);
	--toa-on-surface-variant: var(--toa-ink-muted);
	--toa-outline-variant: var(--toa-line);
	--toa-primary-container: #e1f0eb; /* light purple surface: purple text sits on it */
	--toa-primary-10: rgba(5, 68, 63, .10);
	--toa-primary-20: rgba(5, 68, 63, .20);
	--toa-surface-container: var(--toa-surface-mid);
	--toa-surface-container-high: var(--toa-surface-high);
	--toa-surface-dim: var(--toa-surface-low);

	--toa-radius-sm: var(--toa-r-sm);
	--toa-radius-lg: var(--toa-r-md);
	--toa-radius-xl: var(--toa-r-lg);
	--toa-radius-2xl: var(--toa-r-xl);
	--toa-radius-full: var(--toa-r-full);

	--toa-gutter-xs: 8px;
	--toa-gutter-sm: 12px;
	--toa-gutter-md: 16px;
	--toa-gutter-lg: 24px;
	--toa-gutter-xl: 32px;
	--toa-section-sm: 48px;
	--toa-section-md: 64px;
	--toa-section-lg: var(--toa-section);

	--toa-shadow-sm: var(--toa-shadow);
	--toa-shadow-md: var(--toa-shadow-lg);

	--toa-font-primary: var(--toa-font-display);
	--toa-fs-body: 16px;
	--toa-fs-h1: clamp(2rem, 1.4rem + 2.4vw, 3rem);
	--toa-fs-title-lg: 22px;
	--toa-fs-title-md: 18px;
	--toa-fw-bold: 700;
	--toa-lh-display: 1.15;
	--toa-lh-subheading: 1.4;
	--toa-ls-heading: -0.01em;

	--toa-ease-state: cubic-bezier(.2, 0, 0, 1);
	--toa-ease-card: cubic-bezier(.2, 0, 0, 1);
	--toa-reveal-ease: cubic-bezier(.2, 0, 0, 1);
	--toa-hover-duration: 200ms;
}

/* Layout helpers */
.toa-stack > * + * {
	margin-top: 40px;
}
.toa-grid {
	display: grid;
	gap: var(--toa-gutter-lg);
}
@media (min-width: 700px) {
	.toa-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1000px) {
	.toa-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.toa-grid--center {
	justify-content: center;
}
.toa-center {
	text-align: center;
}
.toa-container--narrow {
	max-width: 820px;
}
.toa-section--white {
	background: var(--toa-surface);
}
.toa-section--dim {
	background: var(--toa-surface-low);
}
.toa-section--green {
	background: var(--toa-bg);
}
.toa-title-lg {
	font-family: var(--toa-font-display);
	font-size: var(--toa-fs-title-lg);
	line-height: 1.3;
}
.toa-title-md {
	font-family: var(--toa-font-display);
	font-size: var(--toa-fs-title-md);
	line-height: 1.35;
}
.toa-body-md {
	font-size: 16px;
	line-height: 1.65;
}
.toa-body-sm {
	font-size: 14px;
	line-height: 1.55;
	color: var(--toa-ink-muted);
}
.toa-h2 {
	font-family: var(--toa-font-display);
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
	line-height: 1.2;
}
body.toa .toa-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--toa-primary);
	text-decoration: none;
}
.toa-link-arrow .toa-icon {
	width: 18px;
	height: 18px;
	transition: transform var(--toa-fast);
}
.toa-link-arrow:hover .toa-icon {
	transform: translateX(3px);
}
.toa-quote__mark {
	width: 34px;
	height: 34px;
	color: var(--toa-orange);
}
.toa-media-frame {
	border-radius: var(--toa-r-lg);
	overflow: hidden;
	box-shadow: var(--toa-shadow-lg);
	background: var(--toa-surface);
}
.toa-media-frame img {
	display: block;
	width: 100%;
	height: auto;
}
.toa-brand-pattern {
	position: absolute;
	z-index: -1;
	background: url("../images/brand-pattern.svg") center / contain no-repeat;
	opacity: .14;
	pointer-events: none;
}

/* Banner on Testimonials / Certificates / Teachers archives and singles. */
body.toa .toa-cpt-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--toa-primary);
	text-decoration: none;
}
.toa-cpt-hero__back .toa-icon {
	width: 18px;
	height: 18px;
}
.toa-cpt-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}
.toa-cpt-hero__meta li {
	padding: 4px 12px;
	border-radius: var(--toa-r-full);
	background: var(--toa-surface);
	border: 1px solid var(--toa-line);
	font-size: 13px;
	color: var(--toa-ink-muted);
}

/* Hero social proof (template-parts/home/social-proof.php) */
.toa-proof {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
}
.toa-proof__faces {
	display: flex;
}
.toa-proof__face {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-inline-start: -10px;
	border-radius: 50%;
	border: 2px solid var(--toa-surface);
	background: var(--toa-purple);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	overflow: hidden;
}
.toa-proof__face:first-child {
	margin-inline-start: 0;
}
.toa-proof__face img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.toa-proof__stars {
	display: flex;
	gap: 2px;
	color: var(--toa-orange);
}
body.toa .toa-proof__link {
	font-size: 14px;
	color: var(--toa-ink-muted);
	text-decoration: none;
}
body.toa .toa-proof__link:hover {
	color: var(--toa-primary);
	text-decoration: underline;
}

/* Card + quote (testimonial cards). */
.toa-card {
	display: flex;
	flex-direction: column;
	gap: var(--toa-gutter-md);
	padding: var(--toa-gutter-lg);
	border-radius: var(--toa-radius-xl);
	background: var(--toa-surface);
	border: 1px solid var(--toa-outline-variant);
	box-shadow: var(--toa-shadow-sm);
	height: 100%;
	box-sizing: border-box;
	margin: 0;
}

.toa-quote {
	justify-content: space-between;
	background: var(--toa-surface-dim);
	box-shadow: none;
}

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

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

.toa-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
}

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

.toa-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--toa-orange);
}

.toa-stars .toa-icon {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.toa-quote figcaption {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: var(--toa-gutter-sm);
	border-top: 1px solid var(--toa-outline-variant);
}


/* "Featured" badge: brand purple with light text and an orange star. */
body.toa .toa-badge--featured {
	background: var(--toa-primary);
	border-color: var(--toa-primary);
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.02em;
}
body.toa .toa-badge--featured .toa-icon {
	color: var(--toa-orange-soft);
	fill: currentColor;
}

/* Back link sits on its own line above the eyebrow. */
body.toa .toa-cpt-hero__back {
	display: flex;
	width: max-content;
}
