/* =========================================================
   Aobso — master theme stylesheet.
   Edit this file. The bump_version.sh script copies it to
   the cache-busted theme-NNNN.css that's actually served.
   ========================================================= */

:root {
	/* Brand — sampled from AoBSOLogos.webp */
	--red:     #CC2028;
	--navy:    #1D1957;
	--navy-deep: #0F1452; /* header/nav-bar/hero chrome — matches live site's Header--bottom bg exactly */
	--blue:    #154978;
	--ink:     #1c1c1c;
	--muted:   #5c5c5c;
	--line:    #e3e3e6;
	--cream:   #f7f6f3;
	--white:   #ffffff;

	/* Adobe Fonts kit https://use.typekit.net/rpx0mtc.css */
	--display: 'futura-pt', Helvetica, Arial, sans-serif;
	--sans:    'proxima-nova', Helvetica, Arial, sans-serif;

	/* The live site runs full-bleed (Squarespace "full" site-width option) —
	   content spans edge to edge with only a small fixed gutter, not a
	   centered ~1200px column. --max is a generous sanity cap for very wide
	   monitors only; on any realistic viewport it never actually constrains
	   anything, matching the real site's measured behaviour. */
	--gutter:  clamp(16px, 3vw, 24px);
	--max:     1900px;
	--nav-h:   72px;
	--nav-bar-h: 62px;
	--radius:  8px;
}

/* Resets */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 700;
	color: var(--navy);
	line-height: 1.15;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(30px, 4.2vw, 48px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 1.4em; }
h3 { font-size: clamp(18px, 2vw, 22px); }
p { margin: 0 0 1em; }

.container {
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--radius);
	background: var(--red);
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s ease;
}
.btn:hover { background: var(--navy); text-decoration: none; }

/* ===========================================================
   Header — two bars, matching the live site exactly:
   a white branding/search bar, then a full-bleed navy nav bar
   (dropdown on desktop, collapses to slide-down on mobile).
   =========================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header.is-scrolled .site-header__top { box-shadow: 0 2px 10px rgba(0,0,0,.06); }

/* --- top bar: white, logo + search, full width --- */
.site-header__top { background: var(--white); }
.site-header__top-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 12px var(--gutter);
	min-height: var(--nav-h);
}
.brand { display: flex; align-items: center; }
.brand__logo { height: 89px; width: auto; }
.brand__text { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--navy); }

.site-search {
	margin-left: auto;
	display: flex;
	align-items: center;
	border: 0;
	border-radius: 3px;
	overflow: hidden;
}
.site-search input[type="search"] {
	border: 0;
	background: var(--navy-deep);
	color: var(--white);
	padding: 8px 10px;
	font-size: 13px;
	font-family: var(--sans);
	width: 140px;
}
.site-search input[type="search"]::placeholder { color: rgba(255,255,255,.7); }
.site-search button {
	border: 0;
	background: var(--navy-deep);
	color: var(--white);
	padding: 8px 10px;
	display: flex;
	cursor: pointer;
}
.screen-reader-text { position: absolute; left: -9999px; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: 0;
	cursor: pointer;
	margin-left: 8px;
	flex: none;
}
.nav-toggle__bar { display: block; width: 100%; height: 2px; background: var(--navy); }

/* --- nav bar: full-bleed navy, all-caps, matches Header--bottom --- */
.site-header__nav-bar { background: var(--navy-deep); }
.site-header__nav-inner { padding: 0 var(--gutter); }

.primary-nav__list {
	list-style: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	min-height: var(--nav-bar-h);
}
.primary-nav__list > .menu-item { position: relative; }
.primary-nav__list > .menu-item > a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 12px;
	color: var(--white);
	text-transform: uppercase;
	font-family: var(--display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .1em;
	white-space: nowrap;
}
.primary-nav__list > .menu-item > a:hover,
.primary-nav__list > .menu-item.is-active > a { color: rgba(255,255,255,.65); text-decoration: none; }
.primary-nav__list .chev { flex: none; }
.submenu-toggle { display: none; }

.sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: var(--white);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 12px 28px rgba(0,0,0,.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease;
	z-index: 10;
}
.menu-item.has-children:hover > .sub-menu,
.menu-item.has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.sub-menu .menu-item a {
	display: block;
	padding: 9px 12px;
	color: #0e144e;
	text-transform: none;
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: normal;
	border-radius: 6px;
}
.sub-menu .menu-item a:hover { background: var(--cream); color: var(--red); text-decoration: none; }

