/*
 * mobile-bar.css — B3, the sticky action bar (phones only).
 *
 * Hidden until the visitor is past the hero, so it never sits on top of the
 * hero's own buttons. Sits above the safe-area inset on notched phones.
 */

.mobile-bar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 40;
	display: none;
	gap: var(--s-3);
	padding: var(--s-3) var(--s-4);
	padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
	background: rgba(251, 252, 250, 0.92);
	-webkit-backdrop-filter: blur(12px) saturate(1.08);
	backdrop-filter: blur(12px) saturate(1.08);
	border-top: 1px solid var(--line);
	transform: translateY(110%);
	transition: transform var(--dur) var(--ease);
}

.mobile-bar.is-visible {
	transform: translateY(0);
}

.mobile-bar__action {
	display: inline-flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	min-height: 48px;
	padding: var(--s-3) var(--s-4);
	border: 1px solid var(--ink);
	border-radius: var(--radius-pill);
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
}

.mobile-bar__action--primary {
	background: var(--koivu);
	border-color: var(--koivu);
	color: #fff;
}

.mobile-bar__action:active {
	transform: translateY(1px);
}

@media (max-width: 767.98px) {
	.mobile-bar {
		display: flex;
	}

	/* Give the footer room so the bar never covers its last line. */
	.site-footer__bottom {
		padding-bottom: 72px;
	}
}
