/**
 * AOS site footer — shared across every page family.
 *
 * Loaded on every front-end request via functions.php as a global stylesheet
 * so the footer pattern (single source of truth in patterns/_partials/site-footer.php)
 * renders identically on home, BSN, admissions, event, and any future template.
 *
 * Math:
 *   8-pt spatial grid: 8 / 16 / 24 / 32 / 48 / 64 / 96 / 128
 *   1.250 modular type scale: 12 · 14 · 16 · 20 · 26 · 34 · 44
 *   Three horizontal bands: brand+sitemap · campuses · legal
 */

.foot {
	--foot-fg:        hsl(0 0% 100% / 0.74);
	--foot-fg-strong: hsl(0 0% 100% / 0.92);
	--foot-fg-soft:   hsl(0 0% 100% / 0.56);
	--foot-fg-faint:  hsl(0 0% 100% / 0.42);
	--foot-line:      hsl(0 0% 100% / 0.10);
	--foot-line-soft: hsl(0 0% 100% / 0.06);
	--foot-fill:      hsl(0 0% 100% / 0.04);
	--foot-fill-hi:   hsl(0 0% 100% / 0.08);
	--foot-pad-y:     clamp(64px, 7vw, 96px);
	--foot-gap:       clamp(48px, 5vw, 72px);

	position: relative;
	/* A full tonal step below the page's navy-deep bands (e.g. the CTA
	   finale) so the footer reads as its own zone, not a continuation. */
	background: hsl(220 18% 5%);
	color: var(--foot-fg);
	padding: var(--foot-pad-y) 0 0;
	font-family: var(--body);
	font-size: 14px;
	line-height: 1.65;
}
.foot::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, hsl(var(--aos-yellow) / 0.4), transparent);
}

.foot__inner {
	max-width: var(--container, min(100%, 1680px));
	margin: 0 auto;
	padding: 0 var(--gutter, clamp(1.25rem, 4vw, 4rem));
	display: grid;
	grid-template-columns: 1.6fr repeat(4, 1fr);
	gap: var(--foot-gap);
	align-items: start;
}

.foot__brand { display: flex; flex-direction: column; gap: 24px; }
.foot__brand-mark { display: inline-block; }
.foot__brand-mark img { width: 120px; height: 120px; display: block; }
.foot__wordmark {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(24px, 2.2vw, 30px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: hsl(var(--paper));
	margin: 0;
	font-variation-settings: "opsz" 60;
}
.foot__wordmark em {
	color: hsl(var(--aos-yellow));
	font-style: italic;
	font-weight: 350;
}
.foot__mission {
	font-size: 14px;
	line-height: 1.7;
	color: var(--foot-fg);
	max-width: 36ch;
	margin: 0;
}

.foot__news {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--foot-fill);
	border: 1px solid var(--foot-line);
	border-radius: 100px;
	padding: 6px 6px 6px 20px;
	max-width: 380px;
	transition: border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}
.foot__news:focus-within {
	border-color: hsl(var(--aos-yellow) / 0.6);
	background: var(--foot-fill-hi);
}
.foot__news input {
	flex: 1; min-width: 0;
	background: transparent;
	border: none;
	color: hsl(var(--paper));
	font: inherit;
	font-size: 14px;
	outline: none;
	padding: 8px 0;
}
.foot__news input::placeholder { color: var(--foot-fg-soft); }
/* Subscribe follows the site-wide .aos-btn system: hairline-stroke ghost
   on the dark footer — thin light border, solid teal chip. */
