/* Global footer: contact CTA + help panel + nav/copyright bar. */

.site-footer {
	--footer-content-max: 1132px;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-inline: 8px;
}

/* ---------- 1. Contact CTA ---------- */
.footer-cta {
	position: relative;
	min-height: 658px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 56px max(var(--container-pad), calc((100% - 1128px) / 2));
	border-radius: 18px;
	overflow: hidden;
	isolation: isolate;
	background: var(--bida-dark);
}
.footer-cta__media { position: absolute; inset: 0; z-index: 0; }
.footer-cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.8; }

.footer-cta__card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
	width: min(100%, 367px);
	padding: 32px 36px;
	border-radius: var(--radius-lg);
	background: var(--white);
}
.footer-cta__info,
.footer-cta__details { display: contents; }
.footer-cta__eyebrow {
	display: none;
}
.footer-cta__title {
	font-size: var(--fs-h1);          /* 42 / 50 Medium */
	line-height: var(--lh-h1);
	letter-spacing: -0.84px;
	font-weight: var(--fw-medium);
	color: var(--bida-blue);
}
.footer-cta__text {
	margin-top: 24px;
	color: var(--neutral-500);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}
.footer-cta__details .btn {
	align-self: flex-start;
	margin-top: 32px;
}

/* ---------- 2. Help panel ---------- */
.footer-help {
	display: flex;
	flex-direction: column;
	padding: 104px var(--gutter) 48px;
	border-radius: var(--radius-lg);
	background: var(--bida-grey);
}
.footer-help__block {
	display: flex;
	flex-direction: column;
	gap: 64px;
	width: 100%;
	max-width: var(--footer-content-max);
	margin-inline: auto;
}
.footer-help__title {
	font-size: var(--fs-h2);          /* 36 / 42 */
	line-height: 45.333px;
	letter-spacing: -0.36px;
	font-weight: var(--fw-medium);
	color: var(--bida-blue);
}
.footer-help__pills {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.help-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding: 16px;
	border-radius: var(--radius-md);
	background: var(--neutral-100);
	color: var(--bida-blue);
	transition: background-color var(--dur) var(--ease);
}
.help-pill:hover { background: var(--neutral-200); }
.help-pill__label {
	/* The Euskara training label is the longest of the four. Figma keeps every
	   desktop pill on one line, so use the 18/26 token and reserve wrapping for
	   the stacked responsive layouts below. */
	font-size: var(--fs-sub2);
	line-height: var(--lh-sub2);
	font-weight: var(--fw-medium);
	white-space: nowrap;
}
.help-pill__arrow {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--white);
	border: 1px solid var(--neutral-200);
}
.help-pill__arrow-icon { width: 14px; height: 14px; }

/* ---------- 3. Nav + copyright ---------- */
.footer-bottom { padding-top: 0; }
/* The footer component uses the same centred 1132px rail for its help cards,
   navigation and legal row. Keep the container padding outside that rail so
   the content begins at x=154 in the 1440px Figma frame. */
.footer-bottom .container { max-width: calc(var(--footer-content-max) + 2 * var(--container-pad)); }
.footer-bottom__navigation {
	display: flex;
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	margin-bottom: 56px;
}
.footer-bottom__logo { flex: none; display: block; }
.footer-bottom__logo img { display: block; width: 174px; height: 52px; }
.footer-nav {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-4) var(--space-6);
}
.footer-nav__link {
	font-size: var(--fs-body);
	font-weight: var(--fw-medium);
	white-space: nowrap;
	color: var(--bida-blue);
	transition: color var(--dur) var(--ease);
}
.footer-nav__link:hover { color: var(--bida-green); }

.footer-rule { height: 1px; border: 0; background: var(--neutral-100); margin: 0; }

.footer-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
	flex-wrap: wrap;
	padding-block: 22px 18.5px;
}
.footer-copy {
	display: flex;
	align-items: center;
	gap: clamp(24px, 12vw, 212px);
	font-size: var(--fs-caption);
	line-height: var(--lh-caption);
	color: var(--bida-blue);
	flex-wrap: wrap;
}
.footer-legal a { transition: color var(--dur) var(--ease); }
.footer-legal a:hover { color: var(--bida-green); }
.footer-legal .sep { color: var(--bida-green); margin-inline: 6px; }

.footer-social { display: flex; gap: 7px; }
.social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--neutral-50);
	border: 1px solid var(--neutral-100);
	color: var(--bida-blue);
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.social-btn:hover { background: var(--bida-blue); color: var(--white); }
.social-btn__icon { width: 13px; height: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	/* Four desktop tracks become too narrow for the longer Euskara labels before
	   the tablet breakpoint. Switch to two columns while there is still ample
	   horizontal room, and allow natural wrapping inside each wider pill. */
	.footer-help__pills { grid-template-columns: repeat(2, 1fr); }
	.help-pill__label { white-space: normal; }
}
@media (max-width: 1024px) {
	.footer-bottom__navigation { align-items: flex-start; }
	.footer-nav { justify-content: flex-start; gap: var(--space-5) var(--space-8); }
}
@media (max-width: 640px) {
	.footer-cta { min-height: 520px; padding: 32px 20px; }
	.footer-help { padding-top: 64px; }
	.footer-help__block { gap: 40px; }
	.footer-help__pills { grid-template-columns: 1fr; }
	.footer-bottom__navigation { flex-direction: column; gap: 32px; }
	.footer-nav {
		width: 100%;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: var(--space-3);
	}
	.footer-nav__link { display: block; width: 100%; }
	.footer-meta { flex-direction: column; align-items: flex-start; }
}
