/*
Theme Name: Built For More Athletics
Author: Built For More Athletics
Description: Custom theme for Built For More Athletics, a youth football program of The Long Road Project. Activating the theme creates every page, both menus, the static homepage, and pretty permalinks. Set contact details, Tally form links, and PayPal links in Appearance > Customize > BFMA Settings.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: built-for-more
Tags: one-column, custom-logo, custom-menu, editor-style, accessibility-ready, block-styles
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #0a0b0d;
	--ink-2: #16181c;
	--ink-3: #22252b;
	--rule-dark: #2e3239;
	--steel: #d3d3d4;
	--steel-bright: #ecedee;
	--steel-dim: #a3a8af;
	--paper: #f3f3f1;
	--white: #fff;
	--blue: #1b8efc;
	--blue-hover: #4ba6fd;
	--blue-deep: #0a5bb0;
	--text: #16181c;
	--muted: #4a4f57;
	--rule: #cfd1d4;
	--field: #767b84;
	--error: #b3261e;

	--font-display: "Oswald", "Arial Narrow", sans-serif;
	--font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 72rem;
	--container-wide: 90rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--section: clamp(3.5rem, 8vw, 7rem);
	--focus: var(--blue-deep);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.6;
	overflow-x: clip;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

figure {
	margin: 0;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.005em;
	overflow-wrap: break-word;
	margin: 0 0 0.5em;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--blue-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.site-header,
.hero,
.commitments,
.teams,
.page-hero,
.site-footer {
	--focus: var(--blue);
}

::selection {
	background: var(--blue);
	color: var(--ink);
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--wide {
	max-width: calc(var(--container-wide) + 2 * var(--gutter));
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 0.75rem;
	top: -10rem;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--blue);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.skip-link:focus {
	top: 0.75rem;
	outline-color: var(--ink);
}

.eyebrow,
.bfma-eyebrow {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--blue-deep);
	margin: 0 0 0.75rem;
}

.section-title {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	margin-bottom: 0.4em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.7rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 2px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.1875rem;
	line-height: 1.1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button--primary {
	background: var(--blue);
	color: var(--ink);
}

.button--primary:hover {
	background: var(--blue-hover);
	color: var(--ink);
}

.button--ghost {
	border-color: var(--steel);
	color: var(--steel-bright);
	background: transparent;
}

.button--ghost:hover {
	background: var(--steel);
	color: var(--ink);
}

.button--ghost-dark {
	border-color: var(--ink);
	color: var(--ink);
	background: transparent;
}

.button--ghost-dark:hover {
	background: var(--ink);
	color: var(--white);
}

.button--dark {
	background: var(--ink);
	color: var(--white);
}

.button--dark:hover {
	background: var(--ink-3);
	color: var(--white);
}

.text-link {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.0625rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header {
	background: var(--ink);
	color: var(--steel);
	border-bottom: 1px solid var(--rule-dark);
	position: relative;
	z-index: 20;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 5rem;
	position: relative;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--steel-bright);
	text-decoration: none;
	padding-block: 0.5rem;
}

.brand__mark {
	width: 38px;
	height: auto;
}

.brand__name {
	display: flex;
	flex-direction: column;
	font-family: var(--font-display);
	text-transform: uppercase;
	line-height: 1;
}

.brand__line {
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: 0.02em;
}

.brand__sub {
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.32em;
	color: var(--blue);
	margin-top: 0.2rem;
}

.site-nav .menu,
.site-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--steel);
	padding: 0.75rem 0.7rem;
	transition: color 0.15s ease, box-shadow 0.15s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_item > a {
	color: var(--white);
	box-shadow: inset 0 -3px 0 var(--blue);
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.9rem;
	background: transparent;
	color: var(--steel-bright);
	border: 1px solid var(--rule-dark);
	border-radius: 2px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: currentColor;
	position: relative;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

.submenu-toggle {
	background: transparent;
	border: 0;
	color: var(--steel);
	cursor: pointer;
	padding: 0;
	width: 2.75rem;
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.submenu-toggle__chev {
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
	transition: transform 0.15s ease;
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__chev {
	transform: translateY(25%) rotate(-135deg);
}

/* The Long Road Project mark (white line art), far right of the navbar. */
.partner-link {
	display: inline-flex;
	align-items: center;
	flex: none;
	opacity: 0.88;
	transition: opacity 0.15s ease;
}

