/*
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.1
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: WordPress declares its variables in the body, so do the same to avoid scope issues.
	 */

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

	/* 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);

	/* Top Level Primary Menu Colors */
	--wp--preset--color--menu-background: var(--primary-color);
	--wp--preset--color--menu-color: var(--white);
	--wp--preset--color--menu-hover-color: var(--white);
	--wp--preset--color--menu-hover-bg: var(--wp--preset--color--color-2);

	/* Sub Menu Colors */
	--wp--preset--color--sub-menu-background: var(--white);
	--wp--preset--color--sub-menu-color: var(--primary-color);
	--wp--preset--color--sub-menu-hover-color: var(--primary-color);
	--wp--preset--color--sub-menu-hover-bg: var(--wp--preset--color--color-3);

	/* 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(--primary-color);
	--wp--preset--color--h-1: var(--white);
	--wp--preset--color--h-2: var(--primary-color);
	--wp--preset--color--h-3: var(--primary-color);
	--wp--preset--color--footer: var(--white);
}

/*--------------------------------------------------------------
# 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);
}

li {
	margin: 1em 0 0 0;
}

li::marker {
	color: var(--accent-color);
}

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: #3099E0;
	transition: color 300ms, background-color 300ms;
}

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

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

h2 {
	position: relative;
	margin-bottom: 1.8rem;
}

h2::before {
	content: '';
	width: 2rem;
	height: 0.05rem;
	background: var(--primary-color);
	position: absolute;
	bottom: -0.8rem;
	left: -0.8rem;
}

h2.has-text-align-center::before {
	left: calc(50% - 1rem);
}

p {
	line-height: 1.9;
}

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

.page-numbers{
	display:inline-flex;
	justify-content: center;
	align-items: center;
	width: 2em;
	height:2em;
	border: solid .05em var(--accent-color);
	border-radius: 100%;
	color: var(--accent-color);
	transition: background, color 300ms;
}
.page-numbers.current{
	background-color: var(--accent-color);
	color: var(--white);
}
a.page-numbers:hover{
	color: var(--white);
	background-color: var(--accent-color)
}
.wp-block-query-pagination-previous:has(.is-arrow-chevron), 
.wp-block-query-pagination-next:has(.is-arrow-chevron){
	display:inline-flex;
	justify-content: center;
	align-items: center;
	width: 2em;
	height:2em;
	border-radius: 100%;
	color: var(--accent-color);
	transition: background 300ms;
}
.wp-block-query-pagination-previous:has(.is-arrow-chevron):hover, 
.wp-block-query-pagination-next:has(.is-arrow-chevron):hover{
	background-color: var(--accent-color);
}
.wp-block-query-pagination-previous-arrow.is-arrow-chevron, 
.wp-block-query-pagination-next-arrow.is-arrow-chevron{
	width: .75em;
	height: .75em;
	overflow: hidden;
	color: transparent;
	border: solid .09rem transparent;
	border-right-color: var(--accent-color);
	border-top-color: var(--accent-color);
	transition: border 300ms;
	margin: 0;
	transform: rotate(45deg) translateY(0.15em) translateX(-0.15em);
}
.wp-block-query-pagination-previous-arrow.is-arrow-chevron{
	transform: rotate(225deg) translateY(0.15em) translateX(-0.15em);
}
.wp-block-query-pagination-previous:hover .wp-block-query-pagination-previous-arrow.is-arrow-chevron, 
.wp-block-query-pagination-next:hover .wp-block-query-pagination-next-arrow.is-arrow-chevron{
	border-right-color: var(--white);
	border-top-color: var(--white);
}

/*--------------------------------------------------------------
# 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-color: var(--btn_bg, var(--white));
	color: var(--btn_color, var(--primary-color));
	border: 1px solid var(--accent-color);
	border-bottom-left-radius: 0;
	border-top-right-radius: 1.6rem;
	border-bottom-right-radius: 1.6rem;
	border-top-left-radius: 1.6rem;
	font-weight: 400;
	line-height: normal;
	padding: 0.35em 0.4em 0.35em 1em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: fit-content;
}

.wp-block-file__button::after,
.wp-block-post-excerpt__more-link::after,
.wp-block-buttons .wp-element-button::after,
.wp-block-buttons .wp-block-button__link.wp-block-button__link::after {
	content: '';
	display: block;
	background: var(--accent-color);
	clip-path: url(#btn_arrow);
	width: 2rem;
	height: 2rem;
	transition: background-color 0.3s;
	margin-left: 1.2rem;
}

.button:is(:hover, :focus-visible),
.wp-block-file__button:is(:hover, :focus-visible),
.wp-block-post-excerpt__more-link:is(:hover, :focus-visible),
.wp-block-buttons .wp-element-button:is(:hover, :focus-visible),
.wp-block-buttons .wp-block-button__link.wp-block-button__link:is(:hover, :focus-visible) {
	background-color: var(--accent-color);
	color: var(--white);
}

.wp-block-file__button:is(:hover, :focus-visible)::after,
.wp-block-post-excerpt__more-link:is(:hover, :focus-visible)::after,
.wp-block-buttons .wp-element-button:is(:hover, :focus-visible)::after,
.wp-block-buttons .wp-block-button__link.wp-block-button__link:is(:hover, :focus-visible)::after {
	background: var(--white);
}

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

.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 {
	border: 2px solid var(--accent-color);
	padding: clamp(0.5rem, 4vw, 1.6em) clamp(1rem, 4vw, 5.5rem) clamp(1rem, 4vw, 2.6rem);
	padding: 0.9em;
	padding-bottom: 2.2em;
	font-size: clamp(1rem, 4vw, 1.2rem);
	line-height: 2.2;
	position: relative;
	margin: 1.2rem auto 2em !important;
	max-width: 37.5em;
	background-color: white;
	border-bottom-right-radius: 4em;
}

.wp-block-quote::before {
	content: '';
	background: var(--accent-color) url('./images/quote.svg') center no-repeat;
	position: absolute;
	inset: -1rem auto auto -1rem;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
}

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

.quote-wrap::after {
	content: '';
	width: calc(100% + calc(var(--contain-padding) * 2));
	aspect-ratio: 1920/726;
	background-image: url('./images/ctas-line.svg');
	background-size: cover;
	position: absolute;
	left: calc(var(--contain-padding) * -1);
	bottom: -10rem;
	z-index: -1;
}

@media (min-width: 68.5em) {
	body .wp-block-quote {
		padding: 2em;
		padding-bottom: 2.5em;
		margin-top: 3em !important;
	}

	body .wp-block-quote>* {
		font-size: 1.2em;

	}
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.gfield {
	border-radius: 0.3rem;
	overflow: hidden !important;
	background: var(--white);
	line-height: normal;
	padding: 0 .5em;
}

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

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

.gfield.gfield--input-type-radio .gform-field-label.gfield_label {
	color: var(--white);
	padding-left: 0;
}

.page-id-28 .gfield.gfield--input-type-radio .gform-field-label.gfield_label {
	color: var(--content-color);
}

.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;
}

.gform_footer {
	justify-content: center;
}

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

.ginput_container .button {
	border-radius: 0.2rem;
	padding: 0.3rem 0.8rem;
	border-color: var(--primary-color);
}

.gform_wrapper.gravity-theme .gform_drop_instructions {
	color: var(--primary-color);
}

.gform_wrapper.gravity-theme .gform_drop_area {
	padding: 0;
	display: flex;
}

.gform_drop_instructions {
	font-size: 0.7rem;
	padding-top: 0.5rem;
	padding-left: 0.6rem;
	margin-right: 1rem;
}

.gform_button_select_files {
	font-size: 0.7rem;
}

.gfield--type-fileupload .gfield_label.gform-field-label {
	margin-bottom: 0.5rem;
}

.gform_wrapper.gravity-theme .gform_drop_area {
	border: none;
	background: unset;
}

.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;
	color: var(--white);
}

.gform_fileupload_rules {
	padding: 0 1rem 1rem;
	font-style: italic;
	color: var(--primary-color);
}

.gfield--type-radio {
	border: none;
}

.gfield-choice-input {
	position: relative;
}

.gfield-choice-input::before {
	content: '';
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 0.05rem solid var(--accent-color);
	position: absolute;
	top: 0;
	left: 0;
}

/* 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: 1.6em;
	padding-bottom: 3em;
	position: relative;
}

#contact_section::before {
	content: '';
	width: 100%;
	aspect-ratio: 374/222;
	background: url('./images/main-contact-f.svg');
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
	bottom: 0;
	right: -4rem;
	z-index: 1;
}

#contact_section .gform_wrapper.gravity-theme .gform_fields {
	grid-row-gap: 12px;
}

#contact_section .gform_title {
	font-size: 1.2em;
	margin-bottom: 1.6rem;
}

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

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

#contact_section h2::before {
	background: var(--white);
}

@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);
	}
}

@media (min-width: 68.5em) {
	#contact_section {
		padding: 4.5em 1.5em 4.5em;
	}

	#contact_section .wp-block-cover__inner-container {
		max-width: 60em;
		margin: auto;
	}

	#contact_section::before {
		width: unset;
		height: 100%;
	}

	#contact_section img {
		object-position: 19% 14% !important;
		transform: scale(1.3);
	}

	.gform_wrapper {
		display: flex;
		justify-content: space-between;
		margin: auto;
	}

	.gform_heading {
		max-width: 30em;
	}

	#contact_section .gform_title {
		font-size: 2em;
		margin-top: 3rem;
	}
}

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

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

.header-logo {
	padding-top: clamp(0.8rem, 3vw, 1.5rem);
	padding-top: 0.5rem;
	padding-bottom: clamp(0.8rem, 3vw, 1.5rem);
	padding-bottom: 2.5rem;
	flex-basis: 10rem !important;
}

.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;
		margin: auto !important;
		padding-bottom: 1rem;
	}

	.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: 2rem;
	height: 2rem;
	margin-right: 0.4rem;
}

/* 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: radial-gradient(var(--primary-color) 1px, transparent 0) left bottom/8px 8px repeat-x;
}

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

@media (min-width: 68.5em) {
	.header {
		width: fit-content;
		display: none;
	}
}

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

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

/* 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: 2rem;
	height: 3rem;
	margin-right: 0.5rem;
	overflow: hidden;
}

.bio-list img {
	width: 100%;
	height: 100%;
}

.bio-list .bio-label {
	grid-area: label;
	line-height: normal;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
}

.bio-list .bio-label span {
	flex: 1 1 100%;
}

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

@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%;
		height: auto;
		aspect-ratio: 1 / 1.2;
		border-bottom: 0.4rem solid var(--primary-color);
		margin-bottom: 0.8rem;
	}

	.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(--content-color);
	}
}

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

.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: background-size 350ms;
	background-position-x: 1.6rem;
	width: fit-content;
	text-decoration: none;
}

#main .location-list-detailed a:is(:hover, :focus-visible) {
	background-size: 100% 2px;
}

.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;
	transform: translateY(0.2rem);
}

#main .location-box svg {
	color: var(--accent-color);
}

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

@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;
	}
}

/* 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;
	}
}

/*--------------------------------------------------------------
## Overview Pages
--------------------------------------------------------------*/
.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 {
	padding-top: 0.8rem;
	margin-bottom: 1rem;
	align-self: start;
}

