/*
Theme Name: HUFTM
Theme URI: https://huftm.com
Author: dijitul
Author URI: https://dijitul.uk
Description: Bespoke theme for the Hucknall Flight Test Museum. Built for volunteers to edit: pages use standard WordPress blocks, and the flash banner, events and booking requests are managed from the dashboard.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: huftm
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--navy: #0a1a3f;
	--navy-2: #102652;
	--navy-3: #1a3470;
	--ink: #050b1c;
	--sky: #5cc8f2;
	--sky-soft: #bfe8f8;
	--sky-deep: #1e8fd0;
	--red: #ff3d1f;
	--red-dark: #d92a0e;
	--amber: #ffb81c;
	--paper: #f3efe6;
	--paper-2: #e8e1d2;
	--white: #ffffff;
	--text: #111827;
	--muted: #5b6475;
	--line: rgba(10, 26, 63, 0.12);

	--font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
	--font-stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", Impact, sans-serif;
	--font-body: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--radius: 4px;
	--radius-lg: 10px;
	--gutter: clamp(16px, 4vw, 40px);
	--wide: 1240px;
	--content: 760px;
	--header-h: 84px;
	--shadow: 0 18px 40px -18px rgba(5, 11, 28, 0.45);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	margin: 0 0 .5em;
	color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--amber); color: var(--ink); padding: 12px 18px; font-weight: 700;
}
.wrap { width: 100%; max-width: calc(var(--wide) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-family: var(--font-display); font-weight: 700; font-size: .95rem;
	letter-spacing: .18em; text-transform: uppercase; color: var(--sky-deep);
	margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--sky); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn, .wp-block-button__link, .huftm-form button[type=submit] {
	--b: var(--red);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .7em 1.35em;
	font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
	letter-spacing: .06em; text-transform: uppercase; line-height: 1;
	color: var(--white); background: var(--b); border: 2px solid var(--b);
	border-radius: var(--radius); text-decoration: none; cursor: pointer;
	transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover, .wp-block-button__link:hover, .huftm-form button[type=submit]:hover {
	color: var(--white); background: var(--red-dark); border-color: var(--red-dark);
	transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(255, 61, 31, .7);
}
.btn { white-space: nowrap; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--ghost, .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--navy); border-color: currentColor;
}
.btn--ghost:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: none; }
.on-dark .btn--ghost, .on-dark .wp-block-button.is-style-outline .wp-block-button__link { color: var(--white); }
.on-dark .btn--ghost:hover, .on-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--sky, .wp-block-button.is-style-sky .wp-block-button__link { --b: var(--sky); color: var(--ink); }
.btn--sky:hover, .wp-block-button.is-style-sky .wp-block-button__link:hover { background: var(--white); border-color: var(--white); color: var(--ink); box-shadow: none; }
.btn--sm { min-height: 40px; font-size: 1rem; padding: .55em 1em; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }

/* ==========================================================================
   Flash banner
   ========================================================================== */
.flash {
	position: relative; z-index: 60;
	background: var(--sky); color: var(--ink);
	font-weight: 600; font-size: .98rem; line-height: 1.35;
}
.flash--urgent { background: var(--red); color: var(--white); }
.flash--notice { background: var(--amber); color: var(--ink); }
.flash__inner { display: flex; align-items: center; gap: 14px; min-height: 48px; padding-top: 8px; padding-bottom: 8px; }
.flash__tag {
	flex: none; font-family: var(--font-stencil); font-weight: 800; font-size: 1.05rem;
	letter-spacing: .12em; text-transform: uppercase;
	background: var(--ink); color: var(--sky); padding: 3px 9px 2px; border-radius: 2px;
}
.flash--urgent .flash__tag { color: var(--white); }
.flash--notice .flash__tag { color: var(--amber); }
.flash__msg { flex: 1; margin: 0; }
.flash__msg a, .flash__link { color: inherit; font-weight: 700; }
.flash__link { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.flash__close {
	flex: none; width: 36px; height: 36px; display: grid; place-items: center;
	background: transparent; border: 0; color: inherit; cursor: pointer; border-radius: 50%;
}
.flash__close:hover { background: rgba(0, 0, 0, .1); }
.flash__close svg { width: 18px; height: 18px; }
.flash.is-hidden { display: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--navy); color: var(--white);
	transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); background: var(--navy); }
