/*
Theme Name: Measure Twice Theme
Description: Component styles for the Measure Twice WordPress theme.
*/

/* Scroll-to-Top Button
--------------------------------------------- */

.scroll-to-top {
	position: fixed;
	bottom: 40px;
	right: 40px;
	width: 40px;
	height: 40px;
	background: var(--wp--preset--color--primary, #5344f4);
	color: var(--wp--preset--color--base, #fff);
	text-align: center;
	line-height: 40px;
	border-radius: 50%;
	cursor: pointer;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
	opacity: 0;
	visibility: hidden;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.show {
	opacity: 1;
	visibility: visible;
}

.scroll-to-top:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:focus {
	outline: 2px solid var(--wp--preset--color--primary, #5344f4);
	outline-offset: 2px;
}

.scroll-to-top a {
	display: inline-block;
	width: 100%;
	height: 100%;
	line-height: 40px;
	text-decoration: none;
	color: inherit;
}

.scroll-to-top svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.scroll-to-top {
		bottom: 20px;
		right: 20px;
		width: 36px;
		height: 36px;
		line-height: 36px;
	}

	.scroll-to-top a {
		line-height: 36px;
	}

	.scroll-to-top svg {
		width: 20px;
		height: 20px;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.scroll-to-top {
		border: 2px solid currentColor;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.scroll-to-top {
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.scroll-to-top:hover {
		transform: none;
	}
}

/* Dynamic Copyright
--------------------------------------------- */

.dynamic-copyright {
	font-size: var(--wp--preset--font-size--x-small, .95rem);
	font-weight: 400;
	line-height: 1.5;
}
