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

@keyframes reveal {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (width < 768px) {
	@keyframes grow {
		0% { transform: scale(1) translateY(0px); }
		50% { transform: scale(1.1) translateY(-5px); } /* Smaller scale for mobile */
		100% { transform: scale(1) translateY(0px); }
	}
}

@media (width >= 768px) {
	@keyframes grow{
	  0% { transform: scale(1) translateY(0px)}
	  50% { transform: scale(1.2) translateY(-10px)}
	  100% { transform: scale(1) translateY(0); }
	}
}

@keyframes customFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes customFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 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-color);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	&:after {
		content: "";
		width: 100%;
		position: absolute;
		top: 0;
		left: 0;
		background-image: linear-gradient(0deg, rgb(from var(--primary-color) r g b / 0) 0%, rgb(from var(--primary-color) r g b / 0.9) 90%, var(--primary-color) 100%);
		opacity: 0.9;
		background-blend-mode: multiply;
		z-index: 0;
		height: 26%;
		@media (width >= 1024px) {
			height: 36%;
		}
	}

	&.int-header {
		padding: 0;

		.header-content {
			min-height: 50vw;
			position: relative;
			@media (width >= 768px) {
				min-height: 40vw;
			}
			/* Desktop Styles */
			@media (width >= 1024px) {
				min-height: 24vw;
			}

			&:before {
				content: "";
				width: 100%;
				height: 100%;
				position: absolute;
				background-image: linear-gradient(180deg, rgb(from var(--primary-color) r g b / 0) 0%, rgb(from var(--primary-color) r g b / 0.9) 100%);
				background-blend-mode: multiply;
				opacity: 0.8;
				top: 0;
				left: 0;
			}
			> div {
				position: relative;
			}
		}

		.site-logo {
			a {
				display: flex;

				svg {
					width: 200px;
					height: auto;
					@media (width >= 768px) {
						width: 300px;
					}
					@media (width >= 1024px) {
						width: 487px;
					}
				}
			}
		}
	}

	&.front-header {
		/* background-image: url('/wp-content/themes/rm-basetheme/images/bg-home-header.jpg'); */
		background-repeat: no-repeat;
		background-size: cover;
		background-position: center;
		display: flex;
		flex-direction: column;
		background-color: var(--primary-color);
		&:before {
			content: "";
			width: 100%;
			height: 100%;
			position: absolute;
			background-image: linear-gradient(180deg, 
			rgb(from var(--primary-color) r g b / 0) 0%, 
			rgb(from var(--primary-color) r g b / 0.9) 90%,
			var(--primary-color) 100%);
			background-blend-mode: multiply;
			opacity: 0.9;
			top: 0;
			left: 0;
		}

		.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-carousel {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			opacity: 1;
			z-index: 0;
			.owl-stage-outer, 
			.owl-stage {
				height: 100%;
			}

			.owl-item {
				overflow: hidden;
				height: 105%;
				&.active {
					img {
						/* animation: grow 60s ease-in-out infinite alternate; */
					}
				}
			}

			.owl-animated-out {
				z-index: 2;
			}
			.owl-animated-in {
				z-index: 1;
			}
			.customSlideOut {
				animation: customFadeOut 1.5s ease-in-out forwards;
			}
			.customSlideIn {
				animation: customFadeIn 1.5s ease-in-out forwards;
			}


			img {
				width: 100%;
				height: 100%;
				object-fit: cover;
				object-position: center;
				transform-origin: bottom center;
				will-change: transform;
				animation: grow 15s ease-in-out infinite alternate;
			}
		}

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

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

		.header-content {
			min-height: 500px;
			height: 100vh;
			position: relative;
			color: var(--light-color);
			z-index: 1;
			padding: 40px 20px;
			@media (width >= 768px) {
				padding: 60px 40px;
				min-height: 100vh;
				height: auto;
			}
			/* Desktop Styles */
			@media (width >= 1024px) {
				padding-top: 90px;
				padding-bottom: 90px;
				height: 695px;
			}

			&:before {
				content: "";
				width: 100%;
				height: 100%;
				position: absolute;
				background-image: linear-gradient(180deg, rgb(from var(--primary-color) r g b / 0) 0%, rgb(from var(--primary-color) r g b / 0.9) 90%, var(--primary-color) 100%);
				/* linear-gradient(180deg, rgba(75, 75, 75, 0.00) 0%, rgba(75, 75, 75, 0.90) 90%, #4B4B4B 100%);*/
				background-blend-mode: multiply;
				opacity: 0.9;
				top: 0;
				left: 0;
			}

			.header-content-wrapper {
				position: relative;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				flex-grow: 1;
				flex-basis: 0;
			}
		}

		h2 {
			font-size: 38px;
			line-height: 1.1em;
			color: var(--light-color);
			text-align: center;
			max-width: 100%;
			margin-top: 0;
			text-shadow: 0 2.156px 2.156px rgba(0, 0, 0, 0.25);
			letter-spacing: 0.01em;
			@media (width >= 768px) {
				font-size: 42px;
				line-height: 1.048em;
			}
			@media (width >= 1024px) {
				font-size: 48px;
				line-height: 1.042em;
			}
			span {
				@media (width >= 768px) {
					display: block;
				}
			}
		}

		.site-logo {
			margin-bottom: 35px;
			@media (width >= 768px) {
				margin-bottom: 40px;
			}
			@media (width >= 1024px) {
				margin-bottom: 50px;
			}
			a {
				display: flex;
			}
			svg {
				width: 330px;
				height: auto;
				/* aspect-ratio: 700 / 300; */

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

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

			
		}

		#female, #taylor, #plastic, #skin {
			opacity:0;
			animation: reveal 2s;
			animation-fill-mode: forwards;
		}

		#female {animation-delay:.75s;}
		#taylor {animation-delay:1s;}
		#plastic {animation-delay:1.5s;}
		#skin {animation-delay:2s;}
		/* h2 {animation-delay:2.5s;} */

		.skip-arrow {
			margin-top: 20px;
			position: relative;
			cursor: pointer;
			svg {
				width: 24px;
				height: auto;
				/* transform: rotate(90deg); */
				@media (width >= 768px) {
					width: 32px;
				}
				@media (width >= 1024px) {
					width: 37px;
				}
			}
			&:hover {
				svg {
					path {
						fill: var(--primary-alt);
						transition: all 0.3s;
					}
				}
			}
		}
	}

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

