/*
Theme Name: Fuel5 Junior
Theme URI: http://fuelmedical.com/
Description: Base child theme for all fuel medical development projects.
Author: Fuel Medical
Author URI: http://fuelmedical.com/
Template: fuel
Version: 5.0.12
Text Domain: fmj
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Custom Properties
# Fonts
# Normalize
# Fuel Normalize
# Custom Elements
# Forms
## Search Form
# Accessibility
# Header
# Content
# Footer
# Map
# Animations

# Print
# IE11 Notice
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/
/* lato-regular - latin */
@font-face {
	font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Lato';
	font-style: normal;
	font-weight: 400;
	src: url('./fonts/lato-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
/* lora-regular - latin */
@font-face {
	font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Lora';
	font-style: normal;
	font-weight: 400;
	src: url('./fonts/lora-v32-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
/*--------------------------------------------------------------
# Custom Properties
--------------------------------------------------------------*/
:root {
	/* Structure */
	--contain-padding: clamp(9vw, calc(50vw - 30rem), 18rem);

	/* Design */
	--primary-color: #353575;
	--accent-color: #008383;
	--site-dark-blue: #0D0D89;
	--site-purple: #5B5BAE;
	--site-light-purple: #525296;
	--site-blue: #006DC1;
	--site-black: #4A4A4A;
	--site-white: #FFFFFF;

	/* Text */
	--title-font: "Lora";
	--title-color: var(--primary-color);

	--content-font: "Lato";
	--content-color: #4a4a4a;

	/* Accessibility */
	--outline-color: #69F;
}

/*--------------------------------------------------------------
# Normalize v8.0.1
--------------------------------------------------------------*/
html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}

/*--------------------------------------------------------------
# Fuel Normalize
--------------------------------------------------------------*/
*, *::before, *::after {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
html {
	font-family: sans-serif;
	font-size: 125%;
	line-height: 1.5;
	-webkit-overflow-scrolling: touch;
}
body {
	position: relative;
	min-width: 18rem;
	font-family: var(--content-font);
	font-size: 1em;
	line-height: 1.5;
	color: var(--content-color);
	background: #f5f5f5;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em 0;
	font-family: var(--title-font);
	font-weight: 400;
	line-height: normal;
	color: var(--title-color);
}

h1 {
	font-size: clamp(1.4rem, 4vw, 2.4rem);
}
h2 {
	font-size: clamp(1.3rem, 4vw, 2rem);
}
h3 {
	font-size: clamp(1.1rem, 4vw, 1.5rem);
	color: var(--site-blue);
}
h4 {
	font-size: clamp(1rem, 4vw, 1.4rem);
}
h5 {
	font-size: clamp(0.9rem, 4vw, 1.2rem);
}
h6 {
	font-size: clamp(0.8rem, 4vw, 1rem);
}

p {
	margin: 0 0 1.2em;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
li {
	margin: 0;
}

iframe, img, svg, audio, canvas, video, object, embed {
	vertical-align: middle;
	max-width: 100%;
}
img, svg {
	height: auto;
}
img {
	object-fit: cover;
}
img[src*=".jpg"] {
	background: #eee;
}
iframe {
	margin: 0 auto 3rem auto;
}

figure {
	margin: 0;
}
blockquote {
	margin: 0 0 1.6em;
}

table {
	margin: 0 0 1.6em;
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}
th {
	font-weight: bold;
}

blockquote, figcaption {
	font-style: italic;
}
blockquote em, blockquote i, figcaption em, figcaption i {
	font-style: normal;
}

small {
	font-size: 0.75em;
}

sub, sup {
	position: relative;
	vertical-align: baseline;
	font-size: 0.75em;
	line-height: 0;
}
sup {
	top: -0.5em;
}
sub {
	bottom: -0.25em;
}

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

button {
	margin: 0;
	border: 0;
	padding: 0;
	color: var(--accent-color);
	background: transparent;
	cursor: pointer;
}
button:hover {
	color: var(--primary-color);
}

input {
	margin: 0;
	border: 0;
	padding: 0;
	color: inherit;
	background: none;
}

pre, code {
	max-width: 100%;
	overflow: auto;
}


/*--------------------------------------------------------------
# Custom Elements
--------------------------------------------------------------*/

#wpadminbar {
	background: #002B49;
}

.site-wrapper {
	margin: auto;
	width: 100%;
	max-width: 96rem;
	background: #fff;
}
.site-wrapper > * {
	width: 100%;
}

.clear {
	clear: both;
}

.contain {
	display: block;
	position: relative;
	margin: auto;
	padding-right: var(--contain-padding);
	padding-left: var(--contain-padding);
	width: 100%;
}

.button::before, .wp-block-button__link::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0.6rem;
	height: 0.6rem;
	background: var(--accent-color);
	transition: transform .3s;
	transform-origin: bottom left;
	transform: scale(1, 1);
	z-index: -1;
}

.button,
.wp-block-button__link {
	display: inline-block;
	vertical-align: middle;
	border-radius: 0;
	padding: 0.6em 1.5em;
	font-size: clamp(1rem, 1.1vw, 1.25rem);
	line-height: normal;
	text-align: center;
	text-decoration: none;
	color: #231F20;
	background: var(--site-white);
	cursor: pointer;
	transition: all 300ms;
	border: 1px solid var(--accent-color);
	position: relative;
	font-family: var(--content-font);
	z-index: 2;
	overflow: hidden;
}
.button:hover, .button:active,
.wp-block-button__link:hover, .wp-block-button__link:active {
	color: #fff;
	text-decoration: none;
}
.button:hover::before, .button:active::before,
.wp-block-button__link:hover::before,
.wp-block-button__link:active::before {
	transform: scale(30, 5);
}
.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;
}
.hams-icon-small-inverted {
	margin: auto;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.gform_fields {
	margin: 0;
}

.gfield {
	margin: 0 0 0.7rem;
	border: 1px solid #999;
	border-radius: 0.3rem;
	padding: 0.3rem;
	list-style: none;
	overflow: hidden;
	background: #fff;
}

.gfield .medium, .gfield .large {
	padding: 0.2rem 0.9rem;
	width: 100%;
	color: var(--content-color);
	background: #fff;
	outline: none;
}

.gfield_label {
	display: block;
	padding: 0.1rem 0.4rem 0;
	font-size: 0.7em;
	line-height: normal;
}

.gform_footer {
	position: relative;
	margin-top: 0.7rem;
}

.gform_button {
	width: 100%;
}

.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_submission_error {
	margin: 0 0 1rem;
	font-family: inherit;
	font-size: 0.8em;
	font-weight: normal;
	line-height: 1.5;
	color: #cc2d3f;
}

.validation_message {
	padding: 0 0.4rem;
	font-size: 0.7em;
	color: #cc2d3f;
}

/*--------------------------------------------------------------
## Search Form
--------------------------------------------------------------*/
.search-form {
	display: flex;
}
.search-form label {
	width: 100%;
}
.search-field {
	padding: 0.5em 1em;
	width: 100%;
	line-height: 1.5;
	color: var(--content-color);
	background: #eee;
}
.search-submit {
	padding: 0.5em 1em;
	line-height: 1.5;
	color: #fff;
	background: #777;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
a, button, summary, .gfield {
	outline-style: solid;
	outline-color: transparent;
	outline-offset: 0;
	outline-width: 2px;
}
a {
	outline-offset: 0.5rem;
}
.button {
	outline-offset: 0;
}
a:focus-visible, button:focus-visible, summary:focus-visible, .gfield:focus-within {
	outline-color: var(--accent-color);
	outline-style: dotted;
	outline-offset: 0.2rem
}

.skip-to-content {
	display: block;
	position: absolute;
	top: -10000rem;
	left: 1rem;
	z-index: 99999;
	padding: 0.5em 1em;
	background: #eee;
	box-shadow: 1px 1px 0.2em rgba(0, 0, 0, 0.5);
	transition: none;
}
.skip-to-content:focus {
	top: 1rem;
}

.screen-reader-text {
	position: absolute;
	top: auto;
	left: -10000rem;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.js-required {
	padding: 2rem;
	text-align: center;
	color: #000;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	text-align: center;
}
.header-links {
	display: none;
}
.header-menu, .header-phone {
	display: none;
}
@media (min-width: 68.5em) {
	.header {
		padding-top: 1rem;
		padding-bottom: 1.5rem;
	}
	.header-wrap {
		display: flex;
		justify-content: space-between;
		position: relative;
		z-index: 999;
		background: var(--site-white);
		height: 2.5rem;
	}
	.header-left, .header-right {
		padding: 0 2% 0 2%;
		position: relative;
	}
	.header-menu {
		grid-area: nav;
		display: flex;
	}
	.header-menu li:nth-child(n+2) {
		margin-left: 1rem;
	}
	.header-menu svg {
		vertical-align: top;
		margin: 0.15em 0.2em 0 0;
		width: 1.1em;
		height: 1.1em;
	}
	.header-left .main-logo {
		position: relative;
		top: 0.4rem;
		width: 20rem;
	}
	.header-phone {
		display: block;
	}
	.header-right .phone.header-phone svg {
		width: 0.7rem;
		height: 1.1rem;
	}
	.clamp {
		font-size: clamp(0.8rem, 2vw, 1.5rem);
	}
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/* Full Width Contact Form */
.contact-section {
	display: flex;
	flex-direction: column;
	padding: 2rem var(--contain-padding);
	justify-content: center;
	font-family: "Lato";
}
.contact-us-main {
	padding: 0 0 1.5rem 0;
}
.contact-title {
	text-align: center;
	font-family: 'Lora';
	margin: 0;
	padding: 0 0 0.5rem 0;
	font-size: clamp(1.75rem, 3vw, 1.8rem);
}
.three-lines-cs, .contact-section-phone {
	text-align: center;
}
.contact-intro {
	flex: 1;
	margin: auto;
}
.contact-emergency {
	max-width: 25.35rem;
	margin: auto;
	padding: 0 0.5rem;
}
.contact-section-phone {
	padding: 1rem 0 1rem 0;
	margin: 0;
}
.contact-section-phone .phone.header-phone {
	display: block;
	font-family: 'Lora';
	font-size: clamp(1.5rem, 3vw, 1.6rem);
}
.contact-section-phone .phone.header-phone svg {
	width: 0.95rem;
	height: 1.5rem;
}
.contact-form {
	position: relative;
	flex: 1;
	padding: 1.5rem 1rem 2rem 1rem;
	box-shadow: 0px 0px 15px 4px rgba(0, 0, 0, 0.19);
	border-radius: 6px;
}
.contact-form::before {
	content: "";
	background: var(--primary-color);
	position: absolute;
	top: 0;
	height: 0.5rem;
	width: 100%;
    left: 0;
	border-radius: 6px 6px 0 0;
}

#gform_1, .gform_description, .gform_required_legend {
	max-width: 25.6rem;
	margin: auto;
	font-size: clamp(0.9rem, 3vw, 1rem);
}
.gform_required_legend {
	padding: 1rem 0;
}
.gform_footer {
	max-width: 10rem;
	margin: auto;
}

@media only screen and (min-width: 68.5em) {
	.contact-section {
		flex-direction: row;
	}
	.contact-form {
		flex: 1;
		margin: 2rem;
	}
	#gform_wrapper_1 {
		padding: 1rem;
	}
}
/* Media Text */
.wp-block-media-text .wp-block-media-text__content {
	padding: 0;
}
@media only screen and (min-width: 37.56em) {
	.wp-block-media-text .wp-block-media-text__content {
		padding: 0 7%;
	}
}

/* Locations Section */
.map-sidebar {
	background-image: url('./images/map-bk-section.png');
}
.map-list-filter {
    padding: 0.4rem;
}
.map-list-filter select {
    width: 100%;
    font-size: clamp(1rem, 4vw, 1.2rem);
    padding: 0.5rem;
}
.map-list-label,
.map-list-back {
	background: repeating-linear-gradient(to right, rgba(0, 131, 131, 1) 0 0.4rem, rgba(0, 0, 0, 0.3) 0.4rem 100%);
}
.map-list-button .map-loc-title {
	background-image: linear-gradient(#FFFFFF 0 0);
	background-position: 0 100%;
	background-size: 0% 1px;
	background-repeat: no-repeat;
	transition:
		background-size 0.3s,
		background-position 0s 0.3s;
	max-width: fit-content;
}
.map-list-button:hover .map-loc-title {
	background-position: 100% 100%;
  	background-size: 100% 1px;
}
/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	color: #fff;
	background: var(--primary-color);
}
.footer a {
	color: #fff;
}
.footer a:hover {
	text-decoration: underline;
	color: #fff;
}
.footer-blocks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	flex-direction: column;
	gap: 1rem;
	padding-top: 1.5rem;
	text-align: center;
	position: relative;
	z-index: 0;
}
.footer-block.footer-branding {
	height: clamp(3.14em, 4vw, 4em);
}
.footer-logo {
	display: block;
	max-width: 30em;
	margin: auto;
}
.footer-logo svg {
	width: clamp(100%, 4vw, 90%);
	height: clamp(4em, 4vw, 4em);
}
.footer-logo .logo-lines,
.footer-logo .logo-top-line,
.footer-logo .logo-bottom-line {
	fill: #FFFFFF;
}
.phone.footer-phone {
	font-size: clamp(0.8em, 4vw, 1.2em);
	font-family: 'Lora';
	max-width: 11.18rem;
	margin: auto;
}
.footer .hams-logo-footer {
	display: none;
}
@media (min-width: 68.5em) {
	.footer-blocks {
		flex-wrap: nowrap;
		gap: 0.9rem;
		flex-direction: column;
	}
	.footer-branding {
		flex: 0 1 auto;
	}
	.footer .hams-logo-footer {
		display: block;
		left: clamp(0.5em, 22em, calc(50% - 48em));
		position: absolute;
		top: -1.5rem;
		z-index: -1;
	}
}

/* Copyright section */
.footer-end {
	padding-top: 1.5rem;
	padding-bottom: 5rem;
	text-align: center;
	font-size: clamp(0.7em, 2vw, 0.8em);
	line-height: 1.5;
}
.copyright {
	margin-bottom: 1.2rem;
}
.policy-nav li:nth-child(n+1)::before {
	content: '|';
	position: absolute;
	right: -2px;
}
.policy-nav li:last-child::before {
	display: none;
}
.policy-nav li {
	padding: 0 0.5rem;
	position: relative;
	white-space: nowrap
}
.policy-nav ul {
	display: flex;
	justify-content: center;
}
@media (min-width: 68.5em) {
	/* .footer::before {
		content: "";
		width: 100%;
		height: 100%;
		max-width: 18.65em;
		max-height: 15.5em;
		background: url("./images/hams-icon-large.svg");
		background-size: cover;
		background-repeat: no-repeat;
		position: absolute;
		bottom: 0;
		left: clamp(-10em, 22em, calc(50% - 48em));
		opacity: 0.06;
	} */
	.footer-end {
		display: grid;
		grid-template-areas:
			'copyright nav';
		justify-items: flex-start;
		padding-top: 2em;
		padding-bottom: 1rem;
		margin-top: 0.5rem;
	}
	.copyright {
		grid-area: copyright;
		margin: 0;
	}
	.policy-nav {
		grid-area: nav;
		justify-self: end;
	}
}


/*--------------------------------------------------------------
# Map
--------------------------------------------------------------*/
.fm-map {
	position: relative;
	width: 100%;
	height: 30rem;
	max-height: calc(90vh - 3.2rem);
	background: #e5e5e5;
}
.map-view-bar {
	background: var(--primary-color);
}
.map-list-item {
	position: relative;
}
.map-list-item::after {
	position: absolute;
	display: inline-block;
	content: '';
	background-image: url('./images/menu-arrow.svg');
	width: 0.7rem;
	height: 0.35rem;
	background: var(--site-white);
	clip-path: var(--menu-marker);
	right: 1rem;
	top: 50%;
	transform: rotateZ(270deg);
}
/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@media (prefers-reduced-motion:no-preference) {
	.contact-form.js-intersected::before {
		animation-name: expand-bar; 
		animation-duration: 1s;
		animation-timing-function: ease-in-out;
		animation-fill-mode: forwards;
	}
}

@media only screen and (min-width: 68.5em) {
	@media (prefers-reduced-motion:no-preference) {
		.js-intersected.fadeup {
			animation: fadeup;
			animation-duration: 1s;
			animation-fill-mode: forwards;
		}
		.fadein, .fadeup {
			opacity: 0;
		}
		.js-intersect.wp-block-media-text__media {
			animation-name: fadeup;
		}
		.js-intersect.sec-header .sec-header-1,
		.js-intersect.sec-header .sec-header-3 {
			animation-name: fadeup2;
		}
		.js-intersect.sec-header .sec-header-2 {
			animation-name: fadedown;
		}
		.js-intersect.wp-block-media-text__media,
		.js-intersect.sec-header .sec-header-1,
		.js-intersect.sec-header .sec-header-2,
		.js-intersect.sec-header .sec-header-3 {
  			animation-duration: 800ms;
  			animation-fill-mode: both;
  			animation-delay: 0ms;
  			animation-play-state: paused;
		}
		.js-intersected.wp-block-media-text__media,
		.js-intersected.sec-header .sec-header-1,
		.js-intersected.sec-header .sec-header-2,
		.js-intersected.sec-header .sec-header-3 {
			animation-play-state: running;
		}
	}
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
@keyframes fadein {
	0% { opacity: 0; }
	100% { opacity: 1; }
}
@keyframes fadeup {
	0% { opacity: 0; transform: translateY(5rem); }
	100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeup2 {
	0% { opacity: 0; transform: translateY(1rem); }
	100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadedown {
	0% { opacity: 0; transform: translateY(-1rem); }
	100% { opacity: 1; transform: translateY(0); }
}
@keyframes expand-bar {
	0% { width: 0; left: 50%; transform: translateX(0%); }
	100% { width: 100%; left: 0%; transform: translateX(0); }
} 
@keyframes sk-stretchdelay {
	0%, 50%, 100% { 
	  transform: scaleY(0.1);
	  -webkit-transform: scaleY(0.1);
	}  50% { 
	  transform: scaleY(1.0);
	  -webkit-transform: scaleY(1.0);
	}
}

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

	abbr[title]::after {
		content: ' ('attr(title) ')';
	}

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

	thead {
		display: table-header-group;
	}

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

	.primary-menu, .sidebar, .header, .footer, #comments, .page-navigation, .pagination, .wp-prev-next, .respond-form {
		display: none !important;
	}

	.contain {
		padding-left: 0;
		padding-right: 0;
		max-width: none;
	}
}

/*--------------------------------------------------------------
# IE11 Notice
--------------------------------------------------------------*/
.ie11-alert {
	display: none;
}
@media all and (-ms-high-contrast:none) {
	.ie11-alert {
		display: block;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 9999;
		background: #fff;
		color: #000;
	}
	.ie11-content {
		max-width: 45rem;
		max-height: 10rem;
		font-size: 2rem;
		text-align: center;
		margin: 10% auto 0;
	}
	.ie11-alert a {
		color: #4169e1;
	}
}