/* Blur only on desktop: backdrop-filter makes the header the containing block for the fixed mobile menu. */
@media (min-width: 1025px) { .site-header.is-scrolled { background: rgba(10, 26, 63, .97); backdrop-filter: blur(8px); } }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); min-width: 0; }
.brand:hover { color: var(--white); }
.brand__mark { width: 74px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: translateY(-4px); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
	font-family: var(--font-display); font-weight: 800; color: var(--sky);
	font-size: clamp(1.15rem, 2.2vw, 1.65rem); line-height: .95; letter-spacing: .01em; text-transform: uppercase;
}
.brand__tag { font-size: .8rem; color: rgba(255, 255, 255, .78); margin-top: 4px; line-height: 1.2; }
.site-header .brand__tag { font-size: .7rem; white-space: nowrap; letter-spacing: .01em; }
.nav-primary { margin-left: auto; }
.nav-primary > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-primary li { position: relative; }
.nav-primary a {
	display: flex; align-items: center; gap: 6px; padding: 10px 12px;
	font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: .06em;
	text-transform: uppercase; color: var(--white); text-decoration: none; border-radius: var(--radius); white-space: nowrap;
}
.nav-primary a:hover, .nav-primary .current-menu-item > a, .nav-primary .current-menu-ancestor > a, .nav-primary .current_page_parent > a { color: var(--sky); }
.nav-primary .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px); opacity: .7;
}
.nav-primary .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
	list-style: none; margin: 0; padding: 10px;
	background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--ease);
}
.nav-primary .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-primary li:hover > .sub-menu, .nav-primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-primary .sub-menu a { color: var(--navy); font-size: 1.05rem; padding: 9px 12px; }
.nav-primary .sub-menu a:hover { background: var(--paper); color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 1025px) { .header-actions { margin-left: 0; } }
.header-actions .btn--donate { --b: transparent; border-color: rgba(255, 255, 255, .35); color: var(--white); }
.header-actions .btn--donate:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); box-shadow: none; }
.menu-toggle {
	display: none; width: 48px; height: 48px; border: 0; border-radius: var(--radius);
	background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
	display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: .25s var(--ease);
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1500px) { .site-header .brand__tag { display: none; } }
@media (min-width: 1281px) { .site-header .brand__name { white-space: nowrap; } }
@media (max-width: 1280px) and (min-width: 1025px) { .site-header .brand__name { white-space: normal; max-width: 190px; } }
@media (max-width: 1180px) {
	.nav-primary a { padding: 10px 8px; font-size: 1.02rem; }
	.header-actions .btn--donate { display: none; }
}
@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.menu-toggle { display: grid; }
	.brand__mark { width: 58px; }
	.header-actions .btn--book .long { display: none; }
	.nav-primary {
		position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 49;
		background: var(--navy); overflow-y: auto; overscroll-behavior: contain;
		padding: 18px var(--gutter) 120px;
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s var(--ease);
	}
	.nav-open .nav-primary { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.nav-primary > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-primary > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.nav-primary > ul > li > a { font-size: 1.7rem; padding: 16px 52px 16px 0; }
	.nav-primary .menu-item-has-children > a::after { display: none; }
	.nav-primary .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		background: transparent; padding: 0 0 12px 14px; display: none; border-left: 2px solid var(--sky);
		margin-left: 2px; border-radius: 0;
	}
	.nav-primary .sub-open > .sub-menu { display: block; }
	.nav-primary .sub-menu a { color: rgba(255, 255, 255, .85); font-size: 1.25rem; }
	.nav-primary .sub-menu a:hover { background: transparent; color: var(--sky); }
	.sub-toggle {
		position: absolute; right: 0; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%;
		background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; display: grid; place-items: center;
	}
	.sub-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
	.sub-open > .sub-toggle svg { transform: rotate(180deg); }
	.nav-mobile-extra { display: grid !important; gap: 12px; margin-top: 28px; }
	.nav-mobile-extra .btn { width: 100%; min-height: 56px; font-size: 1.3rem; }
	.nav-mobile-extra .status-chip { justify-self: start; }
}
@media (min-width: 1025px) { .sub-toggle { display: none; } }
@media (max-width: 560px) {
	.brand__tag { display: none; }
	.brand__name { font-size: 1.1rem; max-width: 150px; }
	.header-inner { gap: 10px; }
	.header-actions .btn--book { padding: .6em .8em; font-size: 1rem; }
}
.nav-mobile-extra { display: none; }

