/* Socios footer styles */

/* --- Footer Styles --- */

.site-footer {
	border-top: var(--border-width-1) solid var(--dark-neutral-400);
	background: var(--bg-footer);
}

.site-footer-content {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-40);
	padding: var(--padding-screen);
}

/* --- Top section: left (col1 + col2) | nav columns --- */

.site-footer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--spacing-40);
}

/* Left group: col1 (logo + social) stacked above col2 (lang switcher) */

.site-footer-left {
	display: flex;
	gap: var(--spacing-32);
	flex-shrink: 0;
}

/* Column 1: Logo + social icons */

.site-footer-col1 {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-32);
}

.site-footer-logo {
	display: flex;
}

.site-footer-logo img {
	height: 46px;
	width: auto;
}

/* Social icons row */

.site-footer-social {
	display: flex;
	gap: var(--spacing-16);
	align-items: center;
}

.site-footer-social-link {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--sizing-48);
	height: var(--sizing-48);
	background-color: var(--bg-main-container);
	border-radius: var(--radius-full);
	text-decoration: none;
	transition: 0.3s ease;
}

.site-footer-social-link:hover {
	transform: scale(0.95);
}

.site-footer-social-icon {
	width: var(--sizing-24);
	height: var(--sizing-24);
	filter: brightness(0);
	transition: 0.3s ease;
}

/* Column 2: Language switcher */

.site-footer-col2 {
	display: flex;
	align-items: flex-start;
}

/* Language switcher placeholder */

.site-footer-lang {
	display: flex;
	align-items: center;
	gap: var(--spacing-16);
	padding: var(--spacing-4) var(--spacing-16);
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-on-dark-enabled);
	border-radius: var(--radius-8);
	transition: 0.2s;
}

.site-footer-lang:hover {
	color: var(--blue-300);
	background-color: rgba(0, 0, 0, 0.2);
}

.site-footer-lang-icon {
	width: var(--sizing-24);
	height: var(--sizing-24);
	filter: brightness(0) invert(1);
}

.site-footer-lang-label {
	font-family: var(--font-family-text);
	font-size: var(--font-size-16);
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.16px;
	color: var(--text-on-dark-enabled);
	padding: var(--spacing-8) 0;
}

/* Navigation columns container */

.site-footer-nav-columns {
	display: flex;
	gap: 64px;
}

/* Individual nav column */

.site-footer-nav-col {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-16);
	flex: 1 1 0;
	min-width: 170px;
}

.site-footer-nav-title {
	font-family: var(--font-family-text);
	font-size: var(--font-size-18);
	font-weight: 700;
	line-height: normal;
	letter-spacing: 0.18px;
	color: var(--text-on-dark-enabled);
}

.site-footer-nav-col .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-12);
}

.site-footer-nav-col .menu-item a {
	color: var(--text-on-dark-enabled);
	font-family: var(--font-family-text);
	font-size: var(--font-size-16);
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.16px;
	text-decoration: none;
	transition: color 0.3s ease;
}

.site-footer-nav-col .menu-item a:hover {
	color: var(--blue-300);
}

/* --- Custom links (used in Custom mode nav_mode=links) --- */

.site-footer-custom-links {
	display: flex;
	gap: var(--spacing-24);
	align-items: center;
	flex: 1 0 0;
	justify-content: flex-end;
	min-height: 1px;
	min-width: 1px;
}

.site-footer-custom-link {
	font-family: var(--font-family-text);
	font-size: var(--font-size-16);
	font-weight: 700;
	line-height: normal;
	color: var(--text-on-dark-enabled);
	text-decoration: none;
	text-align: right;
	transition: color 0.3s ease;
}

.site-footer-custom-link:hover {
	color: var(--blue-300);
}

/* --- Bottom section: WYSIWYG footer text --- */

.site-footer-bottom {
	font-family: var(--font-family-text);
	font-size: var(--font-size-12);
	font-weight: 400;
	line-height: normal;
	letter-spacing: 0.12px;
	color: var(--text-on-dark-enabled);
	text-align: center;
	width: 100%;
}

.site-footer-bottom p {
	margin: 0 0 1em;
}

