/*
Theme Name: One4one
Text Domain: one4one
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Author: One4one Fitness Center
Description: Block theme for One4one Fitness Center, Sotogrande. Full-bleed editorial layout in ink, bone and stone with Bebas Neue display type and Sora text. Pairs with the one4one-site plugin.
License: GPL-2.0-or-later
*/

:root {
	--ink: #16161a;
	--bone: #f3f2ed;
	--stone: #c6c5c0;
	--linen: #e7e6e1;
	--text: #1c1c1e;
	--graphite: #3a3a3c;
	--muted: #5c5c5e;
	--muted-on-stone: #4a4a4c; /* #5c5c5e on stone is 3.86:1; this is 5.12:1 (WCAG AA) */
	--grey: #9c9ca0;
	--grey-2: #8a8a8e;
	--pewter: #8a8a86;
	--ash: #55555a;
	--charcoal: #2c2c30;
	--mist: #cdcdc9;
	--line: #a9a8a3;
	--rule: #b3b2ad;
	--cell: #cfcec9;
	--gutter: clamp(16px, 4vw, 56px);
	--bebas: "Bebas Neue", Impact, sans-serif;
	--sora: Sora, system-ui, sans-serif;
}

/* ---------- Base ---------- */
body {
	margin: 0;
	background: var(--stone);
	color: var(--text);
	font-family: var(--sora);
	-webkit-font-smoothing: antialiased;
}
.wp-site-blocks { overflow-x: clip; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
img { max-width: 100%; height: auto; }
:where(.o4-main, .o4-header, .o4-footer) :where(h1, h2, h3, h4, p, dl, dd, ol, ul, address) { margin: 0; }
:where(.o4-main) :where(h1, h2, h3, h4) { font-weight: 400; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
:is(.o4-header, .o4-footer, .o4-band--dark, .o4-hero, .o4-page-hero, .o4-callout, .o4-price-card--dark) :focus-visible { outline-color: var(--bone); }

/* Muted text that sits directly on the stone page background (contrast). */
:is(.o4-stat, .o4-note, .o4-faq-group, .o4-section) > .o4-label,
.o4-stat .o4-label,
.o4-section > .o4-small,
:is(.o4-faq-list, .o4-faq-group) > .wp-block-details > summary::after { color: var(--muted-on-stone); }

/* ---------- Type ---------- */
.o4-display, .o4-title, .o4-stat__value, .o4-tier__price, .o4-price-row__price, .o4-feature__name {
	font-family: var(--bebas);
	font-weight: 400;
}
.o4-display { line-height: .86; }
.o4-display--xl { font-size: clamp(64px, 10vw, 150px); line-height: .84; }
.o4-display--lg { font-size: clamp(48px, 6vw, 92px); line-height: .88; }
.o4-display--md { font-size: clamp(40px, 5vw, 72px); line-height: .9; text-wrap: balance; }
.o4-display--sm { font-size: clamp(40px, 5vw, 64px); line-height: .95; }
.o4-title { font-size: 40px; line-height: 1; }
.o4-title--lg { font-size: clamp(32px, 4vw, 52px); }
.o4-title a { color: inherit; }

.o4-eyebrow, .o4-label { text-transform: uppercase; color: var(--muted); }
.o4-eyebrow { font-size: 11px; letter-spacing: .24em; }
.o4-label { font-size: 10px; letter-spacing: .22em; }
.o4-lead { font-size: 16px; line-height: 1.65; color: var(--mist); }
.o4-small { font-size: 14px; line-height: 1.6; color: var(--muted); }
.o4-muted { font-size: 15px; line-height: 1.6; color: var(--mist); }
.o4-strong { font-size: 15px; font-weight: 500; }

.o4-link { font-size: 11px; align-self: flex-start; }
.o4-link a {
	display: inline-block;
	letter-spacing: .16em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--ink);
	padding-bottom: 3px;
}
:is(.o4-band--dark, .o4-price-card--dark, .o4-hero, .o4-page-hero, .o4-callout) .o4-link a { color: var(--bone); border-color: var(--ash); }
:is(.o4-band--dark, .o4-price-card--dark, .o4-hero, .o4-page-hero, .o4-callout) .o4-link a:hover { color: var(--grey); }

/* ---------- Buttons ---------- */
.wp-block-buttons.is-layout-flex { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.wp-block-buttons.is-layout-flex > .wp-block-button { display: flex; margin: 0; }
.wp-block-button[class*="o4-btn"] > .wp-block-button__link {
	display: block;
	align-content: center;
	border: 0;
	border-radius: 0;
	padding: 18px 30px;
	font-family: var(--sora);
	font-size: 12px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .15s, border-color .15s;
}
.o4-btn-light > .wp-block-button__link { background: var(--bone); color: var(--ink); }
.o4-btn-light > .wp-block-button__link:hover { background: var(--stone); color: var(--ink); }
.o4-btn-dark > .wp-block-button__link { background: var(--ink); color: var(--bone); }
.o4-btn-dark > .wp-block-button__link:hover { background: var(--graphite); color: var(--bone); }
.wp-block-button.o4-btn-ghost-dark > .wp-block-button__link { background: transparent; color: var(--bone); border: 1px solid var(--ash); }
.o4-btn-ghost-dark > .wp-block-button__link:hover { color: var(--bone); border-color: var(--bone); }
.wp-block-button.o4-btn-ghost > .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--pewter); }
.o4-btn-ghost > .wp-block-button__link:hover { color: var(--ink); border-color: var(--ink); }
:is(.o4-faq-teaser, .o4-callout, .o4-price-card) .wp-block-button[class*="o4-btn"] > .wp-block-button__link { padding: 17px 28px; }
.o4-cta-band .wp-block-button[class*="o4-btn"] > .wp-block-button__link { padding: 20px 34px; }

