/* Bailey-Murray Academy — supplemental styles.
   Colors, fonts, spacing scale and layout widths all live in theme.json.
   This file only covers details the block editor UI can't express directly. */

/* ============================================================
   SITE HEADER
   ============================================================ */

.bma-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 5px solid var(--wp--preset--color--bma-gold);
}

/* Admin bar shouldn't overlap the sticky header while logged in */
.admin-bar .bma-site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	.admin-bar .bma-site-header {
		top: 46px;
	}
}

.bma-header-row {
	width: 100%;
}

/* White circle with gold ring around the logo */
.bma-logo-ring {
	width: 82px;
	height: 82px;
	border-radius: 50%;
	background: #fff;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: 0 0 0 4px var(--wp--preset--color--bma-gold);
	padding: 0;
}
.bma-logo-ring .wp-block-site-logo {
	margin: 0;
	line-height: 0;
}
.bma-logo-ring .wp-block-site-logo img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	display: block;
}

.bma-brand-name a,
.bma-brand-name {
	color: var(--wp--preset--color--bma-white);
	text-decoration: none;
}
.bma-brand-name a:hover {
	color: var(--wp--preset--color--bma-gold);
}

.bma-brand-tag {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bma-gold);
	margin: 0;
}

/* Header navigation */
.bma-nav a,
.bma-nav .wp-block-navigation-item__content {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}
.bma-nav a:hover,
.bma-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--bma-gold);
	text-decoration: none;
}
.bma-nav .wp-block-navigation-item.current-menu-item > a {
	color: var(--wp--preset--color--bma-gold);
}

/* Mobile overlay menu */
.bma-nav .wp-block-navigation__responsive-container.is-menu-open a {
	color: var(--wp--preset--color--bma-white);
	font-size: 1.1rem;
}
.bma-nav .wp-block-navigation__responsive-container-open svg,
.bma-nav .wp-block-navigation__responsive-container-close svg {
	fill: var(--wp--preset--color--bma-white);
}

/* Parent Portal — quiet text link sitting beside the Register button */
.bma-portal-link {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}
.bma-portal-link a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}
.bma-portal-link a:hover {
	color: var(--wp--preset--color--bma-gold);
	text-decoration: none;
}

/* Stack the header sensibly on small screens */
@media (max-width: 860px) {
	.bma-logo-ring {
		width: 62px;
		height: 62px;
	}
	.bma-logo-ring .wp-block-site-logo img {
		width: 44px;
		height: 44px;
	}
	.bma-brand-name a,
	.bma-brand-name {
		font-size: 1.35rem;
	}
	.bma-brand-tag {
		font-size: 0.66rem;
	}
}

/* ============================================================
   BUTTONS — offset "sticker" shadow, presses down on hover
   ============================================================ */

.bma-btn .wp-block-button__link {
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
	box-shadow: 5px 5px 0 var(--wp--preset--color--bma-blue-deepest);
}
.bma-btn .wp-block-button__link:hover {
	transform: translate(3px, 3px);
	box-shadow: 2px 2px 0 var(--wp--preset--color--bma-blue-deepest);
}
.bma-btn .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--bma-gold);
	outline-offset: 3px;
}

/* Outline variant, used on dark blue bands */
.bma-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--bma-white);
	border: 2px solid var(--wp--preset--color--bma-white);
	box-shadow: 5px 5px 0 var(--wp--preset--color--bma-gold);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.bma-btn-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.14);
	color: var(--wp--preset--color--bma-white);
	transform: translate(3px, 3px);
	box-shadow: 2px 2px 0 var(--wp--preset--color--bma-gold);
}

/* Outline variant on light backgrounds */
.bma-btn-line .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--bma-ink);
	border: 2px solid var(--wp--preset--color--bma-ink);
	box-shadow: 5px 5px 0 var(--wp--preset--color--bma-blue);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.bma-btn-line .wp-block-button__link:hover {
	color: var(--wp--preset--color--bma-blue);
	border-color: var(--wp--preset--color--bma-blue);
	transform: translate(3px, 3px);
	box-shadow: 2px 2px 0 var(--wp--preset--color--bma-blue);
}

/* ============================================================
   EYEBROW — skewed gold label above section headings
   ============================================================ */

.bma-eyebrow {
	display: inline-block;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #12142E;
	background: var(--wp--preset--color--bma-gold);
	padding: 0.45em 1.1em;
	transform: skewX(-9deg);
	box-shadow: 3px 3px 0 var(--wp--preset--color--bma-blue-deep);
	margin-bottom: 1.1rem;
}
.bma-eyebrow.is-on-blue {
	box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}