/* Status chip */
.status-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
	border-radius: 100px; font-weight: 600; font-size: .9rem; line-height: 1.2;
	background: rgba(255, 255, 255, .1); color: var(--white); border: 1px solid rgba(255, 255, 255, .18);
}
.status-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa3b5; flex: none; }
.status-chip.is-open::before { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: pulse 2s infinite; }
.status-chip.is-soon::before { background: var(--amber); }
.status-chip.is-closed::before { background: var(--red); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(88svh, 860px); display: flex; align-items: flex-end;
	background: var(--ink); color: var(--white);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
	width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.9);
	transform: scale(1.12); transform-origin: var(--origin, 60% 40%);
}
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(5, 11, 28, .92) 0%, rgba(5, 11, 28, .55) 45%, rgba(5, 11, 28, .1) 75%),
		linear-gradient(0deg, rgba(5, 11, 28, .95) 0%, rgba(5, 11, 28, 0) 45%);
}
.hero::after { /* film grain */
	content: ""; position: absolute; inset: -50%; z-index: -1; opacity: .09; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
.hero__content { position: relative; width: 100%; padding-top: 110px; padding-bottom: 36px; }
.hero__kicker { margin-bottom: 18px; }
.hero__title {
	font-family: var(--font-stencil); font-weight: 900; color: var(--white);
	font-size: clamp(3.1rem, 9.5vw, 8rem); line-height: .86; letter-spacing: .01em;
	max-width: 11ch; margin: 0 0 22px; text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--sky); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero__lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 40rem; color: rgba(255, 255, 255, .88); margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn { min-height: 56px; font-size: 1.3rem; padding: .7em 1.4em; }
.hero__foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.hero__facts li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hero__facts svg { width: 20px; height: 20px; color: var(--sky); flex: none; }
.hero__caption { font-size: .85rem; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: 12px; }
.hero__dots { display: flex; gap: 6px; }
.hero__dots button { width: 26px; height: 4px; padding: 0; border: 0; background: rgba(255, 255, 255, .3); cursor: pointer; border-radius: 2px; }
.hero__dots button.is-active { background: var(--sky); }
.hero__caption { flex: 0 1 500px; min-width: 0; justify-content: flex-end; }
@media (min-width: 901px) {
	.hero__caption {
		position: absolute; right: var(--gutter); bottom: 118px; width: min(420px, 40vw);
		flex-direction: column; align-items: flex-end; gap: 10px; text-align: right;
	}
	.hero__caption-text { flex: none; max-width: 100%; order: -1; font-size: .9rem; color: rgba(255, 255, 255, .8); }
	.hero__caption-text::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--sky); vertical-align: middle; margin-right: 8px; }
}
.hero__caption-text { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
	.hero { min-height: auto; }
	.hero::before { background: linear-gradient(0deg, rgba(5, 11, 28, .97) 10%, rgba(5, 11, 28, .45) 70%, rgba(5, 11, 28, .3)); }
	.hero__content { padding-top: 18vh; padding-bottom: 28px; }
	.hero__kicker { margin-bottom: 12px; font-size: .85rem; }
	.hero__title { margin-bottom: 16px; }
	.hero__lede { margin-bottom: 22px; }
	.hero__foot { margin-top: 28px; }
	.hero__ctas .btn { flex: 1 1 100%; }
	.hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; font-size: .95rem; }
	.hero__caption { display: none; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--navy { background: var(--navy); color: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }
.section--paper { background: var(--paper); }
.section--navy h2, .section--ink h2, .section--navy h3, .section--ink h3, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head p { max-width: 44ch; margin: 0; color: var(--muted); }
.section--navy .section-head p, .section--ink .section-head p { color: rgba(255, 255, 255, .75); }
.paper-texture {
	background-color: var(--paper);
	background-image: radial-gradient(rgba(10, 26, 63, .06) 1px, transparent 1px);
	background-size: 18px 18px;
}

/* Quick links */
.quicklinks { margin-top: -1px; background: var(--navy); padding-bottom: clamp(48px, 7vw, 90px); }
.quicklinks__grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.qcard {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px;
	overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); padding: 22px;
	color: var(--white); text-decoration: none; background: var(--navy-2);
}
.qcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.9); transition: transform .8s var(--ease), filter .6s; }
.qcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 11, 28, .92) 5%, rgba(5, 11, 28, .15) 70%); }
.qcard:hover { color: var(--white); }
.qcard:hover img { transform: scale(1.07); filter: grayscale(0); }
.qcard__num { position: absolute; top: 18px; left: 22px; font-family: var(--font-stencil); font-size: 1.1rem; color: var(--sky); letter-spacing: .1em; }
.qcard h3 { color: var(--white); font-size: 1.9rem; margin: 0 0 6px; }
.qcard p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .98rem; line-height: 1.4; }
.qcard__arrow { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transform: rotate(-45deg); transition: transform .3s var(--ease); }
.qcard:hover .qcard__arrow { transform: rotate(0); }
.qcard__arrow svg { width: 18px; height: 18px; }
@media (max-width: 1000px) { .quicklinks__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
	.quicklinks__grid { grid-template-columns: 1fr; }
	.qcard { min-height: 170px; }
}

/* Museum intro */
.intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.intro-media { position: relative; }
.intro-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.intro-media__tag {
	position: absolute; left: -14px; bottom: 26px; background: var(--red); color: var(--white);
	font-family: var(--font-stencil); font-size: 1.3rem; letter-spacing: .08em; padding: 8px 16px; border-radius: 2px;
	box-shadow: var(--shadow);
}
.intro-media__inset { position: absolute; right: -18px; top: -26px; width: 42%; border: 6px solid var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); transform: rotate(3deg); }
.intro-media__inset img { aspect-ratio: 4/3; box-shadow: none; border-radius: 4px; }
.intro-copy .entry-content > *:first-child { margin-top: 0; }
@media (max-width: 900px) {
	.intro-grid { grid-template-columns: 1fr; }
	.intro-media__inset { right: 8px; }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: clamp(48px, 6vw, 80px); }