/* ---------- Media (images fill their cell like a background) ---------- */
.wp-block-image:is(.o4-hero__media, .o4-card__media, .o4-split__media) {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--charcoal);
}
:where(.wp-block-image):is(.o4-hero__media, .o4-card__media, .o4-split__media) img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 50%;
}

/* ---------- Header ---------- */
.o4-header-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 40; }
.o4-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px clamp(14px, 2vw, 28px);
	padding: 14px var(--gutter);
	background: var(--ink);
	color: var(--bone);
	border-bottom: 1px solid var(--charcoal);
}
.o4-header__logo { display: flex; align-items: center; flex: none; }
.o4-header__logo:hover { opacity: .7; }
.o4-logo { display: block; box-sizing: content-box; height: 45px; width: auto; padding: 6px 0 7px 4px; }
/* logo.webp is cropped tight; the padding reproduces the prototype PNG's built-in margin (58px box). */
.o4-nav {
	display: flex;
	flex: 1 1 320px;
	flex-wrap: wrap;
	justify-content: flex-end;
	min-width: 0;
	gap: clamp(9px, 1.5vw, 22px);
	margin-left: auto;
}
.o4-nav a {
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--grey);
	padding: 8px 0;
	border-bottom: 1px solid transparent;
}
.o4-nav a:hover { color: var(--bone); }
.o4-nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--bone); }
.o4-nav a[aria-current="page"]:hover { opacity: .6; }
.o4-nav a:focus-visible { outline-offset: -2px; }
.o4-header__actions { display: flex; flex: none; align-items: center; gap: 14px; }
.o4-langs { display: flex; align-items: center; gap: 8px; }
.o4-langs a { display: block; line-height: 0; padding: 2px; border: 1px solid var(--ash); opacity: .5; }
.o4-langs a:hover { border-color: var(--bone); }
.o4-langs a[aria-current="true"] { border-color: var(--bone); opacity: 1; }
.o4-langs svg { display: block; }
.o4-header__cta {
	background: var(--bone);
	color: var(--ink);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 12px 18px;
	white-space: nowrap;
}
.o4-header__cta:hover { background: var(--stone); color: var(--ink); }

