/* ============================================================
   Floating Action Buttons (Contact, WhatsApp, Top)
   Shared across all pages. Paired with /assets/js/nb-fab.js
   ============================================================ */

/* Hide the old OceanWP scroll-top button so only our FAB stack shows */
a#scroll-top,
#scroll-top.scroll-top-right {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.nb-fab {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9998;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	pointer-events: none;
	opacity: 0;
	transform: translateY(24px) scale(.9);
	transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.nb-fab.nb-fab--show {
	opacity: 1;
	transform: translateY(0) scale(1);
}
.nb-fab.nb-fab--show .nb-fab__btn { pointer-events: auto; }
.nb-fab__btn {
	pointer-events: none;
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, filter .3s ease;
}
.nb-fab__btn:hover { transform: translateY(-3px) scale(1.05); filter: brightness(1.08); }
.nb-fab__btn:active { transform: translateY(-1px) scale(.98); }

/* Contact button — gold gradient */
.nb-fab__btn--contact {
	background: linear-gradient(135deg, #fff4c4 0%, #fde68a 30%, #fbbf24 70%, #a16207 100%);
	color: #1a0f00;
	box-shadow:
		0 10px 22px rgba(251, 191, 36, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.5),
		0 0 0 1.5px rgba(255, 244, 196, 0.5);
}
.nb-fab__btn--contact:hover {
	box-shadow:
		0 14px 28px rgba(251, 191, 36, 0.6),
		inset 0 1px 0 rgba(255, 255, 255, 0.6),
		0 0 0 1.5px rgba(255, 244, 196, 0.7);
	color: #0a0600;
}

/* WhatsApp button — green gradient with pulse */
.nb-fab__btn--wa {
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	color: #fff;
	box-shadow:
		0 10px 22px rgba(37, 211, 102, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.nb-fab__btn--wa:hover {
	box-shadow:
		0 14px 28px rgba(37, 211, 102, 0.7),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
	color: #fff;
}
.nb-fab__pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid #25D366;
	opacity: 0;
	animation: nbFabPulse 2.2s ease-out infinite;
	pointer-events: none;
}
@keyframes nbFabPulse {
	0%   { transform: scale(1);    opacity: 0.7; }
	100% { transform: scale(1.7);  opacity: 0; }
}

/* Top button — filled gold gradient */
#nb-top-btn.nb-fab__btn--top {
	background: linear-gradient(145deg, #fff4c4 0%, #fde68a 20%, #fbbf24 55%, #d97706 100%);
	border: 2px solid rgba(255, 244, 196, 0.7);
	color: #1a0f00;
	box-shadow:
		0 10px 24px rgba(251, 191, 36, 0.55),
		0 0 20px rgba(251, 191, 36, 0.35),
		inset 0 2px 0 rgba(255, 255, 255, 0.6),
		inset 0 -2px 4px rgba(120, 53, 15, 0.3);
	width: 52px;
	height: 52px;
	line-height: 1;
	padding: 0;
}
#nb-top-btn.nb-fab__btn--top::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 10px;
	right: 10px;
	height: 14px;
	border-radius: 50%;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
	filter: blur(2px);
	pointer-events: none;
	z-index: 1;
}
#nb-top-btn.nb-fab__btn--top::after {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	border: 1px solid rgba(120, 53, 15, 0.25);
	pointer-events: none;
	z-index: 1;
}
#nb-top-btn.nb-fab__btn--top .nb-fab__arrow {
	display: block;
	position: relative;
	z-index: 3;
	color: #1a0f00;
	stroke-width: 3;
	filter: drop-shadow(0 1px 0 rgba(255, 244, 196, 0.9));
	transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
#nb-top-btn.nb-fab__btn--top:hover {
	background: linear-gradient(145deg, #ffffff 0%, #fff4c4 20%, #fde68a 55%, #fbbf24 100%);
	filter: brightness(1.05);
	transform: translateY(-3px) scale(1.05);
	box-shadow:
		0 18px 36px rgba(251, 191, 36, 0.75),
		0 0 42px rgba(251, 191, 36, 0.55),
		inset 0 2px 0 rgba(255, 255, 255, 0.75),
		inset 0 -2px 4px rgba(120, 53, 15, 0.25);
	border-color: rgba(255, 255, 255, 0.9);
}
#nb-top-btn.nb-fab__btn--top:hover .nb-fab__arrow {
	transform: translateY(-2px);
	color: #0a0600;
}

/* Tooltip on hover */
.nb-fab__tip {
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	transform: translateY(-50%) translateX(8px);
	background: linear-gradient(135deg, rgba(20, 14, 2, 0.95), rgba(8, 5, 0, 0.96));
	color: #fde68a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid rgba(251, 191, 36, 0.35);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}
.nb-fab__tip::after {
	content: "";
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	border: 5px solid transparent;
	border-left-color: rgba(251, 191, 36, 0.35);
}
.nb-fab__btn:hover .nb-fab__tip {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

@media (max-width: 640px) {
	.nb-fab { right: 14px; bottom: 14px; gap: 10px; }
	.nb-fab__btn,
	#nb-top-btn.nb-fab__btn--top { width: 46px; height: 46px; line-height: 46px; }
	.nb-fab__tip { display: none; }
}