.show-banner + .nav-bar + .site-header.front-header {
	.header-content {
		/* height: calc(100vh - 170px); */
		height: 100vh;
		@media (width >= 768px) {
			height: auto;
			min-height: calc(100vh - 146px);
		}
		@media (width >= 1024px) {
			min-height: calc(100vh - 83px);
		}
	}
}

.banner {
	display: none;
	background-color: var(--primary-highlight);
	/* border-bottom: 11px solid var(--primary-color); */
	color: var(--primary-accent);
	text-transform: uppercase;
	align-items: center;
	justify-content: center;
	padding: 35px 10px;
	position: relative;
	z-index: 99;
	background-image: url('/wp-content/themes/rm-basetheme/images/bg-top-banner.jpg');
	background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: center;
	
	/* Tablet Styles */
	@media (width >= 768px) {
		font-size: 16px;
		padding: 35px 20px;
	}

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

	&.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: 19px;
		line-height: 1.25em;
		font-weight: var(--fw-bold);
		display: block;
		position: relative;
		text-align: center;

		/* Tablet Styles */
		@media (width >= 1024px) {
			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-semi-bold);
				color: var(--primary-alt);
				@media (width < 768px) {
					display: block;
				}
				/* &:before {
					content: '- ';
				} */
			}
		}

		.banner-link.button {
			font-size: 18px;
			line-height: 1em;
			font-weight: var(--fw-semi-bold);
			padding: 12px 10px;
			margin: 10px 0 0;
			border-radius: 0;
			text-decoration: none;
			background-color: var(--primary-accent);
			/* Tablet Styles */
			@media (width >= 1024px) {
				font-size: 19px;
				margin: 0 0 0 15px;
			}
			&:hover {
				background-color: rgb(from var(--primary-accent) r g b / 0.75);
			}
		}

		.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 15px;
	top: 0;
	left: 0;
	z-index: 100;
	/* background-color: var(--primary-color); */
	height: var(--nav-mobile);
	transition: height .3s, background-color .3s;
	position: relative;

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

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

	&:not(.change-state) {
		@media (width >= 768px) {
			height: 70px;
		}
	}

	&.change-state {
		background-color: var(--light-color);
		.menu-trigger {
			.nav-hamburger {
				opacity: 1;
				span {
					background: var(--secondary-color);
				}
			}
			.menu-button-text {
				color: var(--primary-color);
			}
			&:hover {
				.nav-hamburger {
					span {
						background: var(--tertiary-color);
					}
				}
				.menu-button-text {
					color: var(--tertiary-color);
				}
			}
		}

		.secondary-nav, .quick-links {
			div {
				border-color: rgb(from var(--secondary-color) r g b / 0.2);
			}
			.button { 
				color: var(--primary-color);
				&:hover {
					color: var(--tertiary-color);
				}
			}
		}

		.logo-mark {
			@media (width >= 768px) {
				opacity: 1;
				pointer-events: all;
			}
		}

		.menu-buttons {
			.menu-locations,
			.menu-phone {
				.locations-dropdown-toggle {
					color: var(--secondary-color);
				}
				svg path {
					fill: var(--secondary-color);
				}
			}
		}
		.header-address-site-locations,
		.header-phone-site-locations {
			.location-each {
				a {
					color: var(--primary-color);

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

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

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


	}

	&.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;
		/* banner */
		top: 169.5px;
		@media (width >= 768px) {
			top: 145.75px;
		}
		@media (width >= 1024px) {
			top: 113px;
		}
		@media (width >= 1280px) {
			top: 83px;
		}
		&.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;
			top: 0;
		}
	}

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

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

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

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

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: 16px;
		line-height: 1em;
		font-weight: var(--fw-medium);
		font-family: var(--secondary-font);
		display: block;
		color: var(--light-color);
		letter-spacing: 0.06em;
	}

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

	.logo-mark {
		display: flex;
		align-items: center;
		height: 75%;
		/* opacity: 0;
		pointer-events: none; */
		transition: opacity .3s;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		opacity: 0;
		a,
		svg {
			height: 100%;
			width: auto;
			path {
				fill: var(--primary-color);
			}
		}
	}

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

		>* {
			margin-right: 15px;

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

	.menu-locations,
	.menu-phone {

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

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

			&:hover,
			&:active,
			&:focus {
				color: rgb(from var(--light-color) r g b / 0.5);
				svg path {
					fill: rgb(from var(--light-color) r g b / 0.5);
				}
			}

			svg path {
				fill: var(--light-color);
				transition: .3s fill;
			}
		}

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

		.phone-icon {
			@media (width >= 1024px) {
				margin-right: 15px;
			}
		}
	}

	.menu-phone {
		a {
			display: flex;
			align-items: center;
			font-size: 16px;
			line-height: 1em;
			font-weight: var(--fw-medium);
			letter-spacing: 0.06em;
		}
		.show-text {
			@media (width < 1024px) {
				display: none;
			}
		}
	}
}