.wp-block-media-text__media img {
	border-bottom-left-radius: 4.6rem;
}

.wp-block-media-text__media::after {
	content: '';
	width: 7rem;
	height: 7rem;
	border: 0.1em solid var(--accent-color);
	border-bottom-left-radius: 4.6rem;
	position: absolute;
	bottom: -0.4rem;
	left: -0.4rem;
	z-index: -1;
}

@media (max-width: 600px) {
	#main .wp-block-media-text__content {
		grid-row: 1;
	}

	#main .wp-block-media-text__media {
		grid-row: 2;
		margin-top: 0;
	}

	#main .wp-block-media-text .wp-block-button {
		margin: auto;
	}
}

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

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

	.wp-block-media-text__media::after {
		transform: scaleX(0.85);
		transition: transform 1s ease 0.4s;
	}

	.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__media {
		top: 4rem;
	}

	.wp-block-media-text__media::after {
		width: 60%;
		aspect-ratio: 1/1;
		height: unset;
		bottom: -0.8rem;
		left: -0.8rem;
	}

	#main .wp-block-media-text__media {
		margin-top: -2rem;
	}
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	color: var(--white);
	background: linear-gradient(90deg, #002B49 0%, #0E4A74 100%);
	background: linear-gradient(180deg, #002B49 0%, #0E4A74 95.98%);
	margin: 0;
}

.footer #btn-arrow {
	height: 0;
}

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

