/* #region @import */
@import url("/assets/variables.css");

/* #endregion */
/* #region @keyframes */
@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes slideIn {
	from {
		opacity: 0;
		translate: -3rem 0;
	}

	to {
		opacity: 1;
		translate: 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(--blue900-70), var(--blue900-50)), url("https://ripcord.sirv.com/Lloyd/poster-hero.jpg") center/cover no-repeat !important;
	} */
}

/* #endregion */
/* #region Elements */
* {
	box-sizing: border-box;
	line-height: 1.2;
	margin: 0;
	padding: 0;
}

a {
	color: var(--yellow600);
	display: inline-block;
	font-size: var(--fz18);
	text-decoration: none;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	transition: var(--transition);

	&:hover {
		text-decoration: underline;
	}
}

body {
	background-color: var(--blue900);
	color: var(--blue500);
	font-family: var(--font-sans);
}

button {
	background: none;
	border: none;
	color: var(--red500);
	cursor: pointer;
}

h1, h2, h3, h4 {
	text-wrap: pretty;
}

hr {
	border: 0;
	border-top: 1px dotted var(--blue200);
	margin-block: 3rem;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 8rem;
	scrollbar-gutter: stable;

	@media (width < 500px) {
		scroll-padding-top: 14rem;
	}
}

iframe {
	width: min(100%, 600px) !important;
}

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

li {
	font-size: var(--fz18);
	line-height: 1.3;
	margin-bottom: .5rem;

	&:last-of-type {
		margin-bottom: 1rem;
	}
}

p {
	font-size: var(--fz18);
	line-height: 1.5;
	margin-bottom: 1.2rem;
	text-wrap: pretty;
}

ul {
	margin-left: 1em;
}

/* #endregion */
/* #region Global */
.btn {
	background-color: var(--yellow400);
	border-radius: var(--radius);
	color: var(--blue500);
	display: block;
	font-size: var(--fz16);
	font-weight: 600;
	letter-spacing: 2px;
	margin-inline: auto;
	padding: 1em 1.4em;
	position: relative;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: var(--transition);
	white-space: nowrap;
	width: fit-content;

	&::after {
		content: '→';
		display: inline-block;
		max-width: 0;
		opacity: 0;
		transition: var(--transition);
		white-space: nowrap;
		margin-left: 0;
	}

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

		&::after {
			max-width: 1.5em;
			/* enough room for the arrow */
			margin-left: 0.5em;
			opacity: 1;
		}
	}
}

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

.cta {
	background: var(--blue300) url("https://ripcord.sirv.com/Lloyd/logo-white.png?w=400&opacity=5") 80% -50px no-repeat;
	color: white;
	padding-block: 4rem 5rem;
	text-align: center;

	h2 {
		font-family: var(--font-serif);
		font-size: var(--fz36);
		font-weight: 700;
		margin-bottom: .5rem;
	}

	p {
		font-size: var(--fz20);
		margin: auto auto 2rem;
		max-width: 30rem;
	}
}

.skip {
	background-color: black;
	color: white;
	left: 1rem;
	padding: .5rem 1rem;
	position: absolute;
	text-decoration: none;
	top: -100%;
	z-index: 100;

	&:focus {
		top: 1rem;
	}
}

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