/* Narrow (below where the one-row nav fits): logo + CTA on row one, scrolling nav + flags on row two. */
@media (max-width: 879px) {
	.o4-header__actions { display: contents; }
	.o4-header__cta { order: 2; margin-left: auto; }
	.o4-nav {
		order: 3;
		flex: 1 1 calc(100% - 100px);
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin-left: 0;
		gap: 18px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--o4-fade-l), #000 calc(100% - var(--o4-fade-r)), transparent);
		mask-image: linear-gradient(90deg, transparent, #000 var(--o4-fade-l), #000 calc(100% - var(--o4-fade-r)), transparent);
		/* Fade whichever edge still has links hidden behind it. */
		animation: o4-nav-fade linear both;
		animation-timeline: scroll(self inline);
	}
	.o4-nav::-webkit-scrollbar { display: none; }
	/* Start the scrolling nav on the current page's link (Chromium; others start at 0). */
	.o4-nav a[aria-current="page"] { scroll-initial-target: nearest; scroll-margin-inline: 16px; }
	.o4-langs { order: 4; }
}
@media (max-width: 359px) {
	.o4-logo { height: 36px; padding: 4px 0 6px 3px; }
	.o4-header__cta { padding: 10px 12px; letter-spacing: .1em; }
}

@property --o4-fade-l { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --o4-fade-r { syntax: "<length>"; inherits: false; initial-value: 28px; }
@keyframes o4-nav-fade {
	0% { --o4-fade-l: 0px; --o4-fade-r: 28px; }
	8% { --o4-fade-l: 28px; }
	92% { --o4-fade-r: 28px; }
	100% { --o4-fade-l: 28px; --o4-fade-r: 0px; }
}

/* ---------- Heroes ---------- */
.o4-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	min-height: 78vh;
	background: var(--ink);
	color: var(--bone);
}
.o4-hero--cube { min-height: 70vh; }
.o4-hero__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
	padding: clamp(32px, 6vw, 88px);
	color: var(--bone);
}
.o4-hero--cube .o4-hero__body { gap: 24px; }
.o4-hero .o4-eyebrow, .o4-page-hero .o4-eyebrow { color: var(--grey); }
.o4-hero .o4-display:not([class*="o4-display--"]) { font-size: clamp(52px, 8vw, 112px); letter-spacing: .01em; text-wrap: balance; }
.o4-hero .o4-lead { max-width: 46ch; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; }
.o4-hero--cube .o4-lead { max-width: 52ch; line-height: 1.7; }
.o4-hero:not(.o4-hero--cube) .wp-block-buttons { margin-top: 4px; }
.o4-hero__media { min-height: 52vh; }
.o4-hero__media img { object-position: 50% 35%; }
.o4-hero--cube .o4-hero__media { min-height: 50vh; }
.o4-hero--cube .o4-hero__media img { object-position: 55% 45%; }

.o4-page-hero {
	background: var(--ink);
	color: var(--bone);
	padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(32px, 5vw, 64px);
}
/* Prototype eyebrow is an inline span on a 16px Sora line: 21px lines, glyphs sit ~2px low. */
.o4-page-hero .o4-eyebrow { position: relative; top: 2px; line-height: 21px; }
.o4-page-hero .o4-display { font-size: clamp(48px, 8vw, 118px); margin: 12px 0 20px; }
.o4-page-hero .o4-display--xl { font-size: clamp(56px, 9vw, 130px); line-height: .86; }
.o4-page-hero .o4-lead { max-width: 56ch; }
.o4-page-hero:has(+ .o4-narrow) .o4-lead { max-width: 52ch; }
.o4-page-hero:has(+ .o4-price-cols) .o4-lead { max-width: 54ch; }
.o4-page-hero .wp-block-buttons { margin-top: 28px; }

/* ---------- Home ---------- */
.o4-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 1px;
}
.o4-stat { background: var(--stone); box-shadow: 0 0 0 1px var(--line); padding: 26px var(--gutter); }
.o4-stat .o4-label { margin-bottom: 8px; }
.o4-stat__value { font-size: 30px; line-height: 1; }
.o4-stat__value a { border-bottom: 1px solid var(--pewter); }

.o4-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: clamp(24px, 3vw, 40px);
	padding: clamp(48px, 8vw, 110px) var(--gutter);
}
.o4-card { display: flex; flex-direction: column; background: var(--bone); }
.o4-card__media { height: 220px; flex: none; }
.o4-pos-top img { object-position: 50% 25%; }
.o4-card__body { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: 28px; }
.o4-card__body > p:not([class*="o4-"]) { flex: 1; font-size: 15px; line-height: 1.65; color: var(--graphite); }

