/* ==========================================================================
   Footer — Newsletter signup, link columns, wordmark, bottom bar
   ========================================================================== */

/* --- Oversized wordmark sign-off -------------------------------------- */
.footer-wordmark {
	background-color: var(--color-dark);
	overflow: hidden;
}
.footer-wordmark__inner {
	padding: clamp(2.5rem, 6vw, 5rem) var(--container-padding) clamp(1.5rem, 3vw, 2.5rem);
	display: flex;
	justify-content: center;
}
.footer-wordmark span {
	display: block;
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: clamp(3rem, 18vw, 14rem);
	line-height: 0.8;
	letter-spacing: -0.05em;
	color: rgba(255, 255, 255, 0.08);
	white-space: nowrap;
	user-select: none;
	text-transform: none;
}

/* --------------------------------------------------------------------------
   1. NEWSLETTER SECTION — Cream background
   -------------------------------------------------------------------------- */

.footer-newsletter {
	background-color: var(--color-bg-soft);
	padding: var(--space-3xl) 0;
}

.footer-newsletter__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
	align-items: center;
}

@media (min-width: 768px) {
	.footer-newsletter__inner {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-3xl);
	}
}

.footer-newsletter__heading {
	font-size: var(--text-3xl);
	margin-bottom: var(--space-md);
	color: var(--color-dark);
}

.footer-newsletter__benefits {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-newsletter__benefits li {
	position: relative;
	padding-left: var(--space-lg);
	margin-bottom: var(--space-sm);
	font-size: var(--text-base);
	color: var(--color-text-muted);
}

.footer-newsletter__benefits li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 8px;
	height: 8px;
	background-color: var(--color-accent);
	border-radius: var(--radius-full);
}

.footer-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.footer-newsletter__input-group {
	display: flex;
	gap: var(--space-sm);
}

.footer-newsletter__input {
	flex: 1;
	padding: 0.75em 1em;
	font-size: var(--text-base);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: var(--color-bg);
	transition: border-color var(--transition-base);
}

.footer-newsletter__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.15);
}

.footer-newsletter__input::placeholder {
	color: var(--color-text-light);
}

.footer-newsletter__submit {
	flex-shrink: 0;
}

.footer-newsletter__disclaimer {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	line-height: var(--leading-normal);
}

.footer-newsletter__disclaimer a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. MAIN FOOTER — Link columns
   -------------------------------------------------------------------------- */

.site-footer {
	background-color: var(--color-dark);
	color: rgba(255, 255, 255, 0.85);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color var(--transition-base);
}

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

.site-footer a:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.footer-main {
	padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-main__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
}

@media (min-width: 480px) {
	.footer-main__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.footer-main__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.footer-column__title {
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: var(--weight-bold);
	color: var(--color-bg);
	margin-bottom: var(--space-md);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.footer-column__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-column__list li {
	margin-bottom: var(--space-sm);
}

.footer-column__list a {
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
}

/* Footer contact info */
.footer-contact__item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-sm);
	margin-bottom: var(--space-sm);
	font-size: var(--text-sm);
}

.footer-contact__item svg {
	flex-shrink: 0;
	margin-top: 2px;
	opacity: 0.7;
}

/* --------------------------------------------------------------------------
   3. BOTTOM BAR — Copyright, social icons, funder logos
   -------------------------------------------------------------------------- */

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: var(--space-lg) 0;
}

.footer-bottom__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-md);
	text-align: center;
}

@media (min-width: 768px) {
	.footer-bottom__inner {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

.footer-bottom__copyright {
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, 0.5);
}

/* Social icons */
.social-links {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	list-style: none;
	padding: 0;
	margin: 0;
}

.social-links__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-full);
	color: rgba(255, 255, 255, 0.7);
	transition: color var(--transition-base), background-color var(--transition-base);
}

.social-links__link:hover {
	color: var(--color-bg);
	background-color: rgba(255, 255, 255, 0.1);
}

.social-links__link:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Funder logos placeholder */
.footer-funders {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	opacity: 0.5;
	margin-top: var(--space-md);
}

@media (min-width: 768px) {
	.footer-funders {
		margin-top: 0;
	}
}

.footer-funders__label {
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.4);
	white-space: nowrap;
}
