/*
Theme Name: Fuel6
Theme URI: https://fuelmedical.com
Author: Fuel Medical
Description: A Fuel Medical block theme (2023)
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 8.0
Version: 6.1.0
Text Domain: fuel6
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Custom Properties
# Fuel Normalize
# Custom Elements
# WordPress Blocks
# Forms
## Search Form
# Header
# Content
# Footer
# Map
# Animations
## Page Transition
# print
# Safari 15.3 fallbacks
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Custom Properties
--------------------------------------------------------------*/
body {
	/**
	 * Note: We changed :root to body due to scope issues. WordPress declares its theme variables in the body
	 */

	/* Structure - 1100px */
	--mobile-padding: 1rem;
	--desktop-padding: 19rem;
	--contain-padding: clamp(var(--mobile-padding), calc(50vw - 29.93rem), var(--desktop-padding));

	/* Design */
	--primary-color: var(--wp--preset--color--primary, #333);
	--accent-color: var(--wp--preset--color--accent, #555);
	--white: #fff;
	--grey: #eee;
	--sea-green: var(--wp--preset--color--sea-green);

	/* Text */
	--title-font: var(--wp--preset--font-family--title);
	--title-color: var(--primary-color);
	--wp--preset--color--h-2: var(--title-color);
	--wp--preset--color--h-3: var(--accent-color);

	--content-font: var(--wp--preset--font-family--content), sans-serif;
	--content-color: var(--wp--preset--color--content, #4a4a4a);
}

/*--------------------------------------------------------------
# Fuel Normalize
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html {
	font-size: 125%;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	position: relative;
	min-width: 18rem;
}

ul,
ol {
	padding-left: clamp(1.5rem, 3vw, 2rem);
	color: var(--primary-color);
	position: relative;
}

li {
	margin: 1em 0 0 0;
}

iframe,
img,
svg,
audio,
canvas,
video,
object,
embed {
	vertical-align: middle;
	max-width: 100%;
}

img {
	object-fit: cover;
}

img[src*=".jpg"] {
	background: var(--grey);
}

blockquote,
figcaption {
	font-style: italic;
}

small {
	font-size: 0.75em;
}

sub,
sup {
	font-size: 0.75em;
	line-height: 0;
}

a {
	text-decoration: none;
	color: var(--accent-color);
	transition: color 300ms, background-color 300ms;
}

a[href^="tel:"] {
	white-space: nowrap;
}

a:hover {
	color: var(--primary-color);
}

@media only screen and (min-width: 68.5em) {
	*[id] {
		scroll-margin-top: 3rem;
	}
}

/*--------------------------------------------------------------
# Custom Elements
--------------------------------------------------------------*/
.contain {
	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;
}

@media (min-width: 38.5em) {
	.list-col-2 {
		column-count: 2;
		column-gap: 2em;
		margin-left: 1rem;
	}
}

/*--------------------------------------------------------------
# WordPress Blocks
--------------------------------------------------------------*/
.alignleft,
.alignright {
	width: 100%
}


#main .alignleft {
	float: left;
	margin: 0 1em 0.2em 0;
}

#main .alignright {
	float: right;
	margin: 0 0 0.2em 1em;
}

.entry-content *:has(.alignright, .alignleft) {
	display: flow-root;
}

@media (min-width: 37.5em) {

	.alignleft,
	.alignright {
		max-width: 48%
	}
}

.wp-block-cover__inner-container {
	position: relative;
}

.entry-content {
	container-type: inline-size;
	container-name: content;
}

@container content (max-width: 25rem) {

	#main .alignright,
	#main .alignleft {
		float: none;
		margin: 1.5em 0 0.2em;
		min-width: 100%;
	}
}

/* Button block */
.button,
.wp-block-file__button,
.wp-block-post-excerpt__more-link,
.wp-block-buttons .wp-element-button,
.wp-block-buttons .wp-block-button__link.wp-block-button__link {
	background-image: linear-gradient(82.86deg, #93FDD7 0%, #5DCCFF 100%);
	color: var(--primary-color);
	border-radius: 0;
	font-weight: 400;
	line-height: normal;
	padding: 0.5em 1em;
	transition: all 300ms;
	position: relative;
	z-index: 1;
}

.button::before,
.wp-block-file__button::before,
.wp-block-post-excerpt__more-link::before,
.wp-block-buttons .wp-element-button::before,
.wp-block-buttons .wp-block-button__link.wp-block-button__link::before {
	content: '';
	width: 100%;
	height: 100%;
	background: var(--sea-green);
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	opacity: 0;
	transition: opacity 350ms;
}

.button:is(:hover, :focus-visible)::before,
.wp-block-file__button:is(:hover, :focus-visible)::before,
.wp-block-post-excerpt__more-link:is(:hover, :focus-visible)::before,
.wp-block-buttons .wp-element-button:is(:hover, :focus-visible)::before,
.wp-block-buttons .wp-block-button__link.wp-block-button__link:is(:hover, :focus-visible)::before {
	opacity: 1;
}

/* Button block - outline */
.is-style-outline.is-style-outline.wp-block-button .wp-block-button__link {
	background: var(--white);
	color: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--accent);
	padding: 0.5em 0.5em;
	/* font-size: 0.9em; */
}