.foot__news button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: hsl(var(--paper));
	border: 1px solid hsl(var(--paper) / 0.25);
	border-radius: 100px;
	padding: 4px 4px 4px 15px;
	font-family: var(--body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.foot__news button:hover { background: hsl(var(--aos-yellow) / 0.08); border-color: hsl(var(--aos-yellow) / 0.65); transform: translateY(-1px); }
.foot__news button svg {
	box-sizing: content-box;
	width: 12px;
	height: 12px;
	padding: 6px;
	border-radius: 999px;
	background: hsl(var(--aos-yellow));
	color: hsl(var(--aos-navy-deep));
}

.foot__social {
	list-style: none;
	padding: 0; margin: 0;
	display: flex;
	gap: 10px;
}
.foot__social a {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid var(--foot-line);
	color: var(--foot-fg);
	transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.foot__social a:hover {
	background: hsl(var(--aos-yellow));
	border-color: hsl(var(--aos-yellow));
	color: hsl(var(--aos-navy-deep));
}
.foot__social a svg { width: 17px; height: 17px; display: block; }

.foot__col h4 {
	font-family: var(--body);
	font-size: 11.5px;
	font-weight: 700;
	color: hsl(var(--paper));
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin: 0 0 24px;
}
.foot__col ul,
.foot__col .wp-block-list {
	list-style: none;
	padding: 0; margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.foot__col li { margin: 0; }
.foot__col a {
	font-size: 14px;
	color: hsl(0 0% 100% / 0.66);
	text-decoration: none;
	transition: color 180ms var(--ease-out);
}
.foot__col a:hover { color: hsl(var(--paper)); }

.foot__campuses {
	max-width: var(--container, min(100%, 1680px));
	margin: 72px auto 0;
	padding: 56px var(--gutter, clamp(1.25rem, 4vw, 4rem)) 0;
	border-top: 1px solid var(--foot-line);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--foot-gap);
}
.foot__campus { display: flex; flex-direction: column; gap: 12px; }
.foot__campus-eyebrow {
	font-family: var(--body);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: hsl(var(--aos-yellow));
	margin: 0;
}
.foot__campus-addr {
	font-size: 14px;
	line-height: 1.65;
	color: var(--foot-fg);
	margin: 0;
	max-width: 34ch;
}
.foot__campus-addr a {
	color: var(--foot-fg-strong);
	text-decoration: none;
	border-bottom: 1px solid hsl(0 0% 100% / 0.18);
	transition: border-color 200ms var(--ease-out);
}
.foot__campus-addr a:hover { border-color: hsl(var(--aos-yellow)); }
.foot__campus-link {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 500;
	color: var(--foot-fg-strong);
	text-decoration: none;
	padding-bottom: 2px;
	border-bottom: 1px solid hsl(0 0% 100% / 0.18);
	transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out), gap 220ms var(--ease-out);
}
.foot__campus-link:hover {
	color: hsl(var(--aos-yellow));
	border-color: hsl(var(--aos-yellow));
	gap: 12px;
}
.foot__campus-link svg { width: 14px; height: 14px; flex: 0 0 14px; }

.foot__bottom {
	max-width: var(--container, min(100%, 1680px));
	margin: 64px auto 0;
	padding: 28px var(--gutter, clamp(1.25rem, 4vw, 4rem));
	border-top: 1px solid var(--foot-line);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px 32px;
	flex-wrap: wrap;
}
.foot__copy {
	font-size: 12.5px;
	color: var(--foot-fg-faint);
	margin: 0;
}
.foot__copy em {
	color: var(--foot-fg-soft);
	font-style: italic;
}
.foot__legal {
	list-style: none;
	padding: 0; margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	font-size: 12.5px;
}
.foot__legal li { margin: 0; }
.foot__legal a {
	color: var(--foot-fg-soft);
	text-decoration: none;
	transition: color 180ms var(--ease-out);
}
.foot__legal a:hover { color: hsl(var(--paper)); }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* Tablet: brand row, then 4-col sitemap, then campuses 2x2 */
@media (max-width: 720px) {
	.foot__inner { grid-template-columns: 1fr !important; gap: 48px !important; }
	.foot__inner .foot__brand { grid-column: 1 / -1; }
	.foot__inner .foot__col { display: block !important; }
	.foot__campuses { grid-template-columns: 1fr 1fr !important; }
	.foot__campus--accred { grid-column: 1 / -1; }
	.foot { --foot-pad-y: 64px; --foot-gap: 40px !important; }
	.foot__inner { grid-template-columns: 1fr !important; gap: 40px !important; }
	.foot__news { max-width: none; }
	.foot__campuses { grid-template-columns: 1fr !important; padding-top: 40px; margin-top: 48px; }
	.foot__campus--accred { grid-column: auto; }
	.foot__bottom { flex-direction: column !important; align-items: flex-start; gap: 16px !important; margin-top: 40px; padding-top: 24px; }
	.foot__legal { gap: 8px 18px !important; font-size: 12px; }
}
@media (min-width: 721px) and (max-width: 1100px) {
	.foot__inner {
		grid-template-columns: repeat(4, 1fr) !important;
		row-gap: 56px !important;
	}
	.foot__inner .foot__brand { grid-column: 1 / -1; max-width: 640px; }
	.foot__campuses { grid-template-columns: 1fr 1fr !important; }
	.foot__campus--accred { grid-column: 1 / -1; }
}

/* ── Brand wordmark in footer ── */
.foot__wordmark { display:inline-flex; align-items:center; gap:7px; font-style:normal; font-family:var(--body); }
.foot__wordmark-a  { font-weight:300; letter-spacing:-0.01em; }
.foot__wordmark-dot{ width:6px; height:6px; border-radius:999px; background:hsl(var(--aos-yellow)); flex:0 0 auto; }
.foot__wordmark-os { font-weight:700; letter-spacing:-0.02em; }

/* ── Footer link hovers -> teal accent + focus-visible rings ── */
.foot__col a, .foot__legal a { transition: color .18s var(--ease-out); }
.foot__col a:hover, .foot__legal a:hover { color: hsl(var(--aos-yellow)); }
.foot__col a:focus-visible,
.foot__legal a:focus-visible,
.foot__social a:focus-visible,
.foot__campus-link:focus-visible,
.foot__wordmark:focus-visible {
	outline: 2px solid hsl(var(--aos-yellow));
	outline-offset: 3px;
	border-radius: 3px;
}
.foot__social a { transition: color .18s var(--ease-out), border-color .18s var(--ease-out); }

/* ── Nuclear pass: quiet aurora + filmic grain, matching the finale band.
   Children lift to z-index 1 so the texture never sits over content. ── */
.foot::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"),
		radial-gradient(52% 60% at 6% 0%, hsl(var(--aos-yellow) / 0.10), transparent 62%),
		radial-gradient(56% 64% at 98% 100%, hsl(var(--aos-blue) / 0.12), transparent 64%);
}
.foot > * {
	position: relative;
	z-index: 1;
}
