/*
Theme Name: Fuel6
Theme URI: https://fuelmedical.com
Author: Fuel Medical
Description: A Fuel Medical block theme (2024)
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
Version: 6.4.2
Text Domain: fuel6
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Custom Properties
# Fuel Normalize
# Helper Classes
# WordPress Blocks
# Header
# Content
# Footer
# Animations
# print
# Safari 15.3 fallbacks
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Custom Properties
  Note: Declare variables in the body like WordPress to prevent scope issues
--------------------------------------------------------------*/
body {
	/* Structure - 1100px - for use outside of contain class */
	--contain-padding: clamp(1rem, calc(50vw - 29.93rem), 19rem);

	/* Design - Change in theme.json */
	--primary-color: var(--wp--preset--color--primary);
	--accent-color: var(--wp--preset--color--accent);
	--white: var(--wp--preset--color--white);
	--grey: var(--wp--preset--color--grey);
	--black: var(--wp--preset--color--black);
	--blue: var(--wp--preset--color--blue);
	--purple: var(--wp--preset--color--purple);



	--primary-gradient: var(--wp--preset--gradient--primary-gradient);
	--underline-gradient: var(--wp--preset--gradient--underline-gradient);
	--bio-gradient: var(--wp--preset--gradient--bio-gradient);
	--underline-2: var(--wp--preset--gradient--underline-gradient-2);
	--menu-underline: var(--wp--preset--gradient--menu-underline-gradient);
	--map-bio-underline: var(--wp--preset--gradient--map-bio-underline);
	--header-gradient: var(--wp--preset--gradient--header-gradient);


	/* Top Level Primary Menu Colors - now managed on the block level */
	--wp--preset--color--menu-background: inherit;
	--wp--preset--color--menu-color: var(--white);
	--wp--preset--color--menu-hover-color: var(--primary-color);
	--wp--preset--color--menu-hover-bg: var(--accent-color);

	/* Sub Menu Colors */
	--wp--preset--color--sub-menu-background: var(--primary-color);
	--wp--preset--color--sub-menu-color: var(--white);
	--wp--preset--color--sub-menu-hover-color: var(--primary-color);
	--wp--preset--color--sub-menu-hover-bg: rgba(230, 246, 224, 0.15);

	/* Text */
	--title-font: var(--wp--preset--font-family--title);
	--title-color: var(--primary-color);

	--content-font: var(--wp--preset--font-family--content), sans-serif;
	--content-color: var(--wp--preset--color--content);
}

/*--------------------------------------------------------------
# Fuel Normalize
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html:has(.ios) {
	overscroll-behavior: none;
}

html {
	font-size: clamp(125%, 1vw, 240%);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
	min-width: 15rem;
}

iframe,
img,
svg,
audio,
video,
embed {
	vertical-align: middle;
	max-width: 100vw;
}

img {
	object-fit: cover;
}

img:not([src*=".png"],
	[src*=".gif"], [src*=".svg"]) {
	/* background: var(--grey); */
}

picture[style*="width"] {
	display: flex;
}

a {
	text-decoration: none;
	color: var(--primary-color);
	transition: color 300ms, background-color 300ms;
}

button {
	transition: color 300ms, background-color 300ms;
}

a[href^="tel:"] {
	white-space: nowrap;
}

a:hover {
	color: var(--primary-color);
}

[hidden] {
	display: none;
}

@media only screen and (min-width: 68.5em) {
	*[id] {
		scroll-margin-top: 3rem;
	}
}

h2 {
	position: relative;
	padding-bottom: 0.8rem;
}

h2:not(.menu-title, .no-before)::before {
	content: '';
	width: clamp(3rem, 4.4vw, 4rem);
	height: 0.05rem;
	background: var(--underline-gradient);
	position: absolute;
	bottom: 0;
	left: 0;
}

h2.has-text-align-center::before {
	left: calc(50% - calc(clamp(3rem, 4.4vw, 4rem) * .5));
}