.wp-block-button.is-style-outline .wp-element-button:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--white);
}

/* 
 * iPhone bug fix
 * https://www.notion.so/fueldigital/iPhone-button-contrast-fix-47918141a741472fbc1fba3aa5919ca4 
 */
@supports (-webkit-touch-callout: none) {
	.entry-content a.wp-block-button__link {
		transition: none;
	}
}

/* Search block */
.wp-block-search {
	padding: 0;
	min-width: 16rem;
	max-width: calc(100vw - 2rem);
}

.wp-block-search__inside-wrapper {
	padding: 0;
	border-radius: 0.2rem;
	border: none;
	outline: 1px solid;
}

.wp-block-search__input {
	font-size: 1rem;
	padding-left: 1rem;
	background: none;
}

.wp-block-search__button {
	padding: 0.45rem 0.75rem;
	background: var(--accent-color);
	border-left: 1px solid;
	transition: background-color 0.3s, color 0.3s;
}

.wp-block-search__button:is(:hover, :focus-visible) {
	background: var(--white);
	color: var(--accent-color);
}

@media (max-width: 68.49em) {
	.wp-block-search__button {
		color: var(--accent-color);
		background: var(--white);
	}

	.wp-block-search__button:is(:hover, :focus-visible) {
		background: transparent;
		color: var(--white);
	}
}

/* Quote block */
body .wp-block-quote {
	padding: clamp(0.5rem, 4vw, 1.6em) clamp(1rem, 4vw, 5.5rem) clamp(1rem, 4vw, 2.2rem);
	font-size: clamp(0.9rem, 4vw, 1rem);
	line-height: 2.2;
	position: relative;
	margin: 1.2rem 1rem 0 !important;
	border-radius: 0.4rem;
	background: var(--white);
	z-index: 1;
}

.fm-carousel-overflow li {
	position: relative;
	border-radius: 0.4rem;
	padding: 2px;
	overflow: auto;
	z-index: 0;
	/* height: 18rem; */
}

.fm-carousel-overflow li::before {
	content: "";
	position: absolute;
	inset: 0px;
	border-radius: 0.4rem;
	padding: 0.1rem;
	/* control the border thickness */
	background: linear-gradient(82.86deg, #93FDD7 0%, #5DCCFF 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: -1;
}

#main .wp-block-fuel-carousel-slide li {
	height: fit-content;
}

.wp-block-quote cite {
	display: block;
	font-size: clamp(0.9rem, 4vw, 1rem);
	font-weight: bold;
	text-align: right;
	line-height: 1.5;
}

.fm-carousel {
	background-color: transparent;
	padding-bottom: 0;
	padding-top: 0;
	height: fit-content;
}

.fm-carousel-bullets {
	display: none;
}

@media (min-width: 68.5em) {
	#main .wp-block-fuel-carousel-slide li {
		height: fit-content;
	}
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.gfield {
	border-radius: 0.3rem;
	overflow: hidden !important;
	background: var(--white);
	line-height: normal;
	box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
}

.gfield:focus-within {
	outline: 2px auto -webkit-focus-ring-color;
}

.gfield .gfield_label.gform-field-label {
	color: var(--accent-color);
	font-weight: normal;
	font-size: 0.7rem;
	margin-bottom: 0;
	padding-left: 0.6rem;
}

.gfield .medium,
.gfield .large {
	padding: 0 0.6rem 0.35rem !important;
	color: var(--content-color);
	background: var(--white);
	outline: none;
	border: 0 !important;
}

.gform_footer {
	position: relative;
	margin-top: 0.7rem;
	justify-content: center;

}

.gform_button {
	transition: color 0.3s, background-color 0.3s;
	margin: 0.9rem auto 0;
}

.gform_ajax_spinner {
	position: absolute;
	top: 0;
	right: 0.5rem;
	bottom: 0;
	margin: auto;
	border: 0.2em solid rgba(0, 0, 0, 0.4);
	border-left: 0.2em solid #07B084;
	border-radius: 50%;
	width: 1.2em;
	height: 1.2em;
	animation: spin 1.1s infinite linear;
}

.gform_confirmation_message {
	font-family: inherit;
	font-size: 1.1em;
	font-weight: normal;
}