.footer a.icon-item {
	background-position-x: 1.6rem;
}

.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;
	margin: auto;
	position: relative;
	display: block;
	margin-bottom: 1.5rem;
	width: fit-content;
}

.footer .footer-logo::before {
	content: '';
	width: 34%;
	height: 0.05rem;
	background-color: var(--white);
	position: absolute;
	bottom: -1.2em;
	left: 33%;
}

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

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

.footer .wp-block-column:nth-of-type(2) {
	order: -1;
}

#footer.wp-block-columns {
	flex-wrap: nowrap !important;
	flex-direction: column;
}

.footer .wp-block-column {
	flex-basis: 3em !important;
}

@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);
}

.footer a {
	position: relative;
}

.footer a::after {
	content: "";
	display: block !important;
	width: calc(100% - 1.5rem);
	border-bottom: 1px dashed var(--white);
	transform: scaleX(0);
	transition: transform 0.3s ease;
	transform-origin: left;
}

.footer a:hover::after {
	width: 100%;
	transform: scaleX(1);
}

.footer a.footer-logo::after {
	display: none !important;
}

.footer .linkedin-svg {
	margin-right: 0.2rem;
	margin-bottom: 0.2rem;
}

.gfield_fileupload_filename,
.gfield_fileupload_filesize,
.gfield_fileupload_progress.gfield_fileupload_progress_complete {
    color: var(--primary-color);
}

