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

	/* Structure - 1100px - for use outside on 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);
	--violet: #7A799A;

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

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

	--wp--preset--color--sub-menu-hover-bg: var(--wp--preset--color--color-3);

	/* Text */
	--title-font: var(--wp--preset--font-family--montserrat);
	--title-color: var(--primary-color);

	--content-font: var(--wp--preset--font-family--rubik), sans-serif;
	--content-color: var(--wp--preset--color--content);

	--wp--preset--color--h-1: var(--white);
	--wp--preset--color--h-2: var(--content-color);
	--wp--preset--color--h-3: var(--content-color);
	--wp--preset--color--footer: var(--white);

	--highlight: var(--wp--preset--color--highlight);
	--gray-blue: #758091;
	--light-purple: #4D4B8F;
	--alt-font: var(--wp--preset--font-family--mukta);
}

/*--------------------------------------------------------------
# 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;
	scrollbar-gutter: stable;
	position: relative;
	min-width: 18rem;
}

ul,
ol {
	padding-left: clamp(1.5rem, 3vw, 2rem);
}

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

small {
	font-size: 0.75em;
}

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

a {
	text-decoration: none;
	color: var(--highlight);
	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 {
	--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;
}

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

.map-pic {
	display: none;
}

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

.hide {
    display: none;
}
.sub-menu .wp-container-core-columns-is-layout-28f84493 .small-col {
    visibility: hidden;
}

/*--------------------------------------------------------------
# Forms
- Moved to css/gravity-forms.css
--------------------------------------------------------------*/

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

.header .wp-block-columns.contain {
	/* \: clamp(2rem, 5vw, 3rem); */
	justify-content: space-between;
}

.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;
	width: 20em;
}

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

.header-logo .logo-letters {
	color: var(--white) !important;
}

.home .header-logo .logo-letters {
	color: var(--accent-color) !important;
}


@media (max-width: 68.49em) {
	.header {
		z-index: 998;
		position: relative;
		background-color: var(--violet);
	}

	.header::before {
		content: '';
		width: 100%;
		height: 2.7rem;
		background-color: var(--primary-color);
		position: absolute;
		top: 0;
		left: 0;
	}

	.header-logo {
		position: absolute;
		top: 2.5em;
		left: calc(50% - 5.25rem);
		text-align: center;
		max-width: 10.5rem;
		margin: auto !important;
		/* margin-top: 3.5rem !important; */
	}

	.header-right {
		display: none;
	}

	.header-quicklinks {
		display: none;
	}

}

.header-quicklinks {
	width: 100%;
	background-color: var(--primary-color);
	max-width: 100%;
	z-index: 999;
}

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

.header-quicklinks.header-quicklinks .menu-label {
	background: var(--primary-color);
	color: var(--white);
	padding: 0.65rem 0.2rem;
	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) {
	color: var(--highlight);
}

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

.header-quicklinks .standard .sub-menu {
	right: 0;
	position: absolute;
	top: 2em !important;
	!i;
	!;
	z-index: 3;
}

/* Delete this CSS and block if not using header phone number */
.header-number {
	font-size: 2em;
	font-family: var(--title-font);
	margin-top: 3.2rem;
	display: inline-block;
	color: var(--white);
}

.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 {
		position: sticky;
		top: -7em;
		padding-top: 0em;
		font-size: clamp(0.8rem, 1.1vw, 1rem);
		background: var(--violet);
		transition: all 300ms;
	}

	.header.is-pinned,
	.home .header.is-pinned {
		background-color: var(--primary-color);
	}

	.header.is-pinned .header-number {
		font-size: 1.2em;
		font-weight: 600;
		/* margin-top: 1.2em; */
		margin-bottom: 0.5em;
	}

	.header-quicklinks {
		transition: opacity 300ms;
	}

	.is-pinned .header-quicklinks {
		/* opacity: 0; */
		/* display: none; */
		/* height: 0; */
	}

	.is-pinned .menu-notifications {
		/* display: none; */
	}

	.header.is-pinned .main-nav-col {
		margin-top: 1em !important;
	}

	.header-logo a {
		position: relative;
	}

	.header-logo a::before {
		content: '';
		width: 3rem;
		height: 3rem;
		background-image: url('./images/logo-pinned.svg');
		background-size: cover;
		position: absolute;
		bottom: 0;
		left: 0;
		opacity: 0;
		/* z-index: 1; */
	}

	.is-pinned .header-logo {
		position: relative;
		margin-top: 0;
	}

	.is-pinned .header-logo a::before {
		opacity: 1;
	}

	.is-pinned .header-logo a {
		display: block;
		width: 3rem;
		height: 3rem;
		position: absolute;
		bottom: 0;
		left: 0;
	}

	.header.is-pinned .header-logo a>svg {
		display: none;
	}


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


	.sub-menu .wp-block-columns.contain {
		--contain-padding: unset;
		padding-left: 3em;
		padding-right: clamp(2em, 8.3vw, 8em);
		justify-content: flex-start;
		gap: clamp(1em, 3.4vw, 4em);
	}

	.header .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
		flex-basis: unset !important;
		flex-grow: unset !important;
		width: fit-content;
		min-width: 15em;
	}

	.header>.wp-block-columns {
		max-width: calc(100% - 8em);
		margin: auto;
	}

	.sub-menu .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
		min-width: 20%;
		max-width: 33em;
		width: fit-content;
	}

	.header .header-logo {
		padding: unset;
		margin-top: 0.8em;
	}

	.header .header-number:hover {
		color: var(--highlight);
	}

	.menu-home,
	.menu-search,
	.menu-notifications {
		max-width: 2rem;
	}

	.header-quicklinks .menu-label-svg {
		margin-right: 0;
	}
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.wp-site-blocks {
	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: 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: 1rem;
	}

	.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 {
	font-family: var(--title-font);
	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;
}

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

