/*
Theme Name: CrossFit on the Ranch
Theme URI: https://example.com/
Author: Jon Shafer
Description: One-page block theme for CrossFit on the Ranch, Home of FarmFit (Logan Township, NJ). Includes hero, classes, schedule, pricing, coaches, FAQ, visit sections and a built-in free-class booking form.
Version: 1.9.29
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ffr
*/

/* ---------- Base ---------- */
:root {
	--ffr-black: var(--wp--preset--color--black);
	--ffr-charcoal: var(--wp--preset--color--charcoal);
	--ffr-line: var(--wp--preset--color--line);
	--ffr-cream: var(--wp--preset--color--cream);
	--ffr-gold: var(--wp--preset--color--gold);
	--ffr-muted: var(--wp--preset--color--muted);
	--ffr-muted-dark: var(--wp--preset--color--muted-dark);
	--ffr-display: var(--wp--preset--font-family--display);
	--ffr-condensed: var(--wp--preset--font-family--condensed);
	--ffr-header-h: 84px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
[id] { scroll-margin-top: var(--ffr-header-h); }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.ffr-main > * { margin-block-start: 0 !important; }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.ffr-header-wrap { position: sticky; top: 0; z-index: 100; }
.admin-bar .ffr-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .ffr-header-wrap { top: 46px; } }

.ffr-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--ffr-header-h);
	padding: 0.5rem var(--wp--style--root--padding-right, 1.25rem) 0.5rem var(--wp--style--root--padding-left, 1.25rem);
	background: var(--ffr-black);
	border-bottom: 1px solid var(--ffr-line);
}
.ffr-header > * { margin: 0 !important; }
.ffr-header__logo { flex: 0 0 auto; margin-right: auto !important; }
.ffr-header__logo img { width: 64px !important; height: auto; display: block; }
.ffr-header .ffr-header__logo { margin: 0 auto 0 0 !important; }
.ffr-footer__top figure { margin: 0 !important; }
.ffr-header__cta .wp-block-button__link {
	padding: 0.6rem 1rem;
	font-size: 0.95rem;
}

/* Hamburger */
.ffr-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: transparent;
	border: 0;
	cursor: pointer;
	position: relative;
	z-index: 120;
}
.ffr-toggle span {
	display: block;
	height: 3px;
	background: var(--ffr-cream);
	transition: transform .25s ease, opacity .2s ease;
}
.ffr-menu-open .ffr-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.ffr-menu-open .ffr-toggle span:nth-child(2) { opacity: 0; }
.ffr-menu-open .ffr-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile overlay menu */
.ffr-menu {
	position: fixed;
	inset: var(--ffr-header-h) 0 0 0;
	z-index: 110;
	display: flex;
	flex-direction: column;
	padding: 2.5rem 1.25rem 2rem;
	background-color: var(--ffr-black);
	background-image: url("assets/images/flag.svg");
	background-repeat: no-repeat;
	background-position: right -40px bottom -60px;
	background-size: min(460px, 70%) auto;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.ffr-menu > * { margin: 0 !important; }
.ffr-menu-open .ffr-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .25s ease, transform .25s ease;
}
.ffr-menu-open { overflow: hidden; }
.admin-bar .ffr-menu { top: calc(var(--ffr-header-h) + 46px); }

.ffr-menu__link {
	border-bottom: 1px solid var(--ffr-line);
	font-family: var(--ffr-display);
	font-size: clamp(2.75rem, 12vw, 4.5rem);
	line-height: 1;
	text-transform: uppercase;
}
.ffr-menu__link a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.1rem 0;
	color: var(--ffr-cream);
	text-decoration: none;
}
.ffr-menu__link a::after {
	content: "";
	width: 14px;
	height: 14px;
	border-right: 3px solid var(--ffr-gold);
	border-top: 3px solid var(--ffr-gold);
	transform: rotate(45deg);
	margin-right: 10px;
	flex: 0 0 auto;
}
.ffr-menu__link a:hover, .ffr-menu__link a:focus-visible { color: var(--ffr-gold); }
.ffr-menu__cta { margin-top: auto !important; padding-top: 3rem; }
.ffr-menu__cta .wp-block-button { width: 100%; }
.ffr-menu__cta .wp-block-button__link { width: 100%; font-size: 1.35rem; padding: 1.4rem 1rem; }
.ffr-menu__meta {
	margin-top: auto !important;
	padding-top: 3rem;
	color: var(--ffr-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}
.ffr-menu__meta a { color: var(--ffr-cream); }

/* Desktop header */
@media (min-width: 1024px) {
	.ffr-toggle { display: none; }
	.ffr-menu {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 2rem;
		padding: 0;
		background: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		overflow: visible;
	}
	.ffr-menu__link {
		border: 0;
		font-family: var(--ffr-condensed);
		font-weight: 700;
		font-size: 1.05rem;
		letter-spacing: 0.1em;
	}
	.ffr-menu__link a { padding: 0.5rem 0; }
	.ffr-menu__link a::after { display: none; }
	.ffr-menu__cta, .ffr-menu__meta { display: none; }
	.ffr-header__logo img { width: 76px !important; }
}

/* ---------- Sections ---------- */
.ffr-section {
	padding-top: clamp(4rem, 9vw, 7rem);
	padding-bottom: clamp(4rem, 9vw, 7rem);
}
.ffr-dark { background: var(--ffr-black); color: var(--ffr-cream); }
.ffr-light { background: var(--ffr-cream); color: var(--ffr-black); }
.ffr-light .ffr-lede, .ffr-light .ffr-note { color: var(--ffr-muted-dark); }

.ffr-eyebrow {
	font-family: var(--ffr-condensed);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--ffr-gold);
	margin-bottom: 0.25rem !important;
}
.ffr-light .ffr-eyebrow { color: #a65721; }
.ffr-section h2 { margin-top: 0.25rem; max-width: none; }
/* Keep narrow blocks left-aligned with the content column (constrained layout would center them). */
.ffr-section > h2,
.ffr-section > .ffr-lede,
.ffr-section > .ffr-note,
.ffr-section > .ffr-faq__list,
.ffr-section > .ffr-schedule__note,
.ffr-section > .ffr-ig__cta,
.ffr-footer > .ffr-footer__legal {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1180px)) / 2)) !important;
	margin-right: auto !important;
}
.ffr-lede { color: var(--ffr-muted); max-width: 38rem; font-size: 1.125rem; }
.ffr-note { color: var(--ffr-muted); font-size: 0.95rem; }