.bma-eyebrow.is-centered {
	display: block;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

/* Gold emphasis word inside a headline */
.bma-accent {
	color: var(--wp--preset--color--bma-gold);
	font-style: normal;
}

/* Headline sizes are declared here as well as in theme.json. theme.json styles
   are inlined into the page HTML, so a full-page cache can serve stale values;
   this stylesheet is a separate versioned file that busts reliably. Same
   clamp() values either way — this is a safety net, not a different design. */
.bma-hero h1,
.bma-banner h1 {
	font-size: clamp(2.8rem, 1.8rem + 3.6vw, 5rem);
	line-height: 0.92;
}
.bma-section-title,
.bma-cta h2 {
	font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem);
}

/* WordPress's constrained layout puts `margin-left/right: auto !important` on
   every child, which centres anything we give a max-width to. These blocks are
   meant to stay flush left, so the auto margin has to be overridden. Centred
   elements (.bma-cta h2, .bma-cta-sub, .is-centered) deliberately keep auto. */
.bma-hero h1,
.bma-hero-sub,
.bma-banner h1,
.bma-banner .bma-banner-sub,
.bma-section-title,
.bma-lede {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* ============================================================
   HERO
   ============================================================ */

.bma-hero {
	border-bottom: 5px solid var(--wp--preset--color--bma-gold);
}
.bma-hero h1 {
	max-width: 16ch;
}
.bma-hero-sub {
	max-width: 48ch;
	color: rgba(255, 255, 255, 0.9);
}

.bma-stat-rail {
	border-top: 3px solid var(--wp--preset--color--bma-gold);
	padding-top: 1.6rem;
}
.bma-stat-number {
	font-family: var(--wp--preset--font-family--bma-headline);
	font-weight: 900;
	font-size: 3.2rem;
	line-height: 0.85;
	color: var(--wp--preset--color--bma-gold);
	margin: 0;
}
.bma-stat-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.82);
	margin: 0.3rem 0 0;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */

.bma-trust {
	border-bottom: 3px solid var(--wp--preset--color--bma-gold);
}
.bma-trust p {
	font-size: 0.85rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}
.bma-trust strong {
	color: var(--wp--preset--color--bma-white);
	font-weight: 800;
	text-transform: uppercase;
}

/* ============================================================
   PAGE BANNER (interior pages)
   ============================================================ */

.bma-banner {
	border-bottom: 5px solid var(--wp--preset--color--bma-gold);
}
.bma-banner h1 {
	max-width: 18ch;
}
.bma-banner .bma-banner-sub {
	max-width: 56ch;
	color: rgba(255, 255, 255, 0.88);
}

/* ============================================================
   LEVEL CARDS (the 4-tier track)
   ============================================================ */

.bma-level-card .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--wp--preset--color--bma-pale);
	display: block;
}

.bma-level-tier {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #12142E;
	background: var(--wp--preset--color--bma-gold);
	padding: 0.25em 0.7em;
	transform: skewX(-9deg);
	margin: 0.9rem 0 0.5rem;
}

/* Keep long words like "Brilliance" from splitting mid-word in narrow columns */
.bma-level-card h3,
.bma-card h3 {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	margin: 0;
}

.bma-level-meta {
	font-size: 0.8rem;
	color: var(--wp--preset--color--bma-ink-soft);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0.35rem 0 0.5rem;
}

.bma-level-card p:last-child {
	font-size: 0.9rem;
	color: var(--wp--preset--color--bma-ink-soft);
	margin: 0;
}

/* ============================================================
   CARDS (age programs, testimonials, locations)
   ============================================================ */

.bma-card {
	background: var(--wp--preset--color--bma-white);
	border: 1px solid var(--wp--preset--color--bma-line);
	border-top: 5px solid var(--wp--preset--color--bma-blue);
	box-shadow: 0 24px 48px -20px rgba(10, 7, 90, 0.35);
}

.bma-card .wp-block-image img {
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	display: block;
}

.bma-testimonial {
	background: var(--wp--preset--color--bma-white);
	border: 1px solid var(--wp--preset--color--bma-line);
	border-left: 5px solid var(--wp--preset--color--bma-blue);
	box-shadow: 0 24px 48px -20px rgba(10, 7, 90, 0.35);
}
.bma-testimonial .bma-quote {
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--wp--preset--color--bma-ink);
	margin: 0;
}
.bma-testimonial .bma-cite {
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bma-blue);
	margin: 1.1rem 0 0;
}

.bma-loc-card {
	background: var(--wp--preset--color--bma-white);
	border-top: 5px solid var(--wp--preset--color--bma-blue);
	border: 1px solid var(--wp--preset--color--bma-line);
	border-top-width: 5px;
	border-top-color: var(--wp--preset--color--bma-blue);
}
.bma-loc-card p {
	font-size: 0.9rem;
	color: var(--wp--preset--color--bma-ink-soft);
	margin: 0.6rem 0 0;
}

/* ============================================================
   INSTRUCTORS
   ============================================================ */

