/**
 * Layouts — Grid system, containers, and section treatments.
 *
 * @package WEO
 */

/* ═══════════════════════════════════════════
   Container
   ═══════════════════════════════════════════ */

.container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--space-md);
	padding-right: var(--space-md);
}

@media (min-width: 768px) {
	.container {
		padding-left: var(--space-xl);
		padding-right: var(--space-xl);
	}
}

/* Content width modifiers */
.content-narrow {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.content-default {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.content-wide {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* Width-only modifiers (no margin reset).
   Used on hero/CTA content divs that already handle their own centering. */
.width--narrow  { max-width: 700px; }
.width--default { max-width: 960px; }
.width--wide    { max-width: 1200px; }

/* ═══════════════════════════════════════════
   Section Treatments
   ═══════════════════════════════════════════ */

.section {
	padding-top: 10%;
	padding-bottom: 10%;
	position: relative;
	overflow: hidden;
}

@media (min-width: 768px) {
	.section {
		padding-top: 88px;
		padding-bottom: 80px;
	}
}

/* Override padding via inline styles from ACF */

/* ─── Background variants ─── */

.section--surface,
.section--default {
	background-color: var(--surface);
	color: var(--text-dark);
}

.section--white {
	background-color: var(--white);
	color: var(--text-dark);
}

.section--dark {
	background-color: var(--dark);
	color: var(--muted);
}

.section--midnight {
	background-color: var(--midnight);
	color: var(--muted);
}

.section--charcoal {
	background-color: var(--charcoal);
	color: var(--muted);
}

/* ─── Section headings (centred pattern) ─── */

.section-heading {
	text-align: center;
	margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
	.section-heading {
		margin-bottom: 48px;
	}
}

.section-heading h2 {
	margin-bottom: 12px;
}

.section-heading p {
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-mid);
	max-width: 440px;
	margin: 0 auto;
	line-height: 1.5;
}

/* Dark section heading text adaptation */
.section--dark .section-heading p,
.section--midnight .section-heading p,
.section--charcoal .section-heading p {
	color: var(--subtle);
}

/* ═══════════════════════════════════════════
   Section Background Media
   ═══════════════════════════════════════════ */

.section__bg-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.section__bg-media img,
.section__bg-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.section__bg-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.section__bg-overlay--light {
	background: linear-gradient(to bottom,  rgba(14,10,24,0.4) 0%,rgba(14,10,24,0.95) 100%);
}

.section__bg-overlay--medium {
	background: linear-gradient(to bottom,  rgba(14,10,24,0.6) 0%,rgba(14,10,24,0.95) 100%);
}

.section__bg-overlay--heavy {
	background: linear-gradient(to bottom,  rgba(14,10,24,0.8) 0%,rgba(14,10,24,0.95) 100%);
}

.section__content {
	position: relative;
	z-index: 2;
}

/* Text shadow for readability over images/video */
.section--has-media {
	text-shadow: 0 2px 8px rgba(14, 10, 24, 0.302);
}

@media only screen and (max-width: 639px) {
	.section__bg-overlay--light,
	.section__bg-overlay--medium,
	.section__bg-overlay--heavy {
		background: linear-gradient(to bottom,  rgba(26,16,40,0) 0%,rgba(26,16,40,1) 100%);
	}
	.section__bg-media {
		height: 60dvh;
	}
}

/* ═══════════════════════════════════════════
   Grid Utilities
   ═══════════════════════════════════════════ */

.grid {
	display: grid;
	gap: 12px;
}

@media (min-width: 768px) {
	.grid {
		gap: 12px;
	}
}

/* 2-column */
.grid-2 {
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.grid-2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 3-column */
.grid-3 {
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* 4-column */
.grid-4 {
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.grid-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* 5-column.
 *   <439px        1 col  (very narrow phones)
 *   439–639px     2 cols (phones)
 *   640–1199px    3 cols
 *   1200–1499px   4 cols
 *   ≥1500px       5 cols (wide-desktop only)
 */
.grid-5 {
	grid-template-columns: 1fr;
}

@media (min-width: 439px) {
	.grid-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 640px) {
	.grid-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1200px) {
	.grid-5 {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 1500px) {
	.grid-5 {
		grid-template-columns: repeat(5, 1fr);
	}
}

/* ═══════════════════════════════════════════
   Two-Column Layout (Event Single)
   ═══════════════════════════════════════════ */

.layout-sidebar {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
}

@media (min-width: 960px) {
	.layout-sidebar {
		grid-template-columns: 1fr 380px;
		gap: var(--space-2xl);
	}
}

.layout-sidebar__main {
	min-width: 0;
}

.layout-sidebar__aside {
	min-width: 0;
}

@media (min-width: 960px) {
	.layout-sidebar__aside {
		position: sticky;
		top: calc(var(--nav-height) + var(--space-xl));
		align-self: start;
	}
}

/* ═══════════════════════════════════════════
   Flex Utilities
   ═══════════════════════════════════════════ */

.flex {
	display: flex;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.flex-wrap {
	flex-wrap: wrap;
}

.flex-gap-sm {
	gap: var(--space-sm);
}

.flex-gap-md {
	gap: var(--space-md);
}

.flex-gap-lg {
	gap: var(--space-lg);
}

/* ═══════════════════════════════════════════
   Text Alignment
   ═══════════════════════════════════════════ */

.text-center {
	text-align: center;
}

/* ═════════════════���═════════════════════════
   Hero Section
   ═══════════════════════════��═══════════════ */

.hero {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: var(--nav-height);
}

.hero :is(h1, h2, h3) {
	text-wrap: balance;
}

.hero__content {
	text-align: center;
	padding: 156px var(--space-xl) 100px;
}

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

.hero__wysiwyg h1,
.hero__wysiwyg h2 {
	margin-bottom: var(--space-lg);
}

.hero__wysiwyg p {
	font-family: var(--font-body);
	font-size: var(--text-m);
	line-height: 1.6;
	color: #fff;
	max-width: 560px;
	margin: 0 auto var(--space-2xl);
}

.hero__wysiwyg p:last-child {
	margin-bottom: 0;
}

.hero__ctas {
	display: flex;
	gap: var(--space-sm);
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 3em;
}

.hero__hook {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: #fff!important;
	margin-top: 20px;
	font-weight: 500;
}

/* ─── Atmospheric Effects ─── */

.hero__gradient {
	position: absolute;
	filter: blur(80px);
}

.hero__gradient--pink {
	top: -20%;
	left: -10%;
	width: 60%;
	height: 80%;
	background: radial-gradient(ellipse, rgba(224, 64, 160, 0.08) 0%, transparent 70%);
}

.hero__gradient--violet {
	bottom: -10%;
	right: -5%;
	width: 50%;
	height: 70%;
	background: radial-gradient(ellipse, rgba(160, 112, 240, 0.06) 0%, transparent 70%);
}

.hero__spotlight {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 100%;
	background: linear-gradient(180deg, rgba(224, 64, 160, 0.04) 0%, transparent 60%);
	clip-path: polygon(40% 0%, 60% 0%, 85% 100%, 15% 100%);
}

.hero__grain {
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
	background-size: 200px;
}

.hero__bottom-fade {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 200px;
	background: linear-gradient(to top, rgba(14, 10, 24, 0.8), transparent);
}

.hero__mouse-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(224, 64, 160, 0.07), transparent 60%);
	transition: background 0.3s ease;
}

.hero__sparkles {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.hero__accent-bleed {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to top, var(--accent), transparent);
	opacity: 0.15;
	pointer-events: none;
}

@media (max-width: 639px) {
	.section.hero.hero--full {
		padding-bottom: 0;
		height: 100dvh;
		align-items: flex-end;
	}
	.section.hero.hero--full .hero__content {
		padding: 260px var(--space-md) 5%;
	}
	.hero__ctas {
		margin-top: 24px;
	}
}

@media (max-width: 375px) {
	.section.hero.hero--full {
		height: auto;
	}
}

/* ═══════���═══════════════════════════════════
   Proof Strip
   ═══════════════════════════════════════════ */

.proof-strip {
	padding-top: 52px;
	padding-bottom: 52px;
	border-bottom: 1px solid rgba(168, 156, 200, 0.06);
}

.proof-strip__item {
	text-align: center;
}

.proof-strip__value {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: var(--text-h2);
	color: #fff;
	letter-spacing: -0.03em;
	line-height: 1;
}

.proof-strip__affix {
	/* Inherits font from parent */
}

/* Icon-variant affix — used when a proof-stat row has a Suffix icon
 * (e.g. the Trustpilot brand star). Sized in em so the icon scales with
 * the surrounding number's font-size; vertical-align tweaked so the
 * star sits on the digit baseline rather than the glyph top. */
.proof-strip__affix--icon {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
}

.proof-strip__affix--icon .weo-brand-icon {
	height: 0.7em;
	width: auto;
}

.proof-strip__icon {
	margin-right: 4px;
}

.proof-strip__label {
	font-family: var(--font-body);
	font-size: var(--text-small);
	font-weight: 500;
	color: var(--subtle);
	margin-top: var(--space-sm);
}

/* ═══════════════════════════════════════════
   Steps Grid (How It Works)
   ══════��════════════════════════════════════ */

.steps-grid {
	display: grid;
	gap: 24px;
}

.steps-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.steps-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.steps-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 639px) {
	.steps-grid--2,
	.steps-grid--3,
	.steps-grid--4 {
		grid-template-columns: 1fr;
	}

	.steps-connector {
		display: none;
	}
}

/* ─── How It Works decorative circles ─── */

.how-it-works__circle {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.how-it-works__circle--tr {
	top: -60px;
	right: -60px;
	width: 200px;
	height: 200px;
	border: 1px solid rgba(224, 64, 160, 0.06);
}

.how-it-works__circle--bl {
	bottom: -40px;
	left: -40px;
	width: 150px;
	height: 150px;
	border: 1px solid rgba(64, 184, 224, 0.06);
}

/* ═══════════════════════════════════════════
   Audience Pills Row
   ══���═════════════��══════════════════════════ */

.audience-pills {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: var(--space-xl);
}

/* ─── Audience card border colour on hover ─── */

.audience-card:hover {
	border-color: var(--card-accent, var(--accent));
	box-shadow: 0 12px 36px var(--card-accent-bg, var(--accent-light)), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* ═══════════════════════════════════════════
   Testimonial Decorative Quote
   ���═════════════════���════════════════════════ */

.testimonial-deco-quote {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--font-display);
	font-size: var(--text-hero);
	font-weight: 800;
	background: linear-gradient(180deg, rgba(224, 64, 160, 0.06) 0%, transparent 80%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

/* ═══��═══════════════════════════════════════
   CTA Section
   ═══════════════════���═══════════════════════ */

.cta-section {
	padding: 96px 5%;
}

.cta-section__content {
	text-align: center;
	margin: 0 auto;
}

/* Headline — no longer emitted by the FC block (it uses .cta-section__wysiwyg
   now), but still used by the event-single bottom CTA in single-tribe_events.php.
   Do not remove. (The old .cta-section__sub supporting-text rule was dropped once
   the bottom-CTA functional messages moved above the heading as
   .event-bottom-cta__eyebrow — styled in css/events.css.) */
.cta-section__headline {
	margin-bottom: var(--space-md);
}

.cta-section__ctas {
	display: flex;
	gap: var(--space-sm);
	justify-content: center;
	flex-wrap: wrap;
}

.cta-section :is(h1, h2, h3) {
	text-wrap: balance;
}

/* WYSIWYG content (single field replacing Headline + Supporting text) */

.cta-section__wysiwyg {
	margin-bottom: var(--space-2xl);
}

.cta-section__wysiwyg > :first-child {
	margin-top: 0;
}

.cta-section__wysiwyg > :last-child {
	margin-bottom: 0;
}

.cta-section__wysiwyg :is(h1, h2, h3) {
	margin-bottom: var(--space-md);
}

.cta-section__wysiwyg p {
	font-family: var(--font-body);
	font-size: var(--text-m);
	line-height: 1.6;
	color: #d4c6ef;
	max-width: 440px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: var(--space-md);
}

/* Hook line beneath the buttons */

.cta-section__hook {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--subtle);
	margin-top: var(--space-md);
	font-weight: 500;
}

/* CTA Atmospheric gradients (lighter than hero) */

.cta-section__gradient {
	position: absolute;
	filter: blur(60px);
}

.cta-section__gradient--pink {
	top: -30%;
	left: 20%;
	width: 40%;
	height: 100%;
	background: radial-gradient(ellipse, rgba(224, 64, 160, 0.1), transparent 70%);
}

.cta-section__gradient--violet {
	bottom: -20%;
	right: 20%;
	width: 35%;
	height: 80%;
	background: radial-gradient(ellipse, rgba(160, 112, 240, 0.06), transparent 70%);
}

/* ═══════════════════════════════════════════
   Events Grid Empty State
   ═══════════��═══════════════════════════════ */

.events-grid__empty {
	text-align: center;
	padding: var(--space-3xl) var(--space-xl);
	color: var(--text-mid);
}

/* ═══════════════════════════════════════════
   Event Card — Link Reset
   ═══════════════════════════════════════════ */

.event-card__link {
	display: flex;
	width: 100%;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

/* ═══════════════════════════════════════════
   Pricing Table — Phase 8
   ═══════════════════════════════════════════ */

/* ─── Desktop table ─── */

.pricing-table__desktop {
	overflow-x: auto;
	padding-top: var(--space-lg);
}

.pricing-table__mobile {
	display: none;
}

.pricing-table__grid {
	width: 100%;
	table-layout: fixed; /* equal-width tier columns */
	border-collapse: separate;
	border-spacing: 0;
	font-family: var(--font-body);
}

/* Pricing table container — wider than the standard 1200px container. */
.pricing-table-section .pricing-table__container {
	max-width: 1366px;
}

.pricing-table__features-label {
	text-align: left;
	padding: var(--space-md) var(--space-lg);
	width: 22%;
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-mid);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-bottom: 2px solid var(--surface);
}

.pricing-table__tier-header {
	text-align: center;
	width: 19.5%; /* 4 equal tier columns (+ 22% features label = 100%) */
	padding: var(--space-lg) var(--space-md) var(--space-md);
	border-bottom: 2px solid var(--surface);
	position: relative;
}

.pricing-table__tier-header--recommended {
	border-top: 3px solid var(--accent);
	border-left: 3px solid var(--accent);
	border-right: 3px solid var(--accent);
	border-top-left-radius: var(--radius-lg);
	border-top-right-radius: var(--radius-lg);
}

.pricing-table__tier-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-body);
	color: var(--text-dark);
}

.pricing-table__tier-header--recommended .pricing-table__tier-name {
	color: var(--accent);
}

.pricing-table__popular-badge {
	display: inline-block;
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--accent);
	color: var(--white);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 700;
	padding: 4px 14px;
	border-radius: var(--radius-full);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.pricing-table__current-badge {
	display: inline-block;
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--accent);
	color: var(--white);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 700;
	padding: 4px 14px;
	border-radius: var(--radius-full);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.pricing-table__card .pricing-table__current-badge {
	position: static;
	transform: none;
	margin-bottom: var(--space-md);
}

.btn--disabled {
	opacity: 0.45;
	pointer-events: none;
	cursor: default;
	background: var(--text-mid);
	color: var(--white);
	box-shadow: none;
}

/* ─── Table cells ─── */

.pricing-table__row-label {
	padding: 14px var(--space-lg);
	font-size: var(--text-body);
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--text-dark);
	border-bottom: 1px solid rgba(26, 16, 40, 0.06);
}

.pricing-table__cell {
	text-align: center;
	padding: 14px var(--space-md);
	border-bottom: 1px solid rgba(26, 16, 40, 0.06);
}

.pricing-table__cell--recommended {
	border-left: 3px solid var(--accent);
	border-right: 3px solid var(--accent);
}

.pricing-table__cell--subtle {
	font-size: var(--text-body);
	color: var(--text-mid);
}

.pricing-table__price {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-h2);
	color: var(--text-dark);
}

.pricing-table__price--accent {
	color: var(--accent);
}

.pricing-table__period {
	font-family: var(--font-body);
	font-size: var(--text-small);
	color: var(--text-mid);
	font-weight: 400;
}

.pricing-table__check {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pricing-table__dash {
	color: rgba(168, 156, 200, 0.3);
	font-size: var(--text-body);
	font-weight: 400;
}

.pricing-table__text-value {
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-mid);
	line-height: 1.4;
}

/* ─── CTA row ─── */

.pricing-table__cta-row td {
	padding: var(--space-lg) var(--space-md);
	border-bottom: none;
}

.pricing-table__cta-row td.pricing-table__cell--recommended-bottom {
	border-bottom: 3px solid var(--accent); /* closes the bordered column */
	border-bottom-left-radius: var(--radius-lg);
	border-bottom-right-radius: var(--radius-lg);
}

.pricing-table__cta {
	width: 100%;
	justify-content: center;
}

.pricing-table__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: var(--space-lg) 0;
	overflow: visible;
	padding: 2px 0;
	justify-content: center;
}

.pricing-table__pill {
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	padding: 8px 16px;
	border-radius: var(--radius-full);
	cursor: pointer;
	border: 1.5px solid rgba(26, 16, 40, 0.1);
	background: var(--white);
	color: var(--text-mid);
	white-space: nowrap;
	transition: all 0.2s ease;
}

.pricing-table__pill--active {
	border: 2px solid var(--accent);
	background: var(--accent-light);
	color: var(--accent);
}

/* Match the theme button focus ring (pills are <button>s without .btn). */
.pricing-table__pill:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ─── Mobile cards ─── */

.pricing-table__card {
	background: var(--white);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(26, 16, 40, 0.08);
	padding: 28px 24px;
	box-shadow: 0 2px 12px rgba(26, 16, 40, 0.04);
}

.pricing-table__card--recommended {
	border: 3px solid var(--accent);
	box-shadow: 0 8px 40px rgba(224, 64, 160, 0.1);
}

.pricing-table__card .pricing-table__popular-badge {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: var(--space-md);
}

.pricing-table__card-header {
	text-align: center;
	margin-bottom: var(--space-lg);
}

.pricing-table__card-name {
	color: var(--text-dark);
	margin-bottom: var(--space-xs);
}

.pricing-table__card-price {
	margin-bottom: 2px;
}

.pricing-table__card-price .pricing-table__price {
	font-size: var(--text-h2);
}

.pricing-table__card-monthly {
	font-size: var(--text-s);
	color: var(--text-mid);
}

/* ─── Mobile feature list ─── */

.pricing-table__card-features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pricing-table__card-feature {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(26, 16, 40, 0.06);
}

.pricing-table__card-feature:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.pricing-table__card-feature-label {
	color: var(--text-dark);
	font-weight: 700;
	font-family: var(--font-display);
}

.pricing-table__card-feature-value {
	color: var(--text-dark);
	font-weight: 500;
}

.pricing-table__card .pricing-table__cta {
	margin-top: var(--space-lg);
}

/* ─── Mobile pill selector + cards ─── */

@media (max-width: 959px) {
	.pricing-table__desktop {
		display: none;
	}

	.pricing-table__mobile {
		display: block;
	}

	.pricing-table__card .pricing-table__current-badge {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
	}

	.pricing-table__card {
		position: relative;
	}

	.pricing-table__card-name {
		margin-bottom: 0;
	}

	.pricing-table__card-price .pricing-table__price {
		font-size: 3em;
		font-weight: 700;
	}

	.pricing-table__card-monthly {
		font-weight: 500;
	}
}

/* ═══════════════════════════════════════════
   Savings Examples — Phase 8
   ═══════════════════════════════════════════ */

.savings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--space-lg);
}