/*--------------------------------------------------------------
# Helper Classes
--------------------------------------------------------------*/
.contain {
	--contain-padding: clamp(var(--mobile-padding, 1rem), calc(50vw - 29.93rem), var(--desktop-padding, 19rem));
	display: block;
	position: relative;
	margin: auto;
	padding-right: var(--contain-padding);
	padding-left: var(--contain-padding);
	width: 100%;
}

.icon-item {
	display: block;
	position: relative;
	margin: 1em 0;
	padding: 0 0 0 1.8em;
}

.icon-item svg {
	position: absolute;
	top: 0.15em;
	left: 0;
	width: 1.2em;
	height: 1.2em;
}

.text-center {
	text-align: center;
}

@media (min-width: 68.5em) {
	.mobile-only {
		display: none !important;
	}
}

@media (max-width: 68.49em) {
	.desktop-only {
		display: none !important;
	}

	body {
		--center-on-mobile: center;
	}

	.text-center-on-mobile {
		text-align: var(--center-on-mobile);
	}

	.center-on-mobile {
		justify-content: var(--center-on-mobile);
	}

	.margin-center-on-mobile {
		margin-left: auto;
		margin-right: auto;
	}
}

.zebra>*:not(tbody):nth-child(even) {
	background-color: var(--zebra, var(--accent-color));
}

.toggle-content:has(.zebra) {
	padding: 0;
}

/* Use on query loops to help change the order every other column */
.stagger> :nth-child(odd) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Use to make link fill entire block - use when you can't wrap blocks with anchor tag */
.cover-link {
	position: absolute !important;
	inset: 0;
	width: 100%;
	z-index: 1;
	background: none !important;
}

:has(> .cover-link) {
	position: relative;
}

/*--------------------------------------------------------------
# WordPress Blocks
--------------------------------------------------------------*/
@media (max-width: 37.49em) {
	:where(.alignleft, .alignright):not(.wp-block-query .wp-block-post-featured-image) {
		float: none;
		margin: 0 auto 1rem;
	}
}

@media (min-width: 37.5em) {
	:where(.alignleft, .alignright):not(.wp-block-query .wp-block-post-featured-image) {
		max-width: 48%
	}
}

@media (min-width: 68.5em) {
	.is-position-sticky {
		transition: top 0.3s ease;
	}

	body:has(header.show-sticky) .is-position-sticky {
		top: 4rem;
	}
}

/* Button Styles */
.wp-element-button {
	position: relative;
}

.is-style-outline .wp-element-button {
	padding: 0.5rem 1rem !important;
}

