/* HMNS Site Footer (hmns-design + TNEW checkout parity).
   Loaded by hmns_v2_styles() in functions.php after site-{1,2,3}.css, phone.css, and desktop.css.
   Uses semantic tokens from tokens.css across all widths (mobile-first); no inline styles or scripts. */

/* ===== Outer footer shell ===== */
html body footer#footer {
	position: relative;
	padding: 0;
	margin: 0;
	background: var(--hmns-fossil-rim);
	color: var(--text-on-dark);
	font-family: var(--font-body);
	font-size: var(--type-body-mobile);
	line-height: var(--leading-body-mobile);
	font-weight: var(--weight-light);
	text-align: left;
	overflow: hidden;
}

html body footer#footer > .container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

html body footer#footer .footer-widgets {
	width: 100%;
}

/* Focus rings: Ocean Blue on light grounds (map cards), Light Cream on dark grounds (newsletter + Fossil Rim).
   Light Cream on Fossil Rim is 6.62:1 (Ocean Blue on Fossil Rim is 1.35:1). */
html body footer#footer a:focus-visible,
html body footer#footer button:focus-visible {
	outline: 2px solid var(--hmns-light-cream) !important;
	outline-offset: 2px !important;
}

html body footer#footer #hmns-map a:focus-visible {
	outline: 2px solid var(--focus-ring) !important;
	outline-offset: 2px !important;
}

/* ===== Band 1: 3-Campus Map Strip (#hmns-map) ===== */
html body footer#footer #hmns-map {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: var(--space-8) 0;
	background: var(--surface-sunken);
	color: var(--text-body);
	overflow: hidden;
}

html body footer#footer #hmns-map .hmns-map__picture {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

html body footer#footer #hmns-map .hmns-map__bg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

html body footer#footer #hmns-map .hmns-map__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 var(--space-6);
	box-sizing: border-box;
}

html body footer#footer #hmns-map .card-box {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
}

html body footer#footer #hmns-map .map-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: var(--space-6);
	box-sizing: border-box;
	background: var(--surface-card);
	border: 1px solid var(--border-hairline);
	border-radius: var(--radius-none);
	box-shadow: var(--shadow-card);
}

html body footer#footer #hmns-map .mc-title {
	margin: 0 0 var(--space-2);
	font-family: var(--font-display);
	font-size: var(--type-title-4);
	line-height: var(--leading-display);
	letter-spacing: var(--tracking-display);
	font-weight: var(--weight-display);
	color: var(--text-heading);
}

html body footer#footer #hmns-map .mc-phone {
	margin: 0 0 var(--space-1);
}

html body footer#footer #hmns-map .mc-phone a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--space-1);
	font-family: var(--font-display);
	font-size: var(--type-body);
	line-height: var(--leading-body);
	font-weight: var(--weight-display);
	color: var(--text-subhead);
	text-decoration: underline;
	text-decoration-color: var(--border-underline);
	text-underline-offset: 4px;
	white-space: nowrap;
	transition: color var(--motion-base) var(--ease-standard), text-decoration-color var(--motion-base) var(--ease-standard);
}

html body footer#footer #hmns-map .mc-phone a:hover {
	color: var(--text-link);
	text-decoration-color: var(--text-link);
}

html body footer#footer #hmns-map .mc-address {
	margin: 0 0 var(--space-2);
	font-family: var(--font-body);
	font-size: var(--type-small);
	line-height: var(--leading-small);
	font-weight: var(--weight-light);
	font-style: normal;
	color: var(--text-subhead);
}

html body footer#footer #hmns-map .mc-directions {
	margin-top: auto;
}

html body footer#footer #hmns-map .mc-directions a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 44px;
	padding: 0 var(--space-1);
	font-family: var(--font-body);
	font-size: var(--type-small);
	line-height: var(--leading-small);
	font-weight: var(--weight-regular);
	color: var(--text-subhead);
	text-decoration: none;
	border-bottom: 1px solid var(--border-underline);
	transition: color var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard);
}

html body footer#footer #hmns-map .mc-directions a:hover {
	color: var(--text-link);
	border-bottom-color: var(--text-link);
}

html body footer#footer #hmns-map .mc-directions svg {
	width: var(--icon-size-sm);
	height: var(--icon-size-sm);
	flex: 0 0 auto;
	color: currentColor;
}