.savings-card {
	background: var(--surface);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(26, 16, 40, 0.06);
	overflow: hidden;
	transition: all 0.3s var(--ease-out-expo);
}

.savings-card:hover {
	border-color: rgba(26, 16, 40, 0.12);
	box-shadow: 0 8px 32px rgba(26, 16, 40, 0.08);
	transform: translateY(-3px);
}

.savings-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.savings-card__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, var(--dark), var(--charcoal));
	position: relative;
}

.savings-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.savings-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.savings-card__placeholder-letter {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: var(--text-hero);
	color: rgba(255, 255, 255, 0.2);
	letter-spacing: -0.03em;
}

.savings-card__body {
	padding: 24px 28px 28px;
	text-align: center;
}

.savings-card__title {
	color: var(--text-dark);
	margin-bottom: var(--space-md);
}

.savings-card__prices {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-md);
	margin-bottom: var(--space-md);
}

.savings-card__price-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.savings-card__price-label {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 500;
	color: var(--text-mid);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.savings-card__price {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-h3);
}

.savings-card__price--member {
	color: var(--success);
}

.savings-card__price--rrp {
	color: rgba(26, 16, 40, 0.3);
	text-decoration: line-through;
}

.savings-card__divider {
	width: 1px;
	height: 40px;
	background: rgba(26, 16, 40, 0.08);
	flex-shrink: 0;
}

