/* =========================================================================
   NHC Mobile Bottom Bar
   Fixed quick-action bar for phones/tablets. Brand teal gradient with a
   raised, floating WhatsApp button (FAB). Hidden from ~1000px and up.
   ========================================================================= */

.nhc-mbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	display: flex;
	align-items: stretch;
	gap: 4px;
	padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(120deg, var(--nhc-mbar-g1, #0e6b70), var(--nhc-mbar-g2, #1aa1a7));
	box-shadow: 0 -6px 22px rgba(12, 60, 63, 0.28);
	-webkit-font-smoothing: antialiased;
}

/* thin highlight along the top edge so the bar isn't flat */
.nhc-mbar::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
}

.nhc-mbar__item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	padding: 4px 2px;
	text-decoration: none;
	color: #ffffff !important;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: .01em;
	-webkit-tap-highlight-color: transparent;
	transition: transform .15s ease, opacity .15s ease;
}
.nhc-mbar__item:active { transform: translateY(1px); opacity: .9; }

.nhc-mbar__icon {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
}
.nhc-mbar__icon svg { display: block; width: 24px; height: 24px; }

.nhc-mbar__label {
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- WhatsApp: raised floating action button ---------- */
.nhc-mbar__fab {
	position: absolute;
	left: 50%;
	bottom: 30px;                  /* how far the circle floats above the bar */
	transform: translateX(-50%);
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(140deg, #29d366, #14a63f);
	box-shadow: 0 8px 20px rgba(18, 140, 63, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
	color: #ffffff;
	transition: transform .18s ease, box-shadow .18s ease;
}
.nhc-mbar__fab svg { display: block; width: 32px; height: 32px; }

/* gentle pulse ring */
.nhc-mbar__fab::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	animation: nhc-mbar-pulse 2.4s ease-out infinite;
	pointer-events: none;
}
@keyframes nhc-mbar-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(41, 211, 102, 0.5); }
	70%  { box-shadow: 0 0 0 16px rgba(41, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(41, 211, 102, 0); }
}
.nhc-mbar__item--wa:active .nhc-mbar__fab { transform: translateX(-50%) scale(0.96); }

/* keep page content clear of the fixed bar (mobile only) */
@media (max-width: 999px) {
	body { padding-bottom: 66px; }
}

/* desktop: no bar */
@media (min-width: 1000px) {
	.nhc-mbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.nhc-mbar__fab::after { animation: none; }
	.nhc-mbar__item,
	.nhc-mbar__fab { transition: none; }
}