.stat { background: var(--white); padding: 26px 22px; }
.stat__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--navy); }
.stat__num small { font-size: .45em; color: var(--sky-deep); margin-left: 2px; }
.stat__label { margin-top: 8px; color: var(--muted); font-weight: 500; line-height: 1.35; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Timeline scroller */
.timeline { position: relative; }
.timeline__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 360px); gap: 18px;
	overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 30px; margin: 0 calc(var(--gutter) * -1);
	scrollbar-width: thin; scrollbar-color: var(--sky) transparent; cursor: grab;
	scroll-padding-inline: var(--gutter);
}
@media (max-width: 600px) {
	.timeline__track { grid-auto-columns: 82vw; gap: 16px; }
	.tl-item__year { font-size: 3.4rem; }
	.tl-item h3, .tl-item p { padding-right: 6px; }
}
.timeline__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.timeline__track::-webkit-scrollbar { height: 6px; }
.timeline__track::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 3px; }
.tl-item { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; user-select: none; }
.tl-item__year {
	font-family: var(--font-stencil); font-weight: 900; font-size: 4.2rem; line-height: .9; color: transparent;
	-webkit-text-stroke: 1.5px var(--sky); margin-bottom: 12px; padding-top: 22px; position: relative;
}
.tl-item__year::before { content: ""; position: absolute; top: 0; left: 0; right: -18px; height: 2px; background: rgba(92, 200, 242, .35); }
.tl-item__year::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.tl-item figure { margin: 0 0 14px; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16/10; background: var(--navy-2); }
.tl-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .8s var(--ease), filter .6s; pointer-events: none; }
.tl-item:hover img { transform: scale(1.05); filter: grayscale(.2); }
.tl-item h3 { color: var(--white); font-size: 1.45rem; margin: 0 0 6px; }
.tl-item p { color: rgba(255, 255, 255, .74); font-size: .98rem; line-height: 1.5; margin: 0; }
.timeline__nav { display: flex; gap: 10px; }
.timeline__nav button {
	width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3);
	background: transparent; color: var(--white); cursor: pointer; display: grid; place-items: center; transition: .2s;
}
.timeline__nav button:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.timeline__nav svg { width: 20px; height: 20px; }

/* Bedstead feature */
.bedstead {
	overflow: hidden; isolation: isolate;
	background: radial-gradient(ellipse at 70% 60%, #1c3d80 0%, var(--navy) 45%, var(--ink) 100%);
}
.bedstead::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: linear-gradient(rgba(92, 200, 242, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 200, 242, .08) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at 70% 55%, #000 20%, transparent 70%);
}
.bedstead__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.bedstead__date { font-family: var(--font-stencil); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--red); letter-spacing: .08em; }
.bedstead h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.bedstead p { color: rgba(255, 255, 255, .82); }
.bedstead__rig { position: relative; padding: 20px 0 60px; }
.bedstead__rig img { width: 100%; max-width: 640px; margin: 0 auto; animation: hover 5s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .5)); }
.bedstead__rig::after { /* jet wash */
	content: ""; position: absolute; left: 20%; right: 20%; bottom: 10px; height: 60px; border-radius: 50%;
	background: radial-gradient(ellipse, rgba(92, 200, 242, .45), transparent 70%); filter: blur(8px);
	animation: wash 5s ease-in-out infinite;
}
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-22px) rotate(.6deg); } }
@keyframes wash { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.8); opacity: .5; } }
.bedstead__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 30px; }
.bedstead__facts div { border-top: 2px solid var(--sky); padding-top: 10px; }
.bedstead__facts strong { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--white); }
.bedstead__facts span { font-size: .9rem; color: rgba(255, 255, 255, .7); line-height: 1.3; display: block; margin-top: 4px; }
@media (max-width: 900px) {
	.bedstead__grid { grid-template-columns: 1fr; }
	.bedstead__rig { order: -1; padding-bottom: 40px; }
}

/* Events */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ecard {
	display: grid; grid-template-columns: 86px 1fr; gap: 18px; padding: 22px; background: var(--white);
	border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--text);
	transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.ecard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.ecard__date { background: var(--navy); color: var(--white); border-radius: var(--radius); text-align: center; padding: 10px 6px; align-self: start; }
