:root {
	--color-red: #d71920;
	--color-red-dark: #a70f16;
	--color-ink: #07183d;
	--color-muted: #5b6470;
	--color-paper: #f4f7fb;
	--color-gold: #ffd322;
	--color-sky: #1a9bd7;
	--color-white: #ffffff;
	--color-line: #e4ded4;
	--shadow-soft: 0 18px 45px rgba(21, 33, 43, 0.12);
	--font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-white);
	color: var(--color-ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
}

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

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.55em;
	line-height: 1.08;
	letter-spacing: 0;
}

h1 {
	font-size: clamp(2.7rem, 7vw, 5.9rem);
	max-width: 980px;
}

h2 {
	font-size: clamp(2rem, 4vw, 3.7rem);
}

h3 {
	font-size: 1.35rem;
}

p {
	margin: 0 0 1.2rem;
}

.site-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.skip-link,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.skip-link:focus {
	z-index: 1000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--color-ink);
	color: var(--color-white);
}

.utility-bar {
	background: transparent;
	color: var(--color-white);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.utility-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
	gap: 20px;
}

.utility-nav ul,
.primary-nav ul,
.footer-nav ul {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.utility-nav a,
.footer-nav a {
	text-decoration: none;
}

.site-header {
	position: absolute;
	z-index: 50;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.96);
	background: linear-gradient(180deg, rgba(7, 24, 61, 0.72), rgba(7, 24, 61, 0));
	box-shadow: none;
	backdrop-filter: none;
}

.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 108px;
	gap: 26px;
	width: min(100% - 88px, 1660px);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 230px;
}

