/* =============================================================================
   RPIA 2026 — design system
   -----------------------------------------------------------------------------
   The association's identity is the deep navy (#0F2750) carried over from the
   previous site, warmed with a cream ground and a restrained gold accent. The
   execution is modernised: fluid type, generous whitespace, a translucent
   sticky header, and motion that stays subtle enough for an audience that
   skews older.
   ============================================================================= */

/* ---------- tokens ---------- */
:root {
	/* Brand navy, anchored on the existing #0F2750. */
	--navy-900: #081527;
	--navy-800: #0b1d38;
	--navy-700: #0f2750; /* brand anchor, unchanged from the legacy site */
	--navy-600: #17386d;
	--navy-500: #23508f;

	/* Gold accent, refined from the legacy sand (#FDD79A).
	   --gold-600 is the text weight: it carries the small uppercase eyebrows, card
	   labels and role captions, so it has to clear 4.5:1 for small text. The first
	   value tried (#9a7b1f) measured 4.02:1 on white and failed; this reads 4.84:1
	   on white and 4.69:1 on the cream sections. */
	--gold-600: #8a6d17;
	--gold-500: #c8a951;
	--gold-300: #e4ce93;
	--gold-100: #f6edd5;

	--cream: #fbfaf6; /* carried over from the legacy palette */
	--white: #ffffff;

	--ink-900: #14181f;
	--ink-700: #333a47;
	--ink-500: #5b6678;
	--ink-300: #98a1b2;
	--ink-100: #e4e7ed;

	--surface: var(--white);
	--surface-sunken: var(--cream);

	/* Fluid type scale — clamp() keeps headings readable on phones without
	   needing a stack of breakpoints. */
	--step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
	--step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
	--step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
	--step-2: clamp(1.44rem, 1.3rem + 0.7vw, 1.94rem);
	--step-3: clamp(1.73rem, 1.5rem + 1.15vw, 2.58rem);
	--step-4: clamp(2.07rem, 1.72rem + 1.78vw, 3.44rem);
	--step-5: clamp(2.49rem, 1.94rem + 2.72vw, 4.58rem);

	--font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--measure: 68ch;
	--gutter: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
	--wrap: 1240px;
	--wrap-narrow: 860px;

	--radius: 4px;
	--radius-lg: 10px;

	--shadow-sm: 0 1px 2px rgb(8 21 39 / 0.06), 0 2px 8px rgb(8 21 39 / 0.04);
	--shadow-md: 0 4px 12px rgb(8 21 39 / 0.08), 0 12px 32px rgb(8 21 39 / 0.07);
	--shadow-lg: 0 8px 24px rgb(8 21 39 / 0.1), 0 24px 64px rgb(8 21 39 / 0.12);

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--header-h: 76px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
	/* Safety net against stray horizontal scroll. `clip` (unlike `hidden`) does
	   not turn the root into a scroll container, so position:sticky still works. */
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--surface);
	color: var(--ink-700);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	color: var(--navy-700);
	margin: 0 0 0.5em;
	letter-spacing: -0.015em;
	font-variation-settings: 'SOFT' 0, 'WONK' 0;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--navy-600);
	text-decoration-color: color-mix(in srgb, var(--navy-600) 35%, transparent);
	text-underline-offset: 0.18em;
	transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}

a:hover {
	color: var(--gold-600);
	text-decoration-color: currentColor;
}

:focus-visible {
	outline: 2px solid var(--gold-500);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- layout ---------- */
.wrap {
	width: min(100% - (var(--gutter) * 2), var(--wrap));
	margin-inline: auto;
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
	padding-block: clamp(3rem, 2rem + 5vw, 6.5rem);
}

.section--sunken { background: var(--surface-sunken); }

.section--navy {
	background: var(--navy-700);
	color: color-mix(in srgb, var(--white) 82%, transparent);
}

.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }

/*
 * Links on a dark surface must not inherit the default navy, which lands at a
 * 1.28:1 contrast ratio against this background -- effectively invisible.
 * Gold reads at roughly 9:1 here, comfortably past WCAG AA.
 */
.section--navy a {
	color: var(--gold-300);
	text-decoration-color: color-mix(in srgb, var(--gold-300) 45%, transparent);
}

.section--navy a:hover {
	color: var(--white);
	text-decoration-color: currentColor;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--navy-700);
	color: var(--white);
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
	left: 0;
	color: var(--white);
}

/* ---------- eyebrow / section heading ---------- */
.eyebrow {
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-600);
	margin: 0 0 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.eyebrow::after {
	content: '';
	flex: 1;
	height: 1px;
	background: color-mix(in srgb, var(--gold-500) 45%, transparent);
	max-width: 4rem;
}

