/* Setup for desktop size - send to js for nav desktop/ switcher. */
#sasstojsvalues {
	width: var(--desktop);
	height: var(--tablet);
}

@keyframes heroBGAnimation {
	0% {
			opacity: .1;
			transform: scale(1.2)
	}

	to {
			opacity: 1;
			transform: scale(1)
	}
}

.site-header {
	/* position: fixed; */
	position: relative;
	top: 0;
	padding: 0;
	/* padding: 10px 0; Just in case we need to add padding */
	width: 100%;
	background: var(--primary-highlight-alt);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;

	&.int-header {
		padding: 0;

		.header-content {
			min-height: 40vw;

			/* Desktop Styles */
			@media (width >= 1024px) {
				min-height: 24vw;
			}
		}

		.site-logo {
			a {
				display: flex;
				margin-top: 20px;
				margin-bottom: 65px;

				svg {
					width: 175px;
					height: auto;
					@media (width >= 1024px) {
						width: 212px;
					}
				}
			}
		}
	}

	&.front-header {
		/* background-image: url('/wp-content/themes/rm-basetheme/images/bg-footer.jpg'); */
		background-repeat: no-repeat;
		background-size: cover;
		background-position: center;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		position: relative;
		z-index: 0;

		&:before,
		&:after {
			content: '';
			position: absolute;
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
		}

		&:before {
			background-color: var(--dark-color);
			opacity: 0.3;
			z-index: -2;
		}

		&:after {
			background: linear-gradient(rgb(from var(--dark-color) r g b / 0.0), rgb(from var(--dark-color) r g b / 0.4));
			z-index: -1;
		}

		.header-bg {
			position: absolute;
			/* top: 50%;
			left: 50%; */
			top: 0;
			left: 0;
			width: 100%;
			min-width: 100%;
			display: block;
			margin: 0;
			padding: 0;
			-o-object-fit: cover;
			object-fit: cover;
			opacity: 1;
			animation: heroBGAnimation 1.8s cubic-bezier(.34, .615, .4, .985);
			transition-delay: .1s;
			height: 100svh;
			min-height: 100%;
			z-index: -3;
			/* @media (width >= 768px) {
				top: 0;
				height: 100%;
			} */
			/* picture {
				width: 100%;
				height: 100%;
			} */
			img {
				width: 100%;
				min-height: 100%;
				height: 100vh;
				object-fit: cover;
				object-position: bottom 0% right 24%;
				display: block;
				/* @media (width >= 768px) {
					object-position: top center;
					object-fit: contain;
				} */
				@media (width >= 1024px) {
					object-position: center right;
					/* object-fit: cover; */
				}
			}
		}

		.bgvid {
			position: absolute;
			top: 50%;
			left: 50%;
			min-width: 100%;
			transform: translateX(-50%) translateY(-50%);
			display: block;
			margin: 0;
			padding: 0;
			-o-object-fit: cover;
			object-fit: cover;
			opacity: 1;

			/* Desktop Styles */
			@media (width >= 1024px) {
				height: 100%;
			}
		}

		.header-image {
			position: absolute;
			right: 0;
			bottom: 0;

			img {
				max-width: 100%;
				height: auto;
			}
		}

		.header-content {
			min-height: 100svh;
			z-index: 0;
			&:before {
				background: linear-gradient(rgb(from var(--dark-color) r g b / 0.3), rgb(from var(--dark-color) r g b / 0.0));
				content: '';
				position: absolute;
				left: 0;
				top: 0;
				width: 100%;
				/* height: 280px; */
				height: 100%;
				z-index: -1;
			}

			/* Desktop Styles */
			@media (width >= 1024px) {
				height: 1000px;
			}

			.header-content-wrapper {
				position: relative;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				color: var(--light-color);
				text-align: center;
				padding: 60px 20px 75px;
				@media (width >= 768px) {
					padding: 85px 40px 180px;
				}
				@media (width >= 1024px) {
					justify-content: flex-end;
					padding: var(--nav-desktop) 0 200px;
				}
				h2, .h2 {
					color: var(--light-color);
					font-size: 34px;
					line-height: 1.25em;
					margin-top: 15px;
					margin-bottom: 25px;
					@media (width >= 400px) {
						font-size: 36px;
					}
					@media (width >= 768px) {
						font-size: 70px;
						line-height: 1.07em;
					}
					@media (width >= 1024px) {
						font-size: 100px;
						line-height: 1em;
						margin-bottom: 30px;
					}
					span {
						display: block;
					}
				}
			}
		}

		.site-logo {
			margin-top: 0;
			margin-bottom: 0;
			svg {
				width: 250px;
				height: auto;
				@media (width >= 400px) {
					width: 265px;
				}

				/* Tablet Styles */
				@media (width >= 768px) {
					width: 320px;
				}

				/* Desktop Styles */
				/* @media (width >= 1024px) {
					width: 400px;
				} */
			}
		}

		.tagline {
			font-size: 18px;
			letter-spacing: 0;
			margin-bottom: 25px;
			@media (width >= 768px) {
				font-size: 20px;
			}
			@media (width >= 1024px) {
				font-size: 24px;
				margin-bottom: 50px;
			}
		}

		.skip-arrow {
			margin-top: 20px;

			svg {
				height: 40px;
				width: auto;
				transform: rotate(90deg);
			}
		}
	}

	.header-content {
		position: relative;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	/* MODELS TAG / LOCATION */
	@media (width < 768px) {
		&[data-location="model-left"] {
			background-position: left center;
		}

		&[data-location="model-one-quarter"] {
			background-position: left 20% center;
		}

		&[data-location="model-center"] {
			background-position: center;
		}

		&[data-location="model-three-quarter"] {
			background-position: right 20% center;
		}

		&[data-location="model-right"] {
			background-position: right center;
		}
	}
}

.banner {
	display: none;
	background-color: var(--dark-alt);
	/* border-bottom: 11px solid var(--primary-color); */
	color: var(--light-color);
	align-items: center;
	justify-content: center;
	padding: 10px 20px 12px;
	position: relative;
	z-index: 99;

	/* Tablet Styles */
	@media (width >= 768px) {
		font-size: 16px;
	}

	/* Full Screen Styles */
	@media (width >= 1280px) {
		padding: 10px 40px 12px;
	}

	&.show-banner {
		display: block;

		/* Tablet Styles */
		@media (width >= 768px) {
			display: flex;
		}
	}

	&.banner-sticky {
		border-color: var(--light-color);
		position: sticky;
		top: 0;
		left: 0;

		&.change-state-banner {
			border-color: var(--primary-color);
			position: relative;
		}
	}

	/* &.banner-fixed {
		position: fixed;
		width: 100%;
	} */
	.banner-container {
		font-family: var(--primary-font);
		font-size: 14px;
		line-height: 1.25em;
		font-weight: var(--fw-regular);
		display: block;
		position: relative;
		text-align: center;

		/* Tablet Styles */
		@media (width >= 768px) {
			display: flex;
			align-items: center;
			justify-content: center;
		}

		.icon {
			display: none;

			/* Tablet Styles */
			@media (width >= 768px) {
				display: flex;
			}

			svg {
				width: auto;
				height: 20px;
				margin: 0 15px 0 0;
			}
		}

		.banner-text {
			font-weight: var(--fw-bold);

			span {
				font-weight: var(--fw-regular);

				&:before {
					content: '- ';
				}
			}
		}

		.banner-link.button {
			font-size: 14px;
			line-height: 1em;
			font-weight: var(--fw-semi-bold);
			padding: 5px 10px;
			margin: 10px 0 0;
			text-decoration: none;

			/* Tablet Styles */
			@media (width >= 768px) {
				font-size: 16px;
				margin: 0 0 0 15px;
			}
		}

		.close-banner {
			background: var(--primary-accent);
			border: none;
			border-radius: 50%;
			color: var(--light-color);
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 13px;
			line-height: 1em;
			font-weight: var(--fw-thin);
			width: 25px;
			height: 25px;
			padding: 0;
			position: absolute;
			right: -10px;
			bottom: -10px;
			transform: translateY(50%);
			z-index: 10;

			/* Tablet Styles */
			@media (width >= 768px) {
				right: -50px;
			}

			.close-container {
				position: relative;
				width: 60%;
				height: 60%;

				&:before,
				&:after {
					background-color: var(--light-color);
					content: '';
					position: absolute;
					top: 0;
					left: 50%;
					bottom: 0;
					right: 0;
					width: 1px;
				}

				&:before {
					transform: translateX(-50%) rotate(45deg);
				}

				&:after {
					transform: translateX(-50%) rotate(-45deg);
				}
			}
		}
	}
}

/* Navigation bar */

.nav-bar {
	width: 100%;
	padding: 0 20px;
	top: 0;
	left: 0;
	z-index: 100;
	background-color: transparent;
	box-shadow: 0px 0px 4px rgba(0, 0, 0, 0);
	height: var(--nav-mobile);
	transition: height .3s, background-color .3s;

	/* Tablet Styles */
	@media (width >= 768px) {
		height: var(--nav-tablet);
		padding: 0 40px;
	}

	/* Desktop Styles */
	@media (width >= 1024px) {
		height: var(--nav-desktop);
	}

	/* .logo-mark svg path {
		transition: fill .3s;
	} */

	&.change-state {
		background-color: var(--light-color);
		/* box-shadow: -10px 1px 9px rgba(0, 0, 0, 0.26); */
		box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
		/* .logo-mark {
			opacity: 1;
			pointer-events: all;
		} */
	}

	&.nav-sticky {
		position: sticky;
		/* &.change-state {
			background-color: var(--light-color);
		} */
	}

	&.nav-relative {
		position: relative;

		&.transition-top {
			position: sticky;
			transition: background-color .3s, top .3s;
		}

		&.transition-top.change-state {
			top: 0 !important;
		}

		&.change-state {
			/* background-color: var(--light-color); */
			position: sticky;
		}
	}

	&.nav-absolute {
		position: absolute;

		&.transition-top {
			position: fixed;
			transition: background-color .3s, top .3s;
		}

		&.transition-top.change-state {
			top: 0 !important;
		}

		&.change-state {
			/* background-color: var(--light-color); */
			position: fixed;
		}
	}

	&.nav-fixed {
		position: fixed;
		/* &.change-state {
			background-color: var(--light-color);
		} */
	}
}

.nav-absolute,
.nav-fixed {
	&+.int-header .header-content {
		padding-top: var(--nav-mobile);

		/* Tablet Styles */
		@media (width >= 768px) {
			padding-top: var(--nav-tablet);
		}

		/* Desktop Styles */
		@media (width >= 1024px) {
			padding-top: var(--nav-desktop);
		}
	}
}

.home .nav-bar.nav-fixed:not(.change-state) {
	.header-phone-site-locations .location-each a {
		color: var(--light-color);
		&:hover,
		&:active,
		&:focus {
			color: var(--primary-accent);
		}
	}
	svg path {
		fill: var(--light-color);
	}
}

body {
	.banner.show-banner {
		display: block;

		/* Tablet Styles */
		@media (width >= 768px) {
			display: flex;
		}
	}
}

.menu-buttons {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;

	a {
		color: var(--light-color);
		text-decoration: none;
	}

	span:not(.location-suite):not(.show-icon) {
		font-size: 18px;
		line-height: 1em;
		font-weight: var(--fw-light);
		font-family: var(--secondary-font);
		display: block;
	}

	.menu-trigger {
		display: flex;
		align-items: center;
		margin-left: 20px;
		margin-right: auto;
	}

	.logo-mark {
		display: flex;
		align-items: center;
		height: 75%;
		/* opacity: 0;
		pointer-events: none; */
		transition: opacity .3s;

		a,
		svg {
			height: 100%;
			width: auto;
		}
	}

	.menu-contact {
		display: flex;
		align-items: center;
		height: 100%;

		>* {
			/* margin-right: 10px; */
			margin-right: 5px;

			&:last-of-type {
				margin-right: 0;
			}
		}
	}

	.menu-locations,
	.menu-phone {

		/* Site Locations - Dropdown Toggle and Nav-bar styles */
		.locations-dropdown-toggle {
			color: var(--primary-alt);
			transition: color .3s;
			display: flex;
			align-items: center;

			.show-icon {
				display: flex;
				padding-right: 0;
			}

			&:hover,
			&:active,
			&:focus {
				color: var(--light-color);

				svg path {
					fill: var(--light-color);
				}
			}

			svg path {
				fill: var(--primary-alt);
				transition: .3s fill;
			}
		}

		.header-address-site-locations {
			margin-right: 5px;
		}
	}

	.menu-phone {
		a {
			display: flex;
			align-items: center;
		}
	}
}

/* Site Locations Content Styles */
.header-address-site-locations,
.header-phone-site-locations {
	color: var(--primary-alt);

	/* Dropdown Content Styles */
	&.dropdown-true {
		display: none;
		opacity: 0;
		transition: opacity .3s;
		z-index: 111;

		&.open {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: flex-start;
			position: fixed;
			top: 0;
			bottom: 0;
			left: 0;
			right: 0;
			width: 100%;
			height: 100vh;
			background-color: var(--light-alt);
			opacity: 1;
			overflow-x: scroll;
			padding-top: 20vh;
			text-align: center;

			/* Close button for dropdown */
			.location-close {
				background-color: var(--light-color);
				position: absolute;
				top: 20px;
				font-size: 16px;
				line-height: 1em;
				right: 20px;
				border-radius: 50%;
				width: 30px;
				height: 30px;
				display: flex;
				justify-content: center;
				align-items: center;
				display: flex;

				/* Tablet Styles */
				@media (width >= 768px) {
					top: 40px;
					right: 40px;
				}

				.lc-container {
					position: relative;
					width: 60%;
					height: 60%;

					&:before,
					&:after {
						background-color: var(--dark-alt);
						content: '';
						position: absolute;
						top: 0;
						left: 50%;
						bottom: 0;
						right: 0;
						width: 1px;
					}

					&:before {
						transform: translateX(-50%) rotate(45deg);
					}

					&:after {
						transform: translateX(-50%) rotate(-45deg);
					}
				}
			}

			/* End Close button for dropdown */
			.location-each {
				margin-bottom: 37.5px;

				&:last-of-type {
					margin-bottom: 0;
				}

				a {
					color: var(--primary-alt);

					.show-icon {
						svg {
							path {
								fill: var(--primary-alt);
							}
						}
					}

					&:hover,
					&:active,
					&:focus {
						color: var(--primary-color);

						.show-icon {
							svg {
								path {
									fill: var(--primary-color);
								}
							}
						}
					}
				}

				.show-icon {
					svg {
						width: 30px;
					}
				}

				&>.phone-text,
				&>.sms-text,
				&>.fax-text,
				&>.address-text,
				&>.phone-sms-container {
					margin-bottom: 18.75px;
				}

				&>.phone-text,
				&>.sms-text,
				&>.fax-text,
				&>.phone-sms-container {
					.show-icon {
						padding-right: 20.5px;
					}
				}

				&>.address-text {
					flex-direction: column;

					.location-address-block {
						flex-direction: column;

						.address-street:after {
							content: none;
						}
					}
				}
			}
		}
	}

	/* End Dropdown Content Styles */
	/* Location Content Styles (with and without dropdown) */
	.location-each {
		display: flex;
		flex-direction: column;

		/* &:last-of-type {
			display: none;
		} */
		a {
			color: var(--primary-alt);
			font-weight: var(--fw-medium);
			letter-spacing: 0.03em;
			text-decoration: none;
			@media (width >= 1024px) {
				font-size: 24px;
			}

			.show-icon {
				svg {
					path {
						fill: var(--primary-alt);
						transition: fill .3s;
					}
				}
			}

			&:hover,
			&:active,
			&:focus {
				color: var(--secondary-alt);

				.show-icon {
					svg {
						path {
							fill: var(--secondary-alt);
						}
					}
				}
			}
		}

		.show-icon {
			display: flex;
			padding-right: 10px;

			svg {
				width: 25px;
				height: auto;
			}
		}

		.location-name {
			font-size: 30px;
			padding-top: 0.25em;
			padding-bottom: 0.5em;

			/* Tablet Styles */
			@media (width >= 768px) {
				font-size: 40px;
			}
		}

		&>.phone-text,
		&>.sms-text,
		&>.fax-text,
		&>.address-text,
		&>.phone-sms-container {
			display: flex;
			align-items: center;
			justify-content: center;
			transition: .3s color;
			.show-text {
				@media (width < 1024px) {
				display: none;
				}
			}
		}

		&>.phone-sms-container {
			.sms-option:after {
				content: '\00a0';
			}
		}

		&>.address-text {
			.location-address-block {
				display: flex;

				.show-icon {
					padding-right: 0;
				}

				.address-street:after {
					content: ',\00a0';
				}
			}
		}

		&>.hours-text {
			.location-hours-block {
				display: flex;
				justify-content: center;

				.hours-day:after {
					content: '\00a0';
				}
			}
		}
	}

	/* End Location Content Styles */
}

.header-phone-site-locations .location-each .show-icon {
	@media (width < 1024px) {
		padding-right: 0;
	}
}

/* Ipad Pro */

/* .is--device {
	.menu-buttons {
		@media (width >= 1024px) {
			display: block;
		}
	}
} */


/*-------------- Logo Area -------------*/

/* Keep outline phone/fax icons from clipping at the bottom (basebuild fix K) */
.location-each .show-icon svg {
	overflow: visible;
}