.site-footer-bottom p:last-child {
	margin-bottom: 0;
}

.site-footer-bottom a {
	color: var(--blue-300);
	text-decoration: underline;
	transition: color 0.3s ease;
}

.site-footer-bottom a:hover {
	color: var(--blue-200);
}

.site-footer-bottom strong {
	font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
	Campaign layout
	══════════════════════════════════════════════════════════ */

.site-footer--campaign .site-footer-content {
	gap: var(--spacing-16);
	padding: var(--padding-screen);
}

.site-footer-campaign {
	display: flex;
	align-items: center;
	gap: var(--spacing-16);
	width: 100%;
}

.site-footer-campaign-left {
	display: flex;
	align-items: center;
	gap: var(--spacing-16);
	flex-shrink: 0;
}

.site-footer-campaign-links {
	display: flex;
	gap: var(--spacing-24);
	align-items: center;
	justify-content: flex-end;
	flex: 1 0 0;
	min-height: 1px;
	min-width: 1px;
}

.site-footer-campaign-links .site-footer-custom-link {
	font-family: var(--font-family-text);
	font-size: var(--font-size-16);
	font-weight: 400;
	line-height: normal;
	color: var(--text-on-dark-enabled);
	text-decoration: none;
	text-align: right;
	transition: color 0.3s ease;
}

.site-footer-campaign-links .site-footer-custom-link:hover {
	color: var(--blue-300);
}

.site-footer-campaign-divider {
	width: 100%;
	height: 1px;
	background: var(--light-neutral-0);
}

/* ══════════════════════════════════════════════════════════
	Light theme
	══════════════════════════════════════════════════════════ */

.site-footer--light {
	background: var(--bg-main-container);
	border-top-color: var(--light-neutral-200);
}

.site-footer--light .site-footer-lang {
	color: var(--text-main-enabled);
}

.site-footer--light .site-footer-lang-icon {
	filter: brightness(0);
}

.site-footer--light .site-footer-lang-label {
	color: var(--text-main-enabled);
}

.site-footer--light .site-footer-nav-title {
	color: var(--text-main-enabled);
}

.site-footer--light .site-footer-nav-col .menu-item a {
	color: var(--text-main-enabled);
}

.site-footer--light .site-footer-nav-col .menu-item a:hover {
	color: var(--blue-500);
}

.site-footer--light .site-footer-social-link {
	background-color: var(--dark-neutral-500);
}

.site-footer--light .site-footer-social-icon {
	filter: brightness(0) invert(1);
}

.site-footer--light .site-footer-bottom {
	color: var(--text-main-enabled);
}

.site-footer--light .site-footer-bottom a {
	color: var(--blue-500);
}

.site-footer--light .site-footer-bottom a:hover {
	color: var(--blue-700);
}

.site-footer--light .site-footer-custom-link {
	color: var(--text-main-enabled);
}

.site-footer--light .site-footer-custom-link:hover {
	color: var(--blue-500);
}

.site-footer--light .site-footer-campaign-divider {
	background: var(--dark-neutral-400);
}

/* --- Responsive: Tablet --- */

@media screen and (max-width: 1024px) {
	.site-footer-content {
		padding: var(--padding-screen);
	}

	.site-footer-nav-columns {
		flex-wrap: wrap;
	}

	.site-footer-nav-col {
		min-width: 140px;
	}

	.site-footer-campaign {
		flex-wrap: wrap;
		gap: var(--spacing-16);
	}
}

/* --- Responsive: Mobile --- */

@media screen and (max-width: 768px) {
	.site-footer-content {
		padding: var(--padding-screen);
		gap: var(--spacing-40);
	}

	.site-footer-top {
		flex-direction: column;
		gap: var(--spacing-40);
	}

	.site-footer-left {
		width: 100%;
		flex-direction: column;
	}

	.site-footer-nav-columns {
		flex-wrap: wrap;
		gap: var(--spacing-16);
		width: 100%;
	}

	/* Columns 1 & 2 side-by-side, column 3 full width */

	.site-footer-nav-col--1,
	.site-footer-nav-col--2 {
		flex: 1 1 calc(50% - var(--spacing-8));
		min-width: 0;
	}

	.site-footer-nav-col--3 {
		flex: 1 1 100%;
	}

	/* Campaign layout stacks vertically on mobile */

	.site-footer-campaign {
		align-items: flex-start;
		gap: var(--spacing-24);
	}

	.site-footer-campaign-left {
		align-items: flex-start;
		justify-content: space-between;
		gap: var(--spacing-16);
		flex-shrink: inherit;
		width: 100%;
	}

	.site-footer-campaign-links {
		width: 100%;
	}

	/* Custom links wrap on mobile in default layout */

	.site-footer-custom-links {
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.site-footer--campaign .site-footer-content {
		gap: var(--spacing-24);
	}
}

/* ===================================================================
	Language Selector Modal (triggered from footer language button)
	=================================================================== */

.lang-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lang-modal__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.lang-modal__panel {
	position: relative;
	background: var(--light-neutral-0);
	border-radius: var(--radius-16);
	width: 90%;
	max-width: 480px;
	max-height: 80vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lang-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--spacing-16) var(--spacing-24);
	border-bottom: var(--border-width-1) solid var(--light-neutral-400);
}

.lang-modal__title {
	font-size: var(--font-size-16);
	font-weight: 400;
	color: var(--text-main-enabled);
}

.lang-modal__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	border-radius: var(--radius-4);
	transition: background 0.2s ease;
}