.site-branding .custom-logo-link {
	display: grid;
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	place-items: center;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	background: var(--color-white);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.site-branding__mark {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 2px solid rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	background:
		radial-gradient(circle at 52% 52%, var(--color-gold) 0 9%, transparent 10%),
		linear-gradient(145deg, var(--color-sky), var(--color-ink) 54%, var(--color-red) 55% 72%, var(--color-gold) 73%);
	color: var(--color-white);
	font-size: 0;
	font-weight: 900;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.custom-logo {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
}

.site-branding__name {
	margin: 0;
	color: var(--color-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.6rem, 2.7vw, 2.45rem);
	font-weight: 500;
	line-height: 1.1;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.site-branding__name a {
	text-decoration: none;
}

.site-branding__tagline {
	margin: 0.18rem 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.86rem;
	line-height: 1.25;
}

.primary-nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.primary-nav .menu {
	align-items: center;
	gap: 2px;
}

.primary-nav li {
	position: relative;
}

.primary-nav a {
	display: block;
	padding: 12px 13px;
	color: var(--color-white);
	font-size: 0.94rem;
	font-weight: 900;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: uppercase;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.primary-nav a:hover,
.primary-nav a:focus {
	color: var(--color-gold);
}

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	min-width: 230px;
	padding: 10px;
	background: var(--color-white);
	box-shadow: var(--shadow-soft);
	border: 1px solid var(--color-line);
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
	display: block;
}

.primary-nav .sub-menu a {
	padding: 9px 10px;
}

.nav-toggle {
	display: none;
	width: 46px;
	height: 46px;
	border: 1px solid var(--color-line);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.12);
}

.nav-toggle__line {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px auto;
	background: var(--color-ink);
	background: var(--color-white);
}

.hero {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	background:
		linear-gradient(180deg, rgba(7, 24, 61, 0.48), rgba(7, 24, 61, 0.08) 38%, rgba(7, 24, 61, 0.72) 100%),
		linear-gradient(90deg, rgba(7, 24, 61, 0.56), rgba(7, 24, 61, 0.08) 50%, rgba(7, 24, 61, 0.2)),
		var(--hero-image, url("../images/mcewen-hero.svg")) center / cover;
	color: var(--color-white);
}

.hero--has-video {
	background:
		linear-gradient(180deg, rgba(7, 24, 61, 0.48), rgba(7, 24, 61, 0.08) 38%, rgba(7, 24, 61, 0.72) 100%),
		linear-gradient(90deg, rgba(7, 24, 61, 0.56), rgba(7, 24, 61, 0.08) 50%, rgba(7, 24, 61, 0.2)),
		var(--color-ink);
}

.hero::before {
	position: absolute;
	z-index: 1;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(7, 24, 61, 0.5), rgba(7, 24, 61, 0.08) 38%, rgba(7, 24, 61, 0.78) 100%),
		linear-gradient(90deg, rgba(7, 24, 61, 0.58), rgba(7, 24, 61, 0.08) 50%, rgba(7, 24, 61, 0.22));
	content: "";
	pointer-events: none;
}

.hero__video,
.hero__iframe {
	position: absolute;
	z-index: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	pointer-events: none;
}

.hero__iframe {
	top: 50%;
	left: 50%;
	width: max(100vw, 177.78vh);
	height: max(100vh, 56.25vw);
	transform: translate(-50%, -50%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: end;
	gap: 48px;
	min-height: inherit;
	padding: 180px 0 0;
}

.hero__content {
	position: relative;
	display: grid;
	min-height: calc(100vh - 180px);
	align-content: end;
	max-width: none;
	padding-bottom: 84px;
}

.hero__content p:not(.eyebrow) {
	max-width: 520px;
	margin-bottom: 0.3rem;
	font-size: clamp(1.06rem, 1.45vw, 1.35rem);
	font-weight: 800;
	line-height: 1.55;
	text-align: center;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.eyebrow {
	margin-bottom: 0.9rem;
	color: var(--color-gold);
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.intro-band .eyebrow,
.values-section .eyebrow,
.program-section .eyebrow,
.news-section .eyebrow {
	color: var(--color-red);
}

.hero h1 {
	max-width: 540px;
	margin-bottom: 1.1rem;
	font-size: clamp(1.1rem, 1.8vw, 1.45rem);
	font-weight: 900;
	line-height: 1.5;
	text-align: center;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72);
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
	margin-bottom: 34px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border-radius: 999px;
	border: 2px solid transparent;
	font-weight: 900;
	text-decoration: none;
	text-transform: uppercase;
}

.button--primary {
	background: var(--color-red);
	color: var(--color-white);
}

.button--primary:hover,
.button--primary:focus {
	background: var(--color-red-dark);
}

.button--secondary {
	border-color: currentColor;
	background: transparent;
	color: currentColor;
}

.hero .button--secondary {
	background: rgba(255, 255, 255, 0.12);
	color: var(--color-white);
}

.hero__card {
	position: absolute;
	z-index: 3;
	right: min(7vw, 96px);
	bottom: 96px;
	display: grid;
	gap: 8px;
	overflow: hidden;
	width: min(310px, 28vw);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	background: linear-gradient(145deg, rgba(7, 24, 61, 0.44), rgba(7, 24, 61, 0.16));
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(18px) saturate(130%);
}

.hero__card div {
	position: relative;
	padding: 17px 18px 17px 22px;
	background: rgba(255, 255, 255, 0.045);
	color: var(--color-white);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__card div::before {
	position: absolute;
	top: 18px;
	bottom: 18px;
	left: 10px;
	width: 3px;
	border-radius: 999px;
	background: linear-gradient(var(--color-gold), var(--color-red));
	content: "";
}

.hero__card div:last-child {
	border-bottom: 0;
}

.hero__card strong,
.hero__card span {
	display: block;
}

.hero__card strong {
	color: var(--color-gold);
	font-size: 1.2rem;
}

.intro-band,
.values-section,
.program-section,
.news-section {
	padding: 96px 0;
}

.intro-band {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0 58%, rgba(255, 255, 255, 0.72) 58% 100%),
		var(--intro-bg, url("../images/school-gathering.jpg")) right center / 44% 78% no-repeat,
		var(--color-white);
}

.intro-band::before {
	position: absolute;
	right: min(5vw, 72px);
	bottom: 42px;
	width: min(340px, 26vw);
	aspect-ratio: 4 / 5;
	border: 10px solid var(--color-white);
	border-radius: 8px;
	background: var(--intro-feature, url("../images/school-classroom.jpg")) center / cover;
	box-shadow: 0 24px 70px rgba(7, 24, 61, 0.18);
	content: "";
}

.intro-band::after {
	position: absolute;
	right: min(25vw, 420px);
	top: 74px;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-gold), var(--color-red));
	content: "";
	opacity: 0.92;
}

.intro-band__grid {
	position: relative;
	z-index: 2;
}

.intro-band__grid,
.feature-band__grid {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: 54px;
	align-items: center;
}

.intro-band p:last-child,
.feature-copy p {
	color: var(--color-muted);
	font-size: 1.1rem;
}

.intro-band h2 {
	max-width: 600px;
	color: var(--color-ink);
}

.intro-band__grid > p {
	max-width: 430px;
	padding: 28px;
	border-left: 4px solid var(--color-gold);
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 18px 46px rgba(7, 24, 61, 0.08);
	backdrop-filter: blur(10px);
}

.values-section {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(244, 247, 251, 0.92), rgba(255, 255, 255, 0.96)),
		var(--color-paper);
}