.secondary-nav {
	justify-content: flex-start;
	flex-grow: 1;
	flex-basis: 0;
	margin-left: 10px;
	margin-right: 10px;
	@media (width >= 768px) {
		margin-left: 15px;
		margin-right: 15px;
	}
	> div {
		border-left: 1px solid rgb(from var(--light-color) r g b / 0.2);
		&:last-of-type {
			@media (width < 1024px) {
				display: none;
			}
		}
	}
}

.quick-links {
	justify-content: flex-end;
	> div {
		border-right: 1px solid rgb(from var(--light-color) r g b / 0.2);
	}
}

.secondary-nav, .quick-links {
	display: flex;
	align-items: center;
	.button { 
		margin-top: 0;
		border: none;
		padding: 5px 15px;
		background-color: transparent;
		width: fit-content;
		max-width: 100px;
		text-align: left;
		margin: 0;
		color: var(--light-color);
		min-height: 39px;
		display: flex;
		align-items: center;
		/* display: none; */
		@media (width >= 768px) { 
			max-width: fit-content;
			padding: 5px 20px;
		}
		&:hover {
			color: rgb(from var(--light-color) r g b / 0.5);
		}
	}
	.icon {
		margin-right: 0;
		display: flex;
		@media (width >= 1024px) {
			margin-right: 10px;
		}
		svg {
			width: auto;
			height: 27px;
		}
	}
}

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

	/* 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: auto;
						height: 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(--light-color);
			text-decoration: none;

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

			&:hover,
			&:active,
			&:focus {
				color: rgb(from var(--light-color) r g b / 0.5);

				.show-icon {
					svg {
						path {
							fill: rgb(from var(--light-color) r g b / 0.5);
						}
					}
				}
			}
		}

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

			svg {
				/* width: 25px; */
				/* height: auto; */
				width: auto;
				height: 30px;
			}
		}

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

		&>.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 */
}

/* Ipad Pro */

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


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