/* Footer V8 — Centered hub with background image */

[data-section-key="footer"],
.theme-preview-section[data-section-key="footer"] {
	display: block;
	width: 100%;
	max-width: none;
}

.footer-v8 {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-top: clamp(48px, 6vw, 80px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: var(--sc-footer-v8-root-bg, transparent);
	color: var(--sc-footer-v8-root-text, var(--footer-text-color, #fff));
}

.footer-v8__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	min-height: clamp(340px, 48vh, 620px);
	overflow: hidden;
	background: var(--sc-footer-v8-panel-bg, var(--footer-background-color, #0a0a0a));
	color: var(--sc-footer-v8-panel-text, var(--footer-text-color, #fff));
}

.footer-v8__bg {
	position: absolute;
	inset: 0;
	background-color: var(--sc-footer-v8-bg-layer-bg, transparent);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	transform: scale(1.02);
}

.footer-v8__overlay {
	position: absolute;
	inset: 0;
	background: var(--sc-footer-v8-overlay-bg, color-mix(in srgb, var(--footer-background-color, #0a0a0a) 72%, transparent));
	pointer-events: none;
}

.footer-v8--has-bg .footer-v8__overlay {
	background: var(--sc-footer-v8-overlay-has-bg-bg, color-mix(in srgb, #000000 58%, transparent));
}

.footer-v8__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	min-height: inherit;
	gap: clamp(28px, 4vw, 40px);
	padding: clamp(48px, 8vw, 80px) clamp(20px, 4vw, 32px);
	color: var(--sc-footer-v8-content-text, var(--footer-text-color, #fff));
}

.footer-v8__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
}

.footer-v8__logo-line {
	display: block;
	width: 100%;
	text-align: center;
	text-decoration: none;
	color: var(--sc-footer-v8-brand-link-text, inherit);
	transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-v8__logo-line:hover {
	opacity: 0.92;
	color: var(--sc-footer-v8-brand-link-hover-text, inherit);
}

.footer-v8__logo {
	display: block;
	width: auto;
	height: 40px;
	max-width: 120px;
	margin-inline: auto;
	object-fit: contain;
}

.footer-v8__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(12px, 3vw, 36px);
	max-width: 720px;
}

.footer-v8__nav-link,
.footer-v8__nav a {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--sc-footer-v8-nav-link-text, var(--footer-text-color, #fff));
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-v8__nav-link:hover,
.footer-v8__nav a:hover {
	color: var(--sc-footer-v8-nav-link-hover-text, var(--footer-hover-text-color, #fff));
	opacity: 1;
}

.footer-v8__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(16px, 3vw, 28px);
}

.footer-v8__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--sc-footer-v8-social-link-border, var(--footer-social-icon-background-color, transparent));
	background: var(--sc-footer-v8-social-link-bg, var(--footer-social-icon-background-color, transparent));
	color: var(--sc-footer-v8-social-link-text, var(--footer-social-icon-color, currentColor));
	font-size: 20px;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-v8__social-link:hover {
	color: var(--sc-footer-v8-social-link-hover-text, var(--footer-social-icon-hover-color, #fff));
	background: var(--sc-footer-v8-social-link-hover-bg, var(--footer-social-icon-hover-background-color, transparent));
	border-color: var(--sc-footer-v8-social-link-hover-border, var(--primary-brand-color, #fff));
	transform: translateY(-1px);
}

.footer-v8__credit {
	margin: auto 0 0;
	padding-top: clamp(20px, 3vw, 32px);
	max-width: 520px;
	text-align: center;
	font-size: 11px;
	line-height: 1.5;
	color: var(--sc-footer-v8-credit-text, var(--footer-text-color, #888));
}

.footer-v8__credit a {
	color: var(--sc-footer-v8-credit-link-text, var(--footer-text-color, #aaa));
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-v8__credit a:hover {
	color: var(--sc-footer-v8-credit-link-hover-text, var(--primary-brand-color, #fff));
	text-decoration: underline;
}

@media (max-width: 576px) {
	.footer-v8__nav {
		flex-direction: column;
		gap: 14px;
	}

	.footer-v8__content {
		padding-inline: 20px;
	}
}

[dir="rtl"] .footer-v8__social {
	flex-direction: row-reverse;
}
