/* ==========================================================================
   Footer — link columns + brand bar
   ========================================================================== */

.eit-footer { background: #ffffff; }

/* ---------- Link columns ---------- */

.eit-footer__nav {
	max-width: var(--eit-wrap);
	margin-inline: auto;
	padding: clamp(64px, 8vw, 60px) clamp(18px, 3vw, 30px);
}

.eit-footer__cols {
	display: grid;
	gap: clamp(4px, 1vw, 36px) clamp(20px, 3vw, 44px);
	grid-template-columns: 1fr;
}

/* Explicit track counts, not auto-fit: auto-fit derives the number of columns
   from the container width, so the count changed with the viewport and the
   headings stopped lining up with their own lists. */
@media (min-width: 620px)  { .eit-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .eit-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .eit-footer__cols { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.eit-footer__col { min-width: 0; }

.eit-footer__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 16px 0;
	color: var(--eit-ink, #15181f);
	font-size: clamp(16px, 1.3vw, 19px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
	cursor: pointer;
	list-style: none;                 /* Firefox */
	border-bottom: 1px solid rgba(16, 24, 40, .09);
}
.eit-footer__heading::-webkit-details-marker { display: none; }

.eit-footer__heading:focus-visible {
	outline: 2px solid var(--eit-accent, #3b4fe8);
	outline-offset: 3px;
}

/* Chevron — mobile only; the columns are always open on desktop. */
.eit-footer__chev {
	width: 9px;
	height: 9px;
	flex: none;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: .5;
	transition: transform .22s ease;
}
.eit-footer__col[open] .eit-footer__chev { transform: translateY(2px) rotate(225deg); }

.eit-footer__list {
	list-style: none;
	margin: 0;
	padding: 14px 0 22px;
	display: grid;
	/* Always one link per row. Stated explicitly — and `columns: 1` resets the
	   multi-column properties too — so no inherited rule can split a list into
	   two tracks and leave links stranded away from their heading. */
	grid-template-columns: minmax(0, 1fr);
	columns: 1;
	gap: clamp(12px, 1.3vw, 18px);
}

/* Same hover treatment as the header's mega-menu links: the label turns blue
   and an arrow slides in. flex-start rather than center so the arrow stays on
   the first line when a long service name wraps. */
.eit-footer__list a {
	display: inline-flex;
	align-items: flex-start;
	gap: 7px;
	color: var(--eit-body, #3d4453);
	font-size: clamp(14px, 1vw, 16px);
	line-height: 1.45;
	text-decoration: none;
	transition: color .18s ease;
}

.eit-footer__list a::after {
	content: "→";
	flex: none;
	color: var(--eit-accent, #3b4fe8);
	font-size: 1em;
	line-height: inherit;
	opacity: 0;
	transform: translateX(-5px);
	transition: opacity .18s ease, transform .18s ease;
}

.eit-footer__list a:hover,
.eit-footer__list a:focus-visible { color: var(--eit-accent, #3b4fe8); }

.eit-footer__list a:hover::after,
.eit-footer__list a:focus-visible::after { opacity: 1; transform: translateX(0); }

/* ---------- Desktop: headings are labels, not controls ---------- */

@media (min-width: 620px) {
	.eit-footer__heading {
		cursor: default;
		padding: 0;
		border-bottom: 0;
		/* Clicking must not collapse a column on desktop. */
		pointer-events: none;
	}
	.eit-footer__chev { display: none; }
	.eit-footer__list { padding: clamp(22px, 2.4vw, 34px) 0 0; }
}

/* ---------- Brand bar ---------- */

.eit-footer__bar { background: #050b18; }

/* Three tracks with the middle sized to its content: that keeps the copyright
   optically centred in the bar no matter how wide the logo or icon row get.
   space-between would centre it only when both sides happened to match. */
.eit-footer__bar-inner {
	max-width: var(--eit-wrap);
	margin-inline: auto;
	padding: 0 10px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}

.eit-footer__brand { justify-self: start; }
.eit-footer__social { justify-self: end; }

@media (max-width: 767px) {
	.eit-footer__bar-inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		/* Stacked, so the row needs its own breathing room back. */
		padding: 22px 10px;
		gap: 12px;
	}
	/* header-footer.css pads every paragraph in the bar 18px top and bottom
	   (.eit-footer__bar p), which pushed the three stacked rows far apart. */
	.eit-footer__bar .eit-footer__copy { padding: 0; }
	.eit-footer__brand,
	.eit-footer__social { justify-self: center; }
}

.eit-footer__brand img {
	display: block;
	max-height: 50px;
	width: auto;
	/* The logo is dark artwork on a dark bar, so flip it to white. */
	filter: brightness(0) invert(1);
}

.eit-footer__title { color: #fff; font-size: 19px; font-weight: 700; }

.eit-footer__copy {
	margin: 0;
	color: #8f9bb3;
	font-size: 16px;
}


/* ---------- Social ---------- */

.eit-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.eit-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	/* Radius scaled with the tile — 15px on a 35px square reads as a circle
	   rather than the squircle in the reference. */
	border-radius: 10px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .09);
	color: #ffffff;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.eit-footer__social-link svg { width: 16px; height: 16px; display: block; }

.eit-footer__social-link:hover,
.eit-footer__social-link:focus-visible {
	background: var(--eit-accent, #3b4fe8);
	border-color: var(--eit-accent, #3b4fe8);
	color: #ffffff;
	transform: translateY(-2px);
}

/* No small-screen override any more: the tiles are already compact, and the
   old 44px rule would have made them *larger* on mobile than on desktop. */

@media (prefers-reduced-motion: reduce) {
	.eit-footer__chev,
	.eit-footer__list a,
	.eit-footer__list a::after,
	.eit-footer__social-link { transition: none; }
}


/* ---------- Country switcher (under the copyright) ---------- */

/* In the left column the list opens from the button's left edge; stacked on
   a phone (everything centred) it stays centred under the button. */
@media (min-width: 768px) {
	.eit-footer__region { justify-self: start; }
	.eit-footer__region .eit-region__list {
		left: 0;
		transform: none;
	}
}

.eit-region { position: relative; }
.eit-region__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 8px;
	border-radius: 8px;
	color: #8f9bb3;
	font-size: 14px;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: color .16s ease;
}
.eit-region__btn::-webkit-details-marker { display: none; }
.eit-region__btn:hover,
.eit-region[open] .eit-region__btn { color: #ffffff; }
.eit-region__btn:focus-visible { outline: 2px solid #5b6cff; outline-offset: 2px; }
.eit-region__globe { width: 16px; height: 16px; }
.eit-region__chev { width: 13px; height: 13px; transition: transform .2s ease; }
.eit-region:not([open]) .eit-region__chev { transform: rotate(180deg); }

/* The list opens upwards: the switcher sits at the very bottom of the page. */
.eit-region__list {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	z-index: 20;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
	text-align: left; /* the stacked mobile bar centres its text */
	transform: translateX(-50%);
}
.eit-region__link {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: #3d4453;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.eit-region__link:hover,
.eit-region__link:focus-visible { background: rgba(59, 79, 232, .08); color: #3b4fe8; }
.eit-region__link.is-current { color: #3b4fe8; font-weight: 600; }
.eit-region__link.is-current::after { content: " \2713"; }