.gform_fileupload_rules {
	padding: 0 1rem 1rem;
	font-style: italic;
}

/* Validation styling */
.gform_wrapper .gform_validation_errors .gform_submission_error {
	border: none;
	margin: 0;
}

.gform_validation_errors p {
	margin: 0;
}

.gfield_error {
	border-color: #c02b0a;
}

.gfield_validation_message {
	border-left: none !important;
	border-right: none !important;
	border-bottom: none !important;
}

.gform_required_legend,
#contact_section .sidebar-form-content {
	display: none;
}

/* Full width contact form */
#contact_section {
	--contain-padding: clamp(var(--mobile-padding), calc(50vw - 20rem), 26.3rem);
	padding-top: clamp(2.4rem, 10vw, 6.25rem);
	padding-bottom: clamp(2.4rem, 10vw, 6.25rem);
}

#contact_section::before {
	content: '';
	width: 100%;
	aspect-ratio: 1920 / 42;
	background: url('./images/wave.svg');
	background-size: cover;
	position: absolute;
	top: -1px;
	left: 0;
	transform: rotateX(180deg) rotateY(180deg);
	z-index: 1;
}

#contact_section .gform_title {
	display: none;
}

.contact-emergency {
	font-weight: 700;
	color: var(--primary-color);
}

#contact_section .gform_wrapper {
	background: rgba(255, 255, 255, 0.75);
	color: var(--primary-color);
	padding: 1em 0.8em;
	margin-top: 0;
	border-bottom-right-radius: 0.4em;
	border-bottom-left-radius: 0.4em;
}

#contact_section .gform_title {
	text-align: center;
}

#contact_section .gform_description {
	font-size: clamp(0.7rem, 3vw, 0.9rem);
	margin-top: 0;
}

#contact_section .contact-emergency {
	display: block;
	margin-bottom: 1rem;
}

.contact-blue {
	background-color: rgba(0, 116, 185, 0.75);
	padding: 1em;
	padding-bottom: 1em;
	border-top-right-radius: 0.4em;
	border-top-left-radius: 0.4em;
}

.contact-logo {
	width: 3.5em;
	display: block;
	margin: auto;
	position: relative;
	border-radius: 50%;
	z-index: 3;
}

.contact-logo::before {
	content: '';
	width: 4.4em;
	aspect-ratio: 1/1;
	position: absolute;
	top: calc(50% - 2.2em);
	left: calc(50% - 2.2em);
	z-index: -1;
	border: 2px solid;
	border-radius: 50%;
	border-image-source: linear-gradient(82.86deg, #93FDD7 0%, #5DCCFF 100%);
	background: linear-gradient(82.86deg, #93FDD7 0%, #5DCCFF 100%);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	z-index: -1;
}

.contact-blue .phone-number {
	color: var(--white);
	font-size: 1.2em;
}

.contact-blue p {
	margin-bottom: 0;
}

.gform_wrapper.gravity-theme .gfield_required {
	color: var(--content-color);
}

#contact_section .gform_footer {
	padding-bottom: 0;
}

@media (min-width: 68.5em) {
	#contact_section {
		padding-left: unset;
		padding-right: unset;
	}

	#contact_section .wp-block-cover__inner-container {
		display: flex;
		justify-content: center;
	}

	.contact-blue {
		min-width: 25em;
		border-top-right-radius: unset;
		border-bottom-left-radius: 0.4em;
		padding-top: 2em;
	}

	.contact-blue h2 {
		margin-top: 0;
		margin-bottom: 2.5rem;
	}

	#contact_section .gform_wrapper {
		top: 2em;
		padding: 2em 2.5em;
		width: 25em;
		border-bottom-left-radius: unset;
		border-top-right-radius: 0.4em
	}

	.contact-logo {
		width: 8em;
		margin-bottom: 3em;
	}

	.contact-logo::before {
		width: 10em;
		top: calc(50% - 5em);
		left: calc(50% - 5em);
	}
}

@media (prefers-reduced-motion:no-preference) {
	#contact_section .wp-block-cover__inner-container {
		opacity: 0;
		transform: translateY(2rem);
		transition: transform 0.6s, opacity 0.6s;
	}

	#contact_section.js-intersected .wp-block-cover__inner-container {
		opacity: 1;
		transform: translateY(0);
	}
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
	position: relative;
	z-index: 9999;
}

.header .wp-block-columns.contain {
	--contain-padding: clamp(2rem, 5vw, 3rem);
}

.header-logo {
	padding-top: clamp(0.8rem, 3vw, 1.5rem);
	padding-bottom: clamp(0.8rem, 3vw, 1.5rem);
}