.values-section::before {
	display: block;
	width: min(1180px, calc(100% - 40px));
	height: clamp(220px, 26vw, 360px);
	margin: -20px auto 68px;
	border-radius: 8px;
	background:
		linear-gradient(90deg, rgba(7, 24, 61, 0.28), rgba(7, 24, 61, 0.02)),
		var(--values-bg, url("../images/school-stage.jpg")) center 45% / cover;
	box-shadow: 0 28px 80px rgba(7, 24, 61, 0.16);
	content: "";
}

.values-section .section-heading {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 38px;
	align-items: end;
}

.section-heading {
	margin-bottom: 34px;
}

.section-heading--split {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
}

.value-grid,
.program-grid,
.post-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.value-card,
.program-card,
.post-card,
.content-card {
	overflow: hidden;
	border: 1px solid var(--color-line);
	border-radius: 4px;
	background: var(--color-white);
	box-shadow: 0 8px 22px rgba(21, 33, 43, 0.06);
}

.value-card {
	position: relative;
	min-height: 230px;
	padding: 28px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
		var(--color-white);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.value-card span {
	display: block;
	margin-bottom: 52px;
	color: var(--color-red);
	font-weight: 900;
}

.value-card::after {
	position: absolute;
	right: 18px;
	top: 18px;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, var(--color-gold), rgba(216, 162, 58, 0.08) 68%);
	content: "";
	opacity: 0.35;
}

.value-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 44px rgba(7, 24, 61, 0.12);
}

.value-card p,
.program-card p,
.post-card p,
.content-card p {
	color: var(--color-muted);
}

.feature-band {
	padding: 90px 0;
	background:
		linear-gradient(90deg, rgba(7, 24, 61, 0.95), rgba(7, 24, 61, 0.86)),
		var(--color-ink);
	color: var(--color-white);
}

.feature-media {
	min-height: 460px;
	border-radius: 4px;
	background:
		linear-gradient(135deg, rgba(215, 25, 32, 0.28), rgba(255, 211, 34, 0.18)),
		url("../images/mcewen-hero.svg") center / cover;
	box-shadow: var(--shadow-soft);
}

.feature-copy {
	max-width: 560px;
}

.text-link {
	color: var(--color-red);
	font-weight: 900;
	text-decoration: none;
}

.feature-band .text-link {
	color: var(--color-gold);
}

.program-grid,
.post-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-card__image,
.post-card__image,
.content-card__image {
	display: block;
	min-height: 210px;
	background:
		linear-gradient(135deg, rgba(7, 24, 61, 0.08), rgba(7, 24, 61, 0.02)),
		var(--program-image, linear-gradient(135deg, rgba(184, 32, 47, 0.18), rgba(216, 162, 58, 0.22))),
		var(--color-paper);
	background-position: center;
	background-size: cover;
}

.program-card:nth-child(2) .program-card__image {
	background:
		linear-gradient(135deg, rgba(7, 24, 61, 0.08), rgba(7, 24, 61, 0.02)),
		var(--program-image, linear-gradient(135deg, rgba(21, 33, 43, 0.18), rgba(216, 162, 58, 0.2))),
		var(--color-paper);
}

.program-card:nth-child(3) .program-card__image {
	background:
		linear-gradient(135deg, rgba(7, 24, 61, 0.08), rgba(7, 24, 61, 0.02)),
		var(--program-image, linear-gradient(135deg, rgba(184, 32, 47, 0.16), rgba(21, 33, 43, 0.18))),
		var(--color-paper);
}