.savings-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--emerald-light);
	border-radius: var(--radius-full);
	padding: 6px 16px;
}

.savings-card__badge-amount {
	font-family: var(--font-body);
	font-size: var(--text-small);
	font-weight: 700;
	color: var(--success);
}

.savings-card__badge-pct {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--emerald);
	opacity: 0.7;
}

.savings-footnote {
	text-align: center;
	margin-top: var(--space-xl);
	font-family: var(--font-body);
	font-size: var(--text-small);
	color: var(--text-mid);
}


/* ═══════════════════════════════════════════
   Content With Image — Phase 11
   ═══════════════════════════════════════════ */

.content-with-image__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2xl);
	align-items: center;
}

.content-with-image__grid--align-top {
	align-items: start;
}

/* Mobile: media always below text */
.content-with-image__media {
	order: 1;
}

.content-with-image__text {
	order: 0;
}

.content-with-image__wysiwyg h2 {
	margin-bottom: var(--space-lg);
}

.content-with-image__wysiwyg h2 strong {
	color: var(--accent);
	font-weight: inherit;
}

.content-with-image__wysiwyg h3 {
	margin-bottom: var(--space-md);
}

.content-with-image__wysiwyg p {
	font-family: var(--font-body);
	font-size: var(--text-body);
	line-height: 1.75;
	margin-bottom: var(--space-md);
}

