/*
Theme Name: Fuel6
Theme URI: https://fuelmedical.com
Author: Fuel Medical
Description: A block theme created by Fuel Medical
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Version: 6.4.5
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Custom Properties
# Fuel Normalize
# Helper Classes
# WordPress Blocks
# Header
# Footer
# Location Section
# Contact Section
# Animations
# print
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Custom Properties
--------------------------------------------------------------*/
body {
	/* Structure - 1100px - for use outside of contain class */
	--contain-padding: clamp(1rem, calc(50vw - 29.93rem), 19rem);

	/* Design - Change in theme.json - DEPRECATED WITH PLANS TO REMOVE IN FAVOR OF VARIABLES CREATED BY 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);
	--color-1: var(--wp--preset--color--color-1);
	--color-2: var(--wp--preset--color--color-2);
	--color-3: var(--wp--preset--color--color-3);

	/* Gradients */
	--green-gradient: var(--wp--preset--gradient--green-gradient);
	--tan-gradient: var(--wp--preset--gradient--tan-gradient);
	--cta-gradient: var(--wp--preset--gradient--cta-gradient);

	/* Text */
	--title-font: var(--wp--preset--font-family--title);
	--title-color: var(--wp--preset--color--primary);
	--content-font: var(--wp--preset--font-family--content), sans-serif;
	--content-color: var(--wp--preset--color--content);

	line-height: 1.9;
}


/*--------------------------------------------------------------
# Fuel Normalize
--------------------------------------------------------------*/
*, *::before, *::after {box-sizing: border-box;}
html { font-size: clamp(125%, 1vw, 240%); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; min-width: 15rem; }
html:has(.ios) { overscroll-behavior: none; }
iframe, img, svg, video { vertical-align: middle; max-width: 100vw; }
img { object-fit: cover; width: -webkit-fill-available; }
picture[style*="width"] { display: flex; }
[hidden] { display: none; }

@media only screen and (min-width: 68.5em) {
	*[id] { scroll-margin-top: 3rem; }
}


/*--------------------------------------------------------------
# Helper Classes
--------------------------------------------------------------*/
.contain { --contain-padding: clamp(var(--mobile-padding, 1rem), calc(50vw - 29.93rem), var(--desktop-padding, 19rem)); display: block; position: relative; margin: auto; padding-right: var(--contain-padding); padding-left: var(--contain-padding); width: 100%; }
.icon-item { display: block; position: relative; margin: 1em 0; padding: 0 0 0 1.8em; }
.icon-item svg {position: absolute;top: 0.15em;left: 0;width: 1.2rem;height: 1.2rem;}
.text-center { text-align: center; }

@media (min-width: 68.5em) { 
	.mobile-only { display: none !important; }
}

@media (max-width: 68.49em) { 
	.desktop-only { display: none !important; }
	body { --center-on-mobile: center; }
	.text-center-on-mobile { text-align: var(--center-on-mobile); }
	.center-on-mobile { justify-content: var(--center-on-mobile); }
	.align-items-center-on-mobile { align-items: center; }
	.margin-center-on-mobile { margin-left: auto; margin-right: auto; }
	.stack-on-mobile { flex-direction: column; }
	.full-width-on-mobile { width: 100%; max-width: 100%; }
	.wrap-on-mobile { flex-wrap: wrap; }
}

.zebra > *:not(tbody):nth-child(odd) { background-color: var(--zebra, var(--wp--preset--color--grey)); }
.toggle-content:has(.zebra) { padding: 0; }

/* Use on query loops to help change the order every other column */ 
.stagger > :nth-child(even) .wp-block-columns { flex-direction: row-reverse; }

/* Use to make link fill entire block - use when you can't wrap blocks with anchor tag */ 
.cover-link {position: absolute !important;inset: 0;width: 100%;z-index: 1;background: none !important;}
:has(> .cover-link) {position: relative;}


/*--------------------------------------------------------------
# WordPress Blocks - Use theme.json when possible
--------------------------------------------------------------*/
@media (max-width: 37.49em) { 
	:where(.alignleft, .alignright):not(.wp-block-query .wp-block-post-featured-image) { float: none; margin: 0 auto 1rem; }
}

@media (min-width: 37.5em) { 
	:where(.alignleft, .alignright):not(.wp-block-query .wp-block-post-featured-image) { max-width: 48% }
}

@media (min-width: 68.5em) { 
	.is-position-sticky { transition: top 0.3s ease; }
	body:has(header.show-sticky) .is-position-sticky { top: 4rem; }
}

@media (max-width: 68.49em) { 
	.entry-content .wp-block-buttons { justify-content: var(--center-on-mobile); /* Center buttons on mobile but not in menu */ }
}