.o4-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	align-items: stretch;
}
.o4-split--bone { background: var(--bone); border-top: 1px solid var(--line); }
.o4-split__media { min-height: 380px; }
.o4-split__media img { object-position: 50% 30%; }
.o4-split--bone .o4-split__media { min-height: 400px; }
.o4-split--bone .o4-split__media img { object-position: 60% 40%; }
.o4-split__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	padding: clamp(36px, 6vw, 88px);
}
.o4-split__body > p:not([class*="o4-"]) { max-width: 44ch; font-size: 16px; line-height: 1.65; color: var(--graphite); }
.o4-split--bone .o4-split__body > p:not([class*="o4-"]) { max-width: 48ch; line-height: 1.7; }

.o4-band--dark {
	background: var(--ink);
	color: var(--bone);
	padding: clamp(48px, 8vw, 110px) var(--gutter);
}
.o4-band__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 48px;
}
.o4-band__head .o4-display--md { font-size: clamp(44px, 6vw, 84px); text-wrap: initial; }
.o4-band__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.o4-band__aside .o4-muted { max-width: 36ch; color: var(--grey); }
.o4-tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
	gap: 1px;
}
.o4-tier {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 32px 26px;
	background: var(--ink);
	box-shadow: 0 0 0 1px var(--charcoal);
}
.o4-tier .o4-label { color: var(--grey); }
.o4-tier__price { font-size: 66px; line-height: 1; }
.o4-tier > p:not([class*="o4-"]) { font-size: 14px; line-height: 1.6; color: var(--mist); }
.o4-tier--featured { background: var(--bone); color: var(--ink); }
.o4-tier--featured .o4-label { color: var(--muted); }
.o4-tier--featured > p:not([class*="o4-"]) { color: var(--graphite); }

.o4-faq-teaser {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	align-items: start;
	gap: clamp(28px, 5vw, 72px);
	padding: clamp(44px, 7vw, 96px) var(--gutter);
	background: var(--stone);
	border-top: 1px solid var(--line);
}
.o4-faq-teaser__intro { display: flex; flex-direction: column; gap: 18px; }
.o4-faq-teaser__intro .o4-display--md { line-height: .88; text-wrap: initial; }
.o4-faq-teaser__intro > p:not([class*="o4-"]) { max-width: 32ch; font-size: 16px; line-height: 1.65; color: var(--graphite); }
.o4-faq-list { display: flex; flex-direction: column; min-width: 0; }

/* ---------- FAQ accordion ---------- */
.wp-block-details { border-top: 1px solid var(--rule); margin: 0; }
.wp-block-details > summary {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 22px 4px;
	list-style: none;
	cursor: pointer;
	font-size: clamp(16px, 1.5vw, 19px);
	font-weight: 500;
	line-height: 1.45;
	color: var(--text);
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::marker { content: ""; }
.wp-block-details > summary:hover { color: var(--muted); }
.wp-block-details > summary:focus-visible { outline-offset: -2px; }
.wp-block-details > summary::after {
	content: "+";
	flex: none;
	margin-left: auto;
	font-family: var(--bebas);
	font-size: 26px;
	font-weight: 400;
	line-height: .9;
	color: var(--muted);
	transition: transform 220ms ease;
}
.wp-block-details[open] > summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) {
	box-sizing: content-box;
	max-width: 62ch;
	margin: 0;
	padding: 0 46px 24px 4px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--graphite);
}
.wp-block-details[open] > :not(summary) { animation: o4-open 240ms ease both; }
@keyframes o4-open { from { opacity: 0; transform: translateY(-5px); } }

/* ---------- Generic sections ---------- */
.o4-section { padding: clamp(36px, 6vw, 80px) var(--gutter); }
.o4-section > .o4-title--lg { margin: 0 0 6px; }
.o4-section > .o4-small { margin: 0 0 28px; font-size: 13px; line-height: normal; }
.o4-section:has(> .o4-features) { padding: clamp(40px, 7vw, 96px) var(--gutter); }
.o4-section:has(> .o4-features) > .o4-title--lg { font-size: clamp(34px, 4.5vw, 58px); margin: 0 0 32px; }
.o4-post .wp-block-post-content > * + * { margin-top: 1em; }
.o4-post .wp-block-post-content { margin-top: 24px; font-size: 16px; line-height: 1.7; color: var(--graphite); max-width: 70ch; }

