/*-------------------------------------------------------*/
/* Helper Classes
/*-------------------------------------------------------*/
.clearfix {
	*zoom: 1;
}
.clearfix:before,
.clearfix:after {
	display: table;
	line-height: 0;
	content: "";
}
.clearfix:after {
	clear: both;
}
.clear {
	clear: both;
}
.oh {
	overflow: hidden;
}
.relative {
	position: relative;
}
.img-fullwidth {
	width: 100%;
}
.uppercase {
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.nocaps {
	text-transform: none;
	letter-spacing: 0;
}
.bg-light {
	background-color: var(--wp--preset--color--quaternary);
}
.bg-dark {
	background-color: var(--wp--preset--color--secondary);
}

/* Gradients / Overlays
-------------------------------------------------------*/
.bg-overlay {
	&::before {
		content: "";
		display: block;
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		background-color: var(--wp--preset--color--secondary);
		opacity: 0.5;
		transition: var(--deo-transition--all);
	}
}

/* Box Shadow
-------------------------------------------------------*/
.box-shadow {
	box-shadow: 0px 10px 27px 0px rgba(#9aa1ab, 0.18);
	transition: var(--deo-transition--all);
	position: relative;
	display: block;
	top: 0;
}

/* Title Underline
-------------------------------------------------------*/
.title-underline {
	a {
		background-image: linear-gradient(
			to right,
			var(--wp--preset--color--secondary) 0%,
			var(--wp--preset--color--secondary) 100%
		);
		background-size: 0px 1px;
		background-position: 0px 95%;
		background-repeat: no-repeat;
		transition: all 0.36s cubic-bezier(0.51, 0.5, 0.07, 0.99) 0s;
		padding: 0.5% 0px;
	}

	&:hover a {
		background-size: 100% 1px;
	}
}

/*-------------------------------------------------------*/
/* Hovers
/*-------------------------------------------------------*/
.hover-overlay {
	display: block;
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	background-color: rgba(var(--wp--preset--color--secondary), 0.5);
	transition: 0.3s cubic-bezier(0.43, 0.07, 0.61, 0.95);
}

.hover-underline {
	position: relative;
	transition: var(--deo-transition--all);

	&:after {
		content: "";
		position: absolute;
		display: inline-block;
		background-color: var(--wp--preset--color--primary);
		height: 2px;
		width: 100%;
		left: 0;
		bottom: -4px;
		opacity: 0;
		transition: var(--deo-transition--all);
	}

	&:hover,
	&:focus {
		a {
			color: initial !important;
		}

		&:after {
			bottom: 0;
			opacity: 1;
		}
	}
}

.hover-trigger:hover .hover-overlay {
	opacity: 1;
	visibility: visible;
}

.hover-up {
	transition: box-shadow var(--deo-transition), transform var(--deo-transition);
	will-change: transform;
}

.hover-up:hover,
.hover-up:focus {
	box-shadow: 0 20px 40px rgb(61 65 84 / 15%);
	transform: translateY(-3px);
}

/* Flexbox
-------------------------------------------------------*/
.justify-content-center {
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.justify-content-between {
	-webkit-box-pack: space-between;
	-ms-flex-pack: justify;
	justify-content: space-between;
}

.align-items-center {
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

.flex-column {
	flex-direction: column;
}