/* Button Styles */
.wp-element-button, .wp-block-button__link {padding: 0.7rem 1.5rem;border: 2px solid var(--color-2);border-radius: 0.4rem;font-size: 1rem !important;line-height: normal;color: var(--content-color);background: var(--white);transition: 500ms ease;}
.wp-block-button__link:is(:hover, :focus-visible), .wp-element-button:is(:hover, :focus-visible) { background: var(--color-2); }


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
@media (max-width: 68.49em) { 
	.show-sticky .fuel6-walker-menu:not(:has(.depth-0 > .menu-link[aria-expanded="true"])) { bottom: calc((var(--menu-height) + env(safe-area-inset-bottom) + 0.05rem) * -1); }
	.header-logo a { margin-top: 0; }
}

@media (min-width: 68.5em) { 
	.header:not(.block-editor-block-list__block) { position: sticky; top: calc(var(--headerHeight, 11.7rem) * -1); z-index: 999; transition: top 0.5s ease; }
	body:not(.js-active) .header:not(.block-editor-block-list__block), .header:has(.depth-0 > .menu-link[aria-expanded="true"]), .header.show-sticky:not(.block-editor-block-list__block) { --menuTop: calc(var(--headerHeight, 11.7rem) - var(--menu-height, 3.2rem)); top: calc(var(--menuTop, 8.5rem) * -1); }
	.header-phone-text { display: block !important; justify-content: space-between; width: fit-content; margin-right: 0; margin-left: auto; gap: 0; text-align: right; }
	.phone.header-number { display: block; width: 100%; max-width: fit-content; margin-left: auto; line-height: normal; }
	.phone.header-number:last-of-type {font-size: 1rem;line-height: 1.6;font-style: italic;font-family: 'Lato', sans-serif;background: linear-gradient(0deg, var(--primary-color), var(--primary-color)) no-repeat 0 bottom / 0 1px;}
	.phone.header-number:is(:hover, :focus-visible) { background-size: 100% 1px; color: var(--primary-color); }
}

.header-logo { --scale: 1.05; }
.header-quicklinks a:is(:hover, :focus-visible) p { color: var(--primary-color) !important; }
.header-number:is(:hover, :focus-visible) svg path { fill: var(--color-2); }


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	position: relative; margin-top: 24dvw;
	&:before { content: '';width: 100%;height: 20dvw;position: absolute;inset: auto 0 calc(100% - 5px) 0;background-size: contain;background-repeat: no-repeat;background-position: bottom;background-image: url('data:image/svg+xml,<svg width="1922" height="367" viewBox="0 0 1922 367" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M1922 364.991V140.467C1776.73 279.699 1583.21 316.928 1391 272.999C815 141.354 323 -224.001 2 196.76V364.991C2 364.991 520.666 364.991 977.052 364.991C1188.61 368.423 1922 364.991 1922 364.991Z" fill="%23D5D9C6"/> <path d="M0 196.178C318.881 -237.366 884.605 168.708 1373.52 266.793C1566.52 310.834 1774.13 287.246 1920 147.658C1804.86 323.524 1585.61 387.869 1384.85 343.38L1350.7 336.96C895.045 244.697 345.132 -131.667 0 196.178Z" fill="url(%23paint0_linear_9002_6655)"/> <defs> <linearGradient id="paint0_linear_9002_6655" x1="217.758" y1="13.4446" x2="1904.48" y2="372.879" gradientUnits="userSpaceOnUse"> <stop stop-color="%2331493B"/> <stop offset="0.3" stop-color="%23667A66"/> <stop offset="0.5" stop-color="%23869881"/> <stop offset="0.6" stop-color="%2393A48C"/> <stop offset="1" stop-color="%23D5D9C6"/> </linearGradient> </defs> </svg>');}
	#foot_content {row-gap: 1.5rem;}
	.footer-logo { --scale: 1.05; }
	ul:has(>.location.type-location) { display: block; }
	.address.icon-item { margin-bottom: 2rem; }
	.phone.icon-item:has(.cellphone-text-icon) svg { margin-left: 0.1rem !important; }
}

@media (min-width: 68.5em) { 
	.footer {
		.address.icon-item {margin-bottom: 4.25rem;}
		#footer-locations { flex-basis: 27rem; }
		#footer-quick-links {flex-basis: 9rem !important; }
	}
}

@media (min-width: 82.5em) { 
	.footer {
		#foot_content { column-gap: 5rem; }
	}
}


/* Copyright Section */
.policy-menu li:nth-child(n+1):not(:last-child)::before { content: '|'; position: absolute; right: -0.7rem; }


/*--------------------------------------------------------------
# Location Section
--------------------------------------------------------------*/
.location-section-bg-leaves {position: absolute;inset: auto auto 1rem 0;z-index: -1;width: 32dvw;min-width: 18rem;max-width: 30.7rem;height: 35.5dvw;min-height: 20rem;max-height: 34rem;margin: 0;}
.locations-title { margin-bottom: 2.2rem !important; }
.location-card {
	.address, .phone {color: var(--content-color);}
	.address.cover-link { color: transparent; }
	.wp-block-group:has(.address, .phone-number) svg {
		transform: translateY(0.35rem);
		path { fill: var(--accent-color); }
	}	
	.location-section-map {width: 100%;max-width: 24rem;}
	.location-section-map-image {margin: auto !important;max-width: 100%;}

	/* Location */
	svg.cellphone-text-icon {margin-right: -0.4rem !important;} 
}