/* Inherit section text colours */
.section--dark .content-with-image__wysiwyg p,
.section--midnight .content-with-image__wysiwyg p {
	color: var(--subtle);
}

.section--default .content-with-image__wysiwyg p,
.section--surface .content-with-image__wysiwyg p,
.section--white .content-with-image__wysiwyg p {
	color: var(--text-mid);
}

.section--default .content-with-image__wysiwyg h2,
.section--surface .content-with-image__wysiwyg h2,
.section--white .content-with-image__wysiwyg h2 {
	color: var(--text-dark);
}

.content-with-image__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	margin-top: var(--space-xl);
}

/* Media wrapper */
.content-with-image__media-wrap {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.content-with-image__media-wrap img,
.content-with-image__media-wrap video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-with-image__media-wrap:hover img,
.content-with-image__media-wrap:hover video {
	transform: scale(1.03);
}

/* Accent gradient bar at bottom */
.content-with-image__media-wrap::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--accent), var(--cyan));
	z-index: 1;
}

/* Desktop: two-column 50/50 */
@media (min-width: 960px) {
	.content-with-image__grid {
		grid-template-columns: 1fr 1fr;
		gap: 64px;
	}

	/* Image-left: swap column order */
	.content-with-image__grid--image-left .content-with-image__media {
		order: -1;
	}
}