@media screen and (max-width: 920px) {
	html body footer#footer #hmns-map {
		padding: var(--space-7) 0;
	}
	html body footer#footer #hmns-map .card-box {
		grid-template-columns: 1fr;
		gap: var(--space-4);
	}
	html body footer#footer #hmns-map .map-card {
		width: 100%;
		max-width: 440px;
		margin: 0 auto;
	}
}

/* ===== Band 2: Newsletter Band (#hmns-newsletter-signup) ===== */
html body footer#footer #hmns-newsletter-signup {
	position: relative;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	background: var(--surface-inverse);
	color: var(--text-on-dark);
}

html body footer#footer .hmns-newsletter-box {
	position: relative;
	left: auto;
	top: auto;
	transform: none;
	z-index: 1;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: var(--space-7) var(--space-6);
	box-sizing: border-box;
	background: transparent;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
}

html body footer#footer .hmns-newsletter-box .title-flex {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: var(--space-1);
	text-align: left;
}

html body footer#footer .hmns-newsletter-box .title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--type-title-4);
	line-height: var(--leading-display);
	letter-spacing: var(--tracking-display);
	font-weight: var(--weight-display);
	color: var(--hmns-white);
}

html body footer#footer .hmns-newsletter-box .sub-title {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--type-body-mobile);
	line-height: var(--leading-body-mobile);
	font-weight: var(--weight-light);
	color: var(--text-on-dark);
}

html body footer#footer .hmns-newsletter-box .signup-link {
	margin: 0;
	flex: 0 0 auto;
}

html body footer#footer .hmns-newsletter-box .signup-link a.hmns-nl-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--control-height);
	padding: 0 var(--space-6);
	background: transparent;
	color: var(--hmns-white);
	border: 1px solid var(--hmns-light-cream);
	border-radius: var(--radius-none);
	font-family: var(--font-body);
	font-size: var(--type-body-mobile);
	line-height: var(--leading-body-mobile);
	font-weight: var(--weight-regular);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard);
}

html body footer#footer .hmns-newsletter-box .signup-link a.hmns-nl-cta:hover {
	background: var(--hmns-light-cream);
	color: var(--hmns-dark-gray);
	border-color: var(--hmns-light-cream);
}

html body footer#footer .signup-border-flex {
	position: relative;
	bottom: auto;
	left: auto;
	display: flex;
	width: 100%;
	height: var(--rule-accent);
}

html body footer#footer .signup-border-flex .border-section {
	width: 25%;
	height: 100%;
	border: 0;
}

html body footer#footer .signup-border-flex .border-section--monarch { background: var(--hmns-monarch); }
html body footer#footer .signup-border-flex .border-section--serengeti { background: var(--hmns-serengeti); }
html body footer#footer .signup-border-flex .border-section--mossy-oak { background: var(--hmns-mossy-oak); }
html body footer#footer .signup-border-flex .border-section--ocean-blue { background: var(--hmns-ocean-blue); }

@media screen and (max-width: 768px) {
	html body footer#footer .hmns-newsletter-box {
		flex-direction: column;
		align-items: flex-start;
		padding: var(--space-6);
		gap: var(--space-4);
	}
	html body footer#footer .hmns-newsletter-box .signup-link,
	html body footer#footer .hmns-newsletter-box .signup-link a.hmns-nl-cta {
		width: 100%;
		box-sizing: border-box;
	}
}

/* ===== Band 3: Main Fossil Rim Footer (#hmns-footer — TNEW checkout parity) ===== */
html body footer#footer .hmns-footer-shell {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: var(--space-8) var(--space-6) 0;
	box-sizing: border-box;
}

html body footer#footer #hmns-footer {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

html body footer#footer .hmns-footer__top {
	display: grid;
	grid-template-columns: minmax(240px, 1.15fr) minmax(0, 4fr);
	gap: var(--space-7);
	padding-bottom: var(--space-7);
	border-bottom: 1px solid color-mix(in srgb, var(--hmns-light-cream) 25%, transparent);
}

html body footer#footer .hmns-footer__nav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-7);
}

