/* Buttons */
.btn {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 1rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40%;
	height: 100%;
	background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
	transform: translateX(-250%) skewX(-18deg);
	transition: transform 0.6s ease;
	pointer-events: none;
}

.btn:hover::before {
	transform: translateX(350%) skewX(-18deg);
}

@media (prefers-reduced-motion: reduce) {
	.btn::before {
		display: none;
	}

	.card:hover,
	.feature-card:hover,
	.testimonial-card:hover,
	.highlight:hover {
		transform: none;
	}

	.gallery-grid__overlay-icon {
		transition: opacity 0.25s ease;
		transform: none;
	}
}

.btn:hover {
	transform: translateY(-2px);
}

.btn:focus-visible {
	outline: 3px solid var(--color-focus-ring);
	outline-offset: 2px;
}

.btn-primary {
	background:
		var(--gloss-overlay),
		linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	color: var(--color-white);
	box-shadow:
		var(--shadow-sm),
		var(--bevel-highlight),
		var(--bevel-shadow);
}

.btn-primary:hover {
	background:
		var(--gloss-overlay),
		linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 55%);
	color: var(--color-white);
	box-shadow:
		var(--shadow-md),
		var(--bevel-highlight),
		inset 0 -2px 0 rgba(23, 21, 28, 0.24);
}

.btn-secondary {
	background:
		var(--gloss-overlay),
		linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	color: var(--color-navy);
	box-shadow:
		var(--shadow-sm),
		var(--bevel-highlight),
		var(--bevel-shadow);
}

.btn-secondary:hover {
	background:
		var(--gloss-overlay),
		linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 55%);
	color: var(--color-navy);
	box-shadow:
		var(--shadow-md),
		var(--bevel-highlight),
		inset 0 -2px 0 rgba(23, 21, 28, 0.24);
}

.btn-outline {
	background: transparent;
	border-color: var(--color-white);
	color: var(--color-white);
}

.btn-outline:hover {
	background: rgba(255,255,255,0.15);
	color: var(--color-white);
}

.btn-outline-dark {
	background: transparent;
	border-color: var(--color-navy);
	color: var(--color-navy);
}

.btn-outline-dark:hover {
	background: var(--color-navy);
	color: var(--color-white);
}

.btn-block {
	width: 100%;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* Hero */
.hero {
	position: relative;
	background: var(--color-navy);
	color: var(--color-white);
	overflow: hidden;
}

.hero__inner {
	display: grid;
	gap: var(--space-4);
	align-items: center;
	padding-block: var(--space-6) var(--space-5);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.hero__inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}
}

/* Grid/flex items default to min-width:auto, which refuses to shrink
   below their content's intrinsic width and silently causes horizontal
   overflow on narrow screens. Force them shrinkable. */
.hero__inner > *,
.grid > * {
	min-width: 0;
}

.hero h1 {
	color: var(--color-white);
}

.hero p {
	color: rgba(255,255,255,0.88);
	font-size: 1.1rem;
	max-width: 520px;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	color: var(--color-navy);
	font-weight: 700;
	font-size: 0.85rem;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	margin-bottom: var(--space-2);
	box-shadow: var(--bevel-highlight), var(--bevel-shadow);
}

.hero__media img {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

/* Cards */
.card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}

.card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-bg);
}

.card__media:focus-visible {
	outline: 3px solid var(--color-focus-ring);
	outline-offset: 2px;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.card:hover .card__media img {
	transform: scale(1.05);
}

/* Overlaid pill badge on the card image — a course's "Course" label or a
   blog post's computed reading time. Copies .feature-card__badge's gradient/
   color/radius/shadow verbatim, just anchored to a corner instead of
   floating above the card. */
.card__badge {
	position: absolute;
	top: var(--space-1);
	left: var(--space-1);
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	color: var(--color-navy);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-sm);
	white-space: nowrap;
}

.card__body {
	padding: var(--space-3);
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	flex: 1;
}

