/**
 * YouthConnectHub homepage footer.
 */

.site-footer.ych-home-footer {
	width: 100%;
	max-width: none;
	margin: 0;
	border-top: 0.0625rem solid var(--ych-border);
	background:
		radial-gradient(circle at 88% 18%, rgba(154, 114, 208, 0.12), transparent 28rem),
		linear-gradient(115deg, #050c17 0%, var(--ych-bg-primary) 55%, #0a1530 100%);
	color: var(--ych-text-primary);
	font-family: var(--ych-font-body);
}

.ych-home-footer *,
.ych-home-footer *::before,
.ych-home-footer *::after { box-sizing: border-box; }

.ych-home-footer__grid,
.ych-home-footer .footer-main {
	display: grid;
	grid-template-columns: minmax(18rem, 1.35fr) repeat(2, minmax(10rem, 0.7fr)) minmax(12rem, 0.85fr);
	align-items: start;
	gap: clamp(1.5rem, 2.5vw, 2.75rem);
	padding-block: clamp(2.25rem, 3.5vw, 2.75rem);
}

.ych-home-footer__brand,
.ych-home-footer__column,
.ych-home-footer__social-column { min-width: 0; }

.ych-home-footer .ych-home-footer__column h2,
.ych-home-footer .ych-home-footer__social-column h2 {
	max-width: 100%;
	margin: 0 0 0.875rem;
	color: #fff;
	font-family: var(--ych-font-body);
	font-size: 0.875rem !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.35;
	overflow-wrap: normal;
	text-transform: none;
	word-break: normal;
}

.ych-home-footer__mission {
	max-width: 26rem;
	margin: 1rem 0 0;
	color: rgba(222, 232, 248, 0.74);
	font-size: 0.875rem;
	line-height: var(--ych-leading-body);
}

.ych-home-footer__logo {
	display: block;
	width: min(100%, 12rem);
	height: auto;
}

.ych-home-footer__column ul,
.ych-home-footer__socials {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ych-home-footer__column a,
.ych-home-footer__bottom a {
	display: inline-flex;
	width: fit-content;
	min-height: 2rem;
	align-items: center;
	color: rgba(239, 245, 255, 0.86);
	font-size: 0.875rem;
	line-height: 1.55;
	text-decoration: none;
	text-underline-offset: 0.25rem;
	transition: color var(--ych-transition), transform var(--ych-transition);
}

.ych-home-footer__column a:hover,
.ych-home-footer__bottom a:hover,
.ych-home-footer__contact-list a:hover {
	color: #9cc7ff;
	text-decoration: underline;
}

.ych-home-footer__contact-list {
	display: grid;
	gap: 0.625rem;
	margin: 1rem 0 0;
	font-style: normal;
}

.ych-home-footer__contact-list p {
	display: grid;
	gap: 0.25rem;
	margin: 0;
}

.ych-home-footer__contact-list span {
	color: #8fb9ee;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ych-home-footer__contact-list a {
	display: inline-flex;
	width: fit-content;
	min-height: 1.75rem;
	align-items: center;
	color: rgba(239, 245, 255, 0.86);
	font-size: 0.875rem;
	line-height: 1.55;
	text-decoration: none;
	transition: color var(--ych-transition);
}

.ych-home-footer__social-intro {
	max-width: 18rem;
	margin: 0 0 0.875rem;
	color: rgba(222, 232, 248, 0.7);
	font-size: 0.8125rem;
	line-height: var(--ych-leading-body);
}

.ych-home-footer__socials a,
.ych-home-footer__social-placeholder {
	display: inline-flex;
	width: 100%;
	height: 2.5rem;
	min-height: 2.5rem;
	align-items: center;
	justify-content: flex-start;
	gap: 0.625rem;
	padding: 0.45rem 0.75rem;
	border: 0.0625rem solid rgba(142, 176, 231, 0.26);
	border-radius: 0.625rem;
	background: linear-gradient(135deg, rgba(100, 152, 208, 0.12), rgba(120, 82, 168, 0.14));
	box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.06);
	color: rgba(239, 245, 255, 0.9);
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
	transition: border-color var(--ych-transition), box-shadow var(--ych-transition), transform var(--ych-transition);
}

.ych-home-footer__socials svg {
	width: 1.125rem;
	height: 1.125rem;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.ych-home-footer__socials a:hover {
	border-color: rgba(157, 190, 244, 0.52);
	box-shadow: 0 0.75rem 1.75rem rgba(4, 10, 22, 0.28);
	color: #fff;
	transform: translateY(-0.125rem);
}

.ych-home-footer__bottom,
.ych-home-footer .footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 0.75rem 0.875rem;
	border-top: 0.0625rem solid var(--ych-border);
	color: rgba(207, 219, 239, 0.6);
	font-size: 0.75rem;
	line-height: 1.5;
}

.ych-home-footer__bottom p { margin: 0; }

.ych-home-footer__bottom nav,
.ych-home-footer .footer-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.ych-home-footer__screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.ych-home-footer__link-placeholder {
	color: var(--ych-text-muted);
	cursor: not-allowed;
}

.ych-home-footer a:focus-visible {
	border-radius: 0.3rem;
	outline: 0.1875rem solid var(--ych-focus);
	outline-offset: 0.2rem;
}

.home #colophon.site-footer { display: none; }

body:not(.home) #colophon.site-footer {
	border-top: 0.0625rem solid var(--ych-border);
	background: #07111f;
	color: var(--ych-text-secondary);
	font-family: var(--ych-font-body);
}

body:not(.home) #colophon.site-footer .site-footer-wrap,
body:not(.home) #colophon.site-footer .site-container {
	width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max-width));
	margin-inline: auto;
}

body:not(.home) #colophon.site-footer a {
	color: var(--ych-text-primary);
	text-underline-offset: 0.25rem;
}

body:not(.home) #colophon.site-footer a:hover { color: var(--ych-accent-blue); }

body:not(.home) #colophon.site-footer a:focus-visible {
	outline: 0.1875rem solid var(--ych-focus);
	outline-offset: 0.25rem;
}

@media (max-width: 64rem) {
	.ych-home-footer__grid,
	.ych-home-footer .footer-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem clamp(2rem, 7vw, 4rem);
	}

	.ych-home-footer__bottom,
	.ych-home-footer .footer-bottom { align-items: flex-start; }
}

@media (max-width: 42rem) {
	.ych-home-footer__grid,
	.ych-home-footer .footer-main {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.75rem;
		padding-block: 2rem;
	}

	.ych-home-footer__socials a,
	.ych-home-footer__social-placeholder { width: 100%; }

	.ych-home-footer__bottom,
	.ych-home-footer .footer-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ych-home-footer a { transition: none; }

	.ych-home-footer__socials a:hover { transform: none; }
}

@media (forced-colors: active) {
	.ych-home-footer,
	.ych-home-footer__socials a,
	.ych-home-footer__social-placeholder { border: 0.125rem solid CanvasText; }
}