.o4-narrow {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-bottom: clamp(48px, 8vw, 100px);
}
.o4-narrow > * { width: 100%; max-width: 900px; margin-inline: auto; }
.o4-faq-group { display: flex; flex-direction: column; min-width: 0; }
.o4-faq-group > .o4-label { padding-bottom: 14px; }
.o4-narrow > .o4-callout { box-sizing: border-box; max-width: 900px; margin-top: calc(clamp(36px, 5vw, 60px) - 40px); }
.o4-callout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	padding: clamp(26px, 4vw, 44px);
	background: var(--ink);
	color: var(--bone);
}
.o4-callout__text { display: flex; flex-direction: column; gap: 8px; }
.o4-callout .o4-title { font-size: clamp(28px, 3.2vw, 44px); }

/* ---------- Classes ---------- */
.o4-timetable { overflow-x: auto; background: var(--bone); }
.o4-timetable:focus-visible { outline-offset: 2px; }
.o4-timetable table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 13px;
	text-align: left;
}
.o4-timetable :is(th, td) {
	padding: 16px 12px;
	border: 1px solid var(--cell);
	background: var(--bone);
	font-weight: 400;
	vertical-align: top;
	box-sizing: border-box;
}
.o4-timetable tr > :first-child { border-left: 0; width: 92px; }
.o4-timetable tr > :last-child { border-right: 0; }
.o4-timetable thead th { border-top: 0; padding: 14px 12px; background: var(--ink); color: var(--bone); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.o4-timetable tbody tr:last-child > * { border-bottom: 0; }
.o4-timetable tbody th { background: var(--linen); font-family: var(--bebas); font-size: 22px; line-height: normal; }
.o4-timetable__book { margin-top: 20px; }

.o4-class-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 1px;
	padding: 0 var(--gutter) clamp(48px, 8vw, 110px);
}
.o4-class { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: var(--bone); box-shadow: 0 0 0 1px var(--line); }
.o4-class .o4-title { font-size: 34px; }
.o4-class > p:not([class*="o4-"]) { font-size: 15px; line-height: 1.65; color: var(--graphite); }

/* ---------- Prices ---------- */
.o4-price-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	align-items: start;
	gap: clamp(20px, 2.5vw, 32px);
	padding: clamp(36px, 6vw, 88px) var(--gutter);
}
.o4-price-card {
	display: flex;
	flex-direction: column;
	padding: clamp(26px, 3vw, 40px);
	background: var(--bone);
	box-shadow: 0 0 0 1px var(--line);
}
.o4-price-card .o4-title--lg { font-size: clamp(34px, 3.6vw, 50px); line-height: .95; margin: 10px 0 8px; }
.o4-price-card > .o4-small { margin: 0 0 22px; color: var(--graphite); }
.o4-price-card > .o4-price-row + .o4-small { margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.o4-price-card > .wp-block-buttons { margin-top: 26px; }
.o4-price-card > .o4-small + .wp-block-buttons { margin-top: 20px; }
.o4-price-card > .o4-numbered + .wp-block-buttons { margin-top: auto; }
.o4-price-card--dark { background: var(--ink); color: var(--bone); box-shadow: 0 0 0 1px var(--ink); }
.o4-price-card--dark .o4-label { color: var(--grey); }
.o4-price-card--dark > .o4-muted { margin: 0 0 24px; line-height: 1.65; }
.o4-price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0;
	border-top: 1px solid var(--rule);
}
.o4-price-row__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.o4-price-row__name .o4-small { font-size: 13px; line-height: 1.5; }
.o4-price-row__price { flex: none; font-size: 40px; line-height: .9; }
.o4-price-row .o4-link { flex: none; align-self: auto; }
.o4-price-row .o4-link a { letter-spacing: .14em; border-color: var(--pewter); }

.o4-numbered {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
	counter-reset: o4;
}
.o4-numbered > li {
	display: flex;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--rule);
	font-size: 14px;
	line-height: 1.5;
	counter-increment: o4;
}
.o4-numbered > li::before { content: counter(o4, decimal-leading-zero); flex: none; font-size: 13px; line-height: normal; color: var(--muted); }
:is(.o4-band--dark, .o4-price-card--dark, .o4-callout) .o4-numbered > li { border-top-color: var(--charcoal); }
:is(.o4-band--dark, .o4-price-card--dark, .o4-callout) .o4-numbered > li::before { color: var(--grey-2); }

