/**
 * AppVortex — Footer
 * Premium dark footer aligned with footer-main.php markup.
 */

.av-site-footer {
	--av-footer-bg: #0b1a2c;
	--av-footer-surface: #10233a;
	--av-footer-elevated: #16324f;
	--av-footer-border: rgba(255, 255, 255, 0.08);
	--av-footer-text: #f4f8ff;
	--av-footer-muted: #8aa0b8;
	--av-footer-accent: #2f9bff;
	--av-footer-accent-2: #1476e8;
	position: relative;
	overflow: hidden;
	margin-top: 72px;
	padding: 72px 0 0;
	background:
		radial-gradient(900px 280px at 12% -10%, rgba(47, 155, 255, 0.18), transparent 60%),
		radial-gradient(700px 240px at 92% 8%, rgba(20, 118, 232, 0.14), transparent 55%),
		var(--av-footer-bg);
	color: var(--av-footer-text);
	border-top: 1px solid var(--av-footer-border);
}

.av-site-footer__glow {
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(47, 155, 255, 0.55),
		rgba(20, 118, 232, 0.4),
		transparent
	);
	pointer-events: none;
}

.av-site-footer .av-container {
	position: relative;
	z-index: 1;
	width: min(1200px, calc(100% - 40px));
	margin-inline: auto;
}

.av-footer-main {
	display: grid;
	grid-template-columns: 1.35fr repeat(3, minmax(0, 0.75fr)) 1.15fr;
	gap: 36px 28px;
	padding-bottom: 48px;
}

.av-footer-brand__logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	text-decoration: none;
	color: inherit;
}

.av-footer-brand__image {
	display: block;
	max-height: 42px;
	width: auto;
}

.av-footer-brand__mark {
	display: inline-flex;
	flex-shrink: 0;
}

.av-footer-brand__name {
	font-size: 22px;
	font-weight: 750;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.av-footer-brand__description {
	max-width: 34ch;
	margin: 0 0 22px;
	color: var(--av-footer-muted);
	font-size: 15px;
	line-height: 1.7;
}

.av-footer-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.av-footer-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid var(--av-footer-border);
	background: rgba(255, 255, 255, 0.03);
	color: #d7dcf0;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.av-footer-social svg {
	width: 18px;
	height: 18px;
}

.av-footer-social:hover,
.av-footer-social:focus-visible {
	transform: translateY(-2px);
	background: linear-gradient(180deg, rgba(140, 107, 255, 0.22), rgba(91, 56, 245, 0.16));
	border-color: rgba(140, 107, 255, 0.45);
	color: #fff;
	outline: none;
}

.av-footer-title {
	margin: 4px 0 18px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ecefff;
}

.av-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.av-footer-menu a,
.av-footer-menu span {
	color: var(--av-footer-muted);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.5;
	transition: color 0.16s ease;
}

.av-footer-menu a:hover,
.av-footer-menu a:focus-visible {
	color: #fff;
	outline: none;
}

.av-footer-menu--muted span {
	opacity: 0.72;
}

.av-footer-newsletter {
	padding: 22px 22px 20px;
	border-radius: 20px;
	background:
		linear-gradient(180deg, rgba(140, 107, 255, 0.12), rgba(18, 21, 36, 0.4)),
		var(--av-footer-surface);
	border: 1px solid var(--av-footer-border);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.av-section-eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #cbbdff;
}

.av-footer-newsletter__title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
	letter-spacing: -0.03em;
}

.av-footer-newsletter__description {
	margin: 0 0 18px;
	color: var(--av-footer-muted);
	font-size: 14px;
	line-height: 1.65;
}

.av-footer-newsletter__placeholder {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 14px;
	border-radius: 12px;
	border: 1px dashed rgba(203, 189, 255, 0.35);
	color: #c5cbe0;
	font-size: 13px;
	background: rgba(255, 255, 255, 0.03);
}

.av-footer-newsletter__form input[type="email"],
.av-footer-newsletter__form input[type="text"] {
	width: 100%;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: #0f1220;
	color: #fff;
}

.av-footer-newsletter__form button,
.av-footer-newsletter__form input[type="submit"] {
	margin-top: 10px;
	min-height: 46px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--av-footer-accent), var(--av-footer-accent-2));
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.av-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	padding: 20px 0 28px;
	border-top: 1px solid var(--av-footer-border);
	color: var(--av-footer-muted);
	font-size: 13px;
}

.av-footer-bottom__links,
.av-footer-credit {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.av-footer-bottom a {
	color: #c9d0e8;
	text-decoration: none;
}

.av-footer-bottom a:hover,
.av-footer-bottom a:focus-visible {
	color: #fff;
	outline: none;
}

.av-footer-credit a {
	font-weight: 700;
	background: linear-gradient(135deg, #d7ecff, #2f9bff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (max-width: 1100px) {
	.av-footer-main {
		grid-template-columns: 1fr 1fr;
	}

	.av-footer-newsletter {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	.av-footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 22px 16px;
	}

	.av-site-footer {
		padding-top: 52px;
		margin-top: 48px;
	}


	.av-footer-brand__description {
		max-width: none;
	}

	.av-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

.av-footer-credit {
	flex-direction: row;
	unicode-bidi: isolate;
}
.av-footer-credit span {
	margin-inline-end: 6px;
}

.av-footer-credit[dir="ltr"] {
	flex-direction: row;
	direction: ltr;
	unicode-bidi: isolate;
}

@media (max-width: 760px) {
	.av-site-footer {
		padding-top: 36px;
		margin-top: 36px;
	}
	.av-footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 16px 12px;
		padding-bottom: 24px;
	}
	.av-footer-brand,
	.av-footer-newsletter {
		grid-column: 1 / -1;
	}
	.av-footer-brand,
	.av-footer-col,
	.av-footer-newsletter {
		padding: 14px;
		border: 1px solid var(--av-footer-border);
		border-radius: 14px;
		background: rgba(255,255,255,.03);
	}
	.av-footer-brand__name {
		font-size: 18px;
	}
	.av-footer-brand__description,
	.av-footer-newsletter p,
	.av-footer-newsletter small {
		font-size: 13px;
		line-height: 1.55;
		margin: 0 0 8px;
	}
	.av-footer-col h3,
	.av-footer-newsletter__title {
		font-size: 13px;
		margin: 0 0 8px;
		letter-spacing: .06em;
		text-transform: uppercase;
	}
	.av-footer-menu a,
	.av-footer-menu span {
		font-size: 13px;
		padding: 4px 0;
	}
	.av-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding-top: 16px;
	}
}
