/* Floating call button (phones and small tablets) */
.nexa-call-fab { display: none; }

@media (max-width: 769px) {
	.nexa-call-fab {
		position: fixed; z-index: 98;
		right: calc(18px + env(safe-area-inset-right, 0px));
		bottom: calc(18px + env(safe-area-inset-bottom, 0px));
		display: grid; place-items: center;
		width: 60px; height: 60px; border-radius: 50%;
		background: var(--c-dark, #141414); color: #fff;
		box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 14px 30px -8px rgba(0, 0, 0, .5);
		-webkit-tap-highlight-color: transparent;
		transition: transform .3s var(--ease, ease), box-shadow .3s;
		animation: nexa-fab-in .6s var(--ease, ease) .4s both;
	}
	.nexa-call-fab:hover, .nexa-call-fab:focus-visible { color: #fff; transform: scale(1.06); }
	.nexa-call-fab:active { transform: scale(.94); }
	.nexa-call-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--c-dark, #141414); }

	.nexa-call-fab__icon { position: relative; z-index: 1; display: grid; place-items: center; animation: nexa-fab-ring 3.2s ease-in-out 1.2s infinite; }
	.nexa-call-fab__icon svg { width: 24px; height: 24px; display: block; }

	.nexa-call-fab__ring {
		position: absolute; inset: 0; border-radius: 50%;
		border: 2px solid var(--c-dark, #141414); background: rgba(20, 20, 20, .18);
		animation: nexa-fab-pulse 2.4s cubic-bezier(.2, .7, .2, 1) infinite; pointer-events: none;
	}
	.nexa-call-fab__ring--2 { animation-delay: 1.2s; }

	/* Stay out of the way while the mobile menu is open */
	html.nav-open .nexa-call-fab, body.nav-open .nexa-call-fab { opacity: 0; visibility: hidden; }
}

@keyframes nexa-fab-in { from { opacity: 0; transform: translateY(20px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes nexa-fab-pulse {
	0%   { transform: scale(1); opacity: .7; }
	100% { transform: scale(1.75); opacity: 0; }
}
@keyframes nexa-fab-ring {
	0%, 62%, 100% { transform: rotate(0); }
	66% { transform: rotate(-16deg); }
	70% { transform: rotate(14deg); }
	74% { transform: rotate(-12deg); }
	78% { transform: rotate(10deg); }
	82% { transform: rotate(-6deg); }
	86% { transform: rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
	.nexa-call-fab, .nexa-call-fab__icon, .nexa-call-fab__ring { animation: none !important; }
	.nexa-call-fab__ring { display: none; }
}
@media print { .nexa-call-fab { display: none !important; } }