/* ═══════════════════════════════════════════
   Team Grid — Phase 11
   ═══════════════════════════════════════════ */

.team-card {
	text-align: center;
	padding: 40px 28px 36px;
	border-radius: var(--radius-lg);
	border: 1.5px solid rgba(106, 96, 128, 0.08);
	background: var(--white);
	position: relative;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
	transform: translateY(-5px);
	border-color: rgba(224, 64, 160, 0.2);
	box-shadow:
		0 16px 48px rgba(14, 10, 24, 0.1),
		0 0 0 1px rgba(224, 64, 160, 0.08);
}

/* Top glow on hover */
.team-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	height: 60%;
	background: radial-gradient(ellipse at 50% 0%, rgba(224, 64, 160, 0.04), transparent 70%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.team-card:hover::before {
	opacity: 1;
}

/* Photo — round */
.team-card__photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	margin: 0 auto var(--space-lg);
	overflow: hidden;
	position: relative;
	border: 3px solid rgba(168, 156, 200, 0.1);
	transition: border-color 0.4s ease;
}

.team-card:hover .team-card__photo {
	border-color: rgba(224, 64, 160, 0.3);
}

.team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Initials fallback */
.team-card__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-h2);
	color: var(--white);
	background: linear-gradient(135deg, var(--dark), var(--charcoal));
}