.o4-notes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: clamp(24px, 3vw, 48px);
	padding: clamp(32px, 5vw, 64px) var(--gutter);
	background: var(--stone);
	border-top: 1px solid var(--line);
}
.o4-note { display: flex; flex-direction: column; gap: 8px; }
.o4-note > p:not([class*="o4-"]) { font-size: 15px; line-height: 1.6; color: var(--graphite); }

/* ---------- The Cube ---------- */
.o4-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
	gap: 1px;
}
.o4-feature { display: flex; flex-direction: column; gap: 10px; padding: 30px 26px; background: var(--bone); box-shadow: 0 0 0 1px var(--line); }
.o4-feature__name { font-size: 30px; line-height: 1; }
:is(.o4-feature, .o4-inset) .o4-small { color: var(--graphite); }

.o4-band--dark.o4-two-col, .o4-band--dark.o4-cta-band { padding: clamp(40px, 7vw, 96px) var(--gutter); }
.o4-two-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: clamp(28px, 4vw, 56px);
}
.o4-col { display: flex; flex-direction: column; gap: 16px; }
.o4-col > .o4-label { color: var(--grey-2); }
.o4-col > .o4-muted { max-width: 42ch; line-height: 1.7; }
.o4-inset { display: flex; flex-direction: column; gap: 8px; max-width: 468px; padding: 24px; background: var(--bone); color: var(--ink); }
.o4-inset .o4-feature__name { font-size: 32px; }

/* ---------- Personal training ---------- */
.o4-feature.o4-step { gap: 12px; padding: 32px 28px; }
.o4-step > .o4-label { margin-bottom: 4px; }
.o4-col > .o4-numbered { margin: 10px 0 0; max-width: 46ch; }
.o4-col > .o4-numbered > li::before { font-variant-numeric: tabular-nums; }

.o4-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.o4-cta-band .o4-display--md { font-size: clamp(36px, 5vw, 72px); line-height: .92; max-width: 22ch; text-wrap: initial; }
.o4-cta-band--stone {
	padding: clamp(40px, 7vw, 96px) var(--gutter);
	background: var(--stone);
	color: var(--ink);
	border-top: 1px solid var(--line);
}
.o4-cta-band__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.o4-cta-band__text > p:not([class*="o4-"]) { max-width: 48ch; font-size: 16px; line-height: 1.65; color: var(--graphite); }

/* ---------- Footer ---------- */
.o4-footer {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: clamp(28px, 4vw, 56px);
	padding: clamp(40px, 6vw, 80px) var(--gutter) 28px;
	background: var(--ink);
	color: var(--mist);
}
.o4-footer__col { display: flex; flex-direction: column; gap: 12px; }
.o4-footer__col:first-child { gap: 16px; }
.o4-footer__col:nth-child(3) { gap: 10px; }
.o4-footer__col:nth-child(3) > .o4-label { margin-bottom: 2px; }
.o4-footer .o4-label { color: var(--grey-2); }
.o4-logo--footer { height: 43.5px; padding: 5px 0 7.5px 4px; align-self: flex-start; }
.o4-footer__col > p:not([class*="o4-"]) { max-width: 32ch; font-size: 14px; line-height: 1.6; }
.o4-footer__links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.o4-footer__links a { border-bottom: 1px solid var(--ash); }
.o4-footer a { color: var(--bone); }
.o4-footer a:hover { color: var(--grey); }
.o4-footer address { display: flex; flex-direction: column; gap: 12px; font-style: normal; font-size: 14px; }
.o4-footer address a:last-child { max-width: 28ch; line-height: 1.5; }
.o4-footer__note { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--grey-2); }
.o4-hours { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.o4-hours > div { display: flex; justify-content: space-between; gap: 16px; max-width: 300px; }
.o4-hours dd { color: var(--bone); }
.o4-footer__base {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid var(--charcoal);
	font-size: 11px;
	color: var(--grey-2);
}

@media (prefers-reduced-motion: reduce) {
	*, ::before, ::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.o4-nav { animation: o4-nav-fade linear both !important; animation-timeline: scroll(self inline); }
}