.header-logo svg,
.footer-logo svg {
	transition: transform 0.3s ease;
	height: clamp(4.26rem, 6vw, 5.5rem);
}

.header-logo a:is(:hover, :focus-visible) svg,
.footer-logo:is(:hover, :focus-visible) svg {
	transform: scale(1.05);
}

@media (max-width: 68.49em) {
	.header {
		z-index: 998;
	}

	.header-logo {
		text-align: center;
	}

	.header-right {
		display: none;
	}
}

.header-right {
	text-align: right;
}

.header-quicklinks.header-quicklinks .menu-label {
	background: var(--primary-color);
	color: var(--white);
	padding: 0.65rem 1.6rem;
	font-size: clamp(0.9rem, 2vw - 0.5rem, 1.1rem);
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
	line-height: 1.364;
}

.header-quicklinks .menu-label:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--menu-hover-bg);
	color: var(--white);
}

.header-quicklinks svg {
	width: 1rem;
	height: 1rem;
	margin-right: 0.3rem;
	transform: translateY(-0.1rem);
}

/* Delete this CSS and block if not using header phone number */
.header-number {
	font-size: clamp(1rem, 3vw, 2rem);
	font-family: var(--title-font);
	margin-top: clamp(0.9rem, 4vw - 2rem, 1.5rem) !important;
	display: inline-block;
}

.header-number svg {
	width: 2.4rem;
	height: 2.4rem;
	margin-right: 0.4rem;
	position: relative;
	display: inline-block;
	border-radius: 50%;
}

a .icon-hover {
	opacity: 0;
	transition: opacity 350ms;
}

a:hover .icon-hover {
	z-index: 2;
	opacity: 1;
}

.header-right nav:first-of-type a {
	display: inline-block;
	position: relative;
	overflow: hidden;
	padding-left: 1.2rem;
}

.header-right nav:first-of-type a::before {
	content: '';
	width: 100%;
	height: 0.05em;
	background-image: linear-gradient(82.86deg, #93FDD7 0%, #5DCCFF 100%);
	position: absolute;
	bottom: 0;
	left: 0;
	transition: left 300ms;
}

.header-right nav:first-of-type a:hover::before {
	left: calc(-100% + 1em);
}

.header-right nav:first-of-type a>span {
	display: block;
	position: relative;
}

.header-right .globe a>span::before,
.header-right .forms a>span::before,
.header-right .calendar a>span::before {
	content: '';
	width: 1em;
	height: 1em;
	/* background-color: var(--accent-color); */
	background-image: linear-gradient(to right, rgba(0, 116, 185, 1), rgba(0, 116, 185, 1));
	clip-path: url("#svg_globe");
	position: absolute;
	top: 0.3em;
	left: -1.2rem;
	transition: background-image 300ms;
}

.header-right .forms a>span::before {
	clip-path: url("#svg_form");
}

.header-right .calendar a>span::before {
	clip-path: url("#svg_cal");
}

.header-right .globe a:hover>span::before,
.header-right .forms a:hover>span::before,
.header-right .calendar a:hover>span::before {
	background-image: linear-gradient(82.86deg, #93FDD7 0%, #5DCCFF 100%);
}

/* Phone Tree - delete CSS and block if not using phone tree */
.header-right .dialog-trigger {
	display: none;
	/* change to block to unhide */
	transform: translateY(1.5rem);
}

.dialog-box .phone-tree {
	--wp--style--global--content-size: 24rem;
	max-width: var(--wp--style--global--content-size);
	width: 90vw;
}

.phone-tree a {
	display: flex;
	color: var(--primary-color);
	margin-bottom: 0.8rem;
	text-align: left;
}

.phone-tree a:last-child {
	margin-bottom: 0;
}

.phone-tree a strong {
	flex: auto;
	position: relative;
	overflow: hidden;
}

.phone-tree a strong::after {
	content: '';
	position: absolute;
	bottom: 0.15rem;
	height: 1em;
	width: 100%;
	margin-left: 0;
	background-image: radial-gradient(var(--primary-color) 1px, transparent 0px);
	background-size: 8px 8px;
	background-repeat: repeat-x;
	background-position: left bottom;
}

.phone-tree a svg {
	margin-right: .3rem;
	margin: 0.4rem 0.3rem 0 0.45rem;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.wp-site-blocks {
	max-width: 96rem;
	margin: auto;
}

#main {
	margin: 0 0 2em;
	font-size: var(--wp--preset--font-size--content);
}

/* Bio grid loop */
.bio-list .bio-box {
	display: grid;
	grid-template-areas:
		"img label";
	justify-content: start;
}

.bio-list .bio-image {
	grid-area: img;
	width: 3rem;
	height: 3rem;
	margin-right: 0.5rem;
	overflow: hidden;
	border-radius: 50%;
}

.bio-list img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1/1;
}

.bio-list .bio-label {
	grid-area: label;
	line-height: normal;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: center;
	color: var(--primary-color);
	position: relative;
	width: fit-content;
	margin: auto;
	font-size: 1.2rem;
}

.bio-list .bio-label::before,
#bio-details .name::before {
	content: '';
	width: 2.4em;
	height: 0.05em;
	background: linear-gradient(82.86deg, #93FDD7 0%, #5DCCFF 100%);
	position: absolute;
	top: -0.3em;
	left: calc(50% - 1.2em);
	transition: all 300ms;
}

.bio-list .bio-label span {
	/* flex: 1 1 100%; */
	display: block;
	width: fit-content;
	margin: auto;
}

#main .bio-list .bio-label span {
	color: var(--primary-color);
}