/* Never let the brand or the partner mark get squeezed by the menu. */
.brand {
	flex: none;
	white-space: nowrap;
}

.partner-link:hover {
	opacity: 1;
}

.partner-link__logo {
	display: block;
	height: 30px;
	width: auto;
}

/* Desktop: [BFMA logo] ... menu centered ... [Long Road logo] pinned far right. */
@media (min-width: 1100px) {
	.site-nav {
		flex: 1 1 auto;
	}

	.site-nav__panel {
		display: flex;
		align-items: center;
		width: 100%;
	}

	.site-nav__panel > .menu {
		margin-inline: auto;
	}

	.partner-link {
		margin-left: 1.5rem;
		padding-block: 0.25rem;
	}

	.partner-link__logo {
		height: 36px;
	}
}

/* Narrow desktops: tighten menu spacing so both logos keep their full margins. */
@media (min-width: 1100px) and (max-width: 1239px) {
	.site-nav .menu > li > a {
		padding-inline: 0.5rem;
	}

	.partner-link {
		margin-left: 1rem;
	}
}

@media (max-width: 1099px) {
	.partner-link {
		margin-top: 1rem;
		padding-top: 1.1rem;
		border-top: 1px solid var(--rule-dark);
		width: 100%;
	}

	.partner-link__logo {
		height: 40px;
	}
}

/* Desktop navigation */
@media (min-width: 1100px) {
	.site-nav .menu {
		display: flex;
		align-items: center;
		gap: 0.1rem;
	}

	.site-nav .menu > li {
		position: relative;
	}

	.site-nav .has-js-submenu {
		display: flex;
		align-items: center;
	}

	.site-nav .has-js-submenu > a {
		padding-right: 0.1rem;
	}

	.site-nav .submenu-toggle {
		width: 1.75rem;
	}

	.site-nav .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 15rem;
		padding: 0.5rem 0;
		background: var(--ink-2);
		border-top: 3px solid var(--blue);
		box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
	}

	.site-nav .sub-menu a {
		padding: 0.65rem 1.1rem;
	}

	.site-nav .sub-menu a:hover,
	.site-nav .sub-menu .current-menu-item > a {
		box-shadow: inset 3px 0 0 var(--blue);
	}

	.site-nav .menu-item-has-children:hover > .sub-menu,
	.site-nav .menu-item-has-children:focus-within > .sub-menu,
	.site-nav .submenu-toggle[aria-expanded="true"] + .sub-menu {
		display: block;
	}
}

/* Mobile navigation */
@media (max-width: 1099px) {
	.js .nav-toggle {
		display: inline-flex;
	}

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

	.site-nav {
		flex: 1 1 100%;
	}

	.js .site-nav {
		flex: 0 0 auto;
	}

	.js .site-nav__panel {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ink);
		border-top: 1px solid var(--rule-dark);
		border-bottom: 3px solid var(--blue);
		padding: 0.75rem var(--gutter) 1.5rem;
		max-height: calc(100vh - 5rem);
		overflow-y: auto;
	}

	.js .site-nav.is-open .site-nav__panel {
		display: block;
	}

	.site-nav .menu {
		display: flex;
		flex-direction: column;
	}

	.site-nav .menu > li {
		border-bottom: 1px solid var(--rule-dark);
	}

	.site-nav .menu > li:last-child {
		border-bottom: 0;
	}

	.site-nav a {
		font-size: 1.5rem;
		padding: 0.8rem 0;
	}

	.site-nav a:hover,
	.site-nav .current-menu-item > a,
	.site-nav .current_page_item > a,
	.site-nav .current-menu-ancestor > a {
		box-shadow: none;
		color: var(--blue);
	}

	.site-nav .has-js-submenu {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.site-nav .sub-menu {
		grid-column: 1 / -1;
		padding: 0 0 0.75rem 1rem;
		border-left: 2px solid var(--blue);
		margin-bottom: 0.75rem;
	}

	.js .site-nav .has-js-submenu > .sub-menu {
		display: none;
	}

	.js .site-nav .submenu-toggle[aria-expanded="true"] + .sub-menu {
		display: block;
	}

	.site-nav .sub-menu a {
		font-size: 1.25rem;
		padding: 0.55rem 0;
	}
}