/* 2-line clamp + reserved height so a row of cards stays level regardless of
   how long each individual title happens to be. */
.card__title {
	font-size: 1.15rem;
	line-height: 1.3;
	margin-bottom: 4px;
	overflow-wrap: break-word;
	min-height: 2.6em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 3-line clamp for description/excerpt text, same row-leveling reasoning as
   the title above. */
.card__text {
	color: var(--color-text-muted);
	font-size: 0.95rem;
	line-height: 1.5;
	min-height: 4.5em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Optional course price — only rendered when the client fills the field in */
.card__price {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--color-primary);
	line-height: 1.2;
	overflow-wrap: break-word;
}

.card__footer {
	margin-top: auto;
	padding-top: var(--space-2);
}

/* Highlight / why-choose-us items */
.highlight {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
	background: var(--color-white);
	border-radius: var(--radius-md);
	padding: var(--space-3);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	border-top: 3px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}

/* .highlight__icon is flex:none (fixed size, never grows/shrinks) — this
   targets its sibling, the text wrapper, specifically (a plain :not()
   exclusion rather than a template change). Flex items default to
   flex-grow:0 + min-width:auto: with no grow, the text div never claims
   the row's remaining space; with min-width:auto, it also can't shrink
   below its content's natural width — together they silently overflow
   narrow 2-column grids (same min-width trap documented on .hero__inner/
   .grid above). flex:1 makes it claim exactly the leftover space instead
   of its content width; min-width:0 lets it then wrap within that space
   instead of forcing the row wider. */
.highlight > div:not(.highlight__icon) {
	flex: 1;
	min-width: 0;
}

.highlight:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-top-color: var(--color-primary);
}

.highlight__icon {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	box-shadow: var(--bevel-highlight), var(--bevel-shadow), 0 0 0 6px rgba(255, 179, 71, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-navy);
	transition: box-shadow 0.2s ease;
}

.highlight__icon svg {
	width: 24px;
	height: 24px;
}

.highlight:hover .highlight__icon {
	box-shadow: var(--bevel-highlight), var(--bevel-shadow), 0 0 0 8px rgba(255, 179, 71, 0.22);
}

.highlight h3 {
	font-size: 1.05rem;
	margin-bottom: 4px;
}

.highlight p {
	margin: 0;
	font-size: 0.95rem;
	overflow-wrap: break-word;
}

/* Contact form heading — reuses .highlight__icon's gradient/bevel badge so
   the form card opens with the same "icon + title" language every other
   card-like block on the site uses, instead of just dropping straight into
   input fields. */
.contact-form-heading {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-bottom: var(--space-3);
}

.contact-form-heading h2 {
	margin-bottom: 2px;
}

.contact-form-heading p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 0.95rem;
}

/* Contact page — vertical rhythm for the stacked info boxes (was 4x a
   repeated inline style) and a shadow/border frame for the map embed so it
   doesn't look visually disconnected from the boxes above it. */
.contact-info-stack {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.contact-map {
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
}

/* Gift voucher mini-CTA banner on the Contact page — same card/shadow
   language as .highlight, just wider/horizontal. */
.gift-voucher-banner {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	flex-wrap: wrap;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	padding: var(--space-3);
	margin-bottom: var(--space-4);
}

.gift-voucher-banner__text {
	flex: 1;
	min-width: 240px;
}

.gift-voucher-banner__text p {
	margin: 0;
	color: var(--color-text-muted);
}

/* FAQ page — accordion built on native <details>/<summary> (no JS): content
   stays in the DOM as real text at all times (matters for a future FAQPage
   schema pass) and multiple items can be open at once, which is the right
   default for a short (~10 item) list like this one. Deliberately NOT
   animating the open/close height: overriding the UA's native
   `details:not([open]) > *:not(summary){display:none}` to animate it (e.g.
   a grid-template-rows trick) would also defeat that native hiding for
   assistive tech while the panel is closed — instant native toggle keeps
   full a11y correctness, the chevron rotation still gives it a "live" feel. */
.faq-item {
	background: var(--color-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	border-top: 3px solid transparent;
	padding: var(--space-2) var(--space-3);
	margin-bottom: var(--space-2);
	transition: box-shadow 0.2s ease, border-top-color 0.2s ease;
}

.faq-item:last-child {
	margin-bottom: 0;
}

.faq-item:hover,
.faq-item[open] {
	box-shadow: var(--shadow-md);
	border-top-color: var(--color-primary);
}

.faq-item__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	cursor: pointer;
	list-style: none;
	padding: var(--space-1) 0;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--color-navy);
}