@media screen and (max-width: 1024px) {
	html body footer#footer .hmns-footer__top {
		grid-template-columns: 1fr;
		gap: var(--space-7);
	}
	html body footer#footer .hmns-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-6) var(--space-7);
	}
}

@media screen and (max-width: 600px) {
	html body footer#footer .hmns-footer-shell {
		padding-top: var(--space-7);
		padding-bottom: 0;
	}
	html body footer#footer .hmns-footer__nav {
		grid-template-columns: 1fr;
		gap: var(--space-6);
	}
}

/* Brand & contact column */
html body footer#footer .hmns-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

html body footer#footer .hmns-footer__logo-link {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
	margin: 0 0 var(--space-5);
	text-decoration: none;
	color: var(--text-on-dark);
}

html body footer#footer .hmns-footer__wordmark {
	display: block;
	width: 210px;
	max-width: 100%;
	height: auto;
}

html body footer#footer .hmns-footer__subbrand {
	font-family: var(--font-label);
	font-size: var(--type-label-sm);
	line-height: var(--leading-display);
	font-weight: 500;
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--text-on-dark);
}

html body footer#footer .hmns-footer__socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1);
	margin: 0 0 var(--space-4) -10px;
	padding: 0;
	list-style: none;
}

html body footer#footer .hmns-footer__socials li {
	margin: 0;
	padding: 0;
}

html body footer#footer .hmns-footer__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	color: var(--text-on-dark);
	text-decoration: none;
	border-radius: var(--radius-none);
	transition: background-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard);
}

html body footer#footer .hmns-footer__socials a:hover {
	background: color-mix(in srgb, var(--hmns-light-cream) 14%, transparent);
	color: var(--hmns-white);
}

html body footer#footer .hmns-footer__socials svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	margin: 0;
}

html body footer#footer .hmns-footer__contact {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--type-small);
	line-height: var(--leading-small);
	font-weight: var(--weight-light);
	font-style: normal;
	color: var(--text-on-dark);
}

html body footer#footer .hmns-footer__contact .hmns-footer__phone {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: -8px 0 -4px;
	padding: 0;
	color: var(--text-on-dark);
	font-size: var(--type-small);
	line-height: var(--leading-small);
	font-weight: var(--weight-regular);
	text-decoration: underline;
	text-decoration-color: var(--hmns-serengeti);
	text-underline-offset: 4px;
	white-space: nowrap;
	transition: color var(--motion-base) var(--ease-standard);
}

html body footer#footer .hmns-footer__contact .hmns-footer__phone:hover {
	color: var(--hmns-white);
}

/* Navigation columns */
html body footer#footer .hmns-footer__col h2 {
	margin: 0 0 var(--space-4);
	font-family: var(--font-label);
	font-size: var(--type-label-sm);
	line-height: 1;
	font-weight: 500;
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--text-on-dark);
}

html body footer#footer .hmns-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

html body footer#footer .hmns-footer__col li {
	margin: 0;
	padding: 0;
}

html body footer#footer .hmns-footer__col li a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 2px 0;
	font-family: var(--font-body);
	font-size: var(--type-body-mobile);
	line-height: var(--leading-body-mobile);
	font-weight: var(--weight-light);
	color: var(--text-on-dark);
	text-decoration: none;
	transition: color var(--motion-base) var(--ease-standard);
}

html body footer#footer .hmns-footer__col li a:hover {
	color: var(--hmns-white);
	text-decoration: underline;
	text-decoration-color: var(--hmns-serengeti);
	text-underline-offset: 4px;
}

@media screen and (max-width: 1024px) {
	html body footer#footer .hmns-footer__col li a {
		display: flex;
		width: 100%;
		min-height: 44px;
	}
}

/* Secondary utility & CityPASS strip */
html body footer#footer .hmns-footer__utility {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4) var(--space-6);
	padding: var(--space-5) 0;
	border-bottom: 1px solid color-mix(in srgb, var(--hmns-light-cream) 25%, transparent);
}

html body footer#footer .hmns-footer__secondary-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1) var(--space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

html body footer#footer .hmns-footer__secondary-links li {
	margin: 0;
	padding: 0;
}

html body footer#footer .hmns-footer__secondary-links a {
	display: inline-flex;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
	font-family: var(--font-body);
	font-size: var(--type-small);
	line-height: var(--leading-small);
	font-weight: var(--weight-light);
	color: var(--text-on-dark);
	text-decoration: none;
	transition: color var(--motion-base) var(--ease-standard);
}