/* No-JS small screens: show the menu inline, wrapped. */
@media (max-width: 1099px) {
	html:not(.js) .site-nav .menu {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0 1rem;
	}

	html:not(.js) .site-nav .menu > li {
		border: 0;
	}

	html:not(.js) .site-nav a {
		font-size: 1.125rem;
	}
}

/* ==========================================================================
   Homepage hero
   ========================================================================== */
.hero {
	background:
		radial-gradient(55% 45% at 50% 28%, #1e2329 0%, rgba(10, 11, 13, 0) 100%),
		var(--ink);
	color: var(--steel);
	text-align: center;
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
	position: relative;
}

.hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero__logo {
	width: 180px;
	height: auto;
	filter: drop-shadow(0 1.25rem 2.5rem rgba(0, 0, 0, 0.55));
}

.hero__text {
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.hero__text .wp-block-group > * {
	margin-block: 0;
}

.hero .bfma-eyebrow {
	color: var(--blue);
	margin-bottom: 0.9rem;
}

.hero h1 {
	font-weight: 700;
	font-size: clamp(2.4rem, 7.2vw, 5.25rem);
	line-height: 0.92;
	color: var(--steel-bright);
	max-width: 15ch;
	margin: 0 auto;
	text-wrap: balance;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1rem;
	margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

@media (min-width: 700px) {
	.hero__logo {
		width: 240px;
	}
}

@media (min-width: 1200px) {
	.hero__logo {
		width: 280px;
	}
}

/* ==========================================================================
   Philosophy
   ========================================================================== */
/*
 * Photo-led: the trophy photo (natural portrait, never cropped) beside the
 * five beliefs, numbered 01-05. The opening belief is set as the lead.
 */
.philosophy {
	padding-block: clamp(2.75rem, 6vw, 5rem);
}

.philosophy__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 4.5vw, 4rem);
	align-items: center;
}

.philosophy__photo {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 24rem;
	justify-self: center;
	margin-right: 14px;
	margin-bottom: 14px;
}

.philosophy__photo img {
	width: 100%;
	height: auto;
}

/* Offset frame in the logo blue; decorative only. */
.philosophy__photo::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: translate(14px, 14px);
	border: 3px solid var(--blue);
	z-index: -1;
}

.philosophy__text .bfma-philosophy {
	counter-reset: belief;
}

.philosophy__text .bfma-philosophy > p {
	counter-increment: belief;
	position: relative;
	margin: 0;
	padding: 1rem 0 1rem 3.25rem;
	border-top: 1px solid var(--rule);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.philosophy__text .bfma-philosophy > p:last-child {
	border-bottom: 1px solid var(--rule);
}

.philosophy__text .bfma-philosophy > p::before {
	content: counter(belief, decimal-leading-zero);
	content: counter(belief, decimal-leading-zero) / "";
	position: absolute;
	left: 0;
	top: 1rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--blue-deep);
}

.philosophy__text .bfma-philosophy > p:first-child {
	border-top: 0;
	padding-top: 0;
	font-size: clamp(1.1875rem, 1.9vw, 1.4375rem);
	line-height: 1.42;
	font-weight: 600;
	color: var(--ink);
}

.philosophy__text .bfma-philosophy > p:first-child::before {
	top: 0;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.1;
}

@media (min-width: 800px) {
	.philosophy__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.philosophy__photo {
		max-width: none;
		justify-self: stretch;
	}
}

/* ==========================================================================
   Photo band
   ========================================================================== */
