/* Footer: photo background, 3 aligned columns (brand + social, navigation, payment), copyright bar. */

.bb-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #0f1a2e;
	color: #fff;
}

.bb-footer__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Darker towards the bottom keeps links readable over the bright water. */
.bb-footer::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to bottom, rgba(10, 18, 34, 0.72), rgba(7, 12, 24, 0.92));
}

.bb-footer__inner {
	padding-block: clamp(40px, 5vw, 64px);
}

.bb-footer__cols {
	display: grid;
	gap: 36px;
}

.bb-footer__brand img {
	width: auto;
	max-width: 180px;
}

.bb-footer__brand .bb-logo-text {
	font-size: 32px;
}

.bb-footer__heading {
	margin-bottom: 16px;
	font-size: 22px;
	text-transform: none;
}

.bb-footer__nav li a {
	display: inline-block;
	padding: 5px 0;
	font-size: 17px;
}

.bb-footer__nav li a::before {
	content: "›";
	margin-right: 8px;
	color: var(--bb-orange);
}

.bb-footer__nav li a:hover {
	color: var(--bb-orange);
}

.bb-footer__pay img {
	width: auto;
	max-width: 100%;
	max-height: 44px;
}

/* Social: round buttons under the logo */
.bb-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 24px;
}

.bb-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	transition: background-color 0.15s, border-color 0.15s;
}

.bb-footer__social a:hover {
	background: var(--bb-orange);
	border-color: var(--bb-orange);
}

.bb-footer__copy {
	padding: 16px var(--bb-gutter);
	background: rgba(0, 0, 0, 0.7);
	color: #a0a0a4;
	font-size: 14px;
	text-align: center;
}

@media (min-width: 800px) {
	.bb-footer__cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 48px;
		align-items: stretch; /* equal-height columns so the payment block can sit at the bottom */
	}

	/* Logo and social icons centred in their column. */
	.bb-footer__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.bb-footer__social {
		justify-content: center;
	}

	/* Payment heading + logos at the bottom of the column. */
	.bb-footer__pay {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: flex-start;
	}
}

/* Phones: everything centred */
@media (max-width: 799px) {
	.bb-footer__cols {
		justify-items: center;
		text-align: center;
	}

	.bb-footer__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.bb-footer__social {
		justify-content: center;
	}

	/* The "›" markers make no sense on centred links */
	.bb-footer__nav li a::before {
		content: none;
	}

	.bb-footer__nav li a {
		padding: 8px 0;
	}

	.bb-footer__pay {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.bb-footer__pay img {
		margin-inline: auto;
	}
}
