:root {
	--ecovenir-focus-ring: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
}

html {
	scroll-behavior: smooth;
}

body {
	text-rendering: optimizeLegibility;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
	box-shadow: var(--ecovenir-focus-ring);
}

.ecovenir-card {
	height: 100%;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--large);
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ecovenir-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 35%, var(--wp--preset--color--border));
	box-shadow: var(--wp--preset--shadow--soft);
}

.ecovenir-floating-whatsapp {
	position: fixed;
	inset-inline-end: 1rem;
	inset-block-end: 1rem;
	z-index: 80;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.8rem 1rem;
	border-radius: var(--wp--custom--radius--pill);
	background: #1fa855;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--wp--preset--shadow--lifted);
}

.ecovenir-floating-whatsapp:hover,
.ecovenir-floating-whatsapp:focus-visible {
	background: #147a3c;
	color: #fff;
}

@media (max-width: 781px) {
	.ecovenir-floating-whatsapp span {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