.photo-band {
	background: var(--ink);
}

.photo-band__img {
	width: 100%;
	height: clamp(15rem, 50vw, 48rem);
	object-fit: cover;
}

/* ==========================================================================
   Commitments (signature)
   ========================================================================== */
.commitments {
	background: var(--ink);
	color: var(--steel);
	padding-block: var(--section);
	counter-reset: commitment;
}

.commitments__inner .bfma-commitments > * {
	margin: 0;
}

.bfma-commitments__intro {
	display: inline-block;
	position: relative;
	padding: 0.6rem 2rem;
	background: linear-gradient(180deg, #efeff0 0%, #c4c6c9 100%);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.0625rem, 2.2vw, 1.5rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.15;
	clip-path: polygon(0 0, 100% 0, calc(100% - 0.75rem) 50%, 100% 100%, 0 100%, 0.75rem 50%);
}

.commitments .is-style-commitments {
	list-style: none;
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding: 0;
}

.commitment {
	counter-increment: commitment;
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	column-gap: 0.75rem;
	align-items: baseline;
	padding-block: clamp(0.85rem, 1.8vw, 1.35rem);
	border-bottom: 1px solid var(--rule-dark);
}

.commitment:first-child {
	border-top: 1px solid var(--rule-dark);
}

.commitment::before {
	content: counter(commitment, upper-roman);
	content: counter(commitment, upper-roman) / "";
	grid-row: 1 / span 2;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.08em;
	color: var(--blue);
}

.commitment__lead {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.1rem, 6.8vw, 5.25rem);
	line-height: 0.9;
	text-transform: uppercase;
	color: var(--steel-bright);
	overflow-wrap: anywhere;
}

.commitment__over,
.commitment__rest {
	font-family: var(--font-display);
	text-transform: uppercase;
}

.commitment__over {
	font-weight: 700;
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	letter-spacing: 0.04em;
	color: var(--blue);
	margin-right: 0.35rem;
}

.commitment__rest {
	font-weight: 600;
	font-size: clamp(1.25rem, 2.4vw, 2rem);
	letter-spacing: 0.03em;
	color: var(--steel-dim);
}

.commitment__tail {
	grid-column: 2;
	display: block;
	margin-top: 0.4rem;
}

@media (min-width: 900px) {
	.commitments .is-style-commitments {
		border-left: 3px solid var(--blue);
		padding-left: clamp(1.25rem, 3vw, 2.5rem);
	}

	.commitment {
		grid-template-columns: 3rem auto minmax(0, 1fr);
		column-gap: 1.25rem;
	}

	.commitment::before {
		grid-row: auto;
	}

	.commitment__tail {
		grid-column: auto;
		margin-top: 0;
	}
}

/* ==========================================================================
   Closing
   ========================================================================== */
/*
 * Compact: the two reflective paragraphs on the left, the sign-off
 * ("We are not just building football players." / "We are Built for More.")
 * on the right behind a blue rule. Stacks on small screens.
 */
.closing {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.closing__inner .bfma-closing {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.closing__inner .bfma-closing > * {
	margin: 0;
}

.closing__inner .bfma-closing > p:not(.bfma-closing__setup):not(.bfma-closing__payoff) {
	font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
	line-height: 1.6;
	max-width: 40rem;
	margin-bottom: 1rem;
}

.bfma-closing__setup,
.bfma-closing__payoff {
	font-family: var(--font-display);
	text-transform: uppercase;
	border-left: 4px solid var(--blue-deep);
	padding-left: 1.25rem;
}

.bfma-closing__setup {
	font-weight: 600;
	font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--muted);
	margin-top: 0.75rem !important;
	padding-top: 0.25rem;
	padding-bottom: 0.5rem;
}

.bfma-closing__payoff {
	font-weight: 700;
	font-size: clamp(2rem, 4.4vw, 3.5rem);
	line-height: 0.95;
	color: var(--ink);
	padding-bottom: 0.25rem;
}

@media (min-width: 900px) {
	.closing__inner .bfma-closing {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		column-gap: clamp(2.5rem, 5vw, 4.5rem);
	}

	.closing__inner .bfma-closing > p:not(.bfma-closing__setup):not(.bfma-closing__payoff) {
		grid-column: 1;
	}

	.bfma-closing__setup {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		margin-top: 0 !important;
	}

	.bfma-closing__payoff {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
	}
}

/* ==========================================================================
   Team photos
   ========================================================================== */
.teams {
	background: var(--ink);
	color: var(--steel-bright);
	padding-block: var(--section);
}

.teams__grid {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1fr);
}