#main .location-list-detailed .location-box {
	padding: 1.3rem clamp(1.2rem, 2.2vw, 2rem) 2.3rem;
	justify-content: center;
	color: #758091;
}

#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: #758091;
	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;
	position: relative;
}

#main .location-list-detailed a,
.primary-menu .location-list-detailed a {
	font-family: var(--title-font);
}

#main .location-list-detailed .phone-number {
	font-weight: 600;
}

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

#main .location-box p {
	color: #758091;
	margin-bottom: 1.8rem;
}

.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.3rem;
	max-width: unset;
}

.location-box svg {
	width: 2rem;
	height: 2rem;
	transform: translateY(0.2rem);
	position: absolute;
	top: -0.5rem;
	left: -1em;
}

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

#main .location-box .fax-color {
	color: var(--primary-color);
}

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

#location_section .wp-block-cover {
	padding-top: 5em;
	padding-bottom: 0.9em;
	min-height: unset;
}

#location_section h2 {
	padding-bottom: 1.5rem;
	position: relative;
	margin-bottom: 2.7rem;
}

#location_section h2::before {
	content: '';
	width: 8rem;
	height: 0.05rem;
	background-color: var(--title-color);
	position: absolute;
	bottom: 0;
	left: calc(50% - 4rem);
}

@media (min-width: 68.5em) {
	#location_section {
		font-size: clamp(0.8rem, 1.1vw, 1rem);
	}

	.home #main #location_section {
		margin-top: -2em;
		position: relative;
	}

	#location_section h2::before {
		width: 21rem;
		left: calc(50% - 10.5rem);
	}

	#main .location-box p {
		margin-bottom: 3em;
	}

	#main .location-list-detailed .icon-item {
		padding-left: 1.7em;
		font-size: 1.2em;
	}

	#main .location-box .hours {
		max-width: unset;
	}

	#main .location-box>.hours {
		--i: 2;
	}

	#main .location-box .hours .hours-row {
		display: flex;
		justify-content: space-between;
		margin-bottom: 0.3rem;
	}

	#location_section .wp-block-cover {
		padding-top: 7.5em;
		padding-bottom: 11em;
	}

	#location_section h2 {
		margin-bottom: 6.5rem;
	}
}

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

	.location-list-detailed .location-box {
		width: 100%;
		gap: clamp(3em, 7.3vw, 7em);
	}


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

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

	.location-box .loc-left {
		flex: 0 0 11rem;
		--i: 1;
	}

	.location-box .hours {
		display: flex;
		margin-top: 0;
	}

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

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

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

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	color: var(--white);
	background: var(--primary-color);
	padding-top: clamp(1.2rem, 2vw, 2.8rem);
	margin: 0;
	position: relative;
	overflow: hidden;
	font-size: clamp(0.8rem, 1.1vw, 1rem);
	font-family: var(--alt-font);
}

.footer::before {
	content: '';
	width: 18rem;
	aspect-ratio: 1/1;
	background-image: url('./images/footer-decor.svg');
	background-size: cover;
	position: absolute;
	bottom: 9em;
	left: calc(50% - 9rem);
	z-index: 0;
}

.footer .wp-block-search {
	margin: auto;
	margin-bottom: 2.5rem;
	width: 100%;
	max-width: 16rem;
	min-width: unset;
}

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

.footer a,
.location-list-names a {
	text-decoration: none;
	display: block;
	width: fit-content;
	background: linear-gradient(0deg, var(--white), var(--white)) no-repeat 0 bottom / 0 2px;
	transition: background-size 350ms;
}

.footer .icon-item {
	padding-left: 2.5em;
	margin-bottom: 2em;
}

.footer .hours {
	margin-top: 2em;
}

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

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

#foot_content {
	justify-content: space-between;
	font-size: clamp(0.8rem, 0.9em, 0.9em);
	gap: 6%;
}

#foot_content .wp-block-column {
	flex: 0 1 auto;
	flex-basis: fit-content !important;
	margin-bottom: 1rem;
	width: 14rem;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
}

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

.footer .footer-logo {
	max-width: 14rem;
	margin: auto;
	margin-bottom: 2rem;
}

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

.footer-socials {
	margin: 0 0 2rem 4.3rem;
	margin-right: auto;
	margin-left: auto;
}

