/**
 * Sticky CTA — Fixed booking button that appears on scroll.
 *
 * Navy pill with gold arrow, cream text. Fades in/out via JS.
 * BEM block: .bgc-sticky-cta
 *
 * @package BuryGolfClub
 * @since   1.0.0
 */

.bgc-sticky-cta {
	position: fixed;
	top: calc(var(--wp--custom--header-height, 70px) + 12px);
	right: calc(8px + 1rem);
	z-index: 1050;
	display: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background-color: var(--wp--preset--color--primary, #071428);
	color: var(--wp--preset--color--cream, #F5F0E6);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	border-radius: var(--wp--custom--border-radius--pill, 9999px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color 0.2s ease-out;
	pointer-events: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.bgc-sticky-cta--visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.bgc-sticky-cta:hover {
	background-color: var(--wp--preset--color--gold, #C4A265);
	color: var(--wp--preset--color--primary, #071428);
}

.bgc-sticky-cta:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold, #C4A265);
	outline-offset: 2px;
}

.bgc-sticky-cta__icon {
	display: flex;
	align-items: center;
	color: var(--wp--preset--color--gold, #C4A265);
	transition: color 0.2s ease-out;
}

.bgc-sticky-cta:hover .bgc-sticky-cta__icon {
	color: var(--wp--preset--color--primary, #071428);
}

/* Show on tablet+ — hidden on mobile where nav already has booking CTA. */
@media (min-width: 48rem) {
	.bgc-sticky-cta {
		display: inline-flex;
	}
}