.faq-item__summary::-webkit-details-marker {
	display: none;
}

.faq-item__summary-text {
	flex: 1;
	min-width: 0;
}

.faq-item__icon {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	box-shadow: var(--bevel-highlight), var(--bevel-shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-navy);
	transition: transform 0.25s ease;
}

.faq-item__icon svg {
	width: 16px;
	height: 16px;
}

.faq-item[open] .faq-item__icon {
	transform: rotate(180deg);
}

.faq-item__answer {
	margin-top: var(--space-2);
}

.faq-item__answer p {
	margin: 0 0 0.6em;
	overflow-wrap: break-word;
}

.faq-item__answer p:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.faq-item,
	.faq-item__icon {
		transition: none;
	}
}

/* Prices & Packages page — itemized cost card. Deliberately never prints a
   hardcoded total: course prices are client-editable in wp-admin and are
   often blank until the client fills them in, so the "your package" row and
   the closing total stay text/formula-based rather than a computed number
   that could go stale or wrong. */
.cost-breakdown {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	border-top: 3px solid var(--color-primary);
	padding: var(--space-3) var(--space-4);
	margin-top: var(--space-3);
	max-width: 480px;
}

.cost-breakdown__row {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) 0;
	border-bottom: 1px solid var(--color-border);
}

.cost-breakdown__row:last-child {
	border-bottom: none;
}

.cost-breakdown__icon {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	box-shadow: var(--bevel-highlight), var(--bevel-shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-navy);
}

.cost-breakdown__label {
	flex: 1;
	min-width: 0;
	font-weight: 600;
}

.cost-breakdown__amount {
	flex: none;
	font-weight: 800;
	color: var(--color-primary);
	text-align: right;
}

.cost-breakdown__note {
	display: block;
	font-weight: 500;
	font-size: 0.8rem;
	color: var(--color-text-muted);
}

.cost-breakdown__row--total {
	padding-top: var(--space-2);
	border-top: 2px solid var(--color-navy);
	border-bottom: none;
	margin-top: var(--space-1);
}

.cost-breakdown__row--total .cost-breakdown__label,
.cost-breakdown__row--total .cost-breakdown__amount {
	font-size: 1.1rem;
	color: var(--color-navy);
}

/* Areas We Cover page */
.areas-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.areas-list li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--color-white);
	border-radius: var(--radius-md);
	padding: var(--space-2) var(--space-3);
	font-weight: 600;
	box-shadow: var(--shadow-sm);
}

.areas-list__icon {
	flex: none;
	display: inline-flex;
	color: var(--color-primary);
}

.map-frame {
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	border: 1px solid var(--color-border);
}

/* Test centre / long-form legal content pages */
.prose {
	max-width: 760px;
	margin: 0 auto;
}

.prose h2 {
	margin-top: var(--space-4);
}

.prose h2:first-child {
	margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
	overflow-wrap: break-word;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li {
	margin-bottom: 0.4em;
}

.prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.prose .wp-block-image {
	margin: var(--space-3) 0;
}

.prose .alignright {
	float: right;
	margin: 0 0 var(--space-2) var(--space-3);
	max-width: 42%;
}

.prose .alignleft {
	float: left;
	margin: 0 var(--space-3) var(--space-2) 0;
	max-width: 42%;
}

@media (max-width: 640px) {
	.prose .alignright,
	.prose .alignleft {
		float: none;
		max-width: 100%;
		margin: var(--space-2) 0;
	}
}

.trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-2);
}

.trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--color-white);
	border-radius: var(--radius-md);
	padding: 6px 12px;
	font-size: 0.85rem;
	font-weight: 600;
	box-shadow: var(--shadow-sm);
}

/* Live Open Now / Closed Now badge — text is filled in by
   assets/js/opening-hours.js; starts as a neutral "Hours" pill so there's
   no flash of wrong content before JS runs. */
.open-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: var(--radius-pill);
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
}

.open-status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.open-status--topbar {
	background: rgba(255, 255, 255, 0.1);
	color: #D6D0C8;
	padding: 4px 10px;
	font-size: 0.75rem;
}

/* Circular social icon buttons — used in the topbar and the footer's first
   column. See template-parts/social-icons.php (empty-safe: only renders
   icons for channels actually set in Customizer). */
.social-icons {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(248, 121, 26, 0.08);
	border: 1.5px solid rgba(248, 121, 26, 0.35);
	color: var(--color-white);
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
	transform: translateY(-2px);
}

.social-icon:focus-visible {
	outline: 3px solid var(--color-focus-ring);
	outline-offset: 2px;
}

/* A channel with no real URL yet (template-parts/social-icons.php renders
   these as an inert <span>, never an <a>) -- visible so the row still reads
   as a full set of channels, but visually inert: no hover lift, no pointer
   cursor, since there's genuinely nothing to click yet. */
.social-icon--pending {
	opacity: 0.35;
	cursor: default;
}

.open-status--footer {
	background: rgba(255, 255, 255, 0.1);
	color: #D6D0C8;
}

/* Boxed hours card in the footer, matching the site's other bordered-card
   language (see .highlight) but with a warmer, slightly glowing edge to
   match the rest of the footer's ambient-glow treatment. */
.footer-hours-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
	border: 1px solid rgba(248, 121, 26, 0.25);
	border-radius: var(--radius-md);
	padding: var(--space-3);
	box-shadow: 0 0 24px rgba(248, 121, 26, 0.06);
}

.footer-hours-card dl {
	margin: 0 0 var(--space-2);
	padding-bottom: var(--space-2);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.open-status.is-open {
	color: #3FBF7F;
}

.open-status.is-closed {
	color: #E8A028;
}

/* Footer hours list */
.footer-hours-row {
	display: flex;
	justify-content: space-between;
	gap: var(--space-2);
	padding-block: 4px;
	font-size: 0.92rem;
}

.footer-hours-row dt {
	color: #D6D0C8;
	opacity: 0.85;
}

.footer-hours-row dd {
	margin: 0;
	font-weight: 600;
	color: var(--color-white);
	text-align: right;
}

.footer-hours-note {
	margin-top: var(--space-1);
	font-size: 0.82rem;
	opacity: 0.75;
}

/* Icon badge on footer contact rows — same ring style as .social-icon so
   the two icon systems in the footer read as one language. */
.footer-contact-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 var(--space-2);
}

.footer-contact-row__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(248, 121, 26, 0.08);
	border: 1.5px solid rgba(248, 121, 26, 0.3);
	color: var(--color-primary);
}

/* Floating WhatsApp button */
.whatsapp-float {
	position: fixed;
	right: var(--space-2);
	bottom: var(--space-2);
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	color: var(--color-white);
	box-shadow: var(--shadow-md);
	transition: transform 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
	transform: scale(1.08);
	color: var(--color-white);
}

.whatsapp-float:focus-visible {
	outline: 3px solid var(--color-focus-ring);
	outline-offset: 3px;
}

@media (max-width: 480px) {
	.whatsapp-float {
		right: var(--space-1);
		bottom: var(--space-1);
		width: 50px;
		height: 50px;
	}
}

/* Cookie consent banner — hidden by default (assets/js/cookie-consent.js
   adds .is-visible on first visit, or when "Cookie Settings" is clicked
   again). No GA4/GTM is wired up to it yet; see the JS file's docblock for
   how a future analytics snippet should hook in. */