/* Underlined text links */
.ffr-textlink a { font-weight: 600; text-underline-offset: 3px; }

/* Grid containers: cancel WordPress flow-layout top margins so items line up */
.ffr-hero__photos > *, .ffr-why__grid > *, .ffr-cards > *, .ffr-schedule__grid > *,
.ffr-pricing__grid > *, .ffr-coaches__grid > *, .ffr-visit__grid > *,
.wp-block-group.ffr-schedule__grid > * + *, .wp-block-group.ffr-pricing__grid > * + *,
.wp-block-group.ffr-coaches__grid > * + *, .wp-block-group.ffr-cards > * + * { margin: 0 !important; margin-block-start: 0 !important; }

/* ---------- Hero ---------- */
.ffr-hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.ffr-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.ffr-hero__grid > * { margin: 0 !important; }
.ffr-hero h1 { margin: 0.5rem 0 0.5rem; max-width: none; }
.ffr-hero .ffr-hero__sub {
	color: var(--ffr-gold);
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	margin: 0 0 1.5rem;
	max-width: none;
}
.ffr-hero__copy .ffr-lede { margin-bottom: 2rem; }
.ffr-hero .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 1rem; }
.ffr-hero .wp-block-button { display: flex; }
.ffr-hero .wp-block-button__link { display: flex; align-items: center; justify-content: center; width: 100%; }
.ffr-hero .wp-block-button__link { font-size: 1.15rem !important; }
.ffr-hero__art {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 460px;
	background: url("assets/images/flag.svg") center / contain no-repeat;
}
.ffr-hero__logo { margin: 0; }
.ffr-hero__logo img { width: min(300px, 70vw); height: auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.ffr-hero__photos { display: grid; gap: 1rem; margin-top: 3rem !important; }
.ffr-hero__photos figure { margin: 0; }
.ffr-hero__photos figure:nth-child(2) img { object-position: center top; }
.ffr-hero__photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 40%; filter: grayscale(1); display: block; }
@media (min-width: 900px) {
	.ffr-hero__art { min-height: 560px; }
	.ffr-hero__grid { grid-template-columns: 1.1fr 0.9fr; }
	.ffr-hero .wp-block-buttons { flex-direction: row; align-items: stretch; }
	.ffr-hero .wp-block-button__link { width: auto; }
	.ffr-hero__photos { grid-template-columns: 1fr 1fr; }
}