.section--navy .eyebrow { color: var(--gold-300); }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 1.6rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	/* Keep short labels like "Pay Dues" on one line -- the header packs them
	   tightly against the nav and they wrap awkwardly around 1200-1400px. */
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
		color 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
	background: var(--navy-700);
	color: var(--white);
	box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
	background: var(--navy-600);
	color: var(--white);
	box-shadow: var(--shadow-md);
}

.btn--gold {
	background: var(--gold-500);
	color: var(--navy-900);
}

.btn--gold:hover {
	background: var(--gold-300);
	color: var(--navy-900);
}

.btn--ghost {
	border-color: color-mix(in srgb, var(--white) 45%, transparent);
	color: var(--white);
}

.btn--ghost:hover {
	background: var(--white);
	color: var(--navy-700);
	border-color: var(--white);
}

/* ---------- header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--white) 88%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
		background-color 0.25s var(--ease);
}

.site-header.is-stuck {
	border-bottom-color: var(--ink-100);
	box-shadow: var(--shadow-sm);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: var(--header-h);
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
	flex-shrink: 0;
}

.site-brand img { width: auto; height: 40px; }

.site-brand__text {
	display: none;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--navy-700);
	letter-spacing: -0.01em;
}

@media (min-width: 1360px) {
	.site-brand__text { display: block; }
}

/* ---------- navigation ---------- */
.nav__list {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list a {
	display: block;
	padding: 0.6rem 0.85rem;
	border-radius: var(--radius);
	font-size: var(--step--1);
	font-weight: 500;
	color: var(--ink-700);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current-menu-ancestor > a {
	color: var(--navy-700);
	background: color-mix(in srgb, var(--navy-700) 6%, transparent);
}

/* Dropdowns */
.nav__list li { position: relative; }

.nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 0.4rem);
	left: 0;
	min-width: 232px;
	list-style: none;
	margin: 0;
	padding: 0.4rem;
	background: var(--white);
	border: 1px solid var(--ink-100);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav__list .sub-menu a { padding: 0.6rem 0.75rem; }

/* The right-most items would push their dropdown past the viewport edge. */
.nav__list > li:last-child > .sub-menu,
.nav__list > li:nth-last-child(2) > .sub-menu {
	left: auto;
	right: 0;
}

.nav__has-children > a::after {
	content: '';
	display: inline-block;
	width: 0.4em;
	height: 0.4em;
	margin-left: 0.45em;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-0.15em) rotate(45deg);
	opacity: 0.55;
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Mobile toggle */
.nav-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 1px solid var(--ink-100);
	border-radius: var(--radius);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: '';
	display: block;
	width: 20px;
	height: 1.5px;
	background: var(--navy-700);
	transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(4.5px); }

.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: translateY(-1.5px) rotate(-45deg); }

/*
 * The full menu needs roughly 1200px alongside the wordmark and the Pay Dues
 * button. Below that it becomes the slide-in panel rather than overflowing.
 */
@media (min-width: 1200px) {
	.nav-toggle { display: none; }
}

@media (max-width: 1199px) {
	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		background: var(--white);
		padding: var(--gutter);
		overflow-y: auto;
		transform: translateX(100%);
		/*
		 * visibility keeps the parked panel out of the tab order and stops it
		 * contributing to the document's scrollable width while closed.
		 */
		visibility: hidden;
		transition: transform 0.28s var(--ease), visibility 0s linear 0.28s;
	}

	.site-nav.is-open {
		transform: translateX(0);
		visibility: visible;
		transition: transform 0.28s var(--ease), visibility 0s;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
	}

	.nav__list a {
		padding: 0.85rem 0.5rem;
		font-size: var(--step-0);
		border-bottom: 1px solid var(--ink-100);
		border-radius: 0;
	}

	.nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 1rem;
		min-width: 0;
	}

	.nav__has-children > a::after { display: none; }
}

/* ---------- hero ---------- */
.hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: clamp(340px, 52vh, 560px);
	padding-block: clamp(2.5rem, 2rem + 4vw, 5rem);
	isolation: isolate;
	background: var(--navy-800);
	overflow: hidden;
}

.hero--tall { min-height: clamp(480px, 78vh, 780px); }

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* A slow drift keeps the static photography from feeling like a flat banner. */
	animation: hero-drift 24s var(--ease) infinite alternate;
}

@keyframes hero-drift {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to { transform: scale(1.11) translate3d(0, -1.5%, 0); }
}

