/*
 * BK Marine footer and attribution surfaces.
 *
 * Footer links, branding and partner attribution live here so future footer
 * maintenance cannot accidentally affect route or homepage components.
 */

/* Global footer and legal/contact information. */
.bk-footer {
	background: #eef0f2;
	color: var(--bk-navy);
}

.bk-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
	justify-items: center;
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
	text-align: center;
}

.bk-footer__grid > div {
	display: grid;
	justify-items: center;
	width: 100%;
}

.bk-footer__title {
	margin: 0 0 1.15rem;
	font-size: 1.25rem;
}

.bk-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bk-footer__links li + li {
	margin-top: .45rem;
}

.bk-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
}

.bk-footer__links a::before {
	width: 6px;
	height: 6px;
	margin-right: .65rem;
	border-radius: 50%;
	background: var(--bk-magenta);
	content: '';
	transition: transform var(--bk-transition);
}

.bk-footer__links a:hover::before,
.bk-footer__links a:focus-visible::before {
	transform: scale(1.45);
}

.bk-footer a {
	text-decoration-color: transparent;
	text-underline-offset: .25em;
	transition: color var(--bk-transition), text-decoration-color var(--bk-transition);
}

.bk-footer a:hover,
.bk-footer a:focus-visible {
	color: var(--bk-magenta);
	text-decoration-color: currentColor;
}

.bk-footer__brand {
	text-align: center;
}

.bk-footer__brand img {
  width: min(240px, 100%);
  height: auto;
  aspect-ratio: 94 / 41;
  margin-inline: auto;
}

.bk-footer__brand p {
	margin: 1rem 0 0;
	font-size: .86rem;
	text-transform: none;
	letter-spacing: .08em;
}

.bk-footer address {
	font-style: normal;
}

.bk-footer__bottom {
	border-top: 1px solid var(--bk-line);
	padding: 1.15rem 0;
	font-size: .88rem;
}

.bk-footer__bottom-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1.5rem;
	align-items: center;
	justify-items: center;
	text-align: center;
}

.bk-footer__powered {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .65rem;
}

.bk-footer__powered a {
	position: relative;
	display: block;
	padding-bottom: .3rem;
	line-height: 0;
	border-radius: 6px;
	transition: filter var(--bk-transition);
}

.bk-footer__powered a::after {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 72%;
	height: 2px;
	border-radius: 999px;
	content: '';
	background: linear-gradient(90deg, transparent, var(--bk-magenta), transparent);
	opacity: 0;
	transform: translateX(-50%) scaleX(.35);
	transition: opacity var(--bk-transition), transform var(--bk-transition);
}

.bk-footer__powered a:hover,
.bk-footer__powered a:focus-visible {
	filter: brightness(1.06) contrast(1.03);
}

.bk-footer__powered a:hover::after,
.bk-footer__powered a:focus-visible::after {
	opacity: .9;
	transform: translateX(-50%) scaleX(1);
}

.bk-footer__powered img {
  display: block;
  width: clamp(128px, 11vw, 160px);
  height: auto;
  aspect-ratio: 200 / 31;
  transition: filter var(--bk-transition);
}

.bk-footer__powered a:hover img,
.bk-footer__powered a:focus-visible img {
	filter: drop-shadow(0 3px 8px rgba(11, 31, 54, .14));
}

.bk-footer__partner {
	margin: 0;
	text-align: center;
	text-transform: none;
	letter-spacing: .06em;
}

.bk-site :focus-visible {
	outline: 3px solid var(--bk-blue);
	outline-offset: 3px;
}
