/* Custom properties not expressible in theme.json ------------------------- */
:root {
	--fwf--button--radius: 4px;
	--fwf--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--fwf--header--height: 5rem;

	--fwf--color--primary-soft: rgb(30 122 148 / 0.25);
}

/* Reset ------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

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

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Elements ---------------------------------------------------------------- */
body {
	min-height: 100vh;
	text-rendering: optimizeSpeed;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

a {
	color: var(--wp--preset--color--primary);
	transition: color var(--fwf--transition);
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 2px;
}

hr {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	margin-block: var(--wp--preset--spacing--40);
}

/* Skip link --------------------------------------------------------------- */
.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	transform: translateY(-120%);
	transition: transform var(--fwf--transition);
}

.skip-link:focus {
	transform: translateY(0);
}

/* Screen-reader-only text ------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	clip-path: none;
	white-space: normal;
}

/* Phone number with icon -------------------------------------------------- */

.fwf-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}

.fwf-phone__icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.fwf-phone__icon svg {
	width: 1.4em;
	height: 1.4em;
}