html body footer#footer .hmns-footer__secondary-links a:hover {
	color: var(--hmns-white);
	text-decoration: underline;
	text-decoration-color: var(--hmns-serengeti);
	text-underline-offset: 4px;
}

html body footer#footer .hmns-footer__citypass {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	font-family: var(--font-body);
	font-size: var(--type-small);
	line-height: var(--leading-small);
	font-weight: var(--weight-light);
	color: var(--text-on-dark);
}

html body footer#footer .hmns-footer__citypass-img {
	display: block;
	width: 72px;
	height: auto;
	flex: 0 0 auto;
}

html body footer#footer .hmns-footer__citypass-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	min-height: 44px;
	font-weight: var(--weight-regular);
	color: var(--hmns-white);
	text-decoration: underline;
	text-decoration-color: var(--hmns-serengeti);
	text-underline-offset: 4px;
	white-space: nowrap;
	transition: color var(--motion-base) var(--ease-standard);
}

html body footer#footer .hmns-footer__citypass-link:hover {
	color: var(--hmns-light-cream);
}

html body footer#footer .hmns-footer__citypass-link svg {
	width: var(--icon-size-xs);
	height: var(--icon-size-xs);
	color: currentColor;
	margin: 0;
}

/* ===== Band 4: Legal Row (#copyright — TNEW checkout parity) ===== */
html body footer#footer .container #copyright {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: var(--space-6) var(--space-6) 168px;
	box-sizing: border-box;
	border: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	font-family: var(--font-body);
	font-size: var(--type-small);
	line-height: var(--leading-small);
	font-weight: var(--weight-light);
	color: var(--text-on-dark);
}

html body footer#footer .container #copyright .cp-flex {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-1) var(--space-5);
	margin: 0;
	font-size: var(--type-small);
	line-height: var(--leading-small);
}

html body footer#footer .container #copyright .cp-flex span:first-child,
html body footer#footer .container #copyright .cp-flex span:nth-child(2),
html body footer#footer .container #copyright .cp-flex span:nth-child(3),
html body footer#footer .container #copyright .cp-flex span:nth-child(5) {
	grid-column: auto;
	display: inline;
	text-align: left;
}

html body footer#footer .container #copyright .cp-flex a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: -8px 0;
	padding: 0;
	color: var(--text-on-dark);
	font-size: var(--type-small);
	line-height: var(--leading-small);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--hmns-light-cream) 45%, transparent);
	text-underline-offset: 4px;
	white-space: nowrap;
	transition: color var(--motion-base) var(--ease-standard), text-decoration-color var(--motion-base) var(--ease-standard);
}

html body footer#footer .container #copyright .cp-flex a:hover {
	color: var(--hmns-white);
	text-decoration-color: var(--hmns-serengeti);
}

html body footer#footer .container #copyright .cp-non-profit {
	display: block;
	margin: 0;
	max-width: var(--measure);
	font-size: var(--type-small);
	line-height: var(--leading-small);
	font-weight: var(--weight-light);
	color: var(--text-on-dark);
}

/* ===== Engraving Frieze (.footer-bg — TNEW checkout parity) ===== */
html body footer#footer .footer-bg {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 141px;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

html body footer#footer .footer-bg img {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 1920px;
	max-width: none;
	height: 141px;
	object-fit: cover;
	mix-blend-mode: multiply;
	opacity: 0.45;
	pointer-events: none;
}

/* ===== Motion Reduction ===== */
@media (prefers-reduced-motion: reduce) {
	html body footer#footer #hmns-map .mc-phone a,
	html body footer#footer #hmns-map .mc-directions a,
	html body footer#footer .hmns-newsletter-box .signup-link a.hmns-nl-cta,
	html body footer#footer .hmns-footer__socials a,
	html body footer#footer .hmns-footer__contact .hmns-footer__phone,
	html body footer#footer .hmns-footer__col li a,
	html body footer#footer .hmns-footer__secondary-links a,
	html body footer#footer .hmns-footer__citypass-link,
	html body footer#footer .container #copyright .cp-flex a {
		transition: none;
	}
}