.bma-instructors {
	border-top: 5px solid var(--wp--preset--color--bma-gold);
	border-bottom: 5px solid var(--wp--preset--color--bma-gold);
}
.bma-instructor-photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	box-shadow: 5px 5px 0 var(--wp--preset--color--bma-gold);
	display: block;
}
.bma-instructor-role {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bma-gold);
	margin: 0.4rem 0 0.8rem;
}
.bma-instructor-role.on-light {
	color: var(--wp--preset--color--bma-blue);
}
.bma-instructor-bio {
	font-size: 0.94rem;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 0.8rem;
}

/* Full bios (About page) sit on a light background */
.bma-bio-photo img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	box-shadow: 6px 6px 0 var(--wp--preset--color--bma-gold);
	display: block;
}

/* ============================================================
   COUNTRY CHIPS (About page)
   ============================================================ */

.bma-country-chip {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 0.4em 1em;
	background: var(--wp--preset--color--bma-blue);
	color: #fff;
	transform: skewX(-9deg);
	margin: 0;
}

/* ============================================================
   SCHEDULE TABLES
   ============================================================ */

.bma-schedule-table {
	margin: 0;
	overflow-x: auto;
}
.bma-schedule-table table {
	border-collapse: collapse;
	width: 100%;
	background: var(--wp--preset--color--bma-white);
	border: 1px solid var(--wp--preset--color--bma-line);
	border-top: 4px solid var(--wp--preset--color--bma-blue);
	box-shadow: 0 24px 48px -20px rgba(10, 7, 90, 0.3);
}
.bma-schedule-table th {
	text-align: left;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: var(--wp--preset--color--bma-blue);
	padding: 0.85rem 1.15rem;
	border: none;
}
.bma-schedule-table td {
	padding: 0.8rem 1.15rem;
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--bma-line);
	font-size: 0.9rem;
	font-weight: 500;
	vertical-align: top;
}
/* First column is always the time — keep it on one line and tabular */
.bma-schedule-table td:first-child {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	white-space: nowrap;
}
.bma-schedule-table tr:last-child td {
	border-bottom: none;
}

.bma-studio-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--bma-ink-soft);
	margin: 0.3rem 0 1rem;
}
.bma-schedule-note {
	font-size: 0.84rem;
	font-style: italic;
	color: var(--wp--preset--color--bma-ink-soft);
	margin: 0.9rem 0 0;
}

/* ============================================================
   CONTACT
   ============================================================ */

.bma-contact-row {
	display: flex;
	gap: 0.9rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--wp--preset--color--bma-line);
	margin: 0;
	font-size: 0.95rem;
}
.bma-contact-row strong {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bma-blue);
	min-width: 9ch;
	flex: none;
	align-self: center;
}

/* ============================================================
   GALLERY
   ============================================================ */

.bma-gallery-grid .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.bma-gallery-grid .wp-block-image:hover img {
	transform: scale(1.04);
}

/* ============================================================
   MISSION CALLOUT (Booster Club)
   ============================================================ */

.bma-mission {
	background: var(--wp--preset--color--bma-pale);
	border-left: 4px solid var(--wp--preset--color--bma-gold);
}
.bma-mission p:last-child {
	font-size: 1.12rem;
	margin: 0;
}

/* ============================================================
   CTA BAND
   ============================================================ */

.bma-cta {
	border-top: 5px solid var(--wp--preset--color--bma-gold);
	border-bottom: 5px solid var(--wp--preset--color--bma-gold);
}
.bma-cta h2 {
	max-width: 17ch;
	margin-left: auto;
	margin-right: auto;
}
.bma-cta .bma-cta-sub {
	max-width: 46ch;
	margin-left: auto;
	margin-right: auto;
	color: rgba(255, 255, 255, 0.88);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.bma-site-footer {
	border-top: 5px solid var(--wp--preset--color--bma-gold);
}
.bma-footer-title {
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bma-gold);
	margin: 0 0 1rem;
}
.bma-footer-muted,
.bma-footer-muted a {
	color: rgba(255, 255, 255, 0.68);
	text-decoration: none;
}
.bma-footer-muted a:hover {
	color: var(--wp--preset--color--bma-gold);
	text-decoration: underline;
}
.bma-footer-nav a,
.bma-footer-nav .wp-block-navigation-item__content {
	font-size: 0.86rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.68);
	text-decoration: none;
}
.bma-footer-nav a:hover,
.bma-footer-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--bma-gold);
}
.bma-footer-rule {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	background: none;
	height: 0;
	/* WordPress separators default to a narrow centred rule — span the full row */
	width: 100%;
	max-width: none;
}

/* ============================================================
   SHARED
   ============================================================ */

.bma-lede {
	font-size: 1.12rem;
	color: var(--wp--preset--color--bma-ink-soft);
	max-width: 62ch;
}
.bma-lede.on-blue {
	color: rgba(255, 255, 255, 0.88);
}

/* Section headings never sit flush against the eyebrow above them */
.bma-section-title {
	margin: 0 0 1.6rem;
	max-width: 22ch;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}
