/* BJP site footer.
   Desktop values from the Figma frame (1440x471); mobile values from the 390x1211 frame. */

.bjp-footer {
	--bjp-footer-bg: #231F20;
	--bjp-footer-text: #FFFFFF;
	--bjp-footer-dark: #231F20;
	--bjp-footer-teal: #67C7C7;
	--bjp-footer-border: #EAECF0;
	--bjp-footer-font: 'Manrope', -apple-system, Roboto, Helvetica, sans-serif;

	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
	padding-top: 80px;
	background: var(--bjp-footer-bg);
	overflow: hidden;
	font-family: var(--bjp-footer-font);
}

/* Outlined decoration, anchored to the 1440px design box and clipped by the footer. */
.bjp-footer__decor-layer {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 1440px;
	pointer-events: none;
	z-index: 0;
}

.bjp-footer__decor {
	position: absolute;
	right: -1383px;
	bottom: -29.98px;
	width: 2412px;
	height: 512px;
	max-width: none;
}

.bjp-footer__top {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	max-width: 1440px;
	padding: 0 clamp(20px, 5.5556vw, 80px);
}

/* Left brand column */
.bjp-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 48px;
}

/* The logo links to the home page (BJP-29), so the anchor has to shrink to the
   image rather than stretching across the flex column. */
.bjp-footer .bjp-footer__logo-link {
	display: block;
	align-self: flex-start;
	line-height: 0;
	text-decoration: none;
}

.bjp-footer .bjp-footer__logo {
	display: block;
	width: 147.4px;
	height: 39.02px;
	object-fit: contain;
}

.bjp-footer .bjp-footer__tagline {
	width: 301px;
	max-width: 100%;
	margin: 0;
	color: var(--bjp-footer-text);
	font-family: var(--bjp-footer-font);
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
}

/* Figma draws the 1px stroke inside the 40px box, so trim the padding by 1px
   to land on the same outer size in CSS. */
.bjp-footer .bjp-footer__top-link {
	display: flex;
	box-sizing: border-box;
	padding: 7px 11px;
	justify-content: center;
	align-items: center;
	gap: 8px;
	border-radius: 8px;
	border: 1px solid var(--bjp-footer-border);
	background: #FFFFFF;
	color: var(--bjp-footer-dark);
	font-family: var(--bjp-footer-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.bjp-footer .bjp-footer__top-link:hover,
.bjp-footer .bjp-footer__top-link:focus {
	background: var(--bjp-footer-border);
	color: var(--bjp-footer-dark);
}

.bjp-footer__top-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Link columns */
.bjp-footer__cols {
	display: flex;
	align-items: flex-start;
	gap: 64px;
}

.bjp-footer__col {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
}

.bjp-footer .bjp-footer__col-title {
	margin: 0;
	color: var(--bjp-footer-text);
	font-family: var(--bjp-footer-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.bjp-footer .bjp-footer__list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Astra sets body{font-size:18px;line-height:1.65}, which the list items would
   otherwise inherit (29.7px rows instead of the design's 24px). */
.bjp-footer .bjp-footer__list li {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--bjp-footer-font);
	font-size: 16px;
	line-height: 24px;
}

.bjp-footer .bjp-footer__list a,
.bjp-footer .bjp-footer__link,
.bjp-footer .bjp-footer__item {
	color: var(--bjp-footer-text);
	font-family: var(--bjp-footer-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-decoration: none;
}

.bjp-footer .bjp-footer__list a:hover,
.bjp-footer .bjp-footer__list a:focus,
.bjp-footer .bjp-footer__link:hover,
.bjp-footer .bjp-footer__link:focus {
	color: var(--bjp-footer-text);
	text-decoration: underline;
}

/* Copyright bar */
.bjp-footer__copyright {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
	padding: 10px 80px;
	background: var(--bjp-footer-teal);
}

.bjp-footer .bjp-footer__copyright p {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: stretch;
	height: 32px;
	margin: 0;
	color: var(--bjp-footer-dark);
	text-align: center;
	font-family: var(--bjp-footer-font);
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
}

/* Tablet: keep the two-block split but let the columns wrap. */
@media (max-width: 1024px) {
	.bjp-footer__cols {
		flex-wrap: wrap;
		gap: 40px 48px;
	}
}

/* Mobile frame (390x1211): everything stacks and centres. */
@media (max-width: 768px) {
	.bjp-footer__top {
		flex-direction: column;
		align-items: center;
		gap: 48px;
		padding: 0 20px;
	}

	.bjp-footer__brand {
		align-self: stretch;
		align-items: center;
		gap: 48px;
	}

	.bjp-footer .bjp-footer__logo {
		width: 238px;
		height: 63px;
	}

	.bjp-footer .bjp-footer__tagline {
		width: 301px;
	}

	.bjp-footer .bjp-footer__top-link {
		align-self: stretch;
	}

	.bjp-footer__cols {
		flex-direction: column;
		align-items: flex-start;
		align-self: stretch;
		flex-wrap: nowrap;
		gap: 32px;
	}

	.bjp-footer__col {
		align-self: stretch;
		align-items: center;
	}

	.bjp-footer .bjp-footer__list {
		align-items: center;
	}

	.bjp-footer .bjp-footer__copyright p {
		height: auto;
		font-size: 16px;
	}

	.bjp-footer__decor {
		right: -2063px;
		bottom: 260px;
	}
}