/* This nav carries 13 top-level items with several dropdowns — collapse to
   the mobile slide-down well before a typical 5-7 item nav would need to. */
@media (max-width: 1400px) {
	.nav-toggle { display: flex; }
	.site-header__nav-bar { display: none; }
	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--navy-deep);
		max-height: 0;
		overflow: hidden;
		transition: max-height .25s ease;
	}
	.site-header__top { position: relative; }
	.primary-nav.is-open { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; display: block; }
	.primary-nav__list { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; gap: 0; min-height: 0; }
	.primary-nav__list > .menu-item { border-bottom: 1px solid rgba(255,255,255,.15); }
	.primary-nav__list > .menu-item > a { padding: 14px 4px; justify-content: space-between; }
	.menu-item.has-children > a .chev { display: none; }
	.menu-item.has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.menu-item.has-children > a { flex: 1; }
	.submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		background: none;
		border: 0;
		cursor: pointer;
		color: var(--white);
	}
	.sub-menu {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: transparent;
		width: 100%;
		padding: 0 0 8px 16px;
	}
	.sub-menu .menu-item a { color: rgba(255,255,255,.75); }
	.sub-menu .menu-item a:hover { background: rgba(255,255,255,.08); color: var(--white); }
	.menu-item.has-children.is-open .sub-menu { display: block; }
}
@media (max-width: 560px) {
	.site-search { display: none; }
}

/* ===========================================================
   Block: inner-hero
   =========================================================== */
.inner-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	background: var(--navy-deep) center/cover no-repeat;
	color: var(--white);
	padding: 40px 0 76px;
}
.inner-hero.has-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15,20,82,.25), rgba(15,20,82,.8));
}
.inner-hero.no-bg { background: var(--navy-deep); }
.inner-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--max);
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.inner-hero h1 { color: var(--white); margin: 0; font-size: clamp(32px, 5.2vw, 66px); }
.inner-hero__box {
	margin: 16px 0 0;
	padding: 16px 20px;
	background: rgba(255,255,255,.12);
	border-left: 4px solid var(--red);
	max-width: 640px;
}
.inner-hero__box p { margin: 0 0 6px; font-style: italic; }
.inner-hero__box cite { font-size: 13px; opacity: .85; }

.inner-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	z-index: 2;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	color: var(--white);
	cursor: pointer;
	animation: aobso-bounce 2s ease-in-out infinite;
}
@keyframes aobso-bounce {
	0%, 100% { transform: translate(-50%, 50%); }
	50% { transform: translate(-50%, calc(50% + 8px)); }
}

/* ===========================================================
   Block: prose-block
   =========================================================== */
.prose-block { padding: 32px 0; }
.prose-block__inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.prose-block.is-narrow .prose-block__inner { max-width: 780px; }
/* Navy full-bleed promo panel — matches the live site's homepage
   "AoBSO Conference" style callout section above the footer. */
.prose-block.is-navy { background: var(--navy-deep); padding: 48px 0; }
.prose-block.is-navy .prose,
.prose-block.is-navy .prose h1,
.prose-block.is-navy .prose h2,
.prose-block.is-navy .prose h3,
.prose-block.is-navy .prose h4 { color: var(--white); }
.prose-block.is-navy .prose { color: rgba(255,255,255,.92); }
.prose-block.is-navy .prose strong { color: var(--white); }
.prose-block.is-navy .btn { background: var(--red); }
.prose-block__inner.has-image {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
	max-width: var(--max);
}
.prose-block__inner.image-right { grid-template-columns: 1fr 1fr; }
.prose-block__inner.image-right .prose-block__figure { order: 2; }
.prose-block__figure img { border-radius: var(--radius); }
.prose h2:first-child { margin-top: 0; }
.prose-block__ctas { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 780px) {
	.prose-block__inner.has-image { grid-template-columns: 1fr; }
	.prose-block__inner.image-right .prose-block__figure { order: 0; }
}

/* Split layout — narrow title column on the left, body in a wide column
   on the right. Matches the live site's "What is BSO?" / "AoBSO
   Membership" homepage sections (measured column ratio ~2:10). */
.prose-block__inner.is-split {
	display: grid;
	grid-template-columns: 2fr 10fr;
	gap: 40px;
	align-items: start;
}
.prose-block__col-title h2 { margin: 0; }
.prose-block.is-navy .prose-block__col-title h2 { color: var(--white); }
@media (max-width: 780px) {
	.prose-block__inner.is-split { grid-template-columns: 1fr; gap: 16px; }
}