.footer-socials .menu-label-svg {
	margin-right: 0.5em;
}

.footer-socials a {
	transition: transform 0.3s ease;
	display: flex;
	flex-wrap: nowrap;
	min-width: 7em;
}

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

.footer .wp-block-heading {
	font-size: clamp(1.15em, 1.15em, 1rem);
	border-bottom: 1px solid var(--white);
	padding-bottom: 0.6rem;
	margin: 0;
	margin-left: 0 !important;
}

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

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

.footer .location-box h3 {
	position: relative;
	border-bottom: none;
	text-align: center;
	font-weight: 400;
	font-size: 1em;
	text-transform: uppercase;
}

#footer-locations h3::before {
	content: '';
	width: calc(calc(100% + calc(var(--contain-padding) * 2)) + 2rem);
	height: 0.05rem;
	background-color: var(--white);
	position: absolute;
	bottom: 0;
	left: calc(calc(-1 * var(--contain-padding)) - 1rem);
}

.footer .wp-block-search__button {
	position: relative;
	padding: 0;
	background-color: unset !important;
	width: unset;
}

.footer .wp-block-search__button:hover {
	background-color: var(--accent-color) !important;
}

.footer .wp-block-search__button::before {
	content: '';
	width: 0.8rem;
	height: 0.8rem;
	background-image: url('./images/search.svg');
	background-size: cover;
	position: absolute;
	right: 1em;
	top: 0.4em;
}

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

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

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

@media only screen and (min-width: 37.5em) {

	.footer .location-box .hours,
	.footer .location-box .loc-left {
		margin-top: 0;
	}

	.footer .location-box:only-child .loc-left {
		flex: 0 0 12.5em;
	}

}

.copyright-wrapper {
	padding-top: 1.2rem;
	padding-bottom: 5rem;
	text-align: center;
	border-top: 0.05rem solid var(--white);
}

.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::before {
		aspect-ratio: 1/1;
		width: 34em;
		bottom: -0.5em;
		left: unset;
		right: -7.3em;
	}

	#foot_content {
		line-height: 32px;
	}

	#foot_content #footer-quick-links {
		display: flex;
	}

	#foot_content .wp-block-column {
		flex: unset;
		margin-top: 1em;
	}

	#foot_content .wp-block-column:first-of-type {
		margin-top: 0;
	}

	.copyright-wrapper {
		text-align: left;
		padding-bottom: 1.2rem;
		border: none;
		position: relative;
	}

	.copyright-wrapper::before {
		content: '';
		width: calc(100% - calc(var(--contain-padding) * 2));
		height: 0.05rem;
		background-color: var(--white);
		position: absolute;
		top: 0;
		left: var(--contain-padding);
	}

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

	.footer .location-list-detailed {
		max-width: 36em;
		flex-wrap: nowrap;
		gap: 0;
	}

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

	.footer .location-list-detailed .location-box {
		gap: 0;
		justify-content: space-between;
	}

	#footer-locations h3 {
		text-align: left;
		margin-bottom: 1.7rem;
		font-size: clamp(1.15em, 1.15em, 1rem);
	}

	#footer-locations h3::before {
		width: 100%;
		left: 0;
	}

	.footer .hours-row {
		justify-content: space-between;
		min-width: 14em;
	}

	.footer .hours {
		margin-left: -1.6em;
		width: fit-content;
	}

	.footer-socials {
		margin: unset;
	}

	.footer-socials ul {
		flex-wrap: nowrap;
		margin-top: 2.4em;
		margin-bottom: 2.2em;
		gap: 0;
	}

	.footer .footer-logo {
		margin-bottom: 0;
		max-width: 14rem;
		width: 15.6em;
	}

	#foot_content .wp-block-column:last-of-type {
		min-width: 11em;
		width: fit-content;
	}

	.footer .loc-left {
		margin-left: 1em;
	}

	.footer .wp-block-search__button::before {
		top: 0.7em;
		left: 0.8em;
	}
}

/*--------------------------------------------------------------
# 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
--------------------------------------------------------------*/

.hidden {
	display: none;
}

@keyframes hideElement {
	0% {
		opacity: 1;
	}

	99% {
		opacity: 0;
		visibility: visible;
	}

	100% {
		opacity: 0;
		visibility: hidden;
		/* Makes it inaccessible before display:none is applied */
	}
}

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

@keyframes menuOn {
	0% {
		clip-path: polygon(40% 90%, 55% 90%, 55% 100%, 40% 100%);
		background-color: var(--accent-color);
	}

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

	100% {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
		background-color: var(--highlight);
	}
}

@keyframes menuOff {
	0% {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
		background-color: var(--highlight);
	}

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

	100% {
		clip-path: polygon(40% 90%, 55% 90%, 55% 100%, 40% 100%);
		background-color: var(--accent-color);
	}
}

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

	.js-intersected:is(.fadein, .fadeup, .fadedown, .fadeleft, .faderight),
	#hero_section .fadein,
	#hero_section .fadein::before {
		animation: fadein var(--time, 300ms) var(--easing, ease) 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);
		}
	}
}