.cookie-banner {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 95;
	background: var(--color-navy);
	color: #D6D0C8;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: var(--shadow-md);
}

.cookie-banner.is-visible {
	display: block;
}

.cookie-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	padding-block: var(--space-2);
}

.cookie-banner p {
	margin: 0;
	font-size: 0.9rem;
	flex: 1 1 320px;
}

.cookie-banner a {
	color: var(--color-yellow);
}

.cookie-banner__actions {
	display: flex;
	gap: var(--space-1);
	flex: none;
}

.cookie-banner__actions .btn {
	padding: 10px 18px;
	font-size: 0.9rem;
}

/* Feature card — vertical/centered icon-badge cards used for "Why Choose
   Us" (front-page.php) and "Our Approach" (About page). A distinct
   component from .highlight (the small horizontal icon+text rows used on
   the Contact page) rather than a restyle of it, since the two are
   different UI patterns and Contact's rows shouldn't inherit this layout. */
.feature-card {
	position: relative;
	overflow: hidden;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-4) var(--space-3) var(--space-3);
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: rgba(248, 121, 26, 0.3);
}

.feature-card--featured {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 4px rgba(248, 121, 26, 0.1), var(--shadow-sm);
}

.feature-card__badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	color: var(--color-navy);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-sm);
	white-space: nowrap;
}

/* Same gradient/bevel/glow-ring recipe as .highlight__icon/.cta-pill__icon
   (was a flat orange-tint circle) — brings this icon badge into the same
   visual family as the rest of the site's icon circles. */
.feature-card__icon {
	width: 68px;
	height: 68px;
	margin: 0 auto var(--space-2);
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	color: var(--color-navy);
	box-shadow: var(--bevel-highlight), var(--bevel-shadow), 0 0 0 6px rgba(255, 179, 71, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: box-shadow 0.2s ease;
}

.feature-card:hover .feature-card__icon {
	box-shadow: var(--bevel-highlight), var(--bevel-shadow), 0 0 0 9px rgba(255, 179, 71, 0.2);
}

.feature-card__icon svg {
	width: 28px;
	height: 28px;
}

.feature-card__title {
	position: relative;
	font-size: 1.05rem;
	padding-bottom: 12px;
	margin-bottom: var(--space-2);
}

.feature-card__title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 32px;
	height: 2px;
	background: var(--color-primary);
}

.feature-card__text {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 0.95rem;
}

/* Faint corner flourish: a mostly-offscreen ring, clipped by the card's own
   overflow:hidden into a soft curved accent in the bottom-left corner. */
.feature-card::after {
	content: "";
	position: absolute;
	left: -28px;
	bottom: -28px;
	width: 64px;
	height: 64px;
	border: 2px solid var(--color-primary);
	border-radius: 50%;
	opacity: 0.25;
	pointer-events: none;
}

/* Pricing cards (Prices & Packages page) — template-parts/pricing-card.php.
   A distinct rendering of the same .card base course-card.php uses, with a
   large price display, a checkmarked "what's included" list, and an
   optional "featured" treatment. The featured border/glow/badge recipe is
   copied from .feature-card--featured/.feature-card__badge above (defined
   there but, until now, never actually used in markup). */
.pricing-card {
	position: relative;
	text-align: left;
	/* Matches .feature-card's own base border so --featured below has an
	   actual border to recolor (.card, unlike .feature-card, ships with no
	   border of its own — only a box-shadow). */
	border: 1px solid var(--color-border);
	/* .card sets overflow:hidden, to clip .card__media's photo to the card's
	   own rounded top corners. That would also clip .pricing-card__badge's
	   negative top offset below, the same "own overflow:hidden clips a
	   deliberately-outside pseudo/child element" trap already hit and noted
	   elsewhere in this theme (see .photo-frame). Reopened here, with the
	   rounding moved onto .card__media itself (still its own overflow:hidden)
	   so the visible corners are unaffected. Scoped to .pricing-card only —
	   course-card.php's .card__media has no .pricing-card ancestor. */
	overflow: visible;
}