.bio-list .bio-cred {
	font-size: 1rem;
}

.bio-box:hover .bio-label::before {
	transform-origin: center;
	width: 100%;
	left: 0;
}

@media (max-width: 68.49em) {
	#main .bio-list .bio-box {
		padding: 0.3rem 1rem;
		margin-left: -1rem;
		width: calc(100% + 2rem);
	}

	#main .bio-list .bio-box:nth-child(odd) {
		background: rgba(0, 0, 0, 0.1);
	}
}

@media (min-width: 68.5em) {
	.bio-list {
		display: flex;
		flex-wrap: wrap;
		gap: 1rem;
		align-items: flex-start;
		margin-top: 1rem;
	}

	.bio-list .bio-box {
		grid-template-areas:
			"img"
			"label";
		flex: 0 1 calc(25% - 1rem);
		min-width: 7.5rem;
		/* Adjust to prevent names from wrapping */
		text-align: center;
	}

	.bio-list.bio-list .bio-box:is(:hover, :focus-visible) {
		background: none;
	}

	.bio-list .bio-image {
		width: 100%;
		max-width: 11em;
		margin: auto;
		height: auto;
		margin-bottom: 0.8rem;
		border-radius: 50%;
	}

	.bio-list .bio-image img {
		transition: transform 0.3s;
	}

	.bio-list .bio-box:is(:hover, :focus-visible) .bio-image img {
		transform: scale(1.1);
	}

	.bio-list .bio-cred {
		color: var(--accent-color);
	}
}

/* Location card loop - Used in footer, content, and menu */
body .location-list-detailed {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(0.8rem, 4vw, 3rem);
	max-width: 100%;
	margin: 0;
	align-items: flex-start;
}

.footer .location-list-detailed {
	gap: 0 2rem;
}

.location-list-detailed .location-box {
	min-width: 15rem;
	flex: 1 1 calc(33.3% - 2rem);
	container-type: inline-size;
	container-name: loc-box;
}

.location-box .loc-left {
	margin: 0;
}

#main .location-list-detailed .location-box {
	/* background: var(--grey); */
	padding: 1.3rem clamp(1.2rem, 2.2vw, 2rem) 2.3rem;
}

#main .location-box .loc-title {
	/* border-bottom: 1px solid var(--wp--preset--color--h-3); */
	padding-bottom: 0.9rem;
	margin-top: 0;
}

#main .location-list-detailed a {
	color: var(--content-color);
	/* background: linear-gradient(0deg, var(--accent-color), var(--accent-color)) no-repeat 0 bottom / 0 2px; */
	transition: opacity 350ms;
	background-position-x: 1.6rem;
	width: fit-content;
	text-decoration: none;
}

#main .location-list-detailed a:is(:hover, :focus-visible) svg {
	/* background: linear-gradient(82.86deg, #93FDD7 0%, #5DCCFF 100%); */
}

.location-box p,
.location-box .icon-item {
	margin-top: 0;
	font-style: normal;
}

.sub-menu .location-box a.icon-item {
	margin-left: -0.5rem;
	padding-left: 2.3rem !important;
}

.sub-menu .location-box a.icon-item svg {
	left: 0.5rem
}

.location-box svg {
	width: 0.9rem;
	height: 0.9rem;
	margin-top: 0.2rem;
}

#main .location-box:first-of-type .loc-left::before {
	content: '';
	width: 100%;
	height: 0.4rem;
	background: url('./images/dots-repeat-mobile.svg');
	background-size: contain;
	background-repeat: space;
	position: absolute;
	bottom: 0rem;
	left: 0.5rem;
	z-index: -1;
}

@media only screen and (min-width: 37.5em) {
	.location-box {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 0 1rem;
	}

	.location-box .loc-title {
		flex: 0 0 100%;
	}

	.location-box:only-child .loc-left {
		flex: 0 0 12rem;
	}

	.location-box .loc-left {
		flex: 0 0 10rem;
	}

	.location-box .hours {
		flex: 0 0 13rem;
	}

	.location-box .map-link {
		flex: 1 0 10rem;
	}
}