.ecard__date .d { display: block; font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; line-height: 1; }
.ecard__date .m { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.ecard__date .w { display: block; font-size: .78rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.ecard__type { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.ecard h3 { font-size: 1.5rem; margin: 4px 0 6px; }
.ecard p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.45; }
.ecard.is-past { opacity: .6; }
.ecard.is-past .ecard__date { background: var(--muted); }
.events-empty { padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius-lg); text-align: center; color: var(--muted); }
@media (max-width: 1000px) { .events-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .events-grid { grid-template-columns: 1fr; } }

/* Quotes marquee */
.quotes { overflow: hidden; padding: 38px 0; background: var(--sky); color: var(--ink); }
.quotes__track { display: flex; gap: 60px; width: max-content; animation: marquee 50s linear infinite; }
.quotes:hover .quotes__track { animation-play-state: paused; }
.quotes figure { margin: 0; display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.quotes blockquote { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; line-height: 1; }
.quotes figcaption { font-weight: 600; font-size: .95rem; opacity: .7; }
.quotes figure::after { content: "\2708"; margin-left: 46px; font-size: 1.4rem; color: var(--navy); transform: rotate(-20deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
	.quotes { padding: 30px 0 22px; }
	.quotes__track {
		animation: none; width: auto; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
		scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.quotes__track::-webkit-scrollbar { display: none; }
	.quotes figure[aria-hidden] { display: none; }
	.quotes figure {
		flex: 0 0 100%; scroll-snap-align: center; white-space: normal; flex-direction: column;
		align-items: center; text-align: center; gap: 8px; padding: 0 var(--gutter);
	}
	.quotes blockquote { font-size: 1.75rem; line-height: 1.05; }
	.quotes figure::after { display: none; }
	.quotes__dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
	.quotes__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(5, 11, 28, .25); transition: .2s; }
	.quotes__dots span.is-active { background: var(--navy); width: 20px; border-radius: 4px; }
}
@media (min-width: 701px) { .quotes__dots { display: none; } }

/* Support split */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scard { position: relative; border-radius: var(--radius-lg); padding: 30px; overflow: hidden; isolation: isolate; min-height: 380px; display: flex; flex-direction: column; }
.scard h3 { font-size: 2.1rem; }
.scard p { max-width: 30ch; }
.scard .btn { margin-top: auto; align-self: flex-start; }
.scard--donate { background: var(--red); color: var(--white); }
.scard--donate h3 { color: var(--white); }
.scard--donate .btn { --b: var(--ink); }
.scard--donate .btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.scard--donate img { position: absolute; right: -24px; bottom: -10px; width: 46%; max-width: 210px; z-index: -1; transition: transform .5s var(--ease); }
.scard--donate:hover img { transform: translateY(-8px) rotate(-3deg); }
.scard--volunteer { background: var(--paper-2); }
.scard--volunteer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: -2; }
.scard--volunteer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(243, 239, 230, .95) 30%, rgba(243, 239, 230, .2) 100%); }
.scard--giftaid { background: var(--navy); color: var(--white); }
.scard--giftaid h3 { color: var(--white); }
.scard--giftaid .big { font-family: var(--font-display); font-weight: 900; font-size: 5rem; line-height: .9; color: var(--sky); }
@media (max-width: 1000px) { .support-grid { grid-template-columns: 1fr; } .scard { min-height: 300px; } .scard--donate img { width: 36%; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--white); padding: clamp(70px, 10vw, 130px) 0; text-align: center; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) brightness(.5); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 26, 63, .9), rgba(10, 26, 63, .55)); }
.cta-band h2 { color: var(--white); font-family: var(--font-stencil); font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 14ch; margin: 0 auto .35em; }
.cta-band p { max-width: 40rem; margin: 0 auto 28px; color: rgba(255, 255, 255, .85); font-size: 1.15rem; }
.cta-band .hero__ctas { justify-content: center; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); padding: clamp(56px, 8vw, 110px) 0 clamp(44px, 6vw, 80px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); opacity: .5; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 20%, rgba(10, 26, 63, .6) 70%, rgba(10, 26, 63, .35)); }
.page-hero h1 { color: var(--white); max-width: 14ch; margin-bottom: .3em; }
.page-hero__intro { font-size: clamp(1.1rem, 1.7vw, 1.35rem); max-width: 42rem; color: rgba(255, 255, 255, .88); margin: 0; }
.crumbs { font-size: .88rem; margin-bottom: 18px; color: rgba(255, 255, 255, .7); }
.crumbs a { color: var(--sky); text-decoration: none; }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: .5; }
.page-body { padding: clamp(48px, 7vw, 96px) 0; }