@media only screen and (min-width: 68.5em) {
	.footer {
		background: linear-gradient(90deg, #002B49 0%, #0E4A74 100%);
	}

	.footer .wp-block-columns {
		padding: 2rem;
	}

	.footer .wp-block-column:last-of-type {
		text-align: right;
	}

	.footer .wp-block-column:first-of-type {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		min-width: 23rem;
	}

	.footer .wp-block-column:first-of-type p {
		padding-left: 1rem;
		margin-top: 0;
	}

	.footer .footer-logo {
		margin: unset;
		padding-right: 1rem;
	}

	.footer .footer-logo::before {
		width: 0.05rem;
		height: 4rem;
		bottom: 0rem;
		right: 0;
		left: unset;
	}

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

	.policy-menu {
		justify-content: end;
		margin-top: 0.5rem;
	}

	#footer.wp-block-columns {
		flex-direction: unset;
	}

	.footer .wp-block-column:nth-of-type(2) {
		order: unset;
		min-width: 9rem;
	}

	.footer .wp-block-column {
		flex-basis: unset !important;
	}
}

/*--------------------------------------------------------------
# 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);
	}
}

@keyframes swipe {
	0% {
		clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
	}

	100% {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
	}
}

@keyframes after {
	0% {
		clip-path: polygon(0 0, 0 0, 0 40%, 0 40%);
	}

	50% {
		clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
	}

	100% {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
	}
}

@keyframes before {
	0% {
		clip-path: polygon(100% 100%, 100% 98%, 100% 98%, 100% 100%);
	}

	50% {
		clip-path: polygon(100% 100%, 100% 99%, 0 98%, 0 100%);
	}

	100% {
		clip-path: polygon(100% 100%, 100% 0, 0 0, 0 100%);
	}
}

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

	80% {
		transform: scale(1.1)
	}

	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;
	}

	.popin.js-intersected>* {
		--delay: calc(var(--i, 0) * 200ms);
		animation: popAnimation 400ms ease var(--delay) 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 {
		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) {
		animation: fadein var(--time, 300ms) var(--easing, ease) forwards
	}

	#hero_section::after,
	.quote-wrap.js-intersected::after {
		animation: swipe 1200ms forwards;
	}
}

/*--------------------------------------------------------------
## 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);
		}
	}
}

@supports (-webkit-touch-callout: none) {

	.wp-block-buttons .wp-element-button:is(:focus-visible),
	.wp-block-buttons .wp-block-button__link.wp-block-button__link:is(:focus-visible) {
		outline: none;
		background-color: initial;
		color: initial;
	}

	.wp-block-buttons .wp-element-button:is(:hover, :focus-visible)::after,
	.wp-block-buttons .wp-block-button__link.wp-block-button__link:is(:hover, :focus-visible)::after {
		background: var(--accent-color);
	}
}