.teams__photo picture {
	display: block;
	height: 100%;
}

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

/* Three 4:3 team photos, uncropped, in one row on wider screens. */
@media (min-width: 800px) {
	.teams__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ==========================================================================
   Split call to action
   ========================================================================== */
.cta-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.cta-split__side {
	padding: clamp(2.75rem, 6vw, 5.5rem) var(--gutter);
	display: flex;
	--focus: var(--ink);
}

.cta-split__side--players {
	background: var(--blue);
	color: var(--ink);
}

.cta-split__side--coaches {
	background: var(--steel);
	color: var(--ink);
}

.cta-split__body {
	width: 100%;
	max-width: 32rem;
}

.cta-split .eyebrow {
	color: var(--ink);
}

.cta-split__title {
	font-size: clamp(2.5rem, 5.5vw, 4.25rem);
	line-height: 0.92;
	margin-bottom: 0.35em;
}

.cta-split p {
	font-size: 1.1875rem;
	max-width: 28rem;
}

.cta-split .button {
	margin-top: 0.5rem;
}

@media (min-width: 800px) {
	.cta-split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cta-split__side--players {
		justify-content: flex-end;
		padding-right: clamp(2rem, 4vw, 4rem);
	}

	.cta-split__side--coaches {
		padding-left: clamp(2rem, 4vw, 4rem);
	}
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-band {
	padding-block: var(--section);
}

.contact-band__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

@media (min-width: 900px) {
	.contact-band__grid {
		grid-template-columns: 5fr 7fr;
	}
}

.contact-details {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
	font-size: 1.125rem;
}

.contact-details li + li {
	margin-top: 0.35rem;
}

.contact-details__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.375rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.contact-form {
	background: var(--white);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-top: 6px solid var(--ink);
	scroll-margin-top: 1.5rem;
}

.field {
	margin-bottom: 1.25rem;
}

.field label {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.0625rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0.4rem;
	color: var(--ink);
}

.field__req {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 0.875rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--muted);
}

.field input,
.field textarea {
	width: 100%;
	font: inherit;
	font-size: 1.0625rem;
	color: var(--text);
	background: var(--white);
	border: 2px solid var(--field);
	border-radius: 2px;
	padding: 0.7rem 0.8rem;
}

.field textarea {
	resize: vertical;
	min-height: 9rem;
}

.field input:focus-visible,
.field textarea:focus-visible {
	border-color: var(--blue-deep);
	outline-offset: 1px;
}

.field--invalid input,
.field--invalid textarea {
	border-color: var(--error);
}

.field__error {
	color: var(--error);
	font-size: 1rem;
	font-weight: 600;
	margin: 0.4rem 0 0;
}

.field--trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-message {
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-weight: 600;
	border-left: 5px solid;
}

.form-message--success {
	background: #e7f1fb;
	border-color: var(--blue-deep);
	color: var(--ink);
}

.form-message--error {
	background: #fbeceb;
	border-color: var(--error);
	color: var(--ink);
}

/* ==========================================================================
   Interior pages
   ========================================================================== */
.page-hero {
	background: var(--ink);
	color: var(--steel-bright);
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	box-shadow: inset 0 -4px 0 var(--blue);
}

.page-hero .eyebrow {
	color: var(--blue);
}

.page-hero__title {
	font-weight: 700;
	font-size: clamp(2.25rem, 6.5vw, 4.75rem);
	line-height: 0.92;
	margin: 0;
	max-width: 18ch;
	text-wrap: balance;
}

.page-body {
	padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section);
}