@media (min-width: 68.5em) { 
	.location-section-bg-leaves { inset: 0 auto auto 0; }
	#location_section { padding-top: 3rem !important; padding-bottom: 4.8rem !important; }
	.location-card .location-section-map-image { height: 14.5rem !important; }
}

@media (min-width: 71.875em) { /* 1150px */
	.location-card .address:not(.cover-link) {/* margin-bottom: 3.5rem; */}
}


/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact_section {/* padding-bottom: 24dvw; *//* margin-bottom: 24dvw; */}
.contact-section-bg-leaves { position: absolute;inset: auto 0 0 auto;z-index: -1;width: 54dvw;min-width: 18rem;max-width: 51.8rem;height: 46dvw;min-height: 15.3rem;max-height: 44.1rem;margin: 0; }

@media (min-width: 68.5em) { 
	#contact_section {padding-top: 4.9rem;/*padding-bottom: 24dvw;*/}
	.contact-section-bg-leaves { inset: 4.9rem 0 auto auto; }
	.location-contact-info { justify-content: space-between; }
}	


/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes spin {
	0% { transform: rotate(0deg); } 
	100% { transform: rotate(var(--spin-rotation, 360deg)); }
}

@keyframes fadein {
	0% { opacity: var(--o1, 0); transform: translate(var(--x1, 0), var(--y1, 5rem)); }
	100% { opacity: var(--o2, 1); transform: translate(var(--x2, 0), var(--y2, 0)); }
}

@keyframes 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 reveal {
	0% { opacity: var(--o1, 0); clip-path: inset(var(--reveal, 25%)); }
	100% { opacity: var(--o2, 1); clip-path: inset(var(--reveal, 0%)); }
}

@keyframes point {
	0% { transform: translate(0, 0); }
	50% { transform: translate(var(--x, 1rem), var(--y, 0)); }
	100% { transform: translate(0, 0); }
}

/* popAnimation Example: https://jsfiddle.net/KTC_88/8xkLv520/ */
@keyframes popAnimation {
	0% { transform: scale(0.5); opacity: 0; }
	60% { transform: scale(1.2); }
	100% { transform: scale(1); opacity: 1; }
}


/**
* Animation helper classes.
*/

@media (prefers-reduced-motion:no-preference) {

	/* Add to wrappers to animate children */
	.popin>* { transform: scale(0.5); opacity: 0; }
	.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; }
	.reveal { opacity: 0; clip-path: inset(25%); }
	.js-intersected:is(.fadein, .fadeup, .fadedown, .fadeleft, .faderight) { animation: fadein var(--time, 300ms) var(--easing, ease) var(--delay, 0s) forwards }
	.js-intersected.reveal { animation: reveal var(--time, 300ms) var(--easing, ease) var(--delay, 0s) forwards }
}


/* Used to make images in links grow when link is hovered - simply add .hover-img-grow to link or image block */
figure.hover-img-grow, .hover-img-grow figure {overflow: hidden;}
.hover-img-grow img {transition: transform var(--time, 0.3s);}
a:has(+ .hover-img-grow):is(:hover, :focus-visible)+figure img, a:has(.hover-img-grow):is(:hover, :focus-visible) img, a.hover-img-grow:is(:hover, :focus-visible) img { transform: scale(var(--scale, 1.1)); }

/* Helper class adds growing underline on hover */
a.underline-on-hover, .underline-on-hover a { width: fit-content; background: linear-gradient(0deg, currentColor, currentColor) no-repeat 0 bottom / 0 1px; transition: background-size 350ms; }
a.underline-on-hover:is(:hover, :focus-visible), .underline-on-hover a:is(:hover, :focus-visible) {background-size: 100% 1px;}
a.underline-on-hover.icon-item, .underline-on-hover a.icon-item { background-position-x: 1.6rem; }

/* Helper class makes link scale on hover */
.scale-on-hover a, a.scale-on-hover { transition: transform 0.3s ease; }
.scale-on-hover a:is(:hover, :focus-visible), a.scale-on-hover:is(:hover, :focus-visible) { transform: scale(var(--scale, 1.2)); }


/*--------------------------------------------------------------
# Print
--------------------------------------------------------------*/
@media print {
	* { background: transparent !important; color: initial !important; --wp--preset--color--white: initial !important; }
	.main-header { all: unset; }
	.main-title { margin: 1rem auto !important; padding-bottom: 1rem; border-bottom: 2px solid #000; }
	nav, #sidebar, .header, .footer, .pagination, .wp-prev-next, .main-header img, .wp-block-cover__image-background, .wp-block-cover__background, main + * { display: none !important; }
}