.lang-modal__close:hover {
	background: var(--light-neutral-200);
}

.lang-modal__close img {
	width: 14px;
	height: 14px;
	display: block;
	filter: invert(1) opacity(0.2);
}

.lang-modal__close:hover img {
	filter: invert(1) opacity(1);
}


.lang-modal__body {
	overflow-y: auto;
}

/* Language list inside the modal */

.lang-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lang-list__item {
	margin: 0;
}

.lang-list__link {
	display: flex;
	align-items: center;
	gap: var(--spacing-16);
	padding: var(--spacing-16) var(--spacing-24);
	text-decoration: none;
	color: var(--text-main-enabled);
	font-family: var(--font-family-text);
	font-size: var(--font-size-14);
	font-weight: 400;
	line-height: 1.5;
	transition: background 0.15s ease;
}

.lang-list__link:hover {
	background: var(--light-neutral-200);
}

.lang-list__item.is-active .lang-list__link {
	font-weight: 600;
}

/* Languages with no translation for the current page: greyed out, non-clickable. */
.lang-list__item.is-missing .lang-list__link {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

.lang-list__flag {
	width: 24px;
	height: 18px;
	border-radius: 2px;
	object-fit: cover;
	flex-shrink: 0;
}

.lang-list__name {
	flex: 1;
}

/* Modal animations */

.lang-modal.lang-modal--fade-in {
	animation: langModalFadeIn 0.2s ease forwards;
}

.lang-modal.lang-modal--fade-out {
	animation: langModalFadeOut 0.2s ease forwards;
}

@keyframes langModalFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes langModalFadeOut {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

/* ══════════════════════════════════════════════════════════
	UK layout
	══════════════════════════════════════════════════════════ */

.site-footer--uk .site-footer-content {
	padding: var(--padding-screen);
}

.site-footer-uk {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--spacing-24);
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.site-footer-uk-nav .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--spacing-16) var(--spacing-32);
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer-uk-nav .menu-item a {
	color: var(--text-on-dark-enabled);
	font-family: var(--font-family-text);
	font-size: var(--font-size-16);
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.16px;
	text-decoration: none;
	transition: color 0.3s ease;
}

.site-footer-uk-nav .menu-item a:hover {
	color: var(--blue-300);
}

.site-footer-uk-disclaimer {
	font-family: var(--font-family-text);
	font-size: var(--font-size-12);
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.12px;
	color: var(--text-on-dark-enabled);
}

.site-footer-uk-disclaimer p {
	margin: 0 0 1em;
}

.site-footer-uk-disclaimer p:last-child {
	margin-bottom: 0;
}

.site-footer-uk-disclaimer a {
	color: var(--blue-300);
	text-decoration: underline;
	transition: color 0.3s ease;
}

.site-footer-uk-disclaimer a:hover {
	color: var(--blue-200);
}