.pricing-card .card__media {
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-card__badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	color: var(--color-navy);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-sm);
	white-space: nowrap;
}

.pricing-card--featured {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 4px rgba(248, 121, 26, 0.1), var(--shadow-sm);
}

.pricing-card--featured:hover {
	box-shadow: 0 0 0 4px rgba(248, 121, 26, 0.16), var(--shadow-lg);
}

.pricing-card__tagline {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.pricing-card__price-block {
	display: flex;
	flex-direction: column;
}

.pricing-card__price {
	font-size: 2rem;
	font-weight: 800;
	color: var(--color-primary);
	line-height: 1.15;
	overflow-wrap: break-word;
}

.pricing-card__price-period {
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

.pricing-card__divider {
	width: 100%;
	border: none;
	border-top: 1px solid var(--color-border);
	margin: 0;
}

.pricing-card__features {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.92rem;
	color: var(--color-text-muted);
	margin: 0;
	padding: 0;
}

.pricing-card__features li::before {
	content: "\2713";
	color: var(--color-primary);
	font-weight: 700;
	margin-right: 8px;
}

/* Slightly darker checkmark inside the featured card for a touch of extra
   emphasis, using the existing --color-primary-dark token (no new color). */
.pricing-card--featured .pricing-card__features li::before {
	color: var(--color-primary-dark);
}

/* CTA banner */
.cta-banner {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	color: var(--color-white);
	border-radius: var(--radius-lg);
	padding: var(--space-4);
	text-align: center;
	box-shadow:
		var(--shadow-sm),
		var(--bevel-highlight),
		var(--bevel-shadow);
}

.cta-banner h2,
.cta-banner p {
	color: var(--color-white);
}

.cta-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	margin-top: var(--space-2);
}

/* The premium icon+label+arrow pill used as the primary CTA — dark with a
   glowing orange border, so it reads as its own focal element rather than
   a flat button sitting on the banner's orange background. */
.cta-pill {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	background: linear-gradient(135deg, var(--color-navy) 0%, #0D0C10 100%);
	border: 1.5px solid rgba(255, 179, 71, 0.6);
	border-radius: var(--radius-pill);
	padding: 8px 8px 8px 8px;
	color: var(--color-white);
	box-shadow: 0 0 0 6px rgba(255, 179, 71, 0.12), var(--shadow-md);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-pill:hover,
.cta-pill:focus-visible {
	color: var(--color-white);
	transform: translateY(-2px);
	box-shadow: 0 0 0 9px rgba(255, 179, 71, 0.16), var(--shadow-md);
}

.cta-pill:focus-visible {
	outline: 3px solid var(--color-focus-ring);
	outline-offset: 3px;
}

.cta-pill__icon,
.cta-pill__arrow {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	color: var(--color-navy);
}

.cta-pill__label {
	font-weight: 700;
	padding-inline: 2px;
	white-space: nowrap;
}

/* Trust-badge row under the pill (e.g. Safe / Professional / Flexible) —
   optional, only rendered when a page passes `badges` to the template. */
.cta-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-3);
	margin-top: var(--space-3);
}

.cta-badges__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-white);
	opacity: 0.9;
}

/* Testimonials */
.section--testimonials {
	position: relative;
	overflow: hidden;
}

.section--testimonials::before {
	content: "\201C";
	position: absolute;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--font-heading);
	font-size: 32rem;
	line-height: 1;
	color: var(--color-navy);
	opacity: 0.04;
	pointer-events: none;
	z-index: 0;
	user-select: none;
}

.section--testimonials::after {
	content: "";
	position: absolute;
	top: -120px;
	right: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(248, 121, 26, 0.12) 0%, rgba(248, 121, 26, 0) 70%);
	pointer-events: none;
	z-index: 0;
}

.section--testimonials .container {
	position: relative;
	z-index: 1;
}

