/* ==========================================================================
   Site footer — navy panel per "HD x Billi HP" design PDF: quick-action
   links, divider, four link columns, logo/copyright/social bar.
   Colours per Brand Book 2026: Billi Blue #181D46, hover Light Blue #90CDEB.
   Enqueued after header.css; replaces the legacy .footer markup/styles.
   ========================================================================== */

:root {
	--footer-navy: #181D46;
	--footer-hover: #90CDEB;
	--footer-divider: #A9ABBD; /* white @ ~65% flattened onto the navy, as measured from the PDF */
}

.site-footer {
	background: var(--footer-navy);
	color: #fff;
	font-family: 'FFDINStd', Arial, sans-serif;
}

/* Same content width as the header and homepage sections (.hp-container). */
.footer-inner {
	max-width: 1436px;
	margin: 0 auto;
	padding: 64px 40px 48px;
}

/* --- Quick actions row ------------------------------------------------- */

.footer-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}

.footer-action {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.footer-action svg {
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
}

.footer-action:hover,
.footer-action:focus {
	color: var(--footer-hover);
}

.footer-divider {
	border: none;
	border-top: 1px solid var(--footer-divider);
	margin: 44px 0 0;
}

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

.footer-cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	margin-top: 56px;
}

/* h2 so the footer does not skip from the page's h2s to h4. */
.footer-col h2 {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 20px;
	padding: 0;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col li {
	margin: 0 0 14px;
	padding: 0;
}

.footer-col a {
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus {
	color: var(--footer-hover);
}

/* --- Accreditation badges ----------------------------------------------- */

/* Renders only when Billi has entered real accreditations, so this whole
   block is absent on a site that has none.

   Badges keep their own colours on a white chip rather than being knocked out
   to white silhouettes: certification marks usually carry trademark rules
   against recolouring, and a knockout destroys any detail inside the mark
   (a rating letter reversed out of a coloured field, say). The chip is what
   makes a row of mixed logos sit together on the navy. */
.footer-badges {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--footer-divider);
}

.footer-badges__heading {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--footer-divider);
}

.footer-badges__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-badges__item { line-height: 0; }

.footer-badges__item :is(a, span) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	background: #fff;
	border-radius: 2px;
	transition: box-shadow 0.2s ease;
}

/* Badges arrive in wildly different shapes — the ISO mark is a tall portrait
   lozenge, the Good Design one is a wide landscape block. Sizing purely by
   height makes the portrait ones a 20px sliver next to a 77px neighbour, so
   each is fitted into a consistent box instead and scaled to whichever
   dimension binds first. */
.footer-badges__item img {
	max-height: 48px;
	max-width: 120px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Opt out of the theme's global a:hover fade; the chip carries the hover. */
.footer-badges__item a:hover,
.footer-badges__item a:focus-visible {
	opacity: 1;
	box-shadow: 0 0 0 2px var(--footer-hover);
}

.footer-badges__item a:focus-visible { outline: none; }

/* --- Bottom bar: logo / copyright + legal / social ---------------------- */

.footer-bottom {
	display: flex;
	align-items: center;
	gap: 40px;
	margin-top: 80px;
	flex-wrap: wrap;
}

/* The badge strip already provides the separation above the bottom bar. */
.footer-badges + .footer-bottom { margin-top: 48px; }

.footer-bottom .footer-logo {
	flex: 0 0 auto;
	line-height: 0;
}

/* Legacy black PNG rendered white on the navy, same as the header logo. */
.footer-bottom .footer-logo img {
	height: 48px;
	width: auto;
	margin: 0;
	filter: brightness(0) invert(1);
}

.footer-smallprint {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 18px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

.footer-smallprint a,
.footer-smallprint .cmplz-manage-consent {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-smallprint .cmplz-manage-consent {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

.footer-smallprint a:hover,
.footer-smallprint a:focus,
.footer-smallprint .cmplz-manage-consent:hover,
.footer-smallprint .cmplz-manage-consent:focus {
	color: var(--footer-hover);
}

.footer-social {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 14px;
}

.footer-social a {
	color: #fff;
	font-size: 26px;
	line-height: 1;
	text-decoration: none;
}

.footer-social a:hover,
.footer-social a:focus {
	color: var(--footer-hover);
}

/* --- Responsive --------------------------------------------------------- */

@media only screen and (max-width: 991px) {

	.footer-inner {
		padding: 48px 20px 40px;
	}

	.footer-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.footer-divider {
		margin-top: 36px;
	}

	.footer-cols {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px 24px;
		margin-top: 40px;
	}

	.footer-bottom {
		margin-top: 56px;
		gap: 24px;
	}
}

@media only screen and (max-width: 640px) {

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

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-social {
		margin-left: 0;
	}
}
