/* ==========================================================
   FFV Mobile Navigator
   Bottom tab bar shown only on mobile / tablet widths.
   Colors match the Foundation For Feminine Values brand:
   green bar, red animated active indicator.
   ========================================================== */

.ffv-mobnav {
	--ffv-green: #1F4D3A;
	--ffv-red: #C0233A;

	display: none;
}

@media (max-width: 900px) {
	.ffv-mobnav {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		height: 78px;
		padding: 0 10px;
		background: var(--ffv-green);
		box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.2);
	}

	/* keep footer content / floating buttons clear of the bar */
	body.ffv-mobnav-active {
		padding-bottom: 78px;
	}
}

.ffv-mobnav-indicator {
	position: absolute;
	top: 12px;
	left: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ffv-red);
	transform: translateX(0);
	transition: transform 0.35s cubic-bezier(0.5, 1.5, 0.4, 1);
	pointer-events: none;
}

.ffv-mobnav-tab {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	height: 100%;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.55);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ffv-mobnav-icon {
	width: 38px;
	height: 38px;
	margin-top: 12px;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ffv-mobnav-icon svg {
	width: 19px;
	height: 19px;
	stroke: currentColor;
	display: block;
	transition: transform 0.3s cubic-bezier(0.5, 1.5, 0.4, 1);
}

.ffv-mobnav-tab.active {
	color: #fff;
}

.ffv-mobnav-tab.active .ffv-mobnav-icon svg {
	transform: scale(1.08);
}

.ffv-mobnav-label {
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
}

.ffv-mobnav-tab:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
	border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
	.ffv-mobnav-indicator,
	.ffv-mobnav-icon svg {
		transition: none;
	}
}