/* Block content */
.entry-content { font-size: 1.1rem; }
.entry-content > * { margin-top: 0; margin-bottom: 1.25rem; }
.entry-content > h2, .entry-content > .wp-block-heading { margin-top: 2.4rem; }
.entry-content h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.entry-content h3 { margin-top: 1.8rem; }
.entry-content .lead, .entry-content p.is-style-lead { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; color: var(--navy); font-weight: 500; }
.entry-content ul.wp-block-list, .entry-content ol.wp-block-list { padding-left: 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul.is-style-checklist { list-style: none; padding: 0; }
.entry-content ul.is-style-checklist li { position: relative; padding-left: 34px; }
.entry-content ul.is-style-checklist li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050b1c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content .wp-block-image img { border-radius: var(--radius-lg); }
.entry-content .wp-block-image.is-style-archive img { filter: grayscale(1) contrast(1.05); border: 8px solid var(--white); box-shadow: var(--shadow); border-radius: 2px; }
.wp-element-caption, .entry-content figcaption { font-size: .9rem; color: var(--muted); margin-top: .6em; text-align: left; }
.entry-content .wp-block-columns { gap: clamp(24px, 4vw, 56px); margin-bottom: 2rem; }
.entry-content .wp-block-column > *:first-child { margin-top: 0; }
.entry-content .wp-block-quote, .entry-content .wp-block-pullquote {
	border: 0; border-left: 5px solid var(--red); padding: .4em 0 .4em 1.2em; margin-left: 0;
	font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; color: var(--navy);
}
.entry-content .wp-block-quote p { margin-bottom: .3em; }
.entry-content .wp-block-quote cite { font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-transform: none; color: var(--muted); font-style: normal; }
.entry-content .alignfull { width: 100vw; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; }
.entry-content .alignwide { max-width: var(--wide) !important; }

/* Group styles (registered as block styles so volunteers can pick them) */
.wp-block-group.is-style-panel-navy, .wp-block-group.is-style-panel-paper, .wp-block-group.is-style-card, .wp-block-group.is-style-panel-sky {
	padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg);
}
.wp-block-group.is-style-panel-navy { background: var(--navy); color: var(--white); }
.wp-block-group.is-style-panel-navy h2, .wp-block-group.is-style-panel-navy h3 { color: var(--white); }
.wp-block-group.is-style-panel-navy a:not(.wp-block-button__link) { color: var(--sky); }
.wp-block-group.is-style-panel-navy .wp-block-button.is-style-outline .wp-block-button__link { color: var(--white); }
.wp-block-group.is-style-panel-paper { background: var(--paper); }
.wp-block-group.is-style-panel-sky { background: var(--sky-soft); }
.wp-block-group.is-style-card { background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 30px -20px rgba(5, 11, 28, .4); }
.wp-block-group.is-style-panel-navy > *:last-child, .wp-block-group.is-style-panel-paper > *:last-child, .wp-block-group.is-style-card > *:last-child, .wp-block-group.is-style-panel-sky > *:last-child { margin-bottom: 0; }
.wp-block-group.is-style-panel-navy > *:first-child, .wp-block-group.is-style-panel-paper > *:first-child, .wp-block-group.is-style-card > *:first-child, .wp-block-group.is-style-panel-sky > *:first-child { margin-top: 0; }
.wp-block-group.is-style-callout { border-left: 6px solid var(--red); background: #fff4f1; padding: 22px 26px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.wp-block-group.is-style-callout > *:last-child { margin-bottom: 0; }

/* Details / FAQ */
.entry-content .wp-block-details {
	border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
	margin-bottom: 10px; padding: 0; transition: box-shadow .2s, border-color .2s;
}
.entry-content .wp-block-details[open] { border-color: var(--sky); box-shadow: 0 10px 30px -22px rgba(5, 11, 28, .5); }
.entry-content .wp-block-details summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 18px 60px 18px 22px; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
	text-transform: uppercase; color: var(--navy); line-height: 1.15;
}
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after {
	content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
	width: 32px; height: 32px; border-radius: 50%; background: var(--paper); color: var(--navy);
	display: grid; place-items: center; font-family: var(--font-body); font-size: 1.4rem; font-weight: 500; line-height: 1;
	transition: transform .2s, background .2s;
}
.entry-content .wp-block-details[open] summary::after { content: "\2212"; background: var(--sky); }
.entry-content .wp-block-details > *:not(summary) { padding: 0 22px; }
.entry-content .wp-block-details > *:last-child { padding-bottom: 18px; margin-bottom: 0; }