/* Outline button style */
.wp-block-button.is-style-outline > .wp-block-button__link,
.ffr-btn-outline .wp-block-button__link {
	background: transparent;
	color: currentColor;
	border: 2px solid currentColor;
}
/* Same size for filled and outline buttons (core gives outline buttons different padding) */
.wp-block-button .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link {
	padding: 1rem 1.75rem !important;
	border-width: 2px !important;
	border-style: solid !important;
	line-height: 1.1 !important;
	font-size: 1.125rem;
	box-sizing: border-box;
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link { border-color: var(--ffr-cream); }
.wp-block-button__link { transition: background-color .2s, color .2s, border-color .2s; }
.wp-block-button__link:hover { background: var(--ffr-gold); border-color: var(--ffr-gold); color: var(--ffr-black); }

/* ---------- Why train ---------- */
.ffr-why__grid { display: grid; gap: 2.5rem; margin-top: 2rem !important; }
.ffr-why h3 { color: var(--ffr-gold); max-width: none; }
.ffr-why p { color: var(--ffr-muted); }
.ffr-why .ffr-textlink a { color: var(--ffr-cream); }
@media (min-width: 900px) { .ffr-why__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- Cards (classes) ---------- */
.ffr-cards { display: grid; gap: 1.25rem; margin-top: 2.5rem !important; }
.ffr-card {
	background: var(--wp--preset--color--white);
	border: 2px solid var(--ffr-black);
	box-shadow: 0 0 0 4px var(--ffr-cream), 0 0 0 5px #b9b3a8;
	padding: 2.25rem 1.75rem;
	text-align: center;
}
.ffr-card > * { margin-left: auto; margin-right: auto; }
.ffr-card .ffr-icon img { width: 52px; height: 52px; }
.ffr-card h3 { margin: 1rem 0 0.75rem; font-size: 1.9rem; }
.ffr-card p { color: var(--ffr-muted-dark); font-size: 1rem; max-width: 30ch; }
@media (min-width: 700px) { .ffr-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ffr-cards { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Programming ---------- */
.ffr-prog__grid { display: grid; gap: 3rem; align-items: start; }
.ffr-prog__grid > *, .ffr-prog__intro > *, .ffr-day-card > *, .ffr-step > * { margin: 0 !important; }
.ffr-prog__intro h2 { margin: 0.25rem 0 1.25rem !important; max-width: none; }
.ffr-prog__intro .ffr-lede { margin-bottom: 1.5rem !important; }
.ffr-prog .ffr-lede a, .ffr-prog .ffr-textlink a { color: var(--ffr-cream); }
.ffr-day-card {
	border: 2px solid var(--ffr-gold);
	box-shadow: inset 0 0 0 4px var(--ffr-charcoal), inset 0 0 0 5px #6e5e47;
	padding: 2rem 1.75rem;
	background: var(--ffr-black);
}
.ffr-day-card h3 { font-size: 2.1rem; margin-bottom: 0.5rem !important; }
.ffr-step {
	display: grid;
	grid-template-columns: 6.5rem 1fr;
	column-gap: 1rem;
	padding: 1rem 0;
	border-top: 1px solid var(--ffr-line);
}
.ffr-step__time {
	grid-row: span 2;
	font-family: var(--ffr-condensed);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ffr-gold);
	padding-top: 0.15rem;
}
.ffr-step h4 {
	font-family: var(--ffr-condensed);
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
	margin-bottom: 0.2rem !important;
}
.ffr-step p:not(.ffr-step__time) { color: var(--ffr-muted); font-size: 0.98rem; }
.ffr-day-card .ffr-note { border-top: 1px solid var(--ffr-line); padding-top: 1rem; font-size: 0.85rem; }
@media (min-width: 950px) { .ffr-prog__grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }

/* ---------- Schedule ---------- */
.ffr-schedule__grid { display: grid; gap: 1.25rem; margin-top: 2.5rem !important; align-items: start; }
.ffr-day {
	border: 2px solid #6d6862;
	box-shadow: inset 0 0 0 4px var(--ffr-black), inset 0 0 0 5px #3a3733;
	padding: 2rem 1.75rem;
}
.ffr-day h3 { font-size: 2.1rem; margin: 0 0 1rem; }
.ffr-day > * { margin-block-start: 0 !important; }
.ffr-row {
	display: grid;
	grid-template-columns: 6.5rem 1fr;
	column-gap: 1rem;
	row-gap: 0.4rem;
	align-items: center;
	padding: 0.95rem 0;
	border-top: 1px solid var(--ffr-line);
	color: var(--ffr-muted);
	font-size: 1rem;
	margin: 0 !important;
}
.ffr-row strong { color: var(--ffr-cream); font-weight: 700; }
.ffr-row em {
	grid-column: 2;
	justify-self: start;
	font-style: normal;
	background: var(--ffr-gold);
	color: var(--ffr-black);
	font-family: var(--ffr-condensed);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.15rem 0.5rem;
}
.ffr-schedule__note {
	margin-top: 2.5rem !important;
	padding-top: 1.75rem;
	border-top: 3px solid #7f6c51;
	color: var(--ffr-muted);
	max-width: var(--wp--style--global--content-size, 1180px) !important;
	width: 100%;
	box-sizing: border-box;
}
.ffr-schedule__note strong { color: var(--ffr-cream); }
@media (min-width: 900px) { .ffr-schedule__grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ---------- Pricing ---------- */
.ffr-pricing__grid { display: grid; gap: 1.25rem; margin-top: 2.5rem !important; }
.ffr-price {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--ffr-black);
	box-shadow: 0 0 0 4px var(--ffr-cream), 0 0 0 5px #b9b3a8;
	padding: 2rem 1.75rem;
}
.ffr-price > * { margin-block-start: 0 !important; }
.ffr-price__name {
	font-family: var(--ffr-condensed);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0.75rem !important;
}
.ffr-price__amount {
	font-family: var(--ffr-display);
	font-size: 4rem;
	line-height: 1;
	margin-bottom: 1rem !important;
}
.ffr-price__amount sub, .ffr-price__amount small {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
	vertical-align: baseline;
	color: var(--ffr-muted-dark);
	margin-left: 0.2rem;
}
.ffr-price__desc { color: var(--ffr-muted-dark); font-size: 1rem; margin-bottom: 1.5rem !important; }
.ffr-price .wp-block-buttons { margin-top: auto !important; }
.ffr-price .wp-block-button { width: 100%; }
.ffr-price .wp-block-button__link {
	width: 100%;
	background: transparent;
	color: var(--ffr-black);
	border: 2px solid var(--ffr-black);
	box-shadow: inset 0 0 0 3px var(--wp--preset--color--white), inset 0 0 0 4px #b9b3a8;
}
.ffr-price--featured {
	background: var(--ffr-charcoal);
	color: var(--ffr-cream);
	border-color: var(--ffr-charcoal);
	position: relative;
}
.ffr-price--featured .ffr-price__amount small,
.ffr-price--featured .ffr-price__desc { color: var(--ffr-muted); }
.ffr-price--featured .wp-block-button__link {
	background: var(--ffr-cream);
	border-color: var(--ffr-cream);
	box-shadow: none;
}
.ffr-badge {
	position: absolute;
	top: 1.75rem;
	right: 1.5rem;
	background: var(--ffr-gold);
	color: var(--ffr-black);
	font-family: var(--ffr-condensed);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.35rem 0.6rem;
	line-height: 1.1;
}
.ffr-price--featured .ffr-price__name { max-width: calc(100% - 7rem); }
@media (min-width: 700px) { .ffr-pricing__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ffr-pricing__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Coaches ---------- */
.ffr-coaches__grid { display: grid; gap: 2.5rem; margin-top: 2.5rem !important; }
.ffr-coach > * { margin-block-start: 0 !important; }
.ffr-coach figure { margin: 0 0 1.25rem; }
.ffr-coach img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: center bottom; background: #fff; display: block; }
.ffr-coach figure { position: relative; isolation: isolate; overflow: hidden; }
.ffr-coach img { transition: filter .35s ease; }
/* Hover: illustration turns gold on black (invert, then tint with the brand gold) */
.ffr-coach figure::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ffr-gold);
	mix-blend-mode: multiply;
	opacity: 0;
	transition: opacity .35s ease;
	pointer-events: none;
}
.ffr-coach:hover img { filter: invert(1); }
.ffr-coach:hover figure::after { opacity: 1; }
.ffr-coach h3 { transition: color .35s ease; }
.ffr-coach:hover h3 { color: var(--ffr-gold); }
@media (prefers-reduced-motion: reduce) { .ffr-coach img, .ffr-coach figure::after, .ffr-coach h3 { transition: none; } }
.ffr-coach h3 { font-size: 2rem; margin-bottom: 0.35rem; }
.ffr-coach p { color: var(--ffr-muted); font-size: 0.95rem; }
@media (min-width: 640px) {
	.ffr-coaches__grid { display: flex; flex-wrap: wrap; justify-content: center; }
	.ffr-coaches__grid > .ffr-coach { flex: 0 1 calc((100% - 2.5rem) / 2); }
}
@media (min-width: 1100px) {
	.ffr-coaches__grid { gap: 1.75rem; }
	.ffr-coaches__grid > .ffr-coach { flex-basis: calc((100% - 7rem) / 5); }
	.ffr-coaches__grid .ffr-coach h3 { font-size: 1.65rem; }
}

/* ---------- FAQ ---------- */
.ffr-faq__list { margin-top: 2.5rem !important; max-width: 52rem; }
.ffr-faq__list > * { margin-block-start: 0 !important; }
.ffr-faq .wp-block-details {
	border-top: 3px solid #8a857c;
	padding: 1.5rem 0;
}
.ffr-faq .wp-block-details:last-child { border-bottom: 3px solid #8a857c; }
.ffr-faq summary {
	font-family: var(--ffr-display);
	font-size: 1.6rem;
	line-height: 1.15;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.ffr-faq summary::-webkit-details-marker { display: none; }
.ffr-faq summary::after { content: "+"; color: #a65721; flex: 0 0 auto; }
.ffr-faq details[open] summary::after { content: "–"; }
.ffr-faq details p { color: var(--ffr-muted-dark); margin-top: 0.85rem; max-width: 46rem; }

/* ---------- Instagram ---------- */
.ffr-charcoal { background: var(--ffr-charcoal); color: var(--ffr-cream); }
.ffr-ig .ffr-lede a { color: var(--ffr-cream); }
.ffr-ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 2rem !important; }
.ffr-ig__grid > * { margin: 0 !important; }
.ffr-ig__grid figure { margin: 0; overflow: hidden; }
.ffr-ig__grid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(1); transition: transform .3s ease, filter .3s ease; }
.ffr-ig__grid a:hover img, .ffr-ig__grid a:focus-visible img { transform: scale(1.04); filter: grayscale(0); }
.ffr-ig__cta { margin-top: 2rem !important; }
@media (min-width: 900px) { .ffr-ig__grid { gap: 1rem; } }

/* ---------- Visit + form ---------- */
.ffr-visit__grid { display: grid; gap: 3rem; margin-top: 1rem !important; }
.ffr-visit__grid > * { margin-block-start: 0 !important; }
.ffr-visit__info > * { margin-block-start: 0 !important; }
.ffr-visit__info p { color: var(--ffr-muted); margin-bottom: 1.5rem; }
.ffr-visit__info p strong { color: var(--ffr-cream); display: block; }
.ffr-visit__info a { color: var(--ffr-cream); }
.ffr-visit__info figure { margin: 0; }
.ffr-visit__info figure img { display: block; }
.ffr-visit__media { display: grid; gap: 1rem; margin: 0.5rem 0 1.25rem !important; }
.ffr-visit__media > * { margin: 0 !important; }
.ffr-map { position: relative; aspect-ratio: 4 / 3; background: var(--ffr-charcoal); }
.ffr-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ffr-visit__info img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 62%; }
@media (min-width: 950px) {
	.ffr-visit__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: stretch; }
	/* Left column fills the form's height: photo grows so both columns start and end together */
	.ffr-visit__info { display: flex; flex-direction: column; padding-top: 5px; }
	.ffr-visit__media { flex: 1 1 auto; grid-template-rows: 1fr 1fr; }
	.ffr-visit__media figure, .ffr-visit__media .ffr-map { position: relative; min-height: 200px; aspect-ratio: auto; }
	.ffr-visit__media figure img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
	.ffr-visit__info .ffr-textlink { margin-bottom: 5px !important; margin-top: 0.5rem !important; }
}

.ffr-form-card {
	background: var(--ffr-cream);
	color: var(--ffr-black);
	padding: 2.25rem 1.75rem;
	box-shadow: 0 0 0 4px var(--ffr-black), 0 0 0 5px #6d6862;
}
.ffr-form-card > * { margin-block-start: 0 !important; }
.ffr-form-card h3 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 1.5rem; }
.ffr-form-card h3 { margin-bottom: 0.5rem !important; }
.ffr-form-intro { color: var(--ffr-muted-dark); margin-bottom: 1.5rem !important; }
.ffr-field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .ffr-field-row { grid-template-columns: 1fr 1fr; } }
.ffr-form label { display: block; font-weight: 600; font-size: 0.95rem; margin: 0 0 0.4rem; }
.ffr-form .ffr-field { margin-bottom: 1.25rem; }
.ffr-form input[type="text"],
.ffr-form input[type="email"],
.ffr-form input[type="tel"],
.ffr-form select,
.ffr-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	padding: 0.85rem 0.9rem;
	background: #fff;
	color: var(--ffr-black);
	border: 2px solid var(--ffr-black);
	box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px #c9c3b8;
	border-radius: 0;
}
.ffr-form textarea { min-height: 120px; resize: vertical; }
.ffr-form input:focus, .ffr-form select:focus, .ffr-form textarea:focus { outline: 3px solid var(--ffr-gold); outline-offset: 1px; }
.ffr-form .ffr-hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }
.ffr-form button {
	width: 100%;
	cursor: pointer;
	font-family: var(--ffr-condensed);
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 1.15rem 1rem;
	background: var(--ffr-black);
	color: var(--ffr-cream);
	border: 0;
	border-radius: 0;
	transition: background-color .2s, color .2s;
}
.ffr-form button:hover { background: var(--ffr-gold); color: var(--ffr-black); }
.ffr-form-msg { padding: 1rem 1.1rem; margin-bottom: 1.25rem; font-weight: 600; border-left: 4px solid var(--ffr-gold); background: #fff; }
.ffr-form-msg--error { border-left-color: #b3261e; }

/* WPForms (used automatically on the live site) styled to match */
.ffr-wpforms .wpforms-container { margin: 0 !important; }
.ffr-wpforms .wpforms-field { padding: 0 0 1.25rem !important; }
.ffr-wpforms .wpforms-field-label,
.ffr-wpforms .wpforms-field-sublabel { color: var(--ffr-black) !important; font-family: var(--wp--preset--font-family--body) !important; font-weight: 600 !important; font-size: 0.95rem !important; }
.ffr-wpforms input[type="text"], .ffr-wpforms input[type="email"], .ffr-wpforms input[type="tel"],
.ffr-wpforms select, .ffr-wpforms textarea {
	width: 100% !important; max-width: 100% !important; box-sizing: border-box;
	font: inherit !important; font-size: 1rem !important; color: var(--ffr-black) !important;
	background: #fff !important; padding: 0.85rem 0.9rem !important; height: auto !important;
	border: 2px solid var(--ffr-black) !important; border-radius: 0 !important;
	box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px #c9c3b8 !important;
}
.ffr-wpforms textarea { min-height: 120px !important; }
.ffr-wpforms button[type="submit"], .ffr-wpforms .wpforms-submit {
	width: 100% !important; height: auto !important; cursor: pointer;
	font-family: var(--ffr-condensed) !important; font-weight: 700 !important; font-size: 1.2rem !important;
	letter-spacing: 0.1em !important; text-transform: uppercase !important;
	padding: 1.15rem 1rem !important; background: var(--ffr-black) !important; color: var(--ffr-cream) !important;
	border: 0 !important; border-radius: 0 !important;
}
.ffr-wpforms button[type="submit"]:hover, .ffr-wpforms .wpforms-submit:hover { background: var(--ffr-gold) !important; color: var(--ffr-black) !important; }
.ffr-wpforms .wpforms-confirmation-container-full { background: #fff !important; border: 0 !important; border-left: 4px solid var(--ffr-gold) !important; color: var(--ffr-black) !important; }

/* ---------- Footer ---------- */
.ffr-footer {
	padding: 3rem 1.25rem 2.5rem;
	border-top: 1px solid var(--ffr-line);
	background: var(--ffr-black);
	color: var(--ffr-muted);
	font-size: 0.95rem;
}
.ffr-footer > * { margin-block-start: 0 !important; }
.ffr-footer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.ffr-footer__top > * { margin: 0 !important; }
.ffr-footer__top img { width: 64px !important; height: auto; display: block; }
.ffr-footer__links { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-bottom: 1.5rem !important; }
.ffr-footer__links a { color: var(--ffr-cream); }
.ffr-footer__legal { font-size: 0.85rem; max-width: 46rem; }

/* ---------- Phones: center section titles, intros and buttons ---------- */
@media (max-width: 699px) {
	.ffr-section .ffr-eyebrow,
	.ffr-section h1,
	.ffr-section h2,
	.ffr-section .ffr-lede,
	.ffr-section > .ffr-note,
	.ffr-section .ffr-textlink,
	.ffr-why h3, .ffr-why p,
	.ffr-coach h3, .ffr-coach p,
	.ffr-visit__info p {
		text-align: center;
	}
	.ffr-section h1, .ffr-section h2, .ffr-section .ffr-lede {
		margin-left: auto !important;
		margin-right: auto !important;
	}
	.ffr-why h3 { margin-left: auto; margin-right: auto; }
	.ffr-section .wp-block-buttons { justify-content: center; }
	.ffr-hero .wp-block-buttons { align-items: stretch; }
	.ffr-hero .wp-block-button__link { text-align: center; }
	.ffr-section > .ffr-schedule__note { text-align: center; }
	.ffr-footer { text-align: center; }
	.ffr-footer__top, .ffr-footer__links { justify-content: center; }
	.ffr-footer > .ffr-footer__legal { margin-left: auto !important; margin-right: auto !important; }
}

/* ---------- Editor tweaks ---------- */
.editor-styles-wrapper .ffr-menu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	background: var(--ffr-charcoal);
	padding: 1rem;
}
.editor-styles-wrapper .ffr-header { flex-wrap: wrap; }
.editor-styles-wrapper .ffr-menu { flex: 1 1 100%; order: 5; }

/* CrossFit.com links */
.ffr-eyebrow a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.ffr-eyebrow a:hover { color: var(--wp--preset--color--cream, #ffffff); }
.ffr-footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }

/* Footer affiliate badge */
.ffr-footer__top > .ffr-footer__affiliate { margin-left: auto !important; }
.ffr-footer__affiliate .ffr-footer__badge {
  display: inline-block; padding: 0.6rem 1rem; border: 2px solid var(--ffr-gold);
  color: var(--ffr-gold); text-decoration: none; text-transform: uppercase;
  font-family: var(--wp--preset--font-family--condensed); font-weight: 700;
  letter-spacing: 0.12em; font-size: 0.85rem; line-height: 1.2;
}
.ffr-footer__affiliate .ffr-footer__badge:hover { background: var(--ffr-gold); color: var(--ffr-black, #010101); }
@media (max-width: 899px) { .ffr-footer__top > .ffr-footer__affiliate { margin-left: 0 !important; flex-basis: 100%; } }
.ffr-footer__affiliate { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.ffr-footer__cflogo { display: block; line-height: 0; }
.ffr-footer__cflogo img { width: 120px !important; height: auto; display: block; }
@media (max-width: 899px) { .ffr-footer__affiliate { justify-content: center; } }

/* Instagram feed (Smash Balloon) in black and white */
.ffr-ig__feed, .ffr-ig__grid { width: 100%; }
.ffr-ig__feed { margin-top: 2rem !important; }
.ffr-ig__feed #sb_instagram { padding-bottom: 0 !important; }
.ffr-ig__feed .sbi_photo_wrap,
.ffr-ig__feed .sbi_photo,
.ffr-ig__feed img { filter: grayscale(1); transition: filter .3s ease; }
.ffr-ig__feed .sbi_item:hover .sbi_photo_wrap,
.ffr-ig__feed .sbi_item:hover .sbi_photo,
.ffr-ig__feed .sbi_item:hover img { filter: grayscale(0); }

/* Jump Ship logo */
.ffr-prog__logo { margin: 2.5rem 0 0 !important; }
.ffr-prog__logo img { width: 220px !important; max-width: 60vw; height: auto; display: block; }
@media (max-width: 699px) { .ffr-prog__logo { margin: 2rem auto 0 !important; } .ffr-prog__logo img { width: 180px !important; margin: 0 auto; } }

/* Instagram icons */
.ffr-ig h2 { display: flex; align-items: center; gap: 0.3em; }
.ffr-ig__icon, .ffr-ig__btnicon { display: inline-flex; flex: none; line-height: 0; }
.ffr-ig__icon svg, .ffr-ig__btnicon svg { width: 100%; height: 100%; display: block; }
.ffr-ig__icon { width: 0.8em; height: 0.8em; color: var(--ffr-gold); transition: color .2s ease; }
.ffr-ig__icon:hover, .ffr-ig__icon:focus-visible { color: var(--ffr-cream); }
.ffr-ig__btnicon { width: 1.15em; height: 1.15em; margin-right: 0.6em; vertical-align: -0.22em; }
@media (max-width: 699px) { .ffr-ig h2 { justify-content: center; } }

/* Hold the Standard badge */
.ffr-footer > .ffr-footer__standard { margin: 0.5rem auto 2rem !important; max-width: 220px; }
.ffr-footer__standard img { margin: 0 auto; }
.ffr-footer__standard img { width: 220px !important; max-width: 60vw; height: auto; display: block; }
@media (max-width: 699px) { .ffr-footer > .ffr-footer__standard { margin: 0.5rem auto 2rem !important; } .ffr-footer__standard img { width: 200px !important; margin: 0 auto; } }

/* Bigger footer logo on phones */
@media (max-width: 699px) {
	.ffr-footer__top figure:first-child img { width: 192px !important; }
}

/* Distressed flag behind the Schedule section */
#schedule { position: relative; isolation: isolate; overflow: hidden; }
#schedule::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	top: 50%; left: 50%; transform: translate(-50%, -50%);
	height: 115%; aspect-ratio: 4054 / 7000;
	background: url("assets/images/flag-white.svg") center / contain no-repeat;
	opacity: 0.07;
}
@media (max-width: 699px) { #schedule::before { height: auto; width: 110%; aspect-ratio: 4054 / 7000; opacity: 0.06; } }

/* Skull flag behind the Instagram section */
#instagram { position: relative; isolation: isolate; overflow: hidden; }
#instagram::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	top: 50%; right: -4%; transform: translateY(-50%);
	height: 105%; aspect-ratio: 1440 / 1473;
	background: url("assets/images/skull-flag-white.svg") center / contain no-repeat;
	opacity: 0.07;
}
@media (max-width: 699px) { #instagram::before { right: 50%; transform: translate(50%, -50%); height: auto; width: 120%; } }

/* Subtle slow "breathing" on the background flags */
@keyframes ffr-flag-drift {
	0%   { scale: 1;    rotate: -0.6deg; opacity: 0.055; }
	50%  { scale: 1.04; rotate: 0.6deg;  opacity: 0.085; }
	100% { scale: 1;    rotate: -0.6deg; opacity: 0.055; }
}
#schedule::before { animation: ffr-flag-drift 14s ease-in-out infinite; }
#instagram::before { animation: ffr-flag-drift 16s ease-in-out infinite; animation-delay: -5s; }
@media (prefers-reduced-motion: reduce) {
	#schedule::before, #instagram::before { animation: none; }
}

/* Center the Jump Ship logo in the open space beside the sample class */
.ffr-prog__logo, .ffr-prog__logo a { background: transparent !important; }
@media (min-width: 950px) {
	.ffr-prog__grid { align-items: stretch; }
	.ffr-prog__intro { display: flex; flex-direction: column; }
	.ffr-prog__intro > .ffr-prog__logo { margin: auto !important; padding-top: 2.5rem; }
	.ffr-prog__logo img { width: 260px !important; }
}

/* Fade up on scroll (added by assets/js/reveal.js) */
.ffr-reveal {
	opacity: 0;
	translate: 0 22px;
	transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1);
}
.ffr-reveal.is-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
	.ffr-reveal { opacity: 1; translate: none; transition: none; }
}

/* Phones: show only the first hero photo */
@media (max-width: 699px) {
	.ffr-hero__photos > figure:nth-child(n+2) { display: none !important; }
}

/* Phones: hide the Jump Ship logo */
@media (max-width: 949px) {
	.ffr-prog__logo { display: none !important; }
}

/* Phones: "Best value" badge sits above the plan name instead of overlapping it */
@media (max-width: 699px) {
	.ffr-price--featured .ffr-badge {
		position: static !important;
		display: inline-block !important;
		align-self: flex-start;
		width: auto !important;
		max-width: max-content;
		margin: 0 0 0.85rem !important;
		left: auto; right: auto; top: auto;
	}
	.ffr-price--featured .ffr-price__name { max-width: none; }
}

/* Phones: hide the embedded map (the Directions link stays) */
@media (max-width: 699px) {
	.ffr-map { display: none !important; }
	.ffr-visit__media { grid-template-rows: auto !important; }
}

/* Coaches: on hover the illustration fades out and a "years of experience" panel takes its place */
.ffr-coach { position: relative; }
.ffr-coach .ffr-coach__years {
	position: absolute; z-index: 3; top: 0; left: 0; right: 0;
	aspect-ratio: 5 / 6; margin: 0 !important;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: var(--ffr-black) url("assets/images/skull-flag-white.svg") center / 85% no-repeat;
	background-blend-mode: normal;
	color: var(--ffr-gold);
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transition: opacity .45s ease;
}
.ffr-coach .ffr-coach__years::before {
	content: ""; position: absolute; inset: 0;
	background: rgba(1, 1, 1, 0.9);
	box-shadow: inset 0 0 0 10px var(--ffr-black), inset 0 0 0 11px var(--ffr-gold);
	z-index: -1;
}
.ffr-coach .ffr-coach__years { isolation: isolate; }
.ffr-coach .ffr-coach__years .ffr-coach__years-n {
	font-family: var(--wp--preset--font-family--display, 'Anton', sans-serif);
	font-size: clamp(3.75rem, 6.5vw, 5.75rem); line-height: 0.95; color: var(--ffr-gold); margin-top: 0.6rem;
	transform: translateY(12px); transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.ffr-coach .ffr-coach__years .ffr-coach__years-l {
	font-family: var(--ffr-condensed); font-weight: 700; text-transform: uppercase;
	font-size: 1.5rem; letter-spacing: 0.22em; color: var(--ffr-cream); margin-top: 0.1rem;
	padding: 0 0.5rem 0.4rem; border-bottom: 2px solid var(--ffr-gold);
}
.ffr-coach .ffr-coach__years .ffr-coach__years-s {
	font-family: var(--ffr-condensed); font-weight: 600; text-transform: uppercase;
	font-size: 0.85rem; letter-spacing: 0.3em; color: var(--ffr-muted);
}
/* Coaches with years: swap instead of the gold tint */
.ffr-coach:has(.ffr-coach__years) figure::after { display: none; }
.ffr-coach:has(.ffr-coach__years):hover img { filter: none; opacity: 0; }
.ffr-coach:has(.ffr-coach__years) img { transition: opacity .45s ease; }
.ffr-coach:hover .ffr-coach__years,
.ffr-coach:focus-within .ffr-coach__years { opacity: 1; }
.ffr-coach:hover .ffr-coach__years .ffr-coach__years-n { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ffr-coach .ffr-coach__years, .ffr-coach__years-n { transition: none; transform: none; }
}

.ffr-coach .ffr-coach__years > p { margin: 0 !important; }

/* Coaches: keep the gold rule clear of the year (v1.7.5) */
.ffr-coach .ffr-coach__years .ffr-coach__years-n { margin-top: 1.1rem !important; }

/* Regular pages (Privacy Policy etc.): readable spacing and heading sizes (v1.9.3) */
.ffr-main .wp-block-post-title { margin-bottom: 1rem; }
.ffr-main .wp-block-post-content { max-width: 46rem; }
.ffr-main .wp-block-post-content > * + * { margin-block-start: 1rem; }
.ffr-main .wp-block-post-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; margin-block-start: 2.75rem !important; margin-bottom: 0.25rem; }
.ffr-main .wp-block-post-content ul { padding-left: 1.25rem; }
.ffr-main .wp-block-post-content li + li { margin-top: 0.5rem; }

/* Map: dark black-and-white look with a thin gold frame, color returns on hover/tap (v1.9.5) */
.ffr-map { outline: 1px solid rgba(202, 172, 129, .55); outline-offset: -1px; overflow: hidden; }
.ffr-map iframe { filter: grayscale(1) invert(.92) contrast(1.1) brightness(.95); transition: filter .4s ease; }
.ffr-map:hover iframe, .ffr-map:focus-within iframe { filter: none; }
@media (prefers-reduced-motion: reduce) { .ffr-map iframe { transition: none; } }

/* v1.9.12: header "Free class" button ~30% smaller on phones */
@media (max-width: 781px) {
	.ffr-header .ffr-header__cta .wp-block-button .wp-block-button__link {
		padding: 0.7rem 1.2rem !important;
		font-size: 0.8rem !important;
	}
}

/* v1.9.16: desktop logo – bigger, inset from the edge, hangs ~7.5% below the header rule like a badge */
@media (min-width: 1024px) {
	:root { --ffr-header-h: 98px; }
	.ffr-header-wrap, .ffr-header { overflow: visible; }
	.ffr-header .ffr-header__logo {
		position: relative;
		align-self: stretch;
		width: 108px;
		margin-left: 1.5rem !important;
		z-index: 2;
	}
	.ffr-header .ffr-header__logo a { position: absolute; top: 2px; left: 0; display: block; }
	.ffr-header .ffr-header__logo img {
		width: 108px !important;
		filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
	}
}

/* v1.9.19: slab serif (Bitter ExtraBold, OFL) for the tan "Home of FarmFit" line and pricing-card subheads */
:root { --ffr-slab: var(--wp--preset--font-family--slab, Bitter, Rockwell, Georgia, serif); }
.ffr-hero .ffr-hero__sub {
	font-family: var(--ffr-slab);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: clamp(1.6rem, 3.2vw, 2.5rem);
	line-height: 1.1;
}
.ffr-price__name {
	font-family: var(--ffr-slab);
	font-weight: 800;
	letter-spacing: 0.06em;
	font-size: 1.3rem;
}
/* v1.9.20: coach names in the slab too */
.ffr-coach h3 {
	font-family: var(--ffr-slab);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.1;
	font-size: 1.6rem;
}
@media (min-width: 1100px) {
	.ffr-coaches__grid .ffr-coach h3 { font-size: 1.25rem; }
}

/* v1.9.23: mobile "free class" tip, bottom right – small and subtle, whole box links to the Get in touch form */
.ffr-tip {
	box-sizing: border-box;
	position: fixed;
	right: max(0.85rem, env(safe-area-inset-right));
	bottom: max(0.85rem, env(safe-area-inset-bottom));
	z-index: 90;
	background: rgba(1, 1, 1, 0.82);
	border: 1px solid rgba(202, 172, 129, 0.6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity .3s ease, transform .3s ease;
}
.ffr-tip.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ffr-tip .ffr-tip__link, .ffr-tip .ffr-tip__link:hover {
	display: flex;
	align-items: center;
	padding: 0.5rem 0.8rem;
	line-height: 1.2;
	font-family: var(--ffr-condensed);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ffr-gold);
	text-decoration: none;
}
.ffr-tip__arrow { margin-left: 0.4rem; }
.ffr-tip__link:focus-visible { outline: 2px solid var(--ffr-gold); outline-offset: 2px; }
@media (min-width: 1024px) { .ffr-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .ffr-tip { transition: none; transform: none; } }

/* v1.9.24: mobile back-to-top button, bottom left (matches the free-class tip) */
.ffr-top {
	position: fixed;
	left: max(0.85rem, env(safe-area-inset-left));
	bottom: max(0.85rem, env(safe-area-inset-bottom));
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	box-sizing: border-box;
	background: rgba(1, 1, 1, 0.82);
	border: 1px solid rgba(202, 172, 129, 0.6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
	color: var(--ffr-gold);
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity .3s ease, transform .3s ease;
}
.ffr-top:hover { color: var(--ffr-gold); }
.ffr-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ffr-top:focus-visible { outline: 2px solid var(--ffr-gold); outline-offset: 2px; }
@media (min-width: 1024px) { .ffr-top { display: none; } }
@media (prefers-reduced-motion: reduce) { .ffr-top { transition: none; transform: none; } }