.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--navy-900) 30%, transparent) 0%,
		color-mix(in srgb, var(--navy-900) 55%, transparent) 55%,
		color-mix(in srgb, var(--navy-900) 88%, transparent) 100%
	);
}

.hero__content { color: var(--white); max-width: 46ch; }
.hero__content h1 { color: var(--white); text-wrap: balance; }

.hero__content p {
	font-size: var(--step-1);
	color: color-mix(in srgb, var(--white) 88%, transparent);
	margin-bottom: 1.75rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Page heroes are shorter and centre their title. */
.hero--page { min-height: clamp(260px, 34vh, 380px); }
.hero--page .hero__content { max-width: 60ch; }
.hero--page .hero__content h1 { font-size: var(--step-4); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
	font-size: var(--step--1);
	color: color-mix(in srgb, var(--white) 72%, transparent);
	margin-bottom: 0.85rem;
}

.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-300); }
.breadcrumbs span { opacity: 0.5; margin-inline: 0.45rem; }

/* ---------- cards ---------- */
.grid {
	display: grid;
	gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 226px), 1fr)); }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--ink-100);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
		border-color 0.25s var(--ease);
}

.card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--gold-500) 55%, transparent);
	box-shadow: var(--shadow-md);
}

.card__body { padding: 1.5rem; }
.card__body h3 { margin-bottom: 0.35rem; font-size: var(--step-1); }

.card__meta {
	font-size: var(--step--1);
	color: var(--gold-600);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Link cards cover the whole card without nesting interactive elements. */
.card__link::after {
	content: '';
	position: absolute;
	inset: 0;
}

/* ---------- person cards (board / staff) ---------- */
.person {
	text-align: center;
	background: var(--white);
	border: 1px solid var(--ink-100);
	border-radius: var(--radius-lg);
	padding: 1.5rem 1rem;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
		border-color 0.25s var(--ease);
}

.person:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--gold-500) 55%, transparent);
	box-shadow: var(--shadow-md);
}

.person__photo {
	width: 132px;
	height: 132px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--surface-sunken);
	box-shadow: 0 0 0 1px var(--ink-100), 0 0 0 6px var(--white),
		0 0 0 7px color-mix(in srgb, var(--gold-500) 40%, transparent);
}

.person__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.person__name {
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: 600;
	color: var(--navy-700);
	margin: 0 0 0.15rem;
}

.person__role {
	font-size: var(--step--1);
	color: var(--gold-600);
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	margin: 0;
}

.person__bio {
	margin: 0.6rem 0 0;
	font-size: var(--step--1);
}

.person__bio a {
	color: var(--navy-600);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* ---------- document list ---------- */
.doc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.doc-list a {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: var(--white);
	border: 1px solid var(--ink-100);
	border-radius: var(--radius-lg);
	text-decoration: none;
	color: var(--ink-900);
	font-weight: 500;
	transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.doc-list a:hover {
	transform: translateX(4px);
	border-color: color-mix(in srgb, var(--gold-500) 60%, transparent);
	box-shadow: var(--shadow-sm);
	color: var(--navy-700);
}

.doc-list__icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: var(--radius);
	background: color-mix(in srgb, var(--gold-500) 16%, transparent);
	color: var(--gold-600);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.doc-list__arrow { margin-left: auto; color: var(--ink-300); }

/* ---------- history section ---------- */
/*
 * The source is a wide 1440x373 banner, which renders as a thin strip beside a
 * full column of prose. Cropping to 3:2 fills the column and needs only ~1.02x
 * scaling, so there is no visible quality loss.
 */
.history__image {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: center 55%;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

@media (max-width: 700px) {
	/* Give it back some width on phones, where the column is already full-bleed. */
	.history__image { aspect-ratio: 16 / 9; }
}

/* ---------- president's portrait ---------- */
.president {
	margin: 2.25rem 0 0;
	max-width: 300px;
}

.president img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	/* A hairline of the brand gold ties the portrait to the rest of the palette. */
	outline: 1px solid color-mix(in srgb, var(--gold-500) 45%, transparent);
	outline-offset: 6px;
}

.president figcaption {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.president__name {
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: 600;
	color: var(--navy-700);
	line-height: 1.2;
}

.president__role {
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--gold-600);
}

/* ---------- contact list (label / number pairs) ---------- */
.contact-list {
	display: grid;
	grid-template-columns: minmax(min(100%, 12rem), max-content) 1fr;
	gap: 0;
	margin: 2rem 0;
	border-top: 1px solid var(--ink-100);
}

.contact-list dt,
.contact-list dd {
	margin: 0;
	padding: 0.9rem 1rem 0.9rem 0;
	border-bottom: 1px solid var(--ink-100);
}

.contact-list dt {
	font-weight: 600;
	color: var(--navy-700);
}

.contact-list dd a {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	text-decoration: none;
	font-weight: 500;
}

.contact-list dd a:hover { text-decoration: underline; }

@media (max-width: 520px) {
	/* Stack on narrow screens so long labels do not squeeze the number. */
	.contact-list { grid-template-columns: 1fr; }
	.contact-list dt { padding-bottom: 0.1rem; border-bottom: 0; }
	.contact-list dd { padding-top: 0.1rem; }
}

/* ---------- stats ---------- */
.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	text-align: center;
}

.stat__value {
	font-family: var(--font-display);
	font-size: var(--step-4);
	font-weight: 600;
	line-height: 1;
	color: var(--gold-500);
	margin: 0 0 0.35rem;
	font-variant-numeric: tabular-nums;
}

.stat__label {
	font-size: var(--step--1);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0;
	color: color-mix(in srgb, var(--white) 78%, transparent);
}

/* ---------- prose ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius-lg); margin-block: 2rem; }
.prose ul,
.prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.4em; }

.prose blockquote {
	margin: 2rem 0;
	padding: 0.35rem 0 0.35rem 1.5rem;
	border-left: 3px solid var(--gold-500);
	font-family: var(--font-display);
	font-size: var(--step-1);
	color: var(--navy-700);
	font-style: italic;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--step--1);
}

.prose th,
.prose td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--ink-100);
	text-align: left;
}

.prose th {
	background: var(--surface-sunken);
	color: var(--navy-700);
	font-weight: 600;
}

/* Wide content must scroll inside itself, never the page. */
.table-scroll { overflow-x: auto; }

/* ---------- contact / info panels ---------- */
.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.info-block h3 {
	font-size: var(--step-1);
	margin-bottom: 0.5rem;
}

.info-block a { font-weight: 500; }

/* ---------- forms ---------- */
.contact-layout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
	align-items: start;
}

