/**
 * Site footer — simple light layout, hero-style green accent.
 */

.site-footer {
	position: relative;
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-block: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 1.75rem);
	border-top: 1px solid var(--dawnsol-color-border, #e2e8f0);
	background: #fff;
	overflow: hidden;
	isolation: isolate;
}

.site-footer__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	pointer-events: none;
	z-index: 0;
}

.site-footer__blob--br {
	bottom: -35%;
	right: -18%;
	width: min(72vw, 720px);
	height: min(72vw, 720px);
	background: radial-gradient(circle, #eaf3f0 0%, #2f8364 50%, transparent 72%);
	opacity: 0.75;
	animation: site-footer-blob-br 9s ease-in-out infinite;
}

.site-footer__shell {
	position: relative;
	z-index: 1;
}

.site-footer__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(1.75rem, 4vw, 3rem);
	padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.site-footer__brand {
	flex: 1 1 260px;
	max-width: 380px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.site-footer__columns {
	display: flex;
	flex: 2 1 420px;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.site-footer__col {
	flex: 1 1 150px;
	min-width: 0;
}

.site-footer__brand-mark .custom-logo-link {
	display: inline-flex;
}

.site-footer__brand-mark .custom-logo {
	max-height: 60px;
	width: auto;
}

.site-footer__brand-name {
	color: var(--dawnsol-color-green-dark, #06140f);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.site-footer__brand-tagline {
	margin: 0.45rem 0 0;
	color: var(--dawnsol-color-muted, #718096);
	font-size: 16px;
	line-height: 1.55;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	border: 1px solid rgba(47, 131, 100, 0.16);
	background: var(--dawnsol-color-green-mint, #eaf3f0);
	color: var(--dawnsol-color-green, #2f8364);
	text-decoration: none;
	transition:
		transform 0.3s ease,
		background-color 0.3s ease,
		border-color 0.3s ease,
		color 0.3s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
	background: var(--dawnsol-color-green, #2f8364);
	border-color: var(--dawnsol-color-green, #2f8364);
	color: #fff;
	transform: translateY(-2px);
}

.site-footer__col-title,
.site-footer__widgets .widget-title {
	--ds-heading-accent: var(--dawnsol-color-green, #2f8364);
	--ds-heading-accent-light: var(--dawnsol-color-green-light, #3ecf9a);

	position: relative;
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 0.9rem;
	padding-bottom: 0.65rem;
	color: var(--dawnsol-color-green-dark, #06140f);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.site-footer__col-title::after,
.site-footer__widgets .widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(6rem, 42%);
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		var(--ds-heading-accent) 0%,
		var(--ds-heading-accent-light) 70%,
		transparent 100%
	);
}

.site-footer__nav ul,
.site-footer__widgets .widget ul,
.site-footer__contact-list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__legal-nav ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav a,
.site-footer__contact-list a,
.site-footer__widgets a {
	color: var(--dawnsol-color-muted, #718096);
	font-size: 16px;
	line-height: 1.45;
	text-decoration: none;
	transition: color 0.25s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible,
.site-footer__contact-list a:hover,
.site-footer__contact-list a:focus-visible,
.site-footer__widgets a:hover,
.site-footer__widgets a:focus-visible {
	color: var(--dawnsol-color-green, #2f8364);
}

.site-footer__contact-list li {
	color: var(--dawnsol-color-muted, #718096);
	font-size: 0.9rem;
	line-height: 1.45;
}

.site-footer__widgets {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1rem, 2.5vw, 2rem);
}

.site-footer__widgets .widget {
	flex: 1 1 140px;
	min-width: 0;
	margin: 0;
}

.site-footer__widgets .widget p,
.site-footer__widgets .widget li {
	color: var(--dawnsol-color-muted, #718096);
	font-size: 0.9rem;
	line-height: 1.45;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--dawnsol-color-border, #e2e8f0);
}

.site-footer__copy {
	margin: 0;
	color: var(--dawnsol-color-muted, #718096);
	font-size: 0.84rem;
	line-height: 1.5;
}

.site-footer__copy a {
	color: var(--dawnsol-color-text, #2d3748);
	text-decoration: none;
	transition: color 0.25s ease;
}

.site-footer__copy a:hover,
.site-footer__copy a:focus-visible {
	color: var(--dawnsol-color-green, #2f8364);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
}

.site-footer__legal-nav a {
	color: var(--dawnsol-color-muted, #718096);
	font-size: 0.84rem;
	text-decoration: none;
	transition: color 0.25s ease;
}

.site-footer__legal-nav a:hover,
.site-footer__legal-nav a:focus-visible {
	color: var(--dawnsol-color-green, #2f8364);
}

.site-footer__top {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid rgba(47, 131, 100, 0.22);
	border-radius: 999px;
	background: #fff;
	color: var(--dawnsol-color-green-dark, #06140f);
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition:
		transform 0.3s ease,
		background-color 0.3s ease,
		border-color 0.3s ease,
		color 0.3s ease;
}

.site-footer__top:hover,
.site-footer__top:focus-visible {
	background: var(--dawnsol-color-green-mint, #eaf3f0);
	border-color: rgba(47, 131, 100, 0.35);
	color: var(--dawnsol-color-green, #2f8364);
	transform: translateY(-2px);
}

.site-footer__top svg {
	display: block;
}

@keyframes site-footer-blob-br {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}

	50% {
		transform: translate(-10%, -8%) scale(1.08);
	}
}

@media (max-width: 1024px) {
	.site-footer__columns {
		flex-basis: 100%;
	}
}

@media (max-width: 768px) {
	.site-footer__grid {
		flex-direction: column;
		gap: 1.75rem;
	}

	.site-footer__brand {
		max-width: none;
	}

	.site-footer__columns {
		flex-direction: column;
		gap: 1.5rem;
	}

	.site-footer__col {
		flex-basis: 100%;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-footer__blob--br {
		width: min(90vw, 520px);
		height: min(90vw, 520px);
		right: -30%;
		bottom: -25%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-footer__blob--br,
	.site-footer__social-link,
	.site-footer__top {
		animation: none;
		transition: none;
	}

	.site-footer__social-link:hover,
	.site-footer__top:hover {
		transform: none;
	}
}