.map-loc-footer .button {
	background-color: var(--accent-color);
	color: var(--primary-color) !important;
	display: inline-block;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.map-loc-footer .button:is(:hover, :focus-visible),
.sub-menu .wp-block-buttons:not(.mobile-only) .wp-element-button:is(:hover, :focus-visible) {
	background-color: var(--white) !important;
	color: var(--primary-color) !important;
}

.map-loc-footer .button::before,
.map-loc-footer .button::after,
.sub-menu .wp-block-buttons:not(.mobile-only) .wp-element-button::before,
.sub-menu .wp-block-buttons:not(.mobile-only) .wp-element-button::after {
	border: 1px solid var(--accent-color) !important;
}

.wp-element-button:not(.wp-block-search__button)::before,
.wp-element-button:not(.wp-block-search__button)::after {
	content: '';
	width: calc(100% + 0.4rem);
	height: calc(100% + 0.4rem);
	border-radius: 8px;
	border: 1px solid var(--primary-color);
	position: absolute;
	top: -0.2rem;
	left: -0.2rem;
	z-index: 1;
	clip-path: inset(0 50% 50% 0);
	transition: clip-path 300ms;
	pointer-events: none;
}

.wp-element-button:not(.wp-block-search__button)::after {
	clip-path: inset(50% 0 0 50%);
}

.wp-element-button:is(:hover, :focus-visible)::before,
.wp-element-button:is(:hover, :focus-visible)::after {
	clip-path: inset(0 0 0 0);
}




/* Button hover/focus styles */
:root :where(.wp-element-button, .wp-block-button__link):is(:hover, :focus-visible) {
	background-color: var(--accent-color);
	color: var(--primary-color);
}

.wp-block-button.is-style-outline .wp-element-button:is(:hover, :focus-visible),
.map-loc-footer .wp-element-button:is(:hover, :focus-visible) {
	background: var(--primary-color);
	color: var(--white);
}

@media (max-width: 68.49em) {
	.entry-content .wp-block-buttons {
		justify-content: var(--center-on-mobile);
		row-gap: 32px !important;
		/* Center buttons on mobile but not in menu */
	}
}

/* Search block */
.wp-block-search__input {
	border-color: var(--search-white, currentColor);
	color: var(--search-white, currentColor);
	background: none;
	outline: 0;
}

.wp-block-search__button {
	margin-left: -0.1rem;
	border-top-left-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
}

.wp-block-search__button:is(:hover, :focus-visible) {
	background: var(--search-button-bg, var(--accent-color));
	color: var(--search-white, var(--primary-color));
	border: 1px solid #949494;
}

.sub-menu .wp-block-search__button:is(:hover, :focus-visible) {
	border: 1px solid var(--white);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
@media (max-width: 68.49em) {
	.show-sticky .wp-block-group:has(> .fuel6-walker-menu):not(:has(.depth-0 > .menu-link[aria-expanded="true"])) {
		bottom: calc((var(--menu-height) + env(safe-area-inset-bottom) + 0.05rem) * -1);
	}
}

@media (min-width: 68.5em) {
	.header:not(.block-editor-block-list__block) {
		position: sticky;
		top: calc(var(--headerHeight, 11.7rem) * -1);
		z-index: 999;
		transition: top 0.5s ease;
	}

	body:not(.js-active) .header:not(.block-editor-block-list__block),
	.header.show-sticky:not(.block-editor-block-list__block) {
		--menuTop: calc(var(--headerHeight, 11.7rem) - var(--menu-height, 3.2rem));
		top: calc(var(--menuTop, 8.5rem) * -1);
	}

	.logo-menu {
		justify-content: space-between;
	}

	.header-phone svg path {
		stroke: var(--primary-color);
	}
}

.header-logo svg,
.footer-logo svg {
	transition: transform 0.3s ease;
}

.header-logo a:is(:hover, :focus-visible) svg,
.footer-logo:is(:hover, :focus-visible) svg {
	transform: scale(1.05);
}

.header-quicklinks a:is(:hover, :focus-visible) {
	--wp--preset--color--primary: var(--wp--preset--color--menu-hover-bg);
}

.header-quicklinks a {
	color: var(--primary-color) !important;
	position: relative;
	width: fit-content;
	background: linear-gradient(0deg, var(--primary-color), var(--primary-color)) no-repeat 0 bottom / 0 1px;
	transition: background-size 350ms;
}

.header-quicklinks a p {
	width: fit-content;
	background: linear-gradient(0deg, var(--primary-color), var(--primary-color)) no-repeat 0 bottom / 0 1px;
	transition: background-size 350ms;
}

.header-quicklinks a:is(:hover, :focus-visible) p {
	background-size: 100% 1px;
	color: var(--primary-color);
}

.header-quicklinks a::before {
	content: "";
	width: 0.05rem;
	height: 100%;
	background: linear-gradient(0deg,
			rgba(36, 122, 128, 0) 0%,
			#247A80 49.74%,
			rgba(36, 122, 128, 0) 100%);
	position: absolute;
	top: 0;
	right: 0;
}

.header-quicklinks a:last-of-type::before {
	display: none;
}

/* Phone Tree */
.call-today {
	position: relative;
}

.call-today::before {
	content: '';
	width: 100%;
	height: 0.05rem;
	background-color: var(--primary-color);
	position: absolute;
	bottom: 0;
	left: 0;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 300ms;
}

.call-today:is(:hover, :focus-visible)::before {
	transform: scaleX(1);
}

.dialog-box {
	border-bottom-left-radius: 0.4rem;
	border-top-right-radius: 0.4rem;
	background: transparent;
}

.dialog-content-wrapper {
	padding: clamp(1rem, 4.5vw, 4.5rem) clamp(2rem, 5.5vw, 5.5rem);
	background-color: rgba(36, 122, 128, 0.85);
}

.close-dialog {
	background-color: var(--accent-color);
	border-top-right-radius: 0.4rem;
	border-bottom-left-radius: 0.4rem;
	border-color: var(--accent-color);
	width: 2rem;
	aspect-ratio: 1 / 1;
	border-right: unset;
}

.dialog-box .phone-icon path {
	stroke: var(--white);
}

.close-dialog svg {
	color: var(--primary-color);
}

.close-dialog:focus-visible,
.close-dialog:hover {
	background-color: var(--white);
}

.dialog-box a {
	background: linear-gradient(0deg, var(--white), var(--white)) no-repeat 0 bottom / 0 2px;
	transition: background-size 350ms;
}

.dialog-box a:is(:hover, :focus-visible) {
	background-size: 100% 1px;
	color: var(--white) !important;
}

.dialog-box .has-primary-background-color {
	background-color: unset !important;
}

.dialog-trigger {
	font-family: var(--content-font) !important;
	font-weight: bold;
}


@media (max-width: 68.49em) {
	.has-leading-dots-gradient-background {
		display: none;
	}

	.dialog-box a {
		border: 1px solid var(--white);
		width: 100%;
		max-width: 15rem;
		text-align: center;
		padding: 0.4rem;
		margin-bottom: 1rem;
		margin-top: 0.4rem;
	}

	.content-cta .wp-block-group {
		flex-direction: column;
		font-size: 0.9rem;
	}
}

@media (max-width: 68.49em) {
	body .logo-menu {
		padding: 0.8rem 2rem !important;
		position: relative;
	}

	.logo-menu a svg {
		max-width: 14rem;
	}

	.header-logo {
		z-index: 1;
		position: relative;
	}

	.header-logo::before {
		content: '';
		width: 100vw;
		height: 5rem;
		background: var(--header-gradient);
		position: absolute;
		top: -0.8rem;
		left: -2rem;
		z-index: -1;
	}
}

@media (min-width: 68.5em) {
	.is-pinned .logo-menu {
		background: var(--primary-color) !important;
	}

	.is-pinned .logo-menu svg {
		color: var(--white) !important;
	}

	.is-pinned .header-logo svg {
		width: 8rem;
		display: block;
		margin: auto;
		padding: unset;
	}

	.is-pinned .header-logo a {
		margin-top: 1rem !important;
	}
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.entry-content .wp-block-list li {
	margin: 1em 0 0 0;
	position: relative;
}

.entry-content .wp-block-list li::marker {
	color: transparent;
}

.entry-content .wp-block-list li::before {
	content: '';
	width: 0.6rem;
	aspect-ratio: 1/1;
	border-radius: 50%;
	background: radial-gradient(circle,
			var(--primary-color) 0 3px,
			#fff 3px 5px,
			var(--primary-color) 5px 6px,
			transparent 6px);
	position: absolute;
	top: 0.4rem;
	left: -1rem;
}

.entry-content .blue li::before {
	background: radial-gradient(circle,
			var(--blue) 0 3px,
			#fff 3px 5px,
			var(--blue) 5px 6px,
			transparent 6px);
}

.entry-content .purple li::before {
	background: radial-gradient(circle,
			var(--purple) 0 3px,
			#fff 3px 5px,
			var(--purple) 5px 6px,
			transparent 6px);
}

/* Location card loop - Used in content, and menu */
/* If a grid has only one column, make it full width */
.location-cta .wp-block-post-template.is-layout-grid:not(:has(li:nth-child(2))) {
	grid-template-columns: 1fr
}

/* If a grid has three columns, make it flex */
.location-cta .wp-block-post-template.is-layout-grid:has(li:nth-child(3)) {
	display: flex;
	flex-wrap: wrap;

	& .wp-block-post {
		flex: 1 1 15rem;
	}
}

.location-card svg {
	vertical-align: bottom;
}

.sub-menu .location-card {
	background: none !important;
	padding-top: 0 !important;

	& .wp-block-post-title {
		padding-bottom: 0.5rem;
		font-size: var(--wp--preset--font-size--content);
		font-family: var(--content-font);
		font-weight: bold;
	}

	&>.wp-block-group:first-of-type {
		margin-top: 1.3rem;
	}
}

@media (max-width: 68.49em) {
	.sub-menu {
		& .location-cta svg {
			color: var(--white);
		}

		& .location h3 {
			margin-left: -1rem !important;
			width: calc(100% + 2rem);
		}
	}
}

/* Locations card map */
.is-layout-flex>.flex-grow {
	flex-grow: 1;
}

/* Bio grid custom loop */
.bio-list {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	max-width: 20rem;
	margin: auto;
}

.sub-menu .bio-list {
	width: 20rem;
}

.bio-list .bio-box {
	display: flex;
	width: 100%;
	max-width: 20rem;
	height: 3.5rem;
	max-height: 3.5rem;
	position: relative;
	background: var(--bio-gradient);
	border-top-left-radius: 8px;
	border-bottom-right-radius: 8px;
	overflow: hidden;
	border: 1px solid #247A8040;
}

.sub-menu .bio-list .bio-box {
	color: var(--primary-color);
	border: unset;
}

.bio-list .bio-box::before {
	content: '';
	width: 1.1rem;
	height: 100%;
	background-color: var(--primary-color);
	border-bottom-right-radius: 8px;
	position: absolute;
	top: 0;
	right: 0;
	transition: background-color 300ms;
}

.sub-menu .bio-list .bio-box::before {
	background-color: var(--accent-color);
	border: 1px solid var(--accent-color);
	border-left: unset;
}

.sub-menu .bio-list .bio-box::after {
	content: '';
	width: 100%;
	height: 100%;
	background: var(--accent-color);
	background: linear-gradient(90deg, #E6F6E0 0%, rgba(230, 246, 224, 0.80) 100%);
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
}

.bio-list .bio-image {
	height: 100%;
	overflow: hidden;
	min-width: 3.5rem;
}

.bio-list img {
	width: 100%;
	height: 100%;
	max-width: 3.5rem;
}

.bio-list .bio-label {
	line-height: normal;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	padding-left: 0.6rem;
	width: 100%;
	position: relative;
}

.bio-name {
	position: relative;
	padding-bottom: 0.3rem;
	margin-bottom: 0.25rem;
	font-size: 0.9rem;
}

.bio-list .bio-name::before {
	content: '';
	width: 2rem;
	height: 0.05rem;
	background: var(--underline-gradient);
	position: absolute;
	left: 0;
	bottom: 0;
}

.bio-list .bio-label span {
	flex: 1 1 100%;
}

.bio-list .bio-cred {
	font-size: 0.7rem;
}

.bio-chev {
	color: var(--accent-color);
	position: absolute;
	width: 0.35rem;
	top: calc(50% - 0.3rem);
	right: 0.4rem;
	transition: color 300ms;
}

.sub-menu .bio-chev {
	color: var(--primary-color);
}

.sub-menu a:is(:hover, :focus-visible) .bio-chev {
	color: var(--accent-color);
}

.bio-box:is(:hover, :focus-visible) .bio-chev {
	color: var(--primary-color);
}

.bio-list .bio-box:is(:hover, :focus-visible)::before {
	background-color: var(--accent-color);
}

.sub-menu .bio-list .bio-box:is(:hover, :focus-visible)::before {
	background-color: var(--primary-color);
}

.wp-block-column:has(> .bio-list) {
	min-width: 15rem;
}

#main .bio-list .bio-box {
	height: 3.5rem;
	max-height: 3.5rem;
}

@media (max-width: 68.49em) {


	.sub-menu .bio-list .bio-box:not(:hover, :focus-visible):nth-child(even) {
		background: rgba(255, 255, 255, 0.1);
	}

	.sub-menu .bio-label {
		color: var(--primary-color) !important;
	}
}

@media (min-width: 68.5em) {
	.bio-list {
		display: flex;
		flex-wrap: wrap;
		gap: 0.8rem;
		align-items: flex-start;
		margin-top: 1rem;
	}

	.bio-list .bio-image {
		display: block;
		width: 100%;
		max-width: 3.5rem;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.bio-list .bio-image img {
		transition: transform 0.3s;
	}
}

/* FUEL INTERACTIVE MAP */

.wp-block-fuel-interactive-map:not(.block-editor-block-list__block) {
	height: 100%;
	/* max-height: 25rem; */
	background: linear-gradient(148deg, rgba(14, 96, 101, 0.90) 0%, rgba(100, 163, 160, 0.90) 100%);
	color: var(--white);
	border-radius: 8px;
	overflow: hidden;
}

.wp-block-fuel-interactive-map .map-filter-panel:not(.wp-block-fuel-fuel-toggle-block) summary {
	padding: 0.5rem 1.5rem;
}

.map-nav-item-btn {
	padding-top: 2.1rem;
	padding-bottom: 2.1rem;
}

.map-sidebar {
	background: transparent;
}

.map-back {
	text-align: left;
	font-size: 0.9rem;
}

.map-back {
	color: var(--primary-color);
}

.map-back svg {
	color: var(--primary-color);
}

.map-loc-header p {
	margin: unset;
}

.infoPanel-padding {
	--infoPanel-padding: 0.6rem;
}

.map-info {
	background: var(--primary-color);
}

.map-quick-links a:is(:hover, :focus-visible) svg {
	color: var(--white);
}

.map-quick-links {
	background-color: rgba(255, 255, 255, .1);
}

.map-back:is(:hover, :focus-visible) {
	background-color: var(--white);
}

.map-loc-info .hours-row {
	display: block;
}

.map-info .col2 {
	display: none;
}

.bio-name {
	position: relative;
}

.bio-name::before {
	content: '';
	width: 2rem;
	height: 0.05rem;
	background: var(--map-bio-underline);
	position: absolute;
	bottom: 0;
	left: 0;
}

.provider-list a {
	position: relative;
}

.provider-list a::before {
	content: '';
	width: 0.7rem;
	aspect-ratio: 1/1;
	background: url('./images/link.svg');
	background-size: cover;
	position: absolute;
	top: calc(50% - 0.35rem);
	right: 1.2rem;
}

.map-loc-footer {
	padding-bottom: 1.5rem;
}

.map-mobile-view-bar {
	background: #247A80 !important;
}

.wp-block-fuel-interactive-map details:not(.wp-block-fuel-fuel-toggle-block) summary {
	background: rgba(0, 0, 0, 0.1);
}

.map-nav-item-btn {
	position: relative;
}

.map-nav-item-btn::before {
	content: '';
	width: 0.3rem;
	aspect-ratio: 1/2;
	background: url('./images/map-chevron.svg');
	background-size: cover;
	position: absolute;
	top: calc(50% - 0.1rem);
	right: 1.4rem;
}

.filter-controls {
	color: var(--content-color);
}

.filter-controls label {
	color: var(--white);
}

.filter-controls select {
	color: var(--primary-color);
	padding: 0.2rem;
	font-size: 0.8rem;
	border-radius: 4px;
}

.get-my-location {
	padding: 0.2rem 0.8rem;
	background-color: var(--accent-color);
	color: var(--primary-color);
	border-radius: 4px;
}

@media (max-width: 68.49em) {
	.filter-contents {
		justify-content: center;
	}

	.get-my-location {
		margin: auto;
	}

	.filter-controls label {
		max-width: fit-content;
		margin: auto;
	}
}

/* Reviews Carousel */
.fm-carousel {
	background: unset;
}

.fm-carousel-container li {
	padding: 0 1rem;
}

.fm-nav-arrow {
	color: var(--primary-color);
}

.fm-next::before {
	left: 0.15rem;
}

.fm-nav-arrow svg {
	width: 2.4rem;
	height: unset;
}

.fm-carousel-bullets {
	display: none;
}

@media (max-width: 68.49em) {

	body .wp-block-quote {
		font-size: 0.9rem;
		margin-top: 0.5rem;
		padding: 0.8rem;
	}

	.fm-carousel-container li {
		padding: 0;
	}

	.wp-block-quote p:first-of-type::before {
		width: 1rem;
	}

	.wp-block-quote p:first-of-type::before {
		inset: -0.3rem auto auto -0.3rem
	}

	.fm-nav-arrow svg {
		width: 1.3rem;
	}

	.map-sidebar {
		background: linear-gradient(148deg,
				#267075 0%,
				#74aca9 100%);

	}
}

/* H2 animation */

.contact-content h2::before,
.locations-title::before,
.js-intersect h2::before {
	transform: scaleX(0);
	transition: transform 300ms;
	transition-delay: 300ms;
}

.contact-content.js-intersected h2::before,
.js-intersected .locations-title::before,
.js-intersected h2::before {
	transform: scaleX(1);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer a {
	width: fit-content;
	background: linear-gradient(0deg, var(--white), var(--white)) no-repeat 0 bottom / 0 2px;
	transition: background-size 350ms;
}

.footer a.icon-item {
	background-position-x: 1.6rem;
}

.footer a:not(.footer-logo):is(:hover, :focus-visible) {
	background-size: 100% 1px;
	color: var(--white);
}

.footer-socials a {
	transition: transform 0.3s ease;
}

.footer-socials a:is(:hover, :focus) {
	background: none;
	transform: scale(1.2);
}

.footer .wp-block-column>h3 {
	border-bottom: 1px solid;
	border-image: var(--underline-2) 1;
}

#footer-locations {
	flex-basis: clamp(9rem, 17vw, 15rem) !important;
}

/* 850px - Mobile breakpoint for copyright section */
@media only screen and (max-width: 53.125em) {
	.copyright-wrapper {
		flex-direction: column;
		text-align: center;
	}

	.policy-menu {
		justify-content: center;
	}
}

/* Policy menu */
.policy-menu li:nth-child(n+1):not(:last-child)::before {
	content: '|';
	position: absolute;
	right: -0.6rem;
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(var(--spin-rotation, 360deg));
	}
}

@keyframes fadein {
	0% {
		opacity: var(--o1, 0);
		transform: translate(var(--x1, 0), var(--y1, 5rem));
	}

	100% {
		opacity: var(--o2, 1);
		transform: translate(var(--x2, 0), var(--y2, 0));
	}
}

@keyframes opacity {
	0% {
		opacity: var(--o1, 0);
	}

	100% {
		opacity: var(--o2, 1);
	}
}

@keyframes fadeout {
	0% {
		opacity: var(--o2, 1);
		transform: translate(var(--x2, 0), var(--y2, 0));
	}

	100% {
		opacity: var(--o1, 0);
		transform: translate(var(--x1, 0), var(--y1, 5rem));
	}
}

@keyframes point {
	0% {
		transform: translate(0, 0);
	}

	50% {
		transform: translate(var(--x, 1rem), var(--y, 0));
	}

	100% {
		transform: translate(0, 0);
	}
}

/* popAnimation Example: https://jsfiddle.net/KTC_88/8xkLv520/ */
@keyframes popAnimation {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}

	60% {
		transform: scale(1.2)
	}

	100% {
		transform: scale(1);
		opacity: 1
	}
}

/**
 * Animation helper classes.
 */
@media (prefers-reduced-motion:no-preference) {

	/* Add to wrappers to animate children */
	.popin>* {
		transform: scale(0.5);
		opacity: 0;
	}

	body:not(.js-active) .js-intersect.popin>*,
	/* NO JS */
	.popin.js-intersected>* {
		--delay: calc(var(--i, 0) * 200ms);
		animation: popAnimation 400ms ease var(--delay) forwards
	}

	.fadein-items>* {
		opacity: 0;
		transform: translateY(0);
	}

	body:not(.js-active) .js-intersect.fadein-items>*,
	/* NO JS */
	.fadein-items.js-intersected>* {
		--delay: calc(var(--i, 0) * 200ms);
		animation: fadein var(--time, 400ms) ease var(--delay) forwards;
	}

	/* Add directly to element that will be affected */
	.fadein {
		opacity: 0;
		transform: translateY(0);
		--y1: 0;
	}

	.opacity {
		opacity: 0;
	}

	.fadeup {
		opacity: 0;
		transform: translateY(5rem);
	}

	.fadedown {
		opacity: 0;
		transform: translateY(-5rem);
		--y1: -5rem;
	}

	.fadeleft {
		opacity: 0;
		transform: translateX(-5rem);
		--x1: -5rem;
		--y1: 0;
	}

	.faderight {
		opacity: 0;
		transform: translateX(5rem);
		--x1: 5rem;
		--y1: 0;
	}

	body:not(.js-active) .js-intersect:is(.fadein, .fadeup, .fadedown, .fadeleft, .faderight, .opacity),
	/* NO JS */
	.js-intersected:is(.fadein, .fadeup, .fadedown, .fadeleft, .faderight) {
		animation: fadein var(--time, 300ms) var(--easing, ease) var(--delay, 0s) forwards
	}

	.js-intersected .opacity {
		animation: opacity var(--time, 300ms) var(--easing, ease) var(--delay, 0s) forwards
	}
}

/* Used to make images in links grow when link is hovered - simply add .hover-img-grow to link or image block */
figure.hover-img-grow,
.hover-img-grow figure {
	overflow: hidden;
}

.hover-img-grow img {
	transition: transform var(--time, 0.3s);
}

a:has(+ .hover-img-grow):is(:hover, :focus-visible)+figure img,
a:has(.hover-img-grow):is(:hover, :focus-visible) img,
a.hover-img-grow:is(:hover, :focus-visible) img {
	transform: scale(var(--scale, 1.1));
}

/*--------------------------------------------------------------
# Print
--------------------------------------------------------------*/
@media print {
	* {
		background: transparent !important;
		color: initial !important;
		--wp--preset--color--white: initial !important;
	}

	.main-header {
		all: unset;
	}

	.main-title {
		margin: 1rem auto !important;
		padding-bottom: 1rem;
		border-bottom: 2px solid #000;
	}

	nav,
	#sidebar,
	.header,
	.footer,
	.pagination,
	.wp-prev-next,
	.main-header img,
	.wp-block-cover__image-background,
	.wp-block-cover__background,
	main+* {
		display: none !important;
	}
}

/*--------------------------------------------------------------
# Safari 15.3 fallbacks
  Safari 15.3 and under bug fixes - welcome to the new IE
--------------------------------------------------------------*/
@media not all and (min-resolution: 0.001dpcm) {
	@supports (-webkit-appearance: none) {

		/* Hide Dialog (not supported) */
		dialog {
			display: none;
			background-color: var(--white);
			z-index: 9999;
		}

		dialog[open] {
			display: block;
		}

		/* menu fixes */
		.js-active .sub-menu-trigger[aria-expanded=true]+.sub-menu .sub-animate>* {
			background: var(--white);
		}

		.primary-menu .menu-label:hover {
			color: var(--white);
		}
	}
}

/* 
 * iPhone bug fix for buttons
 * https://www.notion.so/fueldigital/iPhone-button-contrast-fix-47918141a741472fbc1fba3aa5919ca4 
 */
@supports (-webkit-touch-callout: none) {
	.entry-content a.wp-block-button__link {
		transition: none;
	}
}