/* Marketing site footer. Link columns mirror the navbar groups (site-nav-links.php). Values follow the theme's bg-dark footer. */

.site-footer {
	--sf-bg: #21262c;
	position: relative;
	overflow: hidden;
	--sf-text: #cacaca;
	--sf-muted: #aab0bc;
	--sf-white: #ffffff;
	--sf-hover: var(--bs-primary, #ed8134);
	--sf-line: rgba(164, 174, 198, 0.2);

	background: var(--sf-bg);
	color: var(--sf-text);
	font-size: 0.8rem; /* 16px: theme root is 20px */
}

.site-footer > .container {
	padding-top: 80px;
	padding-bottom: 35px;
}

.site-footer a:not(.btn) {
	color: var(--sf-text);
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}

.site-footer a:not(.btn):hover {
	color: var(--sf-hover);
}

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

/* CTA band */

/* CTA card: a lifted dark panel with a soft orange glow in one corner */
.site-footer__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	margin-bottom: 50px;
	padding: 56px;
	border: 1px solid var(--sf-line);
	border-radius: 0.4rem;
	background:
		radial-gradient(ellipse 60% 120% at 100% 0%, rgba(237, 129, 52, 0.28) 0%, rgba(237, 129, 52, 0) 70%),
		radial-gradient(ellipse 40% 80% at 0% 100%, rgba(237, 129, 52, 0.08) 0%, rgba(237, 129, 52, 0) 70%),
		rgba(255, 255, 255, 0.03);
}

.site-footer__heading {
	flex: 1 1 520px;
	max-width: 760px;
	margin: 0;
	color: var(--sf-white);
	font-size: calc(1.305rem + 0.66vw);
	font-weight: 700;
	line-height: 1.3;
}

.site-footer__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Ask AI */

.site-footer__ai {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 0;
	border-top: 1px solid var(--sf-line);
	border-bottom: 1px solid var(--sf-line);
}

/* Newsletter + link columns */

.site-footer__main {
	display: grid;
	grid-template-columns: minmax(280px, 4fr) 9fr;
	gap: 48px 64px;
	padding: 60px 0;
}

.site-footer__title {
	margin: 0 0 15px;
	color: var(--sf-white);
	font-size: 1.1875em;
	font-weight: 700;
	line-height: 1.45;
}

.site-footer__small {
	margin: -6px 0 16px;
	color: var(--sf-muted);
}

.site-footer .newsletter-wrapper {
	max-width: 400px;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 20px 0 0 -10px;
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 1.25em;
}

.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 40px 24px;
}

.site-footer__col li + li {
	margin-top: 7px;
}

.site-footer__col a .uil {
	font-size: 0.85em;
}

/* Bottom bar */

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 20px;
	border-top: 1px solid var(--sf-line);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

/* Oversized wordmark bleeding off the bottom edge, in the logo's lettering (Orbitron) */
.site-footer > .site-footer__wordmark-wrap {
	container-type: inline-size;
	padding-top: 0;
	padding-bottom: 0;
}

.site-footer__wordmark {
	height: 0.52em;
	margin-top: 16px;
	overflow: hidden;
	font-family: "Orbitron", var(--bs-font-sans-serif, sans-serif);
	font-size: clamp(40px, 12vw, 194px);
	font-size: calc(100cqw / 6.64); /* "E2C STORE" in Orbitron 800 is ~6.63em wide */
	font-weight: 800;
	line-height: 0.8;
	letter-spacing: 0;
	text-align: center;
	white-space: nowrap;
	user-select: none;
	pointer-events: none;
}

.site-footer__wordmark span {
	display: inline-block;
	background: linear-gradient(180deg, rgba(237, 129, 52, 0.95) 0%, rgba(237, 129, 52, 0.45) 45%, rgba(237, 129, 52, 0) 85%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (min-width: 1200px) {
	.site-footer__heading {
		font-size: 1.8rem;
	}
}

@media (max-width: 1199.98px) {
	.site-footer__main {
		grid-template-columns: 1fr;
	}

	.site-footer__about {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: space-between;
		gap: 16px 40px;
	}

	.site-footer__about > :not(.site-footer__social) {
		flex-basis: 100%;
	}

	.site-footer__about > .newsletter-wrapper {
		flex: 1 1 320px;
	}

	.site-footer__social {
		margin-top: 0;
	}
}

@media (max-width: 767.98px) {
	.site-footer > .container:not(.site-footer__wordmark-wrap) {
		padding-top: 70px;
		padding-bottom: 24px;
	}

	.site-footer__wordmark {
		margin-top: 8px;
	}

	.site-footer__cta {
		padding: 32px 24px;
	}

	.site-footer__social {
		margin-top: 20px;
	}

	.site-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__col a {
		display: inline-block;
		padding: 3px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-footer * {
		transition: none !important;
	}
}