/* Info grid + opening card */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 2rem; }
.info-card { background: var(--paper); border-radius: var(--radius-lg); padding: 22px; }
.info-card h3 { font-size: 1.3rem; margin: 10px 0 6px; }
.info-card p { margin: 0; font-size: 1rem; line-height: 1.5; }
.info-card__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--sky); display: grid; place-items: center; }
.info-card__icon svg { width: 22px; height: 22px; }
.opening {
	display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 1rem 0 1.5rem; max-width: 560px;
}
.opening div { text-align: center; padding: 12px 4px; border-radius: var(--radius); background: var(--paper); font-weight: 700; font-size: .9rem; color: var(--muted); }
.opening div.is-open { background: var(--navy); color: var(--white); }
.opening div.is-open small { color: var(--sky); }
.opening small { display: block; font-weight: 500; font-size: .75rem; margin-top: 2px; }
.map-embed { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--paper); box-shadow: var(--shadow); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.w3w { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: var(--radius); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.w3w b { color: #e11f26; font-size: 1.3rem; }
.w3w:hover { color: var(--sky); }

/* ==========================================================================
   Forms
   ========================================================================== */
.huftm-form { display: grid; gap: 18px; }
.huftm-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.huftm-form legend { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.huftm-form legend .step { width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--ink); display: inline-grid; place-items: center; font-size: 1.1rem; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: grid; gap: 6px; align-content: start; }
.huftm-form button[type=submit] svg { width: 1.2em; height: 1.2em; flex: none; }
.huftm-form button[type=submit] { white-space: nowrap; min-height: 56px; font-size: 1.25rem; }
.field label, .field .label { font-weight: 600; font-size: .98rem; color: var(--navy); }
.field .hint { font-size: .88rem; color: var(--muted); margin: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=number], .field select, .field textarea {
	width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1.05rem; color: var(--text);
	background: var(--white); border: 2px solid #cfd5e2; border-radius: var(--radius);
	transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky-deep); box-shadow: 0 0 0 4px rgba(92, 200, 242, .3); }
.field input[aria-invalid=true], .field select[aria-invalid=true] { border-color: var(--red); }
.field .error-msg { color: var(--red-dark); font-size: .9rem; font-weight: 600; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
	display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 2px solid #cfd5e2; border-radius: var(--radius);
	font-weight: 700; color: var(--navy); background: var(--white); transition: .15s; line-height: 1.25;
}
.choice span small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.choice input:checked + span small { color: var(--sky); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(92, 200, 242, .5); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.counter { display: flex; align-items: center; border: 2px solid #cfd5e2; border-radius: var(--radius); background: var(--white); overflow: hidden; }
.counter button { width: 48px; height: 48px; border: 0; background: var(--paper); font-size: 1.4rem; color: var(--navy); cursor: pointer; flex: none; }
.counter button:hover { background: var(--sky); }
.counter input { border: 0 !important; text-align: center; min-height: 48px !important; box-shadow: none !important; -moz-appearance: textfield; font-weight: 700; }
.counter input::-webkit-outer-spin-button, .counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.donation-estimate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--paper); border-radius: var(--radius-lg); padding: 16px 20px; }
.donation-estimate strong { font-family: var(--font-display); font-size: 2rem; color: var(--navy); line-height: 1; }
.donation-estimate p { margin: 0; font-size: .92rem; color: var(--muted); max-width: 40ch; }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-notice { padding: 18px 22px; border-radius: var(--radius-lg); font-weight: 600; margin-bottom: 20px; }
.form-notice--ok { background: #e3f7ec; color: #0c5a31; border-left: 6px solid #1f9d57; }
.form-notice--err { background: #fff0ec; color: #8a1b08; border-left: 6px solid var(--red); }
.form-notice h3 { color: inherit; margin: 0 0 6px; font-size: 1.5rem; }
.form-notice p { margin: 0; font-weight: 500; }
.booking-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.booking-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
@media (max-width: 960px) { .booking-layout { grid-template-columns: 1fr; } .booking-aside { position: static; } }
.date-feedback { font-size: .9rem; font-weight: 600; }
.date-feedback.ok { color: #1f7a45; }
.date-feedback.bad { color: var(--red-dark); }

/* ==========================================================================
   Flying Bedstead (QR landing page)
   ========================================================================== */
.fb-hero {
	position: relative; overflow: hidden; isolation: isolate; color: var(--white); text-align: center;
	background: radial-gradient(ellipse at 50% 70%, #1c3d80 0%, var(--navy) 45%, var(--ink) 100%);
	padding: clamp(40px, 7vw, 90px) 0 0;
}
.fb-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: linear-gradient(rgba(92, 200, 242, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 200, 242, .09) 1px, transparent 1px);
	background-size: 40px 40px; mask-image: radial-gradient(ellipse at 50% 60%, #000 25%, transparent 75%);
}
.fb-hero .qr-badge { display: inline-flex; gap: 8px; align-items: center; background: rgba(92, 200, 242, .15); border: 1px solid rgba(92, 200, 242, .4); color: var(--sky); padding: 6px 14px; border-radius: 100px; font-weight: 600; font-size: .9rem; margin-bottom: 18px; }
.fb-hero .qr-badge svg { width: 16px; height: 16px; }
.fb-hero h1 { color: var(--white); font-family: var(--font-stencil); font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: .85; margin: 0 auto .2em; max-width: 10ch; }
.fb-hero__sub { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 38rem; margin: 0 auto; color: rgba(255, 255, 255, .85); }
.fb-hero__rig { position: relative; max-width: 720px; margin: 30px auto 0; padding: 0 var(--gutter) 90px; }
.fb-hero__rig img { width: 100%; animation: hover 5s ease-in-out infinite; filter: drop-shadow(0 40px 30px rgba(0, 0, 0, .55)); }
.fb-hero__rig::after {
	content: ""; position: absolute; left: 25%; right: 25%; bottom: 40px; height: 70px; border-radius: 50%;
	background: radial-gradient(ellipse, rgba(92, 200, 242, .55), transparent 70%); filter: blur(10px); animation: wash 5s ease-in-out infinite;
}
.fb-pad { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(92%, 720px); height: 56px; background: repeating-linear-gradient(90deg, #7c3a24 0 38px, #5c2a19 38px 40px), #7c3a24; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); opacity: .85; }
.fb-pad::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 17px, #4a2114 17px 19px); }
.fb-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 16px var(--gutter); background: var(--ink); position: sticky; top: var(--header-h); z-index: 20; }
.fb-jump a { color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 8px 14px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .2); font-size: .98rem; }
.fb-jump a:hover { background: var(--sky); color: var(--ink); border-color: var(--sky); }
@media (max-width: 640px) { .fb-jump { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; } .fb-jump a { white-space: nowrap; } }
.fact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 2rem; }
.fact-strip div { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 18px; }
.fact-strip strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; line-height: 1; color: var(--sky); }
.fact-strip span { display: block; margin-top: 6px; font-size: .92rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }

/* Mini timeline list (inside content) */
.mini-timeline { list-style: none; padding: 0 !important; margin: 0 0 2rem; border-left: 3px solid var(--sky); }
.mini-timeline li { position: relative; padding: 0 0 18px 24px; margin: 0; }
.mini-timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--red); border: 3px solid var(--white); }
.mini-timeline strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); display: block; line-height: 1.1; }