.post-card__image img,
.content-card__image img {
	width: 100%;
	height: 230px;
	object-fit: cover;
}

.program-card__content,
.post-card__body,
.content-card__body {
	padding: 24px;
}

.post-meta {
	margin-bottom: 0.55rem;
	color: var(--color-red);
	font-size: 0.8rem;
	font-weight: 900;
	text-transform: uppercase;
}

.content-page {
	padding-bottom: 80px;
}

.page-hero {
	padding: 78px 0;
	background: var(--color-paper);
}

.page-hero h1,
.page-header h1 {
	font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.content-narrow {
	width: min(760px, calc(100% - 40px));
	margin: 54px auto 0;
}

.content-narrow > * {
	margin-bottom: 1.25rem;
}

.page-header {
	padding: 70px 0 30px;
}

.post-list {
	display: grid;
	gap: 22px;
}

.content-card {
	display: grid;
	grid-template-columns: 320px 1fr;
}

.single-featured-image {
	margin-top: 44px;
}

.single-featured-image img {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
	border-radius: 8px;
}

.search-form {
	display: flex;
	gap: 10px;
}

.search-field {
	min-height: 46px;
	width: min(430px, 100%);
	padding: 10px 12px;
	border: 1px solid var(--color-line);
	border-radius: 6px;
	font: inherit;
}

.site-footer {
	padding: 64px 0 22px;
	background: var(--color-ink);
	color: var(--color-white);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 1fr;
	gap: 46px;
}

.footer-brand__name {
	margin-bottom: 0.7rem;
	font-size: 1.45rem;
	font-weight: 900;
}

.footer-brand p,
.footer-contact p {
	color: rgba(255, 255, 255, 0.75);
}

.footer-nav ul {
	display: grid;
	gap: 8px;
}

.footer-contact h2,
.footer-widget__title {
	font-size: 1.1rem;
}

.footer-bottom {
	margin-top: 42px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.9rem;
}

@media (max-width: 980px) {
	.utility-bar__inner {
		justify-content: center;
	}

	.utility-nav {
		display: none;
	}

	.nav-toggle {
		display: block;
	}

	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		width: 100%;
		background: var(--color-white);
		border-top: 1px solid var(--color-line);
		box-shadow: var(--shadow-soft);
	}

	.nav-open .primary-nav {
		display: block;
	}

	.primary-nav .menu,
	.primary-nav ul {
		display: grid;
		gap: 0;
		width: min(1180px, calc(100% - 40px));
		margin: 0 auto;
		padding: 12px 0;
	}

	.primary-nav a {
		color: var(--color-ink);
		padding: 13px 0;
		text-shadow: none;
	}

	.primary-nav .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 0 18px;
		border: 0;
		box-shadow: none;
	}

	.hero__inner,
	.intro-band__grid,
	.feature-band__grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.hero__card {
		position: static;
		width: min(460px, 100%);
		margin-bottom: 30px;
	}

	.value-grid,
	.program-grid,
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.content-card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.site-container,
	.content-narrow {
		width: min(100% - 28px, 1180px);
	}

	.masthead {
		min-height: 74px;
	}

	.site-branding__tagline {
		display: none;
	}

	.hero {
		min-height: 760px;
	}

	.hero__inner {
		gap: 26px;
		padding-top: 140px;
	}

	.hero__content {
		min-height: calc(760px - 140px);
	}

	.hero__content p:not(.eyebrow),
	.hero h1 {
		text-align: left;
	}

	.hero__content p:not(.eyebrow) {
		font-size: 1.05rem;
	}

	.intro-band,
	.values-section,
	.program-section,
	.news-section,
	.feature-band {
		padding: 58px 0;
	}

	.section-heading--split {
		align-items: flex-start;
		flex-direction: column;
	}

	.value-grid,
	.program-grid,
	.post-grid {
		grid-template-columns: 1fr;
	}

	.value-card span {
		margin-bottom: 24px;
	}

	.feature-media {
		min-height: 300px;
	}

	.search-form {
		display: grid;
	}
}