/* #endregion */
/* #region Nav */
.nav-grid {
	display: grid;
	gap: 1rem 1.5rem;
	grid-template-columns: repeat(4, auto);
	justify-self: end;

	@media (width < 1000px) {
		justify-self: center;
	}

	@media (width < 800px) {
		grid-template-columns: auto auto;
		text-align: center;
	}

	a {
		border: 2px solid transparent;
		border-radius: var(--radius);
		color: white;
		font-size: var(--fz18);
		font-weight: 600;
		letter-spacing: 3px;
		line-height: 1;
		padding: .7rem 1rem;
		text-decoration: none;
		text-transform: uppercase;
		transition: var(--transition);

		@media (width < 700px) {
			padding: .3rem;
		}

		&:hover {
			border-color: var(--yellow400);
			color: var(--yellow400);
		}
	}
}

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

	@media (width < 1000px) {
		background-color: var(--blue800);
	}

	&.home {
		background-color: transparent;

		@media (width < 1000px) {
			background-color: var(--blue800);
		}

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

	&.scrolled {
		backdrop-filter: blur(4px);
	}
}

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

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

	.logo {
		margin-inline: auto;
		transition: var(--transition);
		width: 100px;

		@media (width < 1000px) {
			margin-bottom: .8rem;
			width: 60px;
		}

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

/* #endregion */
/* #region Footer */
.footer {
	background: linear-gradient(var(--blue950), var(--blue900));
	color: var(--blue100);
	padding-block: 6rem;

	a {
		color: var(--blue300);

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

.footer-grid {
	display: grid;
	gap: 2rem 10vw;
	grid-template-columns: max-content auto;

	@media (width < 900px) {
		grid-template-columns: 1fr;
		text-align: center;
	}

	i {
		font-size: var(--fz24);
		margin-right: .8rem;
	}

	p {
		font-size: var(--fz16);
		white-space: nowrap;
	}
}

.footer-links {
	a {
		display: block;
		margin-bottom: .8rem;
		width: fit-content;

		@media (width < 900px) {
			margin-inline: auto;
		}
	}

	h2 {
		font-size: var(--fz20);
		font-weight: 500;
		margin-bottom: 1rem;
	}
}

/* #endregion */
/* #region Hero */
.eyebrow {
	animation: var(--hero-text-animation);
	color: var(--yellow500);
	display: inline-block;
	font-size: var(--fz28);
	font-weight: 700;
	letter-spacing: .3em;
	margin-bottom: 2rem;
	text-transform: uppercase;

	@media (width < 500px) {
		font-size: var(--fz16);
	}
}

.hero {
	--hero-text-animation: 1s fadeIn ease-in both;
	background: linear-gradient(to bottom, var(--blue900-70), var(--blue900-50));
	color: white;
	padding-block: 25vh 50vh;
	text-align: center;

	@media (width < 1000px) {
		padding-top: 30vh;
	}

	h1 {
		animation: var(--hero-text-animation);
		animation-delay: 1s;
		font-size: var(--fz60);
		line-height: 1;
		margin-bottom: 1rem;
	}

	p {
		animation: var(--hero-text-animation);
		animation-delay: 1s;
		font-size: var(--fz24);
		line-height: 1.4;
		margin: 0 auto 4rem;
		max-width: 50ch;
	}

	.btn {
		animation: var(--hero-text-animation);
		animation-delay: 2s;

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

/* #endregion */
/* #region Home-Services */
.home-services {
	background: linear-gradient(var(--white-70), var(--white-90)), url("https://ripcord.sirv.com/Lloyd/shutterstock_2350918925.jpg") top white;
	padding-block: 6rem 10rem;

	h2 {
		font-size: var(--fz32);
		letter-spacing: 5px;
		margin-bottom: 1rem;
		text-align: center;
		text-transform: uppercase;

		+ p {
			font-size: var(--fz20);
			font-weight: 500;
			margin: auto auto 2rem;
			max-width: 65ch;
			text-align: center;
		}
	}
}

.home-services-grid {
	--image-height: 300px;
	display: grid;
	gap: 6rem;
	grid-template-columns: 1fr 1fr;
	margin: 6rem auto auto;
	width: 90%;

	@media (width < 1000px) {
		grid-template-columns: auto;
		gap: 2rem 0;
	}

	a:has(img) {
		border-radius: var(--radius-lg);
		height: var(--image-height);
		overflow: hidden;

		@media (width < 1000px) {
			&:nth-of-type(1) {
				grid-row: 1;
			}

			&:nth-of-type(2) {
				grid-row: 3;
			}

			&:nth-of-type(3) {
				grid-row: 5;
			}

			&:nth-of-type(4) {
				grid-row: 7;
			}
		}
	}

	img {
		height: var(--image-height);
		object-fit: cover;
		transition: var(--transition);
		width: 100%;

		&:hover {
			scale: 1.05;
		}
	}

	.text {
		@media (width < 1000px) {
			margin-bottom: 2rem;
		}

		a {
			font-size: var(--fz14);
			font-weight: 600;
			letter-spacing: 2px;
			text-transform: uppercase;
			text-decoration-thickness: 2px;
		}

		h3 {
			font-size: var(--fz32);
			margin-bottom: .4rem;
		}

		h4 {
			font-size: var(--fz20);
			font-weight: 600;
			margin-bottom: .5rem;
		}
	}
}

/* #endregion */
/* #region Home-About */
.home-about {
	background: linear-gradient(var(--blue900-70), var(--blue900-70)), url("https://ripcord.sirv.com/Lloyd/map.jpg") 100% center / auto no-repeat fixed;
	color: white;
	padding-block: 8rem;

	@media (width < 1400px) {
		background-attachment: scroll;
		background-position: center;
		background-size: cover;
	}

	a {
		color: var(--yellow500);
		display: block;
		font-size: var(--fz20);
		font-weight: 500;
		margin: 3rem auto 0;
		text-align: center;
		width: fit-content;
	}

	p {
		color: var(--blue100);
		font-size: var(--fz28);
		margin: 0 auto;
		max-width: 50ch;
		text-align: center;

		@media (width < 500px) {
			font-size: var(--fz20);
		}
	}
}

/* #endregion */
/* #region Sub */
.sub {
	background: linear-gradient(to right, var(--white-70), white 40%, white 60%, var(--white-70));
	padding-block: 20vh 5rem;
	position: relative;

	@media (width < 500px) {
		padding-top: 28vh;
	}

	&::before {
		background: url("https://ripcord.sirv.com/Lloyd/shutterstock_2350918925.jpg") right center / cover no-repeat;
		content: "";
		height: 100%;
		left: 0;
		position: absolute;
		top: 0;
		width: 60%;
		z-index: -1;
	}

	&::after {
		background: left center / cover no-repeat;
		content: "";
		height: 100%;
		left: 50%;
		position: absolute;
		top: 0;
		width: 50%;
		z-index: -1;
	}

	h1 {
		font-size: var(--fz32);
		letter-spacing: 2px;
		margin-bottom: 3rem;
		text-transform: uppercase;
	}

	h2 {
		font-size: var(--fz28);
		font-weight: 600;
		margin-block: 3rem .8rem;
	}

	p {
		max-width: 85%;
	}

	/* > .content {
		animation: slideIn .7s cubic-bezier(.34, 1.56, .64, 1) both;
	} */
}

.sub-about {
	&::after {
		background-image: url("https://ripcord.sirv.com/Lloyd/hinckley.jpg");
	}
}

.sub-contact {
	&::after {
		background-image: url("https://ripcord.sirv.com/Lloyd/shutterstock_2321627327.jpg");
	}
}

.sub-network {
	&::after {
		background-image: url("https://ripcord.sirv.com/Lloyd/shutterstock_1947266674.jpg");
	}
}

.sub-services {
	&::after {
		background-image: url("https://ripcord.sirv.com/Lloyd/shutterstock_1903245409.jpg");
	}
}

/* #endregion */
/* #region Sub-FAQs */
.sub-faqs {
	background: white;

	&::before,
	&::after {
		display: none;
	}

	h2 {
		margin-bottom: 1.5rem;
	}
}

.sub-faqs-answer {
	background: white;
	font-size: var(--fz16);
	max-height: 0;
	overflow: hidden;
	padding: 0 20px;
	transition: var(--transition);

	&.active {
		max-height: 1500px;
		padding: 20px;
	}

	i {
		font-size: var(--fz14);
		padding-left: .3rem;
		translate: 0 -1px;
	}
}

.sub-faqs-item {
	background-color: var(--blue050);
	border-radius: var(--radius);
	border: 1px solid var(--blue100);
	margin-bottom: 1rem;
	overflow: hidden;
	transition: all .3s ease;

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

	h3 {
		font-weight: 500;
	}
}

.sub-faqs-question {
	align-items: center;
	cursor: pointer;
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr auto;
	padding: 20px;
	transition: var(--transition);
	user-select: none;

	&.active {
		background: var(--blue400);
		color: white;

		.sub-faqs-icon {
			rotate: 180deg;
		}
	}

	i {
		font-weight: 700;
	}
}

/* #endregion */
/* #region Sub-Glossary */
.sub-glossary {
	background: white;

	&::before,
	&::after {
		display: none;
	}

	h2 {
		align-items: center;
		background: var(--blue100);
		border-radius: 50%;
		border-top: 1px solid var(--blue100);
		display: inline-flex;
		height: 3rem;
		justify-content: center;
		margin-top: 3rem;
		width: 3rem;
	}

	h3 {
		margin-top: 2rem;
		scroll-margin-top: 6rem;
	}
}

/* #endregion */