/* ===== SCROLL-UP BUTTON ===== */
.footer-scroll-top {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	width: 40px;
	height: 40px;
	background-color: var(--card-bg, #ffffff);
	border-radius: 50%;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 1001;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	border: 1px solid var(--border-light, #e2e8f0);
	color: var(--text-light, #4a5568);
	-webkit-appearance: none;
	appearance: none; /* Remove default button styling */
	-webkit-tap-highlight-color: transparent;
}

.footer-scroll-top.visible {
	opacity: 0.8;
	visibility: visible;
}

@media (hover: hover) { /* sticky :hover on touch */
	.footer-scroll-top:hover {
		border-radius: 50%;
		background-color: var(--accent-10);
		border: var(--border, #cbd5e0);
		outline: 2px solid var(--border-light, #e2e8f0);
		color: var(--accent, #197a6c);
	}
}

.footer-scroll-top:active {
	background: var(--card-bg, #ffffff);
}

.footer-scroll-top.force-repaint {
	transform: translateZ(0);
}

/* SVG icon */
.footer-scroll-top-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	display: block;
}

/* Touch devices - larger tap target */
@media (pointer: coarse) {
	.footer-scroll-top {
		bottom: 1rem;
		right: 1rem;
		width: 48px;
		height: 48px;
	}
	
	.footer-scroll-top-icon {
		width: 22px;
		height: 22px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.footer-scroll-top {
		transition: none;
	}
	
	.footer-scroll-top:active {
		transform: none;
	}
}

.footerbg-accent { color: #2c8e7f; }

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 2rem 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.footer-textlogo {
	font-family: var(--font-mono);
	font-size: 1.5rem;
	font-weight: 600;
	color: white;
	text-decoration: none;
}

.footer-textlogo a {
		text-decoration: none;
}

.footer-textlogo p {
	margin-top: 0.75em;
}

.footer-contact {
	text-align: right;
}

.footer-contact p {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.footer-divider {
	width: 100%;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.15);
	margin: 1rem 0;
}

.footer-bottom {
	width: 100%;
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.61);
}

.footer-legal {
	margin-top: 0.5rem;
	font-size: 0.875rem;
}

.footer-link {
	color: var(--text-white-80);
	text-decoration: underline;
}

.footer-link:hover {
	color: white;
}


/* PHONE: ≤ var(--bp-tablet-width) (48rem ^= 768px @1DPR) */
@media (max-width: 48rem) {
	.footer-container {
		flex-direction: column; /* Stack footer vertically */
		text-align: center;
	}
	
	.footer-contact {
		display: none;
	}
}