.team-card__name {
	margin-bottom: 4px;
	position: relative;
}

.section--white .team-card__name,
.section--default .team-card__name,
.section--surface .team-card__name {
	color: var(--text-dark);
}

.team-card__role {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--text-small);
	color: var(--accent);
	line-height: 1.4;
	margin-bottom: var(--space-md);
}

.team-card__bio {
	font-family: var(--font-body);
	font-size: var(--text-small);
	line-height: 1.65;
	color: var(--text-mid);
	position: relative;
}


/* ═══════════════════════════════════════════
   Testimonials Grid Enhancements — Phase 11
   ═══════════════════════════════════════════ */

.testimonial-card--grid {
	position: relative;
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: 36px 32px 32px;
	border: 1px solid rgba(106, 96, 128, 0.06);
	box-shadow: 0 2px 8px rgba(14, 10, 24, 0.03);
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card--grid:hover {
	border-color: var(--accent-light);
	box-shadow: 0 12px 40px rgba(14, 10, 24, 0.08);
	transform: translateY(-4px);
}

/* Accent gradient bar at top */
.testimonial-card--grid::before {
	content: '';
	position: absolute;
	top: 0;
	left: 32px;
	right: 32px;
	height: 3px;
	background: linear-gradient(90deg, var(--accent), var(--cyan));
	border-radius: 0 0 4px 4px;
}

/* Star rating */
.testimonial-card__rating {
	display: flex;
	gap: 2px;
	color: var(--gold);
	margin-bottom: var(--space-md);
}

.testimonial-card__rating span {
	display: flex;
}

/* Grid card attribution separator */
.testimonial-card--grid .testimonial-card__attribution {
	padding-top: var(--space-lg);
	border-top: 1px solid rgba(106, 96, 128, 0.06);
}

/* ═══════════════════════════════════════════
   Contact page layout (parts/contact-forms.php)
   ═══════════════════════════════════════════ */

.contact-forms-block__inner {
	max-width: 840px;
	margin: 0 auto;
	text-align: center;
}

.contact-forms-block__inner .contact-panel {
	text-align: left;
}

.contact-forms-block .section-heading {
	margin-bottom: var(--space-xl);
}

/* ═══════════════════════════════════════════
   404 page (404.php)
   ═══════════════════════════════════════════ */

.error-404 {
	position: relative;
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: var(--muted);
}

/* Theatre-curtain backdrop (real <img>, first in DOM so it sits below the
   atmosphere glows / grain / sparkles; content is z-index 2 above all). */
.error-404__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.error-404__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.error-404__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: var(--space-3xl) var(--space-md);
}