.testimonial-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: var(--space-3);
	overflow: hidden;
	border-top: 3px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}

.testimonial-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-top-color: var(--color-primary);
}

.testimonial-card__stars {
	color: var(--color-yellow);
	letter-spacing: 2px;
	margin-bottom: var(--space-1);
}

.testimonial-card__author {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-2);
	font-weight: 700;
	color: var(--color-navy);
}

/* Initials avatar — the same gradient/bevel/glow-ring recipe as
   .highlight__icon and .cta-pill__icon, just with initials instead of an
   SVG since there are no real student photos to show. */
.testimonial-card__avatar {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	color: var(--color-navy);
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 0.95rem;
	box-shadow: var(--bevel-highlight), var(--bevel-shadow), 0 0 0 4px rgba(255, 179, 71, 0.15);
}

.testimonial-card__author span {
	min-width: 0;
	overflow-wrap: break-word;
}

/* Instructor cards ("Meet the Team") — reuses .card's base recipe (white,
   shadow, hover-lift, turns the top border orange on hover) centered around
   a photo or, if none has been uploaded yet, the same gradient initials
   avatar used by .testimonial-card__avatar, just larger. */
.instructor-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	border-top: 3px solid transparent;
	padding: var(--space-3);
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}

.instructor-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-top-color: var(--color-primary);
}

.instructor-card__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto var(--space-2);
	box-shadow: var(--bevel-highlight), var(--bevel-shadow), 0 0 0 4px rgba(255, 179, 71, 0.15);
}

.instructor-card__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	margin: 0 auto var(--space-2);
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	color: var(--color-navy);
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.6rem;
	box-shadow: var(--bevel-highlight), var(--bevel-shadow), 0 0 0 4px rgba(255, 179, 71, 0.15);
}

.instructor-card h3 {
	margin-bottom: 4px;
}

.instructor-card .card__text {
	margin-top: var(--space-1);
}

.instructor-card__specialties {
	margin-top: var(--space-1);
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

/* Photo frame — corner-bracket accent for the two About-section photos */
.photo-frame {
	position: relative;
}

.photo-frame::before {
	content: "";
	position: absolute;
	top: -12px;
	right: -12px;
	width: 64px;
	height: 64px;
	border-top: 3px solid var(--color-primary);
	border-right: 3px solid var(--color-primary);
	pointer-events: none;
}

/* Placeholder media (used until real client photos are uploaded) */
/* Client-uploaded section photo — occupies the same box as the placeholder it
   replaces, so the surrounding grid doesn't shift when a photo is set. */
.section-photo {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 200px;
	object-fit: cover;
}

/* Designed placeholder for cards without a real photo yet — a subtle dotted
   texture + a low-opacity brand icon watermark + a clamped label, rather
   than a flat gradient block with unstyled text. The --dark variant (used
   for blog cards and gallery tiles, which can stack 6-9 in a row with no
   photos) keeps that many placeholders from reading as a wall of orange;
   course cards keep the default orange since there are only ever a few. */
.placeholder-media {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-1);
	width: 100%;
	height: 100%;
	min-height: 200px;
	padding: var(--space-2);
	text-align: center;
	background:
		radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px) 0 0 / 16px 16px,
		linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.placeholder-media--dark {
	background:
		radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 16px 16px,
		linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
}

.placeholder-media__icon {
	line-height: 0;
	color: rgba(255, 255, 255, 0.28);
}

.placeholder-media--dark .placeholder-media__icon {
	color: rgba(255, 179, 71, 0.35);
}

