/* Sticky floating contact button for mobile */
.mobile-contact-fab {
	display: none; /* Hidden by default, shown via JS on mobile */
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #ffffff;
	border: none;
	border-radius: 60px;
	padding: 14px 24px;
	font-weight: 700;
	font-size: 1rem;
	box-shadow: 
		0 0 24px rgba(255, 199, 44, 0.5),
		0 8px 24px rgba(0, 0, 0, 0.4);
	cursor: pointer;
	transition: all 0.3s ease;
	animation: fab-pulse 3s ease-in-out infinite;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: inherit;
	text-decoration: none;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-contact-fab svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.mobile-contact-fab:active {
	transform: scale(0.95);
}

.mobile-contact-fab.expanded {
	bottom: 20px;
	right: 20px;
	border-radius: 16px;
	padding: 16px 20px;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	min-width: 280px;
	background: var(--surface);
	color: var(--text);
	border: 1px solid rgba(255, 199, 44, 0.3);
	box-shadow: 
		0 0 30px rgba(255, 199, 44, 0.3),
		0 12px 40px rgba(0, 0, 0, 0.5);
}

.mobile-contact-fab.expanded .fab-text {
	display: none;
}

.mobile-contact-fab.expanded svg {
	display: none;
}

.mobile-contact-fab .contact-content {
	display: none;
}

.mobile-contact-fab.expanded .contact-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mobile-contact-fab .close-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #1e1c1c;
	border: 1px solid #2a2727;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: none;
	align-items: center;
	justify-content: center;
	color: var(--text);
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.mobile-contact-fab.expanded .close-btn {
	display: flex;
}

.contact-content h3 {
	margin: 0 0 8px;
	font-size: 1.1rem;
	color: var(--accent);
}

.contact-content p {
	margin: 4px 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.contact-content a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 4px 0;
	color: var(--accent);
	text-decoration: none;
	font-weight: 600;
}

.contact-content a:active {
	color: var(--accent-2);
}

.contact-actions {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.contact-btn {
	flex: 1;
	background: linear-gradient(180deg, var(--accent), var(--accent-2));
	color: #ffffff !important;
	border: none;
	padding: 10px 16px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-btn:active {
	transform: scale(0.97);
}

.contact-btn svg {
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
	fill: #ffffff !important;
	stroke: #ffffff !important;
	color: #ffffff !important;
}

@keyframes fab-pulse {
	0%, 100% { 
		box-shadow: 
			0 0 24px rgba(255, 199, 44, 0.5),
			0 8px 24px rgba(0, 0, 0, 0.4);
	}
	50% { 
		box-shadow: 
			0 0 36px rgba(255, 199, 44, 0.7),
			0 12px 28px rgba(0, 0, 0, 0.5);
	}
}

/* Hide on desktop */
@media (min-width: 769px) {
	.mobile-contact-fab {
		display: none !important;
	}
}

/* Adjust for very small screens */
@media (max-width: 400px) {
	.mobile-contact-fab {
		right: 16px;
		bottom: 16px;
		padding: 12px 20px;
		font-size: 0.95rem;
	}
	
	.mobile-contact-fab.expanded {
		right: 12px;
		left: 12px;
		min-width: auto;
		max-width: calc(100vw - 24px);
	}
}