.prose {
	max-width: calc(46rem + 2 * var(--gutter));
	margin-inline: 0;
}

.page-body > .prose {
	margin-inline: auto;
	max-width: calc(var(--container) + 2 * var(--gutter));
}

.page-body > .prose > * {
	max-width: 46rem;
}

.prose h2 {
	font-size: clamp(1.875rem, 3.6vw, 2.5rem);
	margin-top: 2.5rem;
}

.prose h3 {
	font-size: clamp(1.5rem, 2.6vw, 1.875rem);
	margin-top: 2rem;
}

.prose > *:first-child,
.prose > .wp-block-group:first-child > *:first-child {
	margin-top: 0;
}

.prose ul,
.prose ol {
	padding-left: 1.25rem;
}

.prose li + li {
	margin-top: 0.3rem;
}

.prose li::marker {
	color: var(--blue-deep);
}

.bfma-lead {
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	line-height: 1.45;
	color: var(--ink);
}

.notice-soon {
	font-size: 1.25rem;
	padding: 1.25rem 1.5rem;
	background: var(--white);
	border-left: 5px solid var(--blue-deep);
}

/* Tables */
.wp-block-table {
	margin: 1.5rem 0 2rem;
	overflow-x: auto;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	background: var(--white);
	font-size: 1.0625rem;
}

.wp-block-table th,
.wp-block-table td {
	text-align: left;
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}

.wp-block-table thead {
	border: 0;
}

.wp-block-table th {
	background: var(--ink);
	color: var(--steel-bright);
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wp-block-table td:first-child {
	font-weight: 600;
}

@media (max-width: 480px) {
	.wp-block-table th,
	.wp-block-table td {
		padding: 0.7rem 0.6rem;
		font-size: 1rem;
	}
}

/* Staff */
.bfma-bio {
	border-left: 4px solid var(--blue-deep);
	padding: 0.25rem 0 0.25rem 1.25rem;
	margin: 1.5rem 0;
}

.bfma-bio > * {
	margin-block: 0;
}

.prose .bfma-bio h3 {
	margin: 0;
}

.bfma-bio__role {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--blue-deep);
	margin: 0.3rem 0 0.6rem !important;
}

/* Lead photo (Program) */
.lead-photo {
	margin-top: clamp(1.5rem, 4vw, 3rem);
}

.lead-photo__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Form pages */
.form-layout {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.form-layout__photo {
	margin-top: 2rem;
	max-width: 340px;
}

@media (min-width: 1000px) {
	.form-layout {
		grid-template-columns: 4fr 7fr;
	}
}

@media (max-width: 999px) {
	.form-layout__photo {
		display: none;
	}
}

.form-embed__frame {
	display: block;
	width: 100%;
	min-height: 30rem;
	border: 0;
	background: transparent;
}

.form-embed__alt {
	font-size: 1rem;
	color: var(--muted);
	margin-top: 1rem;
}

.form-soon {
	background: var(--white);
	border-top: 6px solid var(--ink);
	padding: clamp(1.75rem, 4vw, 2.75rem);
}

.form-soon__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1;
	text-transform: uppercase;
	color: var(--ink);
}

/* Payment */
.payment-options {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(0, 1fr);
	margin-top: 1rem;
}

@media (min-width: 800px) {
	.payment-options {
		grid-template-columns: 3fr 2fr;
	}
}

.payment-option {
	background: var(--white);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-top: 6px solid var(--blue);
}

.payment-option--quiet {
	border-top-color: var(--steel);
}

.payment-option__title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1;
}

.payment-option .notice-soon {
	padding: 0;
	border: 0;
	font-size: 1.125rem;
}

/* Document hubs */
.hub {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

@media (min-width: 1000px) {
	.hub {
		grid-template-columns: 7fr 5fr;
	}
}

.hub__heading {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	margin-top: 2rem;
}

.doc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 3px solid var(--ink);
}