@media (min-width: 68.5em) {
	#main .location-box:first-of-type .loc-left::before {
		display: block;
		bottom: -1.5em;
	}
}

/* Apply styles when there is only one locations-card */
.location-list-detailed .location-box:only-child {
	justify-content: start;
}

.location-list-detailed .location-box:only-child img {
	width: 100%
}

@media (min-width: 51.25em) {
	.location-list-detailed .location-box:only-child .map-link {
		width: calc(100% - 25rem)
	}
}

/* Location Card Animations */
@media (prefers-reduced-motion:no-preference) {
	#main .location-list-detailed>.location-box {
		opacity: 0;
		transform: translateY(0);
	}

	#main .location-list-detailed.js-intersected>.location-box {
		--delay: calc(var(--i, 0) * 200ms);
		animation: fadein var(--time, 400ms) ease var(--delay) forwards
	}

	.location-box:nth-child(1) {
		--i: 0;
	}

	.location-box:nth-child(2) {
		--i: 1;
	}
}

/* Media Text Blocks */
.wp-block-media-text {
	margin-bottom: 2rem;
}

#main .wp-block-media-text__content>*:first-child {
	margin-top: 0;
}

#main .wp-block-media-text:not(.has-media-on-the-right) .wp-block-media-text__content {
	padding-right: 0;
}

#main .has-media-on-the-right .wp-block-media-text__content {
	padding-left: 0;
}

#main .wp-block-media-text__media {
	width: 100%;
	/* grid-row: 2; */
}

#main .mask .wp-block-media-text__media {
	mask-image: url(./images/ov-mask.svg);
	mask-mode: alpha;
	max-width: 20rem;
	mask-position: center;
	mask-size: contain;
	mask-repeat: no-repeat;
}

#main .mask .wp-block-media-text__media::before {
	content: '';
	width: 100%;
	height: 100%;
	background: url('./images/swoop.svg');
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
	bottom: -0.35rem;
	left: 0;
	opacity: 0.75;
	z-index: 1;
}

#cta_section .mask .wp-block-media-text__media::before {
	opacity: 0.85;

}

@media (prefers-reduced-motion:no-preference) {
	.wp-block-media-text__media {
		opacity: 0;
		--y: 0rem;
		transform: translateY(0rem);
	}

	.mask .wp-block-media-text__media.js-intersected img {
		animation: pop 900ms ease 600ms forwards;
	}

	.wp-block-media-text__media.js-intersected {
		animation: fadein 600ms ease .3s forwards
	}

	.wp-block-media-text__media::after {
		transform-origin: center;
		transform: scaleX(0);
		transition: transform 500ms ease 0.9s;
	}

	.wp-block-media-text__media.js-intersected::after {
		transform: scaleX(1);
	}
}

@media (min-width: 37.51em) {
	.wp-block-media-text__media {
		position: -webkit-sticky;
		position: sticky;
		top: 1rem;
	}
}

@media (min-width: 68.5em) {
	.wp-block-media-text {
		gap: clamp(2%, 5vw, 8em);
		grid-template-columns: 20em 1fr;
	}

	.wp-block-media-text.has-media-on-the-right {
		grid-template-columns: 1fr 20em;
	}

	.wp-block-media-text__media {
		top: 4rem;
	}

	.wp-block-media-text .wp-block-media-text__content {
		padding: 0;
	}
}

/* Location Section */
#main #location_section .wp-block-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
}

.body-loc .icon-item {
	padding-left: 2rem;
}

.body-loc .location-box svg {
	width: 1.6em;
	height: 1.6em;
	margin-top: -0.4em;
}

@media (min-width: 68.5em) {
	.body-loc .wp-block-group {
		gap: 4em;
	}

	.body-loc .hours-rows {
		min-width: 13em;
		display: block;
	}

	.body-loc figure>* {
		width: 22.5em;
		display: block;
	}

	.body-loc .icon-item {
		padding-left: 3.2rem;
	}

	.body-loc .phone {
		margin-bottom: 2em;
	}

	.body-loc .location-box svg {
		width: 2.4rem;
		height: 2.4rem;
	}

	.body-loc .location-box:first-of-type .loc-left::before {
		display: none;
	}

	#main .loc-left {
		display: flex;
		width: 100%;
		width: fit-content;
		flex: 0 0 100%;
		flex: 0 0 fit-content;
		gap: 1.5em;
	}

	#main .location-list-detailed {
		flex-direction: column;
		gap: unset;
	}

	#main #location_section .wp-block-group {
		flex-wrap: nowrap;
	}

	#main .location-list-detailed .location-box {
		container-type: unset;
	}

	#main .location-box svg {
		color: var(--accent-color);
		z-index: 1;
		width: 2.4em;
		height: 2.4em;
		margin-top: -0.7rem;
		border-radius: 50%;
	}

	.body-loc .location-box img {
		box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
	}

	.body-loc .location-box:first-of-type .loc-left {
		position: relative;
	}
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	color: var(--white);
	background: var(--primary-color);
	padding-top: clamp(1.2rem, 2vw, 2.8rem);
	margin: 0;
	z-index: 2;
}

