/* =====================================================================
   Sam Pilates — component & detail layer
   Everything theme.json can't express: hairline grids, the sticky nav +
   mobile overlay, sp-* shortcode styling, the Cal.com booking embed frame,
   the custom contact form, plus a11y (focus, reduced-motion) and responsive collapse.

   Palette tokens come from theme.json as --wp--preset--color--*.
   ===================================================================== */

:root {
	--sp-hairline: rgba(239, 233, 219, 0.15); /* on dark   */
	--sp-hairline-dark: rgba(25, 35, 28, 0.18); /* on light  */
	--sp-header-h: 64px;
}

/* ---- Global niceties ------------------------------------------------ */
html {
	scroll-behavior: smooth;
}

::selection {
	background: var(--wp--preset--color--lime, #cbd98a);
	color: var(--wp--preset--color--ink, #19231c);
}

/* Anchor targets clear the sticky header */
:where([id]) {
	scroll-margin-top: calc(var(--sp-header-h) + 16px);
}

/* Nothing in this design is rounded — belt & braces for plugin output */
.sp-section,
.sp-card,
.sp-price,
.sp-photo,
.sp-statband,
.sp-gallery__item {
	border-radius: 0 !important;
}

/* Uppercase micro-labels */
.sp-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
	margin: 0;
}

.sp-photo__caption {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	margin: 0;
	opacity: 0.85;
}

/* Cover slots: keep captions pinned bottom-left, no rounding, subtle texture */
.sp-photo {
	overflow: hidden;
}
.sp-photo .wp-block-cover__inner-container {
	width: 100%;
}

/* =====================================================================
   BRAND ARROW (.sp-arrow) — replaces the ↗ glyph site-wide.
   Drawn from an inline SVG mask so it inherits the link/button text colour
   (currentColor) and stays crisp at any size — no emoji, no extra request.
   Nudges up-right on hover for a tactile, premium feel.
   Authored in markup as <span class="sp-arrow" aria-hidden="true"></span>.
   ===================================================================== */
:root {
	--sp-arrow-svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%2018%2018%206'/%3E%3Cpath%20d='M9%206H18V15'/%3E%3C/svg%3E");
	--sp-up-arrow: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2019V5'/%3E%3Cpath%20d='M5%2012l7-7%207%207'/%3E%3C/svg%3E");
}

/* =====================================================================
   SCROLL UI — slim gradient progress bar (top edge) + back-to-top button.
   Both injected by nav.js; pure progressive enhancement, hidden until needed.
   ===================================================================== */
.sp-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	z-index: 110;
	pointer-events: none;
}
.sp-progress__bar {
	display: block;
	height: 100%;
	width: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	background: linear-gradient(90deg, var(--wp--preset--color--terracotta, #c97d4e), var(--wp--preset--color--lime, #cbd98a));
	will-change: transform;
}
.sp-totop {
	position: fixed;
	right: clamp(16px, 3vw, 30px);
	bottom: clamp(16px, 3vw, 30px);
	z-index: 95;
	width: 50px;
	height: 50px;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--ink, #19231c);
	color: var(--wp--preset--color--lime, #cbd98a);
	border: 1px solid var(--sp-hairline);
	border-radius: 0;
	cursor: pointer;
	opacity: 0;
	transform: translateY(14px) scale(0.92);
	pointer-events: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease;
}
.sp-totop.is-shown {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.sp-totop:hover,
.sp-totop:focus-visible {
	background: var(--wp--preset--color--lime, #cbd98a);
	color: var(--wp--preset--color--ink, #19231c);
}
.sp-totop__icon {
	width: 17px;
	height: 17px;
	background-color: currentColor;
	-webkit-mask: var(--sp-up-arrow) no-repeat center / contain;
	mask: var(--sp-up-arrow) no-repeat center / contain;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-totop:hover .sp-totop__icon,
.sp-totop:focus-visible .sp-totop__icon {
	transform: translateY(-3px);
}
.sp-arrow {
	display: inline-block;
	width: 0.74em;
	height: 0.74em;
	margin-left: 0.4em;
	vertical-align: -0.05em;
	background-color: currentColor;
	-webkit-mask: var(--sp-arrow-svg) no-repeat center / contain;
	mask: var(--sp-arrow-svg) no-repeat center / contain;
	transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
a:hover .sp-arrow,
a:focus-visible .sp-arrow,
button:hover .sp-arrow,
summary:hover .sp-arrow,
.wp-block-button__link:hover .sp-arrow,
.sp-card:hover .sp-arrow,
.sp-price:hover .sp-arrow {
	transform: translate(0.14em, -0.14em);
}

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.sp-masthead {
	z-index: 100;
	transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
	border-bottom: 1px solid transparent;
}
/* Once scrolled, the sticky bar becomes frosted glass — translucent ink with a
   blur — so it reads as floating above the content (premium sticky cue). */
.sp-masthead.is-scrolled {
	background-color: rgba(25, 35, 28, 0.82) !important;
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border-bottom-color: var(--sp-hairline);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}
.sp-wordmark {
	margin: 0;
}
.sp-wordmark a {
	color: inherit;
	text-decoration: none;
}

/* Space the links. The navigation block sets an inline blockGap, but on this WP
   build it doesn't always emit the layout class that applies it — so the items
   render jammed together. Set the flex gap explicitly as a guarantee. */
.sp-nav .wp-block-navigation__container,
.sp-nav.wp-block-navigation {
	gap: clamp(20px, 2.5vw, 30px);
	align-items: center;
}

/* Nav links: sage-light, lime on hover, no underline */
.sp-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--sage-light, #b9c2a8);
	text-decoration: none;
	transition: color 0.18s ease;
}
.sp-nav .wp-block-navigation-item__content:hover,
.sp-nav .wp-block-navigation-item__content:focus,
.sp-nav .current-menu-item .wp-block-navigation-item__content {
	color: var(--wp--preset--color--lime, #cbd98a);
}

/* Book Now nav item (Agent 2 tags it .sp-nav-cta) → lime pill button */
.sp-nav .sp-nav-cta .wp-block-navigation-item__content {
	background: var(--wp--preset--color--lime, #cbd98a);
	color: var(--wp--preset--color--ink, #19231c) !important;
	font-weight: 600;
	padding: 11px 20px;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease;
}
.sp-nav .sp-nav-cta .wp-block-navigation-item__content:hover,
.sp-nav .sp-nav-cta .wp-block-navigation-item__content:focus {
	background: var(--wp--preset--color--terracotta, #c97d4e);
	color: var(--wp--preset--color--ink, #19231c) !important; /* AA: ink on terracotta 5.0:1 */
}

/* Footer nav (Agent 2 menu, ref 20) — match footer link styling */
.sp-footer__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--sage-light, #b9c2a8);
	text-decoration: none;
	transition: color 0.18s ease;
}
.sp-footer__nav .wp-block-navigation-item__content:hover,
.sp-footer__nav .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--lime, #cbd98a);
}
/* In-paragraph footer links (venue site, Instagram, Contact, Privacy, Cookies)
   inherited the global ink link colour — invisible on the ink footer until hover.
   Match the footer nav: sage-light, lime on hover; the underline stays as the
   link affordance. */
.sp-footer p a {
	color: var(--wp--preset--color--sage-light, #b9c2a8);
}
.sp-footer p a:hover,
.sp-footer p a:focus {
	color: var(--wp--preset--color--lime, #cbd98a);
}

/* Hamburger toggle — hidden on desktop */
.sp-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0 9px;
	background: transparent;
	border: 1px solid var(--sp-hairline);
	cursor: pointer;
}
.sp-nav-toggle__bar {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--wp--preset--color--cream, #efe9db);
	transition: transform 0.25s ease, opacity 0.2s ease;
}

/* =====================================================================
   STAT BAND — 4 hairline-split cells on terracotta
   ===================================================================== */
.sp-statband {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: rgba(25, 35, 28, 0.22); /* hairline colour shows through gap */
}
.sp-statband > .sp-stat {
	background: var(--wp--preset--color--terracotta, #c97d4e);
	margin: 0;
}
.sp-stat__num {
	margin: 0;
}
.sp-stat__label {
	margin: 0;
}

/* =====================================================================
   SESSIONS — editorial index. Full-width rows, each with a large index
   number, title + description and a focus tag. A terracotta wash sweeps
   in from the left on hover/focus-within, the number lifts to lime and a
   marker animates — a tactile, premium "menu" that's deliberately NOT
   another hairline card grid (those are used by blocks/facts/testimonials).
   ===================================================================== */
.sp-sesh {
	border-top: 2px solid var(--wp--preset--color--cream, #efe9db);
}
.sp-sesh__row {
	position: relative;
	display: grid;
	grid-template-columns: clamp(54px, 5vw, 78px) 1fr auto;
	align-items: baseline;
	column-gap: clamp(16px, 3vw, 40px);
	row-gap: 6px;
	padding: clamp(20px, 2.8vw, 30px) clamp(14px, 2vw, 26px);
	border-bottom: 1px solid var(--sp-hairline);
	isolation: isolate;
	transition: background-color 0.4s ease;
}
/* The sweep — a terracotta panel that scales in from the left edge */
.sp-sesh__row::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--terracotta, #c97d4e);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-sesh__row:hover::before,
.sp-sesh__row:focus-within::before {
	transform: scaleX(1);
}
.sp-sesh__num {
	margin: 0;
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	font-size: clamp(1.7rem, 3.2vw, 2.4rem);
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--terracotta, #c97d4e);
	transition: color 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-sesh__body {
	min-width: 0;
}
/* Title + "Start here" pill share a baseline row. The pill lives beside the
   heading (not inside it) so screen readers don't read it as part of the h3. */
.sp-sesh__titlerow {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
}
.sp-sesh__title {
	margin: 0;
	letter-spacing: -0.015em;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-sesh__desc {
	margin: 6px 0 0;
	max-width: 62ch;
	transition: color 0.3s ease;
}
.sp-sesh__tag {
	margin: 0;
	align-self: center;
	justify-self: end;
	white-space: nowrap;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-soft, #3a4034); /* was sage = 2.5:1 on cream; ink-soft = 8.8:1 */
	transition: color 0.3s ease;
}
/* Inline "Start here" pill on the Core & Posture row */
.sp-sesh__pill {
	display: inline-block;
	padding: 3px 10px;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--wp--preset--color--ink, #19231c);
	background: var(--wp--preset--color--lime, #cbd98a);
	transition: background 0.3s ease, color 0.3s ease;
}
/* Hover/focus state — text flips to cream/ink on the terracotta wash */
.sp-sesh__row:hover,
.sp-sesh__row:focus-within {
	background-color: transparent;
}
.sp-sesh__row:hover .sp-sesh__num,
.sp-sesh__row:focus-within .sp-sesh__num {
	color: var(--wp--preset--color--ink, #19231c);
	transform: translateX(2px);
}
.sp-sesh__row:hover .sp-sesh__title,
.sp-sesh__row:focus-within .sp-sesh__title {
	color: var(--wp--preset--color--cream, #efe9db);
	transform: translateX(4px);
}
.sp-sesh__row:hover .sp-sesh__desc,
.sp-sesh__row:focus-within .sp-sesh__desc {
	color: rgba(239, 233, 219, 0.92) !important;
}
.sp-sesh__row:hover .sp-sesh__tag,
.sp-sesh__row:focus-within .sp-sesh__tag {
	color: var(--wp--preset--color--ink, #19231c);
}
.sp-sesh__row:hover .sp-sesh__pill,
.sp-sesh__row:focus-within .sp-sesh__pill {
	background: var(--wp--preset--color--ink, #19231c);
	color: var(--wp--preset--color--lime, #cbd98a);
}
/* The "+ on request" row sits quieter */
.sp-sesh__row--plus .sp-sesh__num {
	color: var(--wp--preset--color--sage, #8a9676);
}
/* Closing CTA row */
.sp-sesh__foot-note {
	margin: 0;
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 600;
	max-width: 30ch;
	color: var(--wp--preset--color--sage-light, #b9c2a8);
}

@media (max-width: 720px) {
	.sp-sesh__row {
		grid-template-columns: clamp(40px, 12vw, 54px) 1fr;
		align-items: start;
	}
	.sp-sesh__tag {
		grid-column: 2 / 3;
		justify-self: start;
		margin-top: 4px;
	}
	.sp-sesh__row:hover .sp-sesh__title,
	.sp-sesh__row:focus-within .sp-sesh__title {
		transform: none;
	}
}

/* =====================================================================
   GALLERY — 2fr / 1fr / 1fr strip
   ===================================================================== */
.sp-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 8px;
}
.sp-gallery__item {
	margin: 0;
}

/* =====================================================================
   PRICING
   ===================================================================== */
.sp-pricing__grid {
	gap: 14px;
}
.sp-price {
	margin: 0;
}
.sp-price--featured {
	outline: 2px solid var(--wp--preset--color--lime, #cbd98a);
	outline-offset: -2px;
}
.sp-price__tag {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 7px;
	font-size: 0.625rem;
	letter-spacing: 0.08em;
	background: rgba(25, 35, 28, 0.12);
	color: var(--wp--preset--color--ink-soft, #3a4034);
	vertical-align: middle;
}
.sp-price__num {
	margin: 0;
}

/* =====================================================================
   FAQ — details / summary accordion, hairline rules
   ===================================================================== */
.sp-faq__item {
	border-top: 1px solid var(--sp-hairline-dark);
	padding: clamp(16px, 2.4vw, 22px) 0;
	margin: 0;
}
.sp-faq__item--first {
	border-top: 2px solid var(--wp--preset--color--ink, #19231c);
}
.sp-faq__item--last {
	border-bottom: 2px solid var(--wp--preset--color--ink, #19231c);
}
.sp-faq__item > summary {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.15;
	letter-spacing: -0.01em;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
}
.sp-faq__item > summary::-webkit-details-marker {
	display: none;
}
.sp-faq__item > summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 400;
	color: var(--wp--preset--color--terracotta-dk, #7a4326);
	transition: transform 0.2s ease;
	flex: 0 0 auto;
}
.sp-faq__item[open] > summary::after {
	content: "–";
}

/* =====================================================================
   sp-* SHORTCODES
   ===================================================================== */

/* ---- Group classes timetable (reads like the sessions grid) -------- */
.sp-timetable {
	display: grid;
	gap: clamp(28px, 4vw, 44px);
}
.sp-timetable__day-title {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: -0.01em;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--wp--preset--color--ink, #19231c);
	display: flex;
	align-items: center;
	gap: 12px;
}
.sp-timetable__day-title::before {
	content: "";
	width: 22px;
	height: 3px;
	background: var(--wp--preset--color--terracotta, #c97d4e);
}
.sp-timetable__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sp-class {
	display: grid;
	grid-template-columns: minmax(120px, 0.6fr) 1.6fr auto;
	align-items: center;
	gap: 8px 24px;
	padding: clamp(16px, 2.2vw, 22px) 0;
	border-top: 1px solid var(--sp-hairline-dark);
}
.sp-timetable__list .sp-class:last-child {
	border-bottom: 1px solid var(--sp-hairline-dark);
}
.sp-class__time {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink, #19231c);
}
.sp-class__title {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
}
.sp-class__level {
	display: inline-block;
	margin-left: 10px;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--olive, #7e8b5e);
}
.sp-class__studio,
.sp-class__desc {
	grid-column: 2 / 3;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft, #3a4034);
}
.sp-class__cta {
	grid-row: 1 / 2;
	grid-column: 3 / 4;
	justify-self: end;
	align-self: center;
	display: inline-block;
	background: var(--wp--preset--color--lime, #cbd98a);
	color: var(--wp--preset--color--ink, #19231c);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 12px 20px;
	border-radius: 0;
	white-space: nowrap;
	transition: background 0.18s ease, color 0.18s ease;
}
.sp-class__cta:hover,
.sp-class__cta:focus {
	background: var(--wp--preset--color--terracotta, #c97d4e);
	color: var(--wp--preset--color--ink, #19231c); /* AA: ink on terracotta 5.0:1 */
}
.sp-timetable__empty {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--ink-soft, #3a4034);
}

/* ---- Testimonials (3-col hairline quotes) ------------------------- */
.sp-testimonials {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 2px solid var(--wp--preset--color--ink, #19231c);
}
.sp-testimonial {
	margin: 0;
	padding: clamp(26px, 3vw, 34px) clamp(22px, 2.4vw, 30px);
	border-right: 1px solid var(--sp-hairline-dark);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.sp-testimonial:first-child {
	padding-left: 0;
}
.sp-testimonial:last-child {
	border-right: 0;
	padding-right: 0;
}
.sp-testimonial__stars {
	color: var(--wp--preset--color--terracotta-dk, #7a4326);
	letter-spacing: 0.18em;
	font-size: 0.9rem;
}
.sp-testimonial__quote {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.35;
	letter-spacing: -0.01em;
	margin: 0;
}
.sp-testimonial__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}
.sp-testimonial__photo {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 0;
}
.sp-testimonial__name {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--olive, #7e8b5e);
}

/* =====================================================================
   CAL.COM BOOKING EMBED — frame the booking flow in the brand.
   Booking is Cal.com (Amelia is dropped, v2). Agent B wraps Cal.com's
   inline embed in <div class="sp-calcom-embed"> (contract: README §3 /
   agent-C-design N1). The embed renders in a CROSS-ORIGIN <iframe>, so its
   internals can't be restyled from here — instead we (a) frame the section
   in the 04-Form palette and reserve height, and (b) Cal's own theming
   (cal-brand = terracotta #C97D4E + cssVarPerTheme) paints the iframe
   on-brand. lime is reserved for this section's frame/heading, not Cal's
   in-iframe Confirm button (white-on-lime fails contrast). Exact Cal ui()
   config + rationale: assets/tokens.json "calcom" + HANDOFF.md.
   ===================================================================== */
.sp-calcom-embed {
	position: relative;
	width: 100%;
	max-width: 1080px; /* Cal month view wants room; centred in the 1100px body */
	margin-inline: auto;
	background: var(--wp--preset--color--cream, #efe9db);
	border: 1px solid var(--wp--preset--color--ink, #19231c); /* sharp hairline frame */
	border-radius: 0;
	padding: clamp(10px, 1.6vw, 18px);
	min-height: 640px; /* reserve space so the page doesn't jump while Cal loads */
}
/* Cal's inline container + iframe fill the frame: full width, sharp, no border */
.sp-calcom-embed > div,
.sp-calcom-embed [data-cal-namespace],
.sp-calcom-embed iframe {
	position: relative;
	z-index: 1;
	width: 100% !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent;
	color-scheme: light;
}
.sp-calcom-embed iframe {
	display: block;
	min-height: 600px;
}
/* Brand-toned loading hint; the iframe (z-index 1) paints over it once ready */
.sp-calcom-embed::before {
	content: "Loading the booking calendar\2026";
	position: absolute;
	inset: clamp(10px, 1.6vw, 18px);
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink-soft, #3a4034);
}
/* If Agent B uses Cal's pop-up/link mode instead of an inline embed, the
   wrapper just holds a button → drop the frame and let .sp-btn show through. */
.sp-calcom-embed--link {
	border: 0;
	background: transparent;
	min-height: 0;
	max-width: none;
	padding: 0;
	text-align: center;
}
.sp-calcom-embed--link::before {
	content: none;
}

/* =====================================================================
   CONTACT FORM (.sp-form) — cream fields, ink hairline borders, lime submit.
   The custom form on /contact posts to the PWA, which drops the message into
   Samantha's inbox. Pure theme CSS — no form plugin involved.
   ===================================================================== */
.sp-form {
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 2vw, 18px);
}
.sp-form__eyebrow {
	color: var(--wp--preset--color--olive, #7a8b5e);
	margin: 0 0 2px;
}
.sp-form__row {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.sp-form__label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	color: var(--wp--preset--color--ink-soft, #3a4034);
}
.sp-form__opt {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	opacity: 0.6;
}
.sp-form__input {
	box-sizing: border-box; /* without this, width:100% + padding + border overflowed the column and collided with the aside — the form looked broken */
	width: 100%;
	background-color: var(--wp--preset--color--cream, #efe9db);
	border: 1px solid var(--wp--preset--color--ink, #19231c);
	border-radius: 0;
	color: var(--wp--preset--color--ink, #19231c);
	font: inherit;
	font-size: 1rem;
	padding: 14px 16px;
	box-shadow: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.sp-form__input::placeholder {
	color: rgba(25, 35, 28, 0.62);
}
.sp-form__input:focus {
	border-color: var(--wp--preset--color--terracotta, #c97d4e);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--terracotta, #c97d4e);
	outline: none;
}
.sp-form__textarea {
	resize: vertical;
	min-height: 130px;
	line-height: 1.6;
}
/* Honeypot — pulled off-screen (not display:none, which bots skip) */
.sp-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.sp-form__submit {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	background-color: var(--wp--preset--color--lime, #cbd98a);
	color: var(--wp--preset--color--ink, #19231c);
	border: none;
	border-radius: 0;
	font: inherit;
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	padding: 15px 30px;
	margin-top: 4px;
	transition: background 0.18s ease, color 0.18s ease;
}
.sp-form__submit:hover:not(:disabled),
.sp-form__submit:focus-visible:not(:disabled) {
	background-color: var(--wp--preset--color--terracotta, #c97d4e);
	color: var(--wp--preset--color--ink, #19231c); /* ink on terracotta = 5.0:1 (cream failed AA at 2.7:1) */
}
.sp-form__submit:disabled {
	opacity: 0.6;
	cursor: default;
}
.sp-form__status {
	margin: 4px 0 0;
	font-size: 0.85rem;
	line-height: 1.5;
}
.sp-form__status:empty {
	display: none;
}
.sp-form__status.is-error {
	color: var(--wp--preset--color--terracotta-dk, #9c4d23);
}
.sp-form__status.is-success {
	color: var(--wp--preset--color--olive, #5f6f45);
	font-weight: 600;
}
.sp-form__status.is-pending {
	color: var(--wp--preset--color--ink-soft, #3a4034);
}

/* Contact page: intro lede + the two-column form / details grid */
.sp-contact__lede {
	max-width: 48ch;
	line-height: 1.6;
	color: var(--wp--preset--color--ink-soft, #3a4034);
}
.sp-contact__aside .wp-block-button__link {
	display: block;
	text-align: center;
}

/* =====================================================================
   ACCESSIBILITY — visible focus, reduced motion
   ===================================================================== */
:where(a, button, summary, input, textarea, select, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--lime, #cbd98a);
	outline-offset: 2px;
}
/* On the lime cells/buttons themselves, switch the ring to ink for contrast */
.sp-card--cta a:focus-visible,
.sp-masthead__cta .wp-block-button__link:focus-visible,
.sp-btn .wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--ink, #19231c);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0ms !important;
		scroll-behavior: auto !important;
	}
}

/* =====================================================================
   RESPONSIVE — collapse grids; swap inline nav for the overlay.
   Breakpoints tested at 375 / 768 / 1280.
   ===================================================================== */

/* Tablet ----------------------------------------------------------- */
@media (max-width: 900px) {
	/* Hide inline nav + CTA, show hamburger */
	.sp-masthead .sp-nav,
	.sp-masthead__cta {
		display: none;
	}
	.sp-nav-toggle {
		display: flex;
	}

	/* Full-screen overlay menu */
	body.sp-nav-open .sp-masthead .sp-nav {
		display: flex;
		position: fixed;
		inset: var(--sp-header-h) 0 0 0;
		z-index: 90;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: clamp(18px, 4vh, 34px) !important;
		padding: clamp(28px, 8vw, 60px);
		background: var(--wp--preset--color--ink, #19231c);
		overflow-y: auto;
	}
	body.sp-nav-open .sp-masthead .sp-nav .wp-block-navigation-item__content {
		font-family: var(--wp--preset--font-family--bricolage);
		font-weight: 700;
		font-size: clamp(2rem, 9vw, 3rem);
		letter-spacing: -0.02em;
		text-transform: uppercase;
		color: var(--wp--preset--color--cream, #efe9db);
	}
	/* In the overlay the Book Now item is the lime accent, not a tiny pill */
	body.sp-nav-open .sp-nav .sp-nav-cta .wp-block-navigation-item__content {
		background: transparent;
		padding: 0;
		color: var(--wp--preset--color--lime, #cbd98a) !important;
	}
	body.sp-nav-open {
		overflow: hidden;
	}
	/* animate hamburger to an X */
	body.sp-nav-open .sp-nav-toggle__bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	body.sp-nav-open .sp-nav-toggle__bar:nth-child(2) {
		opacity: 0;
	}
	body.sp-nav-open .sp-nav-toggle__bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	/* Stat band 4 -> 2 */
	.sp-statband {
		grid-template-columns: repeat(2, 1fr);
	}
	/* Testimonials 3 -> 1 with horizontal rules */
	.sp-testimonials {
		grid-template-columns: 1fr;
	}
	.sp-testimonial {
		border-right: 0;
		border-bottom: 1px solid var(--sp-hairline-dark);
		padding-left: 0;
		padding-right: 0;
	}
	.sp-testimonial:last-child {
		border-bottom: 0;
	}
	/* Gallery 3 -> 2 (wide item spans both) */
	.sp-gallery {
		grid-template-columns: 1fr 1fr;
	}
	.sp-gallery__item--wide {
		grid-column: 1 / -1;
	}

	/* Pricing 4 -> 2 (override columns' native flex row). Keep desktop at the
	   native 4-across; this only kicks in <= 900px. */
	.sp-pricing__grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}
	.sp-pricing__grid > .wp-block-column {
		flex-basis: auto !important;
		margin: 0 !important;
	}
}

/* Phone ------------------------------------------------------------ */
@media (max-width: 600px) {
	/* Pricing 2 -> 1 */
	.sp-pricing__grid {
		grid-template-columns: 1fr;
	}
	/* Sessions 2 -> 1 */
	.sp-grid--2 {
		grid-template-columns: 1fr;
	}
	/* Stat band 2 -> 1 */
	.sp-statband {
		grid-template-columns: 1fr;
	}
	/* Group-class rows stack */
	.sp-class {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.sp-class__cta {
		grid-row: auto;
		grid-column: 1 / -1;
		justify-self: start;
		margin-top: 6px;
	}
	.sp-class__studio,
	.sp-class__desc {
		grid-column: 1 / -1;
	}
	/* Gallery -> single column */
	.sp-gallery {
		grid-template-columns: 1fr;
	}
}

/* =====================================================================
   COURSE BLOCKS — 2-col hairline grid of 4-week programs (cream cards)
   ===================================================================== */
.sp-blocks {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--sp-hairline-dark);
	margin-top: clamp(28px, 4vw, 44px);
}
.sp-blocks > .sp-block {
	background: var(--wp--preset--color--cream, #efe9db);
	margin: 0;
}
.sp-block__weeks {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sp-block__week {
	display: grid;
	grid-template-columns: minmax(46px, auto) 1fr;
	gap: 16px;
	padding: clamp(9px, 1.4vw, 13px) 0;
	border-top: 1px solid var(--sp-hairline-dark);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}
.sp-block__week span {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	color: var(--wp--preset--color--terracotta-dk, #7a4326);
	letter-spacing: -0.01em;
}
.sp-block__link a {
	color: var(--wp--preset--color--ink, #19231c);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sp-block__link a:hover {
	text-decoration-thickness: 2px;
}
@media (max-width: 600px) {
	.sp-blocks {
		grid-template-columns: 1fr;
	}
}

/* =====================================================================
   WHY-REFORMER FACT ROW — 3 hairline-split facts on terracotta
   ===================================================================== */
.sp-factrow {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(25, 35, 28, 0.22);
	margin-top: clamp(28px, 4vw, 40px);
}
.sp-factrow > .sp-fact {
	background: var(--wp--preset--color--terracotta, #c97d4e);
	margin: 0;
	padding: clamp(22px, 3vw, 30px);
}
@media (max-width: 700px) {
	.sp-factrow {
		grid-template-columns: 1fr;
	}
}

/* =====================================================================
   METHOD PAGE — definition list of facts / benefits, hairline ruled
   ===================================================================== */
.sp-method__list {
	list-style: none;
	margin: clamp(20px, 3vw, 30px) 0 0;
	padding: 0;
	border-top: 2px solid currentColor;
}
.sp-method__item {
	margin: 0;
	padding: clamp(16px, 2.4vw, 22px) 0;
	border-bottom: 1px solid var(--sp-hairline-dark);
}
.sp-method__item b {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
}
.sp-section.sp-method-benefits .sp-method__item {
	border-bottom-color: var(--sp-hairline);
}

/* =====================================================================
   COOKIE CONSENT (Complianz) — brand the banner to 04-Form.
   Complianz ships neutral styling (a bright blue Accept button that clashed
   with the palette and is the first thing a visitor sees). Repaint it: ink
   surface, cream text, lime primary action, sharp corners, Bricolage title.
   !important is needed because Complianz inlines its appearance CSS.
   ===================================================================== */
#cmplz-cookiebanner-container .cmplz-cookiebanner,
.cmplz-cookiebanner.cmplz-show {
	background: var(--wp--preset--color--ink, #19231c) !important;
	color: var(--wp--preset--color--cream, #efe9db) !important;
	border: 1px solid var(--sp-hairline) !important;
	border-radius: 0 !important;
	box-shadow: 0 10px 44px rgba(0, 0, 0, 0.4) !important;
	font-family: var(--wp--preset--font-family--space-grotesk), system-ui, sans-serif !important;
}
.cmplz-cookiebanner .cmplz-title {
	font-family: var(--wp--preset--font-family--bricolage), sans-serif !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em !important;
	color: var(--wp--preset--color--cream, #efe9db) !important;
}
.cmplz-cookiebanner .cmplz-text,
.cmplz-cookiebanner .cmplz-message,
.cmplz-cookiebanner p {
	color: var(--wp--preset--color--sage-pale, #cfd6c2) !important;
}
.cmplz-cookiebanner .cmplz-links a,
.cmplz-cookiebanner a {
	color: var(--wp--preset--color--lime, #cbd98a) !important;
	text-underline-offset: 3px;
}

/* Buttons — sharp, uppercase, on-brand */
.cmplz-cookiebanner .cmplz-btn {
	border-radius: 0 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	font-weight: 600 !important;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}
/* Primary (Accept) — lime on ink */
.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
	background: var(--wp--preset--color--lime, #cbd98a) !important;
	color: var(--wp--preset--color--ink, #19231c) !important;
	border: 1px solid var(--wp--preset--color--lime, #cbd98a) !important;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover,
.cmplz-cookiebanner .cmplz-btn.cmplz-accept:focus {
	background: var(--wp--preset--color--terracotta, #c97d4e) !important;
	border-color: var(--wp--preset--color--terracotta, #c97d4e) !important;
	color: var(--wp--preset--color--cream, #efe9db) !important;
}
/* Secondary (Deny / preferences / save) — ghost on ink */
.cmplz-cookiebanner .cmplz-btn.cmplz-deny,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
	background: transparent !important;
	color: var(--wp--preset--color--cream, #efe9db) !important;
	border: 1px solid var(--sp-hairline) !important;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences:hover,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences:hover {
	border-color: var(--wp--preset--color--lime, #cbd98a) !important;
	color: var(--wp--preset--color--lime, #cbd98a) !important;
}
/* Category toggles in the preferences view */
.cmplz-cookiebanner .cmplz-category {
	background: rgba(239, 233, 219, 0.05) !important;
	border-radius: 0 !important;
}
/* Persistent "manage consent" tab after a choice is made */
.cmplz-manage-consent .cmplz-btn,
#cmplz-manage-consent button {
	border-radius: 0 !important;
}

/* =====================================================================
   IMAGE PANELS — make the gradient "photo" slots read as intentional art
   direction, not a missing photo: film grain for tactile depth, an
   architectural reformer-rail motif and a soft vignette. Scoped to
   gradient covers only; real photos keep their image untouched. Drop a
   featured image in later and it shows through, motif and all gone.
   ===================================================================== */
.sp-photo:not(:has(img)) {
	position: relative;
}
/* Film grain — a fractal-noise texture, blended over the gradient so the
   flat fill gains the subtle tooth of a real photographic surface. */
.sp-photo:not(:has(img))::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.16;
	mix-blend-mode: soft-light;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.85'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Rail motif + light: fine vertical grid, a brighter "carriage track" pair
   of hairlines low in the frame, a top-corner highlight, a bottom falloff
   that gives photographic depth (and seats the caption) and an inset
   shadow that frames the panel. */
.sp-photo:not(:has(img))::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(239, 233, 219, 0.2), rgba(239, 233, 219, 0.2)),
		linear-gradient(rgba(239, 233, 219, 0.2), rgba(239, 233, 219, 0.2)),
		repeating-linear-gradient(90deg, rgba(239, 233, 219, 0.05) 0 1px, transparent 1px 46px),
		radial-gradient(130% 90% at 84% 8%, rgba(239, 233, 219, 0.16), transparent 56%),
		linear-gradient(to bottom, transparent 52%, rgba(25, 35, 28, 0.5));
	background-repeat: no-repeat;
	background-size: 100% 1px, 100% 1px, auto, auto, auto;
	background-position: 0 67%, 0 calc(67% + 7px), 0 0, 0 0, 0 0;
	box-shadow: inset 0 0 130px rgba(25, 35, 28, 0.42);
}

/* Refined, intentional caption: a lime tick + the label, legible on any gradient */
.sp-photo__caption {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	opacity: 1;
	color: var(--wp--preset--color--cream, #efe9db); /* captions sit on dark imagery — keep them light regardless of token shifts */
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}
.sp-photo__caption::before {
	content: "";
	width: 18px;
	height: 2px;
	flex: 0 0 auto;
	background: var(--wp--preset--color--lime, #cbd98a);
}

/* =====================================================================
   PRICING — "Enquire" state for to-be-confirmed prices (was a broken €—)
   ===================================================================== */
.sp-price .sp-price__num--enquire {
	font-size: clamp(1.7rem, 3.4vw, 2.3rem);
	color: var(--wp--preset--color--terracotta-dk, #7a4326);
	letter-spacing: -0.01em;
}

/* =====================================================================
   STAT BAND — lift the label legibility (was a touch small/faint)
   ===================================================================== */
.sp-statband .sp-stat__label {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	opacity: 0.92;
}

/* =====================================================================
   FAQ — keep the heading + ask-CTA in view alongside the long accordion
   ===================================================================== */
@media (min-width: 901px) {
	.sp-faq__aside {
		position: sticky;
		top: calc(var(--sp-header-h) + 28px);
		align-self: start;
	}
}
.sp-faq__aside-note {
	max-width: 34ch;
}

/* =====================================================================
   SIGNATURE — gentle reveal-on-scroll. nav.js adds .js-reveal to <html>
   ONLY when motion is allowed, so without JS (or with reduced motion)
   everything is visible from the start. Transform/opacity only → no CLS.
   ===================================================================== */
.js-reveal .sp-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}
.js-reveal .sp-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Staggered reveal — direct children of key lists/grids fade in one after
   another once the container enters view (JS sets --si per child). Fade-only
   (no transform) so grid gaps and the sessions hover-sweep never glitch. */
.js-reveal .sp-stagger > * {
	opacity: 0;
	transition: opacity 0.6s ease;
	transition-delay: calc( var( --si, 0 ) * 65ms );
	will-change: opacity;
}
.js-reveal .sp-stagger.is-in > * {
	opacity: 1;
}

/* =====================================================================
   HERO — on-load choreography. Pure CSS so it applies before first paint
   (render-blocking stylesheet) → no flash of the final layout, and it works
   without JS. The eyebrows, headline, lede and photo rise + fade in sequence
   for a composed, premium entrance. Transform/opacity only → no CLS. Reduced
   motion collapses it instantly via the prefers-reduced-motion block above
   (which now zeroes both delay and duration).
   ===================================================================== */
@keyframes sp-hero-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.sp-hero__eyebrows,
.sp-hero__title,
.sp-hero__lede,
.sp-photo--hero {
	animation: sp-hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sp-hero__title {
	animation-delay: 0.12s;
}
.sp-hero__lede {
	animation-delay: 0.26s;
}
.sp-photo--hero {
	animation-delay: 0.4s;
}

/* =====================================================================
   COMPANION APP — the PWA advertised on the dark "app" section, shown in
   two staggered iPhone mockups (CSS device frame; the screen is a real app
   screenshot). Stamp-card mini-graphic reinforces the block-tracking story.
   ===================================================================== */
.sp-companion {
	overflow: hidden;
}
.sp-companion__grid {
	display: grid;
	grid-template-columns: 1.02fr 0.98fr;
	gap: clamp(30px, 6vw, 76px);
	align-items: center;
}

/* Feature list — hairline-ruled on dark */
.sp-companion__list {
	list-style: none;
	margin: clamp(22px, 3vw, 32px) 0 0;
	padding: 0;
	border-top: 2px solid var(--wp--preset--color--lime, #cbd98a);
}
.sp-companion__item {
	margin: 0;
	padding: clamp(15px, 2.2vw, 20px) 0;
	border-bottom: 1px solid var(--sp-hairline);
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	align-items: baseline;
}
.sp-companion__item b {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--cream, #efe9db);
}
.sp-companion__item span {
	display: block;
	margin-top: 3px;
	color: var(--wp--preset--color--sage-light, #b9c2a8);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
}
.sp-companion__num {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--lime, #cbd98a);
}

/* Stamp-card mini graphic: 5 cells, 3 stamped (lime), 2 open */
.sp-stamp {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: clamp(24px, 3.5vw, 34px);
}
.sp-stamp__dots {
	display: flex;
	gap: 8px;
}
.sp-stamp__dot {
	width: 30px;
	height: 30px;
	border: 1.5px solid var(--wp--preset--color--sage, #8c9a78);
	display: grid;
	place-items: center;
	font-size: 0.8rem;
	color: var(--wp--preset--color--ink, #19231c);
}
.sp-stamp__dot--on {
	background: var(--wp--preset--color--lime, #cbd98a);
	border-color: var(--wp--preset--color--lime, #cbd98a);
}
.sp-stamp__dot--on::before {
	content: "";
	width: 12px;
	height: 2px;
	background: var(--wp--preset--color--ink, #19231c);
}
.sp-stamp__label {
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--sage-light, #b9c2a8);
}

/* Device composition: front phone sits in flow (defines height); back phone
   is absolutely offset behind it, both lightly rotated for a premium stagger. */
.sp-devices {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: clamp(18px, 3vw, 34px) 0;
}
.sp-device {
	margin: 0;
	width: clamp(196px, 24vw, 256px);
	background: #0d130f;
	border-radius: 42px;
	padding: 11px;
	box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px rgba(239, 233, 219, 0.08);
}
.sp-device__screen {
	position: relative;
	border-radius: 31px;
	overflow: hidden;
	background: var(--wp--preset--color--cream, #efe9db);
	aspect-ratio: 393 / 852;
}
.sp-device__screen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
/* dynamic island */
.sp-device__screen::after {
	content: "";
	position: absolute;
	top: 11px;
	left: 50%;
	transform: translateX(-50%);
	width: 33%;
	height: 17px;
	background: #0d130f;
	border-radius: 11px;
	z-index: 2;
}
.sp-device--front {
	position: relative;
	z-index: 2;
	transform: rotate(-3deg);
}
.sp-device--back {
	position: absolute;
	z-index: 1;
	right: 2%;
	top: 0;
	transform: rotate(5deg) scale(0.9);
	transform-origin: top right;
}
@media (max-width: 860px) {
	.sp-companion__grid {
		grid-template-columns: 1fr;
	}
	.sp-devices {
		order: -1;
	}
}
@media (max-width: 460px) {
	.sp-device {
		width: clamp(150px, 44vw, 200px);
	}
	.sp-device--back {
		right: 0;
	}
}

/* =====================================================================
   FIND YOUR CLASS — the one full-lime band on the site. Spends the brand
   accent on the single "matcher" moment (prominence by request). Ink text
   throughout (10.6:1); a real three-step sequence ruled in ink hairlines.
   ===================================================================== */
.sp-find__eyebrow {
	color: var(--wp--preset--color--terracotta-dk, #7a4326);
}
.sp-find__title {
	max-width: 14ch;
}
.sp-find__lede {
	max-width: 46ch;
	color: var(--wp--preset--color--ink-soft, #3a4034);
}
.sp-find__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--wp--preset--color--ink, #19231c);
}
.sp-find__step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(14px, 2vw, 22px);
	align-items: baseline;
	padding: clamp(15px, 2.2vw, 20px) 0;
	border-bottom: 1px solid rgba(25, 35, 28, 0.22);
}
.sp-find__num {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--terracotta-dk, #7a4326);
}
.sp-find__step-body b {
	display: block;
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var(--wp--preset--color--ink, #19231c);
}
.sp-find__step-body span {
	display: block;
	margin-top: 4px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
	color: var(--wp--preset--color--ink-soft, #3a4034);
}

/* =====================================================================
   COLUMN GAPS — WordPress silently drops the columns block's axial (top/left)
   blockGap when the values use clamp(), and this theme's global blockGap is 0,
   so these editorial two-column layouts collapsed to a 0 gap (image touching
   text, heading touching lede). Restore each section's intended gap explicitly.
   Shorthand is row-gap then column-gap — row-gap applies when the columns stack
   on narrow screens, column-gap when they sit side by side. Class-on-class
   specificity (0,2,0) beats WordPress's generated .wp-container-* layout rule.
   ===================================================================== */
.wp-block-columns.sp-hero__lede {
	gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 50px);
}
.wp-block-columns.sp-about__grid {
	gap: clamp(28px, 4vw, 54px) clamp(48px, 7vw, 112px);
}
.wp-block-columns.sp-firstsession__head {
	gap: clamp(20px, 3vw, 30px) clamp(30px, 5vw, 64px);
}
.wp-block-columns.sp-find__grid {
	gap: clamp(30px, 5vw, 56px) clamp(30px, 5vw, 72px);
}
.wp-block-columns.sp-teaser__grid {
	gap: clamp(28px, 4vw, 50px) clamp(28px, 4vw, 54px);
}
.wp-block-columns.sp-faq__grid {
	gap: clamp(24px, 3vw, 40px) clamp(30px, 5vw, 50px);
}

/* =====================================================================
   YOUR FIRST SESSION — dark reassurance section: a head row (heading + lede)
   over a two-column hairline-ruled grid of six steps, lime numbers on ink.
   ===================================================================== */
.sp-firstsession__head {
	margin-bottom: clamp(26px, 4vw, 44px);
}
.sp-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: clamp(28px, 5vw, 64px);
	border-top: 2px solid var(--wp--preset--color--lime, #cbd98a);
}
.sp-step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(12px, 1.6vw, 18px);
	align-items: baseline;
	padding: clamp(16px, 2.2vw, 22px) 0;
	border-bottom: 1px solid var(--sp-hairline);
}
.sp-step__num {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	font-size: clamp(1.15rem, 2vw, 1.55rem);
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--lime, #cbd98a);
}
.sp-step__body b {
	display: block;
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var(--wp--preset--color--cream, #efe9db);
}
.sp-step__body span {
	display: block;
	margin-top: 4px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
	color: var(--wp--preset--color--sage-light, #b9c2a8);
}
@media (max-width: 680px) {
	.sp-steps {
		grid-template-columns: 1fr;
		column-gap: 0;
	}
}

/* =====================================================================
   CREDENTIALS — a hairline definition list under the About bio: trained /
   certified / languages. Adds a trust + trilingual signal and balances the
   tall portrait beside it.
   ===================================================================== */
.sp-creds {
	margin: clamp(22px, 3vw, 30px) 0 clamp(26px, 3.5vw, 34px);
	border-top: 1px solid var(--sp-hairline-dark);
}
.sp-creds__row {
	display: grid;
	grid-template-columns: minmax(104px, 0.38fr) 1fr;
	gap: 8px 22px;
	align-items: baseline;
	padding: clamp(10px, 1.5vw, 14px) 0;
	border-bottom: 1px solid var(--sp-hairline-dark);
}
.sp-creds__row dt {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
	color: var(--wp--preset--color--olive, #5c6a39);
}
.sp-creds__row dd {
	margin: 0;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink, #19231c);
}

/* =====================================================================
   GLOBAL POLISH — tactile buttons. theme.json handles the colour inversion
   on hover; here we add a smooth transition and a subtle lift so every
   button feels physical. Reduced-motion users get the colour change only.
   ===================================================================== */
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(25, 35, 28, 0.22);
}
.wp-block-button__link:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Hover sheen — a soft light sweeps diagonally across every button on hover,
   layered over the colour inversion + lift for a tactile, premium feel. */
.wp-block-button__link {
	position: relative;
	overflow: hidden;
}
.wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 36%, rgba(239, 233, 219, 0.38) 50%, transparent 64%);
	transform: translateX(-130%);
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}
.wp-block-button__link:hover::after,
.wp-block-button__link:focus-visible::after {
	transform: translateX(130%);
}

/* =====================================================================
   ATMOSPHERIC DEPTH — a faint off-centre glow layered over the flat dark
   sections (and a soft sheen on the lime band) so the bands gain dimension.
   Very low opacity, so the editorial flatness still reads. Sits over the
   solid background-color set by the block's has-*-background-color class.
   ===================================================================== */
.sp-hero {
	background-image: radial-gradient(120% 95% at 86% 4%, rgba(201, 125, 78, 0.18), transparent 55%);
}
.sp-sessions {
	background-image: radial-gradient(120% 80% at 10% 0%, rgba(124, 139, 94, 0.16), transparent 55%);
}
.sp-firstsession {
	background-image: radial-gradient(120% 90% at 88% 100%, rgba(201, 125, 78, 0.15), transparent 52%);
}
/* "Your first session" now sits directly above the dark "Sessions" block; a
   hairline at the seam keeps the two ink sections visually distinct. */
.sp-firstsession + .sp-sessions {
	border-top: 1px solid var(--sp-hairline);
}
.sp-companion {
	background-image: radial-gradient(110% 85% at 50% -10%, rgba(203, 217, 138, 0.12), transparent 55%);
}
.sp-cta {
	background-image: radial-gradient(130% 120% at 50% 118%, rgba(201, 125, 78, 0.2), transparent 55%);
}
.sp-pagehead {
	background-image: radial-gradient(120% 100% at 90% 0%, rgba(201, 125, 78, 0.15), transparent 55%);
}
.sp-find {
	background-image: radial-gradient(120% 90% at 85% 8%, rgba(255, 255, 255, 0.18), transparent 55%);
}