.placeholder-media__label {
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.85rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Gallery grid */
.gallery-grid {
	display: grid;
	gap: var(--space-2);
	grid-template-columns: repeat(2, 1fr);
	grid-auto-flow: dense;
}

@media (min-width: 640px) {
	.gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
	.gallery-grid__item:nth-child(6n+1) {
		grid-column: span 2;
		grid-row: span 2;
	}
}

@media (min-width: 1024px) {
	.gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-grid__item {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.gallery-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.gallery-grid__item:hover img {
	transform: scale(1.06);
}

/* Hover "view" affordance on real photos only — a dark scrim + icon-circle,
   same gradient recipe as the badges/avatars above. Placeholder tiles (no
   photo) don't get this, there's nothing to "view". */
.gallery-grid__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, rgba(13, 12, 16, 0) 45%, rgba(13, 12, 16, 0.72) 100%);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.gallery-grid__item:hover .gallery-grid__overlay {
	opacity: 1;
}

.gallery-grid__overlay-icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
	color: var(--color-navy);
	transform: scale(0.8);
	transition: transform 0.25s ease;
}

.gallery-grid__item:hover .gallery-grid__overlay-icon {
	transform: scale(1);
}

.gallery-grid__trigger {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
}

/* Gallery lightbox — deliberately a sibling of .gallery-grid, not a
   descendant of .gallery-grid__item (which has overflow:hidden for the
   hover-zoom crop above; this theme has already hit the trap of a
   container's overflow:hidden clipping something meant to sit outside it,
   twice — .photo-frame::before and .pricing-card's "Most Popular" badge —
   so the lightbox is kept structurally clear of that ancestor entirely). */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000; /* comfortably above .site-header (100) and the nav dropdown (90-95) */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-3);
}

.lightbox[hidden] {
	display: none;
}

body.lightbox-open {
	overflow: hidden;
}

.lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 17, 20, 0.9);
}

.lightbox__dialog {
	position: relative;
	z-index: 1;
	max-width: min(90vw, 1100px);
	max-height: 90vh;
}

.lightbox__image {
	display: block;
	max-width: 100%;
	max-height: 90vh;
	border-radius: var(--radius-md);
	object-fit: contain;
}

.lightbox__close {
	/* Fixed to the viewport, not absolute to .lightbox__dialog: the dialog
	   is centered and sized to each photo's own aspect ratio (up to 90vh),
	   so a tall/square image can leave less than 44px of space above the
	   dialog — pushing an absolutely-positioned "top:-44px" button off the
	   top of the screen and out of reach (body.lightbox-open locks page
	   scroll, so it can't even be scrolled into view). .lightbox__nav below
	   already uses this same fixed-to-viewport approach for exactly this
	   reason — this now matches it instead of re-triggering the bug. */
	position: fixed;
	top: 20px;
	right: 20px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--color-white);
	color: var(--color-navy);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
}

.lightbox__nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--color-white);
	color: var(--color-navy);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--shadow-md);
}

.lightbox__nav--prev {
	left: 24px;
}

.lightbox__nav--next {
	right: 24px;
}

@media (max-width: 600px) {
	/* Close still works (top-right button) and arrow keys still navigate —
	   only the fixed on-screen arrow buttons are hidden, there's not enough
	   width for them without covering the image. */
	.lightbox__nav {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lightbox,
	.lightbox__image {
		transition: none !important;
	}
}

/* Forms */
.form-field {
	margin-bottom: var(--space-2);
}

.form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--color-navy);
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	color: var(--color-text);
	font-family: inherit;
	font-size: 1rem;
	min-height: 48px;
}

.form-field textarea {
	min-height: 140px;
	resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
}

.form-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.form-message {
	padding: var(--space-2);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-2);
	font-weight: 600;
}

.form-message--success {
	background: #E5F6E8;
	color: #1B5E20;
}

.form-message--error {
	background: #FDEAEA;
	color: #B3261E;
}

.form-message[hidden] {
	display: none;
}

/* Post cards (Driving Tips) */
.post-card__date {
	font-size: 0.8rem;
	color: var(--color-text-muted);
}

/* Course detail list */
.course-facts {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.9rem;
	color: var(--color-text-muted);
	margin-bottom: var(--space-2);
}

.course-facts li::before {
	content: "\2713";
	color: var(--color-primary);
	font-weight: 700;
	margin-right: 8px;
}