/* ===========================================================
   Block: photo-mosaic — full-width auto-playing crossfade
   carousel with prev/next arrows + dots, matching the live
   site's homepage image gallery (.Index-gallery).
   =========================================================== */
.photo-mosaic { padding: 0; }
.photo-mosaic h2 { max-width: var(--max); margin: 0 auto 20px; padding-inline: var(--gutter); padding-top: 32px; }
.photo-mosaic__carousel {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 7;
	background: var(--navy-deep);
}
.photo-mosaic__track { position: relative; width: 100%; height: 100%; }
.photo-mosaic__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity .9s ease;
}
.photo-mosaic__slide.is-active { opacity: 1; }
.photo-mosaic__slide img { width: 100%; height: 100%; object-fit: cover; }
.photo-mosaic__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 84px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15,20,82,.35);
	color: var(--white);
	border: 0;
	cursor: pointer;
	font-size: 32px;
	line-height: 1;
	transition: background-color .2s ease;
	z-index: 2;
}
.photo-mosaic__arrow:hover { background: rgba(15,20,82,.6); }
.photo-mosaic__arrow--prev { left: 0; }
.photo-mosaic__arrow--next { right: 0; }
.photo-mosaic__dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 2;
}
.photo-mosaic__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.5);
	cursor: pointer;
}
.photo-mosaic__dot.is-active { background: var(--white); }
@media (max-width: 780px) {
	.photo-mosaic__carousel { aspect-ratio: 4 / 5; }
	.photo-mosaic__arrow { width: 40px; height: 60px; font-size: 24px; }
}

/* ===========================================================
   Block: profile-cards
   =========================================================== */
.profile-cards { padding: 32px 0; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.profile-cards__intro { max-width: 780px; margin-bottom: 24px; }
.profile-cards__grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.profile-cards.layout-grid-2 .profile-cards__grid { grid-template-columns: repeat(2, 1fr); }
.profile-cards.layout-stacked .profile-cards__grid { grid-template-columns: 1fr; max-width: 780px; }
.profile-card {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	background: var(--white);
}
.profile-card__photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; aspect-ratio: 1; }
.profile-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card__role { color: var(--red); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.profile-card__bio { font-size: 15px; color: var(--muted); }
.profile-card__link { font-size: 14px; margin: 4px 0; }
@media (max-width: 900px) {
	.profile-cards__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.profile-cards__grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   Footer — matches the live site: white address/social row,
   then a bordered badge bar (logo + DfE/BSO accreditation),
   then a centered copyright line. No boxed column — full width
   with the standard site gutter, same as the rest of the site.
   =========================================================== */
.footer { background: var(--white); color: var(--ink); margin-top: 60px; }
.footer__top {
	padding: 32px var(--gutter);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: start;
}
.footer__name { color: var(--navy); font-weight: 700; font-family: var(--display); font-size: 18px; margin-bottom: 8px; }
.footer__brand p { margin: 0 0 4px; font-size: 16px; color: var(--blue); }
/* Scoped deliberately to brand/list text only — NOT .footer__social-link,
   so the social icons' own (color: white) rule isn't beaten on specificity
   by a broader ".footer__top a" selector. */
.footer__brand a, .footer__list a { color: var(--blue); }
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer__list a { font-size: 16px; }
.footer__social { display: flex; gap: 10px; align-self: start; }
.footer__social-link {
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 4px;
	background: var(--ink);
	color: var(--white);
}
.footer__social-link:hover { background: var(--red); }
.footer__badge-bar { padding: 24px var(--gutter); display: flex; justify-content: center; }
.footer__badge-bar img { max-height: 90px; width: auto; margin: 0; }
.footer__bar {
	padding: 18px var(--gutter) 32px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--blue);
	text-align: center;
}
.footer__bar a { color: var(--blue); }
@media (max-width: 780px) {
	.footer__top { grid-template-columns: 1fr; }
	.footer__social { justify-content: flex-start; }
}

/* Floating back-to-top button — fixed bottom-right, fades in once the
   page has scrolled a bit. Replaces the old inline footer-row button,
   which was too subtle to notice. */
.back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--navy-deep);
	color: var(--white);
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
	z-index: 90;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy); }

/* Add brand-specific block styles below this line. */