.error-404__code {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: var(--text-hero);
	line-height: 0.9;
	letter-spacing: -0.05em;
	background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: var(--space-lg);
	user-select: none;
}

.error-404__headline {
	color: var(--white);
	margin: 0 0 var(--space-md);
}

.error-404__sub {
	font-size: var(--text-m);
	line-height: 1.6;
	color: var(--subtle);
	max-width: 520px;
	margin: 0 auto var(--space-xl);
}

.error-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	justify-content: center;
	margin-bottom: var(--space-2xl);
}

.error-404__popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm) var(--space-md);
	font-size: var(--text-small);
	color: var(--subtle);
}

.error-404__popular-label {
	font-weight: 600;
	color: var(--muted);
	margin-right: var(--space-xs);
}

.error-404__popular a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 600;
	transition: color var(--transition-fast);
}

.error-404__popular a:hover {
	color: var(--white);
}

.error-404__popular a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.error-404__popular span[aria-hidden] {
	opacity: 0.4;
}

/* ═══════════════════════════════════════════
   Search results page (search.php)
   ═══════════════════════════════════════════ */

.search-hero {
	text-align: center;
}

.search-hero__overline {
	margin-bottom: var(--space-md);
	color: var(--accent);
}

.search-hero__form {
	max-width: 560px;
	margin: var(--space-xl) auto 0;
}

.search-results__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
	margin-bottom: var(--space-2xl);
}

/* When events appear in the mix, keep them responsive. */
.search-results__list .event-card {
	max-width: 100%;
}

/* Generic (non-event) search result card */
.search-result {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	padding: var(--space-xl);
	background: var(--white);
	border: 1px solid rgba(106, 96, 128, 0.1);
	border-radius: var(--radius-lg);
	transition: all 0.25s var(--ease-out-expo);
}

.search-result:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.search-result__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-sm) var(--space-md);
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.search-result__type {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	background: var(--accent-light);
	color: var(--accent);
	border-radius: var(--radius-full);
}

.search-result__date {
	color: var(--text-mid);
}

.search-result__title {
	margin: 0;
}

.search-result__title a {
	color: var(--text-dark);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.search-result__title a:hover {
	color: var(--accent);
}

.search-result__title a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.search-result__excerpt {
	font-size: var(--text-body);
	line-height: 1.6;
	color: var(--text-mid);
	margin: 0;
}

.search-result__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-body);
	font-size: var(--text-small);
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
	margin-top: var(--space-xs);
}

.search-result__link span[aria-hidden] {
	display: inline-flex;
	transform: rotate(180deg);
	transition: transform var(--transition-fast);
}

.search-result__link:hover span[aria-hidden] {
	transform: rotate(180deg) translateX(3px);
}

.search-result__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

/* Search empty state */
.search-results__empty {
	max-width: 520px;
	margin: 0 auto;
	padding: var(--space-3xl) var(--space-md);
	text-align: center;
}

.search-results__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	margin: 0 auto var(--space-lg);
	background: var(--accent-light);
	color: var(--accent);
	border-radius: var(--radius-full);
}

.search-results__empty-title {
	color: var(--text-dark);
	margin: 0 0 var(--space-sm);
}

.search-results__empty-sub {
	font-size: var(--text-body);
	line-height: 1.6;
	color: var(--text-mid);
	margin: 0 0 var(--space-xl);
}

.search-results__empty-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	justify-content: center;
}

