/* #region @keyframes */
@keyframes slideShow {

	0%,
	16.67% {
		opacity: 1;
	}

	20.83%,
	100% {
		opacity: 0;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		translate: 0 -50px;
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

@keyframes slideLeft {
	from {
		opacity: 0;
		translate: 100px;
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

/* #endregion */
/* #region @prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-delay: 0s !important;
		animation-duration: 0s !important;
		scroll-behavior: auto !important;
		transition-delay: 0s !important;
		transition-duration: 0s !important;
	}

	/* For hero background video */
	video[autoplay] {
		display: none !important;
	}

	.hero {
		background: linear-gradient(to bottom, var(--blue700-70), var(--blue700-50)), url("https://ripcord.sirv.com/Solamere/poster.jpg") center/cover no-repeat !important;
	}
}

/* #endregion */
/* #region Elements */
* {
	box-sizing: border-box;
}

a {
	color: var(--blue300);
	display: inline-block;
	text-decoration: none;
	transition: var(--transition);

	&:hover {
		color: var(--blue300);
	}
}

body {
	background-color: whitesmoke;
	color: var(--blue700);
	font-family: var(--font-sans);
	line-height: 1.6;
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

h1, h2, h3, h4 {
	margin: 0;
	padding: 0;
}

hr {
	border: 0;
	border-top: var(--px01) dotted var(--blue700-50);
	margin-block: var(--px48);
}

html {
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
}

img {
	display: block;
	max-width: 100%;
}

li {
	margin-bottom: var(--px08);
	padding-left: var(--px08);
}

p {
	margin-block: 0 var(--px24);
	text-wrap: pretty;
}

ul {
	margin: var(--px16) 0 var(--px48) -1rem;
}

/* #endregion */
/* #region Global */
.btn {
	color: white;
	background-color: var(--blue500);
	border-radius: var(--radius);
	font-size: var(--fz14);
	font-weight: 500;
	margin-top: var(--px32);
	padding: 1.2em 2.4em;
	letter-spacing: var(--px02);
	text-decoration: none;
	text-transform: uppercase;
	transition: all .2s;

	&:hover {
		background-color: var(--blue300);
		color: white;
	}
}

.content {
	margin-inline: auto;
	width: min(85%, 1200px);
}

.modal {
	--modal-padding: min(var(--px48), 10%);
	background-color: var(--blue700-70);
	height: 100%;
	left: 0;
	opacity: 0;
	overflow: auto;
	position: fixed;
	top: 0;
	transition: opacity .5s, visibility 0s linear .5s;
	visibility: hidden;
	width: 100%;
	z-index: 10;

	&.visible {
		opacity: 1;
		transition: opacity .5s, visibility 0s linear 0s;
		visibility: visible;
	}
}

.modal-close {
	background-color: white;
	border: var(--px02) solid currentColor;
	border-radius: var(--radius);
	float: right;
	font-size: var(--fz32);
	font-weight: 500;
	line-height: 1;
	margin: 0 0 var(--px32) var(--px32);
	padding: 0 .2rem;
	position: absolute;
	right: var(--px16);
	top: var(--px16);
	transition: var(--transition);
	z-index: 10;

	&:hover,
	&:focus {
		background-color: var(--blue500);
		border-color: var(--blue500);
		color: white;
		cursor: pointer;
	}
}

.modal-content {
	background: white;
	background-image: linear-gradient(to bottom, var(--white-30), white 250px), url("https://ripcord.sirv.com/Solamere/iStock-1213884087.jpg");
	background-position: 0 0;
	background-repeat: no-repeat;
	background-size: 100%;
	border: var(--px03) solid var(--blue300);
	border-radius: .6rem;
	box-shadow: 0 0 var(--px10) var(--blue700-50);
	margin: 10% auto;
	padding: var(--modal-padding);
	position: relative;
	text-transform: none;
	width: min(700px, 90%);

	a {
		display: block;
		width: max-content;

		@media (width < 600px) {
			width: auto;
			word-break: break-all;
		}
	}

	> div:not(.modal-close) {
		font-size: var(--fz14);
		font-weight: 700;
		letter-spacing: var(--px01);
		line-height: 1.2;
		margin: 0 auto var(--px32);
		max-width: 45ch;
		text-align: center;
		text-transform: uppercase;
		text-wrap: pretty;
	}

	h2 {
		font-size: var(--fz24) !important;
		font-weight: 700;
		margin-block: 0 !important;
		text-align: center;
		text-transform: uppercase;
	}

	p {
		font-size: var(--fz16);

		@media (width < 600px) {
			font-size: var(--fz14);
		}
	}
}

.modal-grid {
	--col-min-width: clamp(200px, 30vw, 300px);
	display: grid;
	gap: var(--px24);
	grid-template-columns: repeat(auto-fill, minmax(var(--col-min-width), 1fr));
	margin-block: var(--px32) var(--px64);
	text-transform: uppercase;

	a {
		background: white;
		border-radius: var(--radius);
		box-shadow: var(--px02) var(--px02) var(--px02) var(--px02) var(--blue050);
		color: var(--blue700);
		display: block;
		font-size: var(--fz12);
		letter-spacing: var(--px01);
		line-height: 1.3;
		min-height: 120px;
		padding: var(--px16);
		text-align: center;
		transition: var(--transition);

		&:hover {
			background-color: var(--blue500);
			color: white;
			translate: 0 -4px;

			h2 {
				color: white;
			}
		}

		div {
			text-wrap: pretty;
		}

		h2 {
			font-size: var(--fz18);
			font-weight: 700;
			letter-spacing: var(--px01);
			margin: var(--px08);
			transition: var(--transition);
		}
	}
}

.modal-trigger {
	cursor: pointer;
}

/* #endregion */
/* #region Nav */
.nav-contain {
	justify-self: end;
}

.nav-grid {
	column-gap: 3em;
	display: grid;
	grid-auto-flow: column;
	text-transform: uppercase;
	white-space: nowrap;

	@media (width < 1200px) {
		align-content: start;
		background-color: var(--blue700-90);
		font-size: var(--fz16);
		grid-auto-flow: row;
		height: 100vh;
		justify-content: center;
		left: 0;
		padding-top: var(--px64);
		position: absolute;
		row-gap: 1em;
		top: 0;
		translate: 0 -100vh;
		transition: var(--transition);
		width: 100vw;
	}

	a {
		color: var(--blue100);
		letter-spacing: var(--px02);
		text-decoration: none;
		text-shadow: var(--px01) var(--px01) var(--px04) var(--blue700);
		text-transform: uppercase;
		white-space: nowrap;

		@media (width < 1200px) {
			color: white;
			font-size: var(--fz18);
		}

		&:hover {
			color: white;
		}
	}
}

.nav-icon {
	@media (width < 1200px) {
		display: block;
		position: relative;
		transition: all 1s;
	}
}

.nav-icon-box {
	display: none;

	@media (width < 1200px) {
		display: block;
		padding: 1em .5em;
	}
}

.nav-open {
	.nav-grid {
		@media (width < 1200px) {
			translate: 0;
			transition: var(--transition);
		}
	}

	.nav-icon {
		@media (width < 1200px) {
			background-color: transparent;
			rotate: 360deg;
			transition: all 1s;
		}
	}

	.nav-icon-box {
		@media (width < 1200px) {
			position: relative;
			z-index: 10;
		}
	}
}

@media (width < 1200px) {

	.nav-icon,
	.nav-icon::after,
	.nav-icon::before {
		background-color: white;
		height: var(--px03);
		width: var(--px20);
	}

	.nav-icon::after,
	.nav-icon::before {
		content: '';
		position: absolute;
	}

	.nav-icon::after {
		top: var(--px06);
	}

	.nav-icon::before {
		bottom: var(--px06);
	}

	.nav-open .nav-icon::after,
	.nav-open .nav-icon::before {
		top: 0;
	}

	.nav-open .nav-icon::after {
		rotate: -45deg;
	}

	.nav-open .nav-icon::before {
		rotate: 45deg;
	}
}

/* #endregion */
/* #region Header */
.header {
	padding-block: var(--px24);
	position: fixed;
	width: 100%;
	z-index: 10;

	&.scrolled {
		background-color: var(--blue700);
	}
}

.header-grid {
	align-items: center;
	display: grid;
	grid-template-columns: auto 1fr;

	.logo {
		transition: var(--transition);
		width: calc(170px + 4vw);

		@media (width < 600px) {
			width: 120px;
		}

		&.scrolled {
			width: 200px;
		}
	}
}

.header-sub {
	background-color: var(--blue700);
}

/* #endregion */
/* #region Footer */
.footer {
	background: whitesmoke;
	padding: var(--px64) 0;
	text-align: center;

	i {
		font-size: var(--fz24);
	}

	p {
		font-size: var(--fz14);
		font-weight: 500;
		text-transform: uppercase;
	}
}

/* #endregion */
/* #region Hero */
.hero {
	background: linear-gradient(to bottom, var(--blue700), var(--blue700-30));
	color: white;
	min-height: 100vh;
	padding-block: 30vh;
	text-align: center;

	h1 {
		animation: slideDown 1.2s ease-out both;
		font-family: var(--font-serif);
		font-size: var(--fz72);
		font-weight: 400;
		letter-spacing: -1px;
		line-height: 1.1;
		margin: 0 auto var(--px16);
		max-width: 22ch;
	}

	p {
		animation: slideLeft 1.2s ease-out 1s both;
		font-size: var(--fz24);
		margin: 0 auto var(--px32);
		max-width: 40ch;
	}

	.btn {
		animation: fadeIn 1s ease-in-out 2s both;
	}

	.video {
		height: auto;
		left: 50%;
		min-height: 100%;
		min-width: 100%;
		position: fixed;
		top: 0;
		translate: -50%;
		width: auto;
		z-index: -10;
	}
}

/* #endregion */
/* #region Home */
.home {
	color: white;
	padding: 12vh 0;
	text-align: center;

	h2 {
		font-family: var(--font-serif);
		font-size: var(--fz36);
		font-weight: 400;
		margin-bottom: var(--px16);
	}
}

.home-cta {
	background: linear-gradient(to bottom, var(--blue700-30), var(--blue700-90)), url("https://ripcord.sirv.com/Solamere/solamere-deer-valley.jpg?ch=1500") center top/cover no-repeat fixed;

	@media (width < 1200px) {
		background-attachment: scroll;
	}
}

.home-strategic {
	background: linear-gradient(to right, var(--blue700), var(--blue300) 50%, var(--blue300-70), transparent), url("https://ripcord.sirv.com/Solamere/iStock-965962418.jpg") center/cover no-repeat fixed;

	@media (width < 1200px) {
		background-attachment: scroll;
	}

	p {
		font-size: var(--fz20);
		margin-inline: auto;
		max-width: 45ch;
		text-wrap: pretty;
	}
}

/* #endregion */
/* #region Home-Slideshow */
.home-slideshow-grid {
	background-color: white;
	display: grid;
	grid-template-columns: 1fr 1fr;

	@media (width < 1200px) {
		grid-template-columns: auto;
		grid-template-rows: auto;
	}

	img {
		animation: slideShow 24s ease infinite;
		grid-area: 1/2;
		height: 100%;
		object-fit: cover;

		@media (width < 1200px) {
			grid-area: 2/1;
		}

		&:nth-of-type(1) {
			animation-delay: 20s;
		}

		&:nth-of-type(2) {
			animation-delay: 16s;
		}

		&:nth-of-type(3) {
			animation-delay: 12s;
		}

		&:nth-of-type(4) {
			animation-delay: 8s;
		}

		&:nth-of-type(5) {
			animation-delay: 4s;
		}

		&:nth-of-type(6) {
			animation-delay: 0s;
		}
	}
}

.home-slideshow-text {
	background: linear-gradient(to right, var(--blue100), white);
	color: var(--blue700);
	padding: var(--px80) 10%;

	p {
		margin-inline: auto;
		max-width: 50ch;
	}
}

/* #endregion */
/* #region Sub */
.sub {
	--sub-grad: linear-gradient(to right, var(--blue300-70), var(--blue300-70));
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	padding-block: 12rem;

	@media (width < 1200px) {
		background-attachment: scroll;
	}

	@media (width < 600px) {
		padding-block: var(--px128);
	}

	h1 {
		border-bottom: var(--px01) dotted var(--blue700-50);
		font-size: var(--fz28);
		font-weight: 700;
		letter-spacing: var(--px02);
		line-height: 1.2;
		margin-bottom: 1em;
		padding-bottom: .75em;
		text-transform: uppercase;
	}

	h2 {
		font-size: var(--fz18);
		font-weight: 700;
		letter-spacing: var(--px02);
		margin-block: 2em .5em;
		text-transform: uppercase;
	}

	p a {
		text-decoration: underline;
	}

	.content {
		background-color: var(--white-90);
		border-radius: var(--radius-lg);
		padding: min(10vw, 5rem);
	}
}

/* #endregion */
/* #region Sub-About */
.sub-about {
	background-image: var(--sub-grad), url("https://ripcord.sirv.com/Solamere/iStock-1019588852.jpg");
}

.sub-about-sector-flex {
	display: flex;
	flex-wrap: wrap;
	gap: var(--px48);
	justify-content: center;
	margin-top: var(--px48);
	list-style: none;
	padding: 0;

	i {
		font-size: var(--fz32);
		margin-bottom: .7rem;
	}

	li {
		flex: 1 1 150px;
		font-size: var(--fz12);
		font-weight: 600;
		letter-spacing: var(--px01);
		line-height: 1.3;
		max-width: 15ch;
		text-align: center;
		text-transform: uppercase;
		margin-bottom: 0;
		padding-left: 0;
	}

	span {
		display: block;
	}
}

/* #endregion */
/* #region Sub-Contact */
.sub-contact {
	background-image: var(--sub-grad), url("https://ripcord.sirv.com/Solamere/AdobeStock_197244157.jpeg");
}

.sub-contact-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--px64);

	& > * {
		flex: 1 400px;
	}
}

.sub-contact-form {
	h2 {
		margin-top: 0;
	}
}

.sub-contact-links {
	.sub-contact-link {
		margin-bottom: var(--px48);

		h2 {
			margin-top: 0;
		}
	}
}

/* #endregion */
/* #region Sub-Network */
.sub-network {
	background-image: var(--sub-grad), url("https://ripcord.sirv.com/Solamere/iStock-528725311.jpg");
}

/* #endregion */
/* #region Sub-Team */
.sub-team {
	background-image: var(--sub-grad), url("https://ripcord.sirv.com/Solamere/shutterstock_2202855891.jpg");
}

/* #endregion */