/* Heritage long timeline */
.heritage-tl { display: grid; gap: clamp(40px, 6vw, 80px); }
.htl { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.htl:nth-child(even) .htl__media { order: 2; }
.htl__media img { width: 100%; border-radius: 2px; border: 8px solid var(--white); box-shadow: var(--shadow); filter: grayscale(1) contrast(1.05); aspect-ratio: 16/10; object-fit: cover; }
.htl__media figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.htl__year { font-family: var(--font-stencil); font-weight: 900; font-size: clamp(3.5rem, 8vw, 6rem); line-height: .85; color: var(--red); }
.htl h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 10px; }
@media (max-width: 800px) { .htl { grid-template-columns: 1fr; } .htl:nth-child(even) .htl__media { order: 0; } }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.pcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text); transition: .25s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.pcard img { aspect-ratio: 16/10; object-fit: cover; width: 100%; filter: grayscale(.4); }
.pcard__body { padding: 20px 22px 24px; }
.pcard time { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.pcard h2, .pcard h3 { font-size: 1.6rem; margin: 6px 0 8px; }
.pcard p { margin: 0; color: var(--muted); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: var(--paper); text-decoration: none; font-weight: 700; color: var(--navy); }
.pagination .current { background: var(--navy); color: var(--white); }

/* Event single */
.event-meta { display: grid; gap: 10px; margin: 0 0 28px; padding: 22px; background: var(--paper); border-radius: var(--radius-lg); }
.event-meta div { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.event-meta svg { width: 22px; height: 22px; color: var(--sky-deep); flex: none; }

/* ==========================================================================
   Footer (mobile-first accordions)
   ========================================================================== */
.site-footer { background: #000; color: rgba(255, 255, 255, .78); font-weight: 300; }
.footer-top { padding: clamp(48px, 7vw, 84px) 0 24px; }
.footer-grid { display: grid; gap: 0; }
.footer-brand { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand .brand__mark { width: 110px; margin-bottom: 14px; }
.footer-brand .brand__name { font-size: 1.8rem; }
.footer-brand p { margin: 12px 0 0; font-size: .98rem; line-height: 1.55; max-width: 34ch; }
.footer-contact { display: grid; gap: 10px; margin: 22px 0; }
.footer-contact a {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
	color: var(--white); text-decoration: none; font-weight: 500; font-size: 1.02rem; word-break: break-word;
}
.footer-contact a:hover { border-color: var(--sky); color: var(--sky); }
.footer-contact svg { width: 22px; height: 22px; color: var(--sky); flex: none; }
.footer-contact small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .1em; }
.social { display: flex; gap: 10px; }
.social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--white); }
.social a:hover { background: var(--sky); color: var(--ink); }
.social svg { width: 20px; height: 20px; }
.fcol { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fcol__toggle {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 60px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--white);
	font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; text-align: left;
}
.fcol__toggle svg { width: 20px; height: 20px; color: var(--sky); transition: transform .25s; }
.fcol__toggle[aria-expanded=true] svg { transform: rotate(45deg); }
.fcol__panel { display: none; padding: 0 0 18px; }
.fcol__panel.is-open { display: block; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fcol a { display: block; padding: 9px 0; color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 1.02rem; }
.fcol a:hover { color: var(--sky); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 30px; font-size: .88rem; color: rgba(255, 255, 255, .55); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.footer-bottom a { color: rgba(255, 255, 255, .75); }
.footer-bottom nav, .footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) {
	.footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
	.footer-brand { border: 0; padding: 0; margin: 0; }
	.fcol { border: 0; }
	.fcol__toggle { pointer-events: none; min-height: auto; margin-bottom: 14px; font-size: 1.2rem; }
	.fcol__toggle svg { display: none; }
	.fcol__panel { display: block !important; padding: 0; }
	.fcol a { padding: 5px 0; }
}

/* Sticky mobile book bar */
.mobile-bookbar { display: none; }
@media (max-width: 700px) {
	.mobile-bookbar {
		display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(5, 11, 28, .96); backdrop-filter: blur(6px);
		transform: translateY(110%); transition: transform .3s var(--ease);
	}
	.mobile-bookbar.is-visible { transform: none; }
	.mobile-bookbar .btn { flex: 1; min-height: 50px; }
	.mobile-bookbar .btn--ghost { flex: 0 0 auto; color: var(--white); }
	body.has-bookbar .site-footer { padding-bottom: 76px; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Cookie bar (only when GA4 configured) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; background: var(--white); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px 20px; display: none; }
.consent.is-visible { display: block; }
.consent p { margin: 0 0 12px; font-size: .95rem; }
.consent .btns { display: flex; gap: 10px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.hero__title .line > span { transform: none; }
	.reveal { opacity: 1; transform: none; }
	.quotes__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 20px 60px; }
	.quotes figure[aria-hidden] { display: none; }
}