/* ═══════════════════════════════════════════
   Pagination (search + archives)
   ═══════════════════════════════════════════ */

.pagination {
	display: flex;
	justify-content: center;
	margin-top: var(--space-2xl);
}

.pagination .nav-links,
.pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--space-xs);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 var(--space-sm);
	font-family: var(--font-body);
	font-size: var(--text-small);
	font-weight: 600;
	color: var(--text-dark);
	background: var(--white);
	border: 1px solid rgba(106, 96, 128, 0.15);
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: all var(--transition-fast);
}

.pagination a.page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.pagination .page-numbers.current {
	background: var(--accent);
	color: var(--white);
	border-color: var(--accent);
}

.pagination .page-numbers.dots {
	border: none;
	background: transparent;
	color: var(--text-mid);
}

.pagination a.page-numbers:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   WYSIWYG typography
   Scoped to .content-default so it only affects
   utility pages (Terms, Privacy) rendering raw
   the_content() inside the narrow container.
   ═══════════════════════════════════════════ */

.content-default:not(.content-above, .content-below) :is(h2, h3, h4, h5, h6) {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--text-dark);
	margin: var(--space-2xl) 0 var(--space-md);
}

.content-default h2:first-child,
.content-default h3:first-child,
.content-default h4:first-child {
	margin-top: 0;
}

.content-default.content-default:not(.content-above, .content-below) p {
	font-family: var(--font-body);
	font-size: var(--text-body);
	line-height: 1.75;
	color: var(--text-mid);
	margin: 0 0 var(--space-md);
}

.content-default p:last-child {
	margin-bottom: 0;
}

.content-default a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid var(--accent-light);
	transition: all var(--transition-fast);
}

.content-default a:hover {
	border-bottom-color: var(--accent);
}

.content-default a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.content-default ul,
.content-default ol {
	padding-left: var(--space-xl);
	margin: 0 0 var(--space-md);
	color: var(--text-mid);
	line-height: 1.75;
}

.content-default ul {
	list-style: disc;
}

.content-default ol {
	list-style: decimal;
}

.content-default li {
	margin-bottom: var(--space-xs);
}

.content-default li:last-child {
	margin-bottom: 0;
}

.content-default strong,
.content-default b {
	color: var(--text-dark);
	font-weight: 700;
}

.content-default:not(.content-above, .content-below) :is(em, i) {
	font-style: italic;
}

.content-default blockquote {
	margin: var(--space-xl) 0;
	padding: var(--space-lg) var(--space-xl);
	border-left: 3px solid var(--accent);
	background: rgba(224, 64, 160, 0.04);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	font-style: italic;
	color: var(--text-dark);
}

.content-default blockquote p {
	color: var(--text-dark);
}

.content-default blockquote p:last-child {
	margin-bottom: 0;
}

.content-default hr {
	border: none;
	border-top: 1px solid rgba(106, 96, 128, 0.15);
	margin: var(--space-2xl) 0;
}

.content-default code {
	font-family: 'SFMono-Regular', Consolas, monospace;
	font-size: var(--text-s);
	padding: 2px 6px;
	background: rgba(106, 96, 128, 0.08);
	border-radius: var(--radius-sm);
	color: var(--text-dark);
}

.content-default:not(.content-above, .content-below) pre {
	padding: var(--space-lg);
	background: var(--dark);
	color: var(--muted);
	border-radius: var(--radius-md);
	overflow-x: auto;
	margin: 0 0 var(--space-md);
}

.content-default pre code {
	background: none;
	padding: 0;
	color: inherit;
}

/* ═══════════════════════════════════════════
   Plain Page template (template-plain.php)
   Legal / utility pages: light surface, solid dark nav
   (via the .weo-solid-nav body class), title + prose.
   ═══════════════════════════════════════════ */

/* Body-level surface fill so no dark (--midnight) body bg shows through. */
body.weo-plain-page {
	background: var(--surface);
}

.weo-plain {
	background: var(--surface);
	/* Clear the fixed nav (--nav-height) + breathing room below it so the
	   title doesn't sit right under the bar. */
	padding-top: calc(var(--nav-height) + var(--space-2xl));
	padding-bottom: var(--space-3xl);
	min-height: 70vh;
}

.weo-plain__header {
	margin-bottom: var(--space-xl);
}

/* Title inherits the base <h1> treatment (display font, --text-hero size,
   --text-dark); just drop the default margin so spacing is owned by the
   header wrapper above. */
.weo-plain__title {
	margin: 0;
}
