/* Footer V5 — Wave crest + centered editorial hub */

.footer-v5 {
	position: relative;
	margin-top: clamp(56px, 7vw, 96px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: var(--sc-footer-v5-root-bg, transparent);
	color: var(--sc-footer-v5-root-text, var(--footer-text-color));
}

.footer-v5__wave {
	display: block;
	width: 100%;
	height: clamp(48px, 6vw, 72px);
	line-height: 0;
}

.footer-v5__wave svg {
	display: block;
	width: 100%;
	height: 100%;
}

.footer-v5__wave path {
	fill: var(--footer-background-color);
}

.footer-v5__surface {
	position: relative;
	background: var(--sc-footer-v5-surface-bg, var(--footer-background-color));
	overflow: hidden;
}

.footer-v5__mesh {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 50% at 50% 0%, color-mix(in srgb, var(--primary-brand-color) 16%, transparent), transparent 65%),
		radial-gradient(circle at 15% 85%, color-mix(in srgb, var(--primary-brand-color) 8%, transparent), transparent 45%),
		radial-gradient(circle at 85% 75%, color-mix(in srgb, var(--primary-brand-color) 6%, transparent), transparent 40%);
	pointer-events: none;
}

.footer-v5__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: clamp(8px, 2vw, 20px) 0 calc(28px + env(safe-area-inset-bottom, 0px));
	gap: clamp(24px, 4vw, 36px);
}

.footer-v5__masthead {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	max-width: 560px;
}

.footer-v5__logo-link {
	display: inline-block;
}

.footer-v5__logo {
	display: block;
	max-width: 140px;
	max-height: 52px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.footer-v5__title {
	margin: 0;
	font-size: clamp(1.75rem, 4.5vw, 2.75rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--sc-footer-v5-title-text, var(--footer-hover-text-color));
}

.footer-v5__tagline {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.75;
	color: var(--sc-footer-v5-tagline-text, color-mix(in srgb, var(--footer-text-color) 72%, transparent));
}

.footer-v5__nav,
.footer-v5__policies {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
}

.footer-v5__nav a,
.footer-v5__policies a {
	font-size: 14px;
	font-weight: 600;
	color: var(--sc-footer-v5-nav-link-text, color-mix(in srgb, var(--footer-text-color) 88%, transparent));
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-v5__nav a:hover,
.footer-v5__policies a:hover {
	color: var(--sc-footer-v5-nav-link-hover-text, var(--primary-brand-color));
}

.footer-v5__nav-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--sc-footer-v5-nav-dot-bg, color-mix(in srgb, var(--primary-brand-color) 55%, transparent));
	flex-shrink: 0;
}

.footer-v5__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	width: 100%;
	max-width: 860px;
}

.footer-v5__stat {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
	border-radius: 16px;
	text-align: start;
	background: var(--sc-footer-v5-stat-bg, color-mix(in srgb, var(--footer-text-color) 4%, transparent));
	border: 1px solid var(--sc-footer-v5-stat-border, color-mix(in srgb, var(--footer-text-color) 10%, transparent));
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.footer-v5__stat:hover {
	border-color: var(--sc-footer-v5-stat-hover-border, color-mix(in srgb, var(--primary-brand-color) 35%, transparent));
	transform: translateY(-2px);
}

.footer-v5__stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	flex-shrink: 0;
	background: var(--sc-footer-v5-stat-icon-bg, color-mix(in srgb, var(--primary-brand-color) 14%, transparent));
	color: var(--sc-footer-v5-stat-icon-text, var(--primary-brand-color));
	font-size: 16px;
}

.footer-v5__stat-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.footer-v5__stat-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sc-footer-v5-stat-label-text, color-mix(in srgb, var(--footer-text-color) 50%, transparent));
}

.footer-v5__stat-body a,
.footer-v5__stat-body span {
	font-size: 14px;
	line-height: 1.5;
	color: var(--sc-footer-v5-stat-body-link-text, var(--footer-text-color));
	text-decoration: none;
	word-break: break-word;
}

.footer-v5__stat-body a:hover {
	color: var(--sc-footer-v5-stat-body-link-hover-text, var(--primary-brand-color));
}

.footer-v5__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 20px;
}

.footer-v5__whatsapp-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	color: var(--sc-footer-v5-whatsapp-btn-text, #fff);
	text-decoration: none;
	background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
	box-shadow: 0 10px 28px color-mix(in srgb, #25d366 35%, transparent);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-v5__whatsapp-btn i {
	font-size: 20px;
}

.footer-v5__whatsapp-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px color-mix(in srgb, #25d366 42%, transparent);
	color: var(--sc-footer-v5-whatsapp-btn-hover-text, #fff);
}

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

.footer-v5__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--sc-footer-v5-social-link-border, color-mix(in srgb, var(--footer-text-color) 14%, transparent));
	background: var(--sc-footer-v5-social-link-bg, color-mix(in srgb, var(--footer-text-color) 5%, transparent));
	color: var(--sc-footer-v5-social-link-text, var(--footer-text-color));
	font-size: 17px;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-v5__social a:hover {
	transform: translateY(-2px);
	border-color: var(--sc-footer-v5-social-link-hover-border, var(--primary-brand-color));
	color: var(--sc-footer-v5-social-link-hover-text, var(--primary-brand-color));
}

.footer-v5__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 24px;
	width: 100%;
	padding-top: clamp(20px, 3vw, 28px);
	border-top: 1px solid var(--sc-footer-v5-bar-border-top, color-mix(in srgb, var(--footer-text-color) 10%, transparent));
}

.footer-v5__copyright,
.footer-v5__credit {
	margin: 0;
	font-size: 12px;
	color: var(--sc-footer-v5-copyright-text, color-mix(in srgb, var(--footer-text-color) 55%, transparent));
}

.footer-v5__credit a {
	color: var(--sc-footer-v5-credit-link-text, var(--primary-brand-color));
	font-weight: 600;
	text-decoration: none;
}

.footer-v5__credit a:hover {
	text-decoration: underline;
}

@media (max-width: 576px) {
	.footer-v5__nav,
	.footer-v5__policies {
		flex-direction: column;
		gap: 10px;
	}

	.footer-v5__nav-dot {
		display: none;
	}

	.footer-v5__stats {
		grid-template-columns: 1fr;
	}

	.footer-v5__actions {
		flex-direction: column;
	}

	.footer-v5__whatsapp-btn {
		width: 100%;
		justify-content: center;
	}

	.footer-v5__bar {
		flex-direction: column;
		padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
	}
}

[dir="rtl"] .footer-v5__stat {
	text-align: right;
}

[dir="rtl"] .footer-v5__stat-body {
	align-items: flex-end;
}