.footer a,
.footer h3,
.footer ul {
	color: var(--white);
}

.footer a,
.location-list-names a {
	text-decoration: none;
	display: block;
	width: fit-content;
	background: linear-gradient(82.86deg, #93FDD7 0%, #5DCCFF 100%) no-repeat 0 bottom / 0 2px;
	transition: background-size 350ms;
	font-size: var(--wp--preset--font-size--footer);
}

.footer a.icon-item {
	background-position-x: 1.6rem;
	min-width: 14em;
}

.footer a:is(:hover, :focus-visible) {
	background-size: 100% 2px;
}

#foot_content {
	justify-content: space-between;
	font-size: var(--wp--preset--font-size--footer);
	gap: 6%;
}

#foot_content .wp-block-column {
	flex: 0 1 auto;
	flex-basis: fit-content !important;
	margin-bottom: 1rem;
}

.footer .footer-logo {
	max-width: 13.3rem;
}

.footer .footer-logo:is(:hover, :focus-visible) {
	background-size: 0;
}

.footer-logo path {
	fill: var(--white);
}

.footer-socials {
	margin: 0 0 0 4.3rem;
}

.footer-socials a {
	transition: transform 0.3s ease;
}

.footer-socials a:is(:hover, :focus) {
	background: none;
	transform: scale(1.2);
}

.footer .wp-block-heading {
	font-size: clamp(1.1rem, 2vw, 1.2rem);
	border-bottom: 1px solid var(--white);
	padding-bottom: 0.6rem;
	margin: 0;
}

.footer .wp-block-heading+* {
	margin-top: 1rem;
}

.footer #footer-locations {
	flex: 1 0 auto;
}

.footer .wp-block-heading {
	position: relative;
}

.footer .wp-block-heading::before {
	content: '';
	width: 1.2rem;
	aspect-ratio: 1/1;
	background: url('./images/heading-circle.svg');
	background-size: cover;
	position: absolute;
	top: -0.3rem;
	left: -0.6rem;
	z-index: -1;
}

@media only screen and (max-width: 68.49em) {
	#foot_content {
		flex-wrap: wrap !important;
		justify-content: center;
	}

	#footer-locations {
		flex-basis: 100% !important;
	}

	#footer-quick-links {
		display: none;
	}
}

.copyright-wrapper {
	padding-top: 1.2rem;
	padding-bottom: 5rem;
	background: rgba(0, 0, 0, 0.1);
	text-align: center;
}

.policy-menu li {
	margin: 0;
}

.policy-menu li:nth-child(n+1):not(:last-child)::before {
	content: '|';
	position: absolute;
	right: -0.6rem;
}

.policy-menu a {
	font-size: var(--wp--preset--font-size--copyright);
}

@media only screen and (min-width: 68.5em) {
	.footer {
		position: relative;
		padding-top: 3rem;
	}

	.footer::before {
		content: '';
		width: 29%;
		aspect-ratio: 559/467;
		background: url('./images/footer-decor.svg');
		background-size: cover;
		position: absolute;
		bottom: 4em;
		right: 2em;
		z-index: 0;
	}

	.footer .wp-block-column {
		padding-top: 2rem;
		min-width: 8rem;
	}

	.footer .wp-block-column:first-of-type,
	.footer .copyright-wrapper .wp-block-column {
		padding-top: unset;
	}

	.copyright-wrapper {
		text-align: left;
		padding-bottom: 1.2rem;
	}

	.policy-menu {
		justify-content: end;
	}
}

/*--------------------------------------------------------------
# Map
--------------------------------------------------------------*/
.fm-map {
	position: relative;
	width: 100%;
	height: 30rem;
	max-height: calc(90vh - 3.2rem);
	background: var(--grey);
	margin-bottom: 2rem;
}

.map-list-button {
	font-size: 1rem;
}

.map-list-button,
.map-show-list,
.map-show-map {
	background: none;
}

.map-show-map,
.map-show-list {
	font-size: 0.8rem;
}

[hidden] {
	display: none;
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(var(--spin-rotation, 360deg));
	}
}