.form-wrap { margin-top: 1.5rem; }

.form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 1rem;
}

.field { margin-bottom: 1rem; }

.field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: var(--step--1);
	font-weight: 600;
	color: var(--navy-700);
	letter-spacing: 0.02em;
}

.field label span { color: var(--gold-600); }

.field input,
.field textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	font-family: inherit;
	font-size: var(--step-0);
	color: var(--ink-900);
	background: var(--white);
	border: 1px solid var(--ink-100);
	border-radius: var(--radius);
	transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

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

.field input:hover,
.field textarea:hover { border-color: var(--ink-300); }

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--gold-500);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-500) 22%, transparent);
}

.field__hint {
	font-size: var(--step--1);
	color: var(--ink-500);
	margin: 0 0 1.25rem;
}

/* The honeypot must be unreachable for people but present for bots -- so it is
   moved off-screen rather than display:none, which some bots detect. */
.form-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border-radius: var(--radius);
	border-left: 3px solid;
	font-size: var(--step--1);
}

.form-notice--ok {
	background: color-mix(in srgb, #1f7a4d 8%, transparent);
	border-color: #1f7a4d;
	color: #14532d;
}

.form-notice--error {
	background: color-mix(in srgb, #b42318 8%, transparent);
	border-color: #b42318;
	color: #7a271a;
}

/* ---------- footer ---------- */
.site-footer {
	background: var(--navy-800);
	color: color-mix(in srgb, var(--white) 72%, transparent);
	padding-block: clamp(3rem, 2rem + 4vw, 5rem) 0;
	font-size: var(--step--1);
}

.site-footer h4 {
	color: var(--white);
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.site-footer a {
	color: color-mix(in srgb, var(--white) 78%, transparent);
	text-decoration: none;
}

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

.footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
	padding-bottom: 3rem;
}

.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li + li { margin-top: 0.55rem; }

.footer__brand img {
	height: 44px;
	width: auto;
	margin-bottom: 1.25rem;
	/* Uses the white colourway of the wordmark -- no filter needed. */
	opacity: 0.92;
}

.footer__bottom {
	border-top: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
	padding-block: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8rem;
	color: color-mix(in srgb, var(--white) 55%, transparent);
}

.emergency {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--gold-500) 45%, transparent);
	border-radius: var(--radius);
	color: var(--gold-300);
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* ---------- reveal on scroll ---------- */
/* Scoped to .js so the content is fully visible when scripting is unavailable. */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Respect users who ask for less motion — disable drift and reveals entirely. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.reveal { opacity: 1; transform: none; }
	.hero__media img { animation: none; }
}

/* ---------- utilities ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: 1.15em; }