.doc-list__link {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding: 1.1rem 0.25rem;
	border-bottom: 1px solid var(--rule);
	text-decoration: none;
	color: var(--ink);
}

.doc-list__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.375rem, 2.4vw, 1.75rem);
	text-transform: uppercase;
	line-height: 1.05;
}

.doc-list__status {
	font-size: 0.9375rem;
	color: var(--muted);
}

.doc-list__link:hover .doc-list__title {
	color: var(--blue-deep);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

/* Documents */
.document__tools {
	margin-bottom: 1.5rem;
}

/* Confirmation */
.confirmation__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.link-list {
	list-style: none;
	padding: 0;
}

.link-list li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--rule);
}

.entry-meta {
	color: var(--muted);
	font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--ink);
	color: var(--steel);
	padding-top: clamp(3rem, 6vw, 4.5rem);
	border-top: 4px solid var(--blue);
}

.site-footer a {
	color: var(--steel-bright);
}

.site-footer a:hover {
	color: var(--blue);
}

.site-footer__grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.site-footer__grid {
		grid-template-columns: 1.3fr 1.5fr 0.9fr;
	}
}

.site-footer__brand {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.site-footer__logo {
	width: 64px;
	height: auto;
	flex: none;
}

.site-footer__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1;
	text-transform: uppercase;
	color: var(--steel-bright);
	margin-bottom: 0.6rem;
}

.site-footer__parent {
	color: var(--steel-dim);
	font-size: 1.0625rem;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 1.5rem;
}

.footer-menu li {
	break-inside: avoid;
}

.footer-menu a {
	display: inline-block;
	padding: 0.35rem 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.0625rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.footer-menu a:hover {
	text-decoration: underline;
}

.contact-details--footer {
	margin-top: 0;
	margin-bottom: 1rem;
}

.contact-details--footer .contact-details__name {
	color: var(--steel-bright);
}

.site-footer__legal {
	margin-top: 3rem;
	padding-block: 1.25rem;
	border-top: 1px solid var(--rule-dark);
	font-size: 0.9375rem;
	color: var(--steel-dim);
}

.site-footer__legal p {
	margin: 0;
}

/* ==========================================================================
   Core block alignment basics
   ========================================================================== */
.aligncenter {
	margin-inline: auto;
	text-align: center;
}

.alignleft {
	float: left;
	margin: 0.3rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.5rem;
}

.wp-caption-text,
.wp-element-caption {
	font-size: 0.9375rem;
	color: var(--muted);
	margin-top: 0.5rem;
}

.wp-block-image {
	margin: 1.5rem 0;
}

.wp-block-separator {
	border: 0;
	border-top: 2px solid var(--rule);
	margin: 2.5rem 0;
}

.wp-block-quote {
	border-left: 4px solid var(--blue-deep);
	margin: 1.5rem 0;
	padding-left: 1.25rem;
	font-size: 1.25rem;
}

/* ==========================================================================
   Smooth scrolling (GSAP ScrollSmoother) and back to top
   ========================================================================== */
html.has-smoother {
	scroll-behavior: auto;
}

/* ScrollSmoother pins the wrapper at top: 0; keep it below the admin bar. */
.admin-bar #smooth-wrapper {
	top: 32px !important;
}

@media screen and (max-width: 782px) {
	.admin-bar #smooth-wrapper {
		top: 46px !important;
	}
}

.to-top {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 60;
	width: 3rem;
	height: 3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 2px solid var(--blue);
	border-radius: 2px;
	background: var(--ink);
	color: var(--steel-bright);
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.75rem);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s, background-color 0.15s ease;
	--focus: var(--blue);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.to-top:hover {
	background: var(--blue);
	color: var(--ink);
}

.to-top__arrow {
	width: 0.75rem;
	height: 0.75rem;
	border-left: 2.5px solid currentColor;
	border-top: 2.5px solid currentColor;
	transform: translateY(0.2rem) rotate(45deg);
}

@media (min-width: 900px) {
	.to-top {
		right: 1.5rem;
		bottom: 1.5rem;
	}
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