@keyframes fadein {
	0% {
		opacity: var(--fadein-opacity, 0);
		transform: translate(var(--x, 0), var(--y, 5rem));
	}

	100% {
		opacity: 1;
		transform: translate(0, 0);
	}
}

/* popAnimation Example: https://jsfiddle.net/KTC_88/8xkLv520/ */
@keyframes popAnimation {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}

	50% {
		transform: scale(1.05)
	}

	100% {
		transform: scale(1);
		opacity: 1
	}
}

@keyframes pop {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.04)
	}

	100% {
		transform: scale(1);
	}
}

/**
 * Animation helper classes.
 */
@media (prefers-reduced-motion:no-preference) {

	/* Add to wrappers to animate children */
	.popin>*,
	.contact-logo::before {
		transform: scale(0.5);
		opacity: 0;
	}

	.popin.js-intersected>*,
	.js-intersected .contact-logo::before,
	.js-intersected .wp-block-media-text__media img {
		--delay: calc(var(--i, 0) * 200ms);
		animation: popAnimation 400ms ease var(--delay) forwards
	}

	.js-intersected .contact-logo::before {
		animation: popAnimation 1s ease 2s forwards
	}

	.fadein-items>* {
		opacity: 0;
		transform: translateY(0);
	}

	.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);
		--y: 0;
	}

	.fadeup {
		opacity: 0;
		transform: translateY(5rem);
	}

	.fadedown {
		opacity: 0;
		transform: translateY(-5rem);
		--y: -5rem;
	}

	.fadeleft,
	.tagline {
		opacity: 0;
		transform: translateX(-5rem);
		--x: -5rem;
		--y: 0;
	}

	.faderight {
		opacity: 0;
		transform: translateX(5rem);
		--x: 5rem;
		--y: 0;
	}

	.js-intersected:is(.fadein, .fadeup, .fadedown, .fadeleft, .faderight),
	.hero-tagline.js-intersected .tagline {
		animation: fadein var(--time, 300ms) var(--easing, ease) forwards
	}

	.tagline {
		--easing: 1200ms;
		--time: 600ms;
		--x: -3rem;
	}

	.tagline:first-of-type {
		--easing: 600ms;
	}

	.tagline:last-of-type {
		--easing: 1800ms;
	}

	.contact-logo circle {
		opacity: 0;
		transform: scale(0.8);
		transform-origin: center;
	}

	.js-intersected .contact-logo circle {
		opacity: 1;
		transform: scale(1);
		transition: all 1s ease 1s;
	}

	.contact-logo path {
		opacity: 0;
	}

	.js-intersected .contact-logo path {
		opacity: 1;
		transition: opacity 500ms ease 2s;
	}
}

/*--------------------------------------------------------------
## Page Transition
# @see https://css-tricks.com/animating-with-clip-path/
# @see https://www.uplabs.com/posts/clip-path-generator
--------------------------------------------------------------*/
.page-transition {
	display: none;
}

/*
 * Page transition bug:
 * Mobile, page transition: Something to take note on. Whenever I click to a page, 
 * then press back on my iPhone, the page transition is locked and I only see the green background color over my whole screen. 
 * I can’t navigate from that point at all anymore.
 */

/*
@media (prefers-reduced-motion:no-preference) {
	.page-transition {
		display: block;
		will-change: transform;
		background-color: var(--wp--preset--color--menu-hover-bg);
		pointer-events: none;
	}

	.transition-in {
		animation: 0.3s slidein-left forwards;
	}

	.transition-out {
		animation: 0.3s slideout-right 0.3s  forwards;
	}

	@keyframes slidein-left {
		0% { clip-path: inset(0% 100% 0% 0%); }
		100% { clip-path: inset(0% 0% 0% 0%); }
	}

	@keyframes slideout-right {
		0% { clip-path: inset(0% 0% 0% 0%); }
		100% { clip-path: inset(0% 0% 0% 100%); }
	}
}
*/

/*--------------------------------------------------------------
# Print
--------------------------------------------------------------*/
@media print {
	@page {
		margin: 0.5cm;
	}

	* {
		background: transparent !important;
		color: black !important;
		text-shadow: none !important;
		-webkit-filter: none !important;
		filter: none !important;
		-ms-filter: none !important;
	}

	a,
	a:visited {
		color: #444 !important;
		text-decoration: underline;
	}

	pre,
	blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	p,
	h1,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h1,
	h2,
	h3 {
		page-break-after: avoid;
	}

	.main-header {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.main-title {
		margin: 0;
		padding-bottom: 1rem;
		border-bottom: 2px solid #000;
	}

	.primary-menu,
	#sidebar,
	.header,
	.footer,
	.page-navigation,
	.pagination,
	.wp-prev-next,
	.respond-form {
		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);
		}
	}
}