/* #region @keyframes */
@keyframes heroFadeInUp {
	from {
		opacity: 0;
		translate: 0 2rem;
	}

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

/* #endregion */
/* #region Elements */
@view-transition {
	navigation: auto;
}

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

a {
	color: var(--rust500);
	display: inline-block;
	line-height: 1;
	position: relative;
	text-decoration: none;
	transition: var(--transition);

	&::after {
		background-color: currentColor;
		bottom: -6px;
		content: "";
		height: 2px;
		left: 0;
		position: absolute;
		transition: var(--transition);
		width: 0;
	}

	&:hover::after {
		width: 100%;
	}
}

/* Remove the underline animation in specific instances */
a:has(div, i, img, span)::after,
a.btn::after {
	height: 0;
}

body {
	background-color: white;
	color: var(--blue500);
	font-family: var(--font-sans);
	font-size: var(--fz18);
}

button {
	background: none;
	border: none;
	cursor: pointer;
}

h1, h2, h3 {
	line-height: 1.1;
	text-wrap: balance;
}

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

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

	&:has(.nav-contain.open) {
		overflow: hidden;
	}
}

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

li {
	margin-left: 1em;
	padding-top: .5em;
}

p {
	line-height: 1.6;
	margin-bottom: 1.2em;
	text-wrap: pretty;
}

sup {
	font-size: var(--fz12);
}

/* #endregion */
/* #region Global */
.back {
	font-size: var(--fz12);
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 2rem;
	text-transform: uppercase;
}

.brokercheck {
	background-color: var(--blue700-90);
	bottom: 0;
	left: 0;
	padding: 1rem;
	position: fixed;
	right: 0;

	button {
		color: white;
		font-size: var(--fz20);
	}

	p {
		margin: 0;
	}

	.inner {
		display: grid;
		gap: 1rem;
		grid-template-columns: auto auto;
		justify-content: center;
	}
}

.btn {
	border-radius: var(--radius);
	color: white;
	font-size: var(--fz14);
	font-weight: 500;
	letter-spacing: 1px;
	line-height: 1;
	padding: 1.2rem 2.2rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: var(--transition);
}

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

.cta {
	background: var(--blue700) url("https://ripcord.sirv.com/Riverfront/watermark-blue.png") center/cover;
	color: var(--blue100);
	padding-block: 6rem;
	text-align: center;

	h2 {
		font-size: var(--fz28);
		margin-bottom: 2rem;
	}

	.btn {
		background-color: var(--blue500);
		border: 1px solid var(--blue100);

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

.disclaimer {
	font-size: var(--fz12) !important;
}

.floatright {
	border-radius: var(--radius);
	float: right;
	margin: 0 0 2rem 3vw;
	width: 500px;

	@media (width < 900px) {
		float: none;
		margin: 0 0 2rem 0;
		width: 500px;
	}
}

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

	&:focus {
		top: 1rem;
	}
}

/* #endregion */
/* #region Nav */
.nav-annex {
	@media (width < 1200px) {
		display: none;
	}

	a {
		color: var(--rust300);
		font-size: var(--fz14);
		letter-spacing: 1px;
		text-decoration: none;
		text-transform: uppercase;
	}
}

.nav-contain {
	justify-self: center;

	@media (width < 1200px) {
		justify-self: end;
	}
}

.nav-grid {
	align-content: start;
	display: grid;
	gap: 1.5rem 1.5vw;
	grid-auto-flow: column;

	@media (width < 1200px) {
		--mobile-menu-width: 60vw;
		background-color: var(--blue700-90);
		backdrop-filter: blur(4px);
		grid-auto-flow: row;
		height: 100vh;
		justify-content: center;
		padding: 6rem 1rem 0;
		position: absolute;
		right: 0;
		top: 0;
		translate: var(--mobile-menu-width);
		transition: var(--transition);
		visibility: hidden;
		width: var(--mobile-menu-width);
	}

	@media (width < 500px) {
		--mobile-menu-width: 100vw;
	}

	a {
		color: var(--yellow300);
		font-size: var(--fz14);
		letter-spacing: 1px;
		text-transform: uppercase;

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

			&::after {
				display: none;
			}
		}

		&:last-of-type {
			display: none;

			@media (width < 1200px) {
				display: block;
			}
		}
	}
}

.nav-toggle {
	display: none;

	@media (width < 1200px) {
		color: var(--yellow300);
		display: block;
		font-size: var(--fz24);
		text-decoration: none;
	}
}

.open {
	.nav-grid {
		translate: 0;
		visibility: visible;
	}

	.fa-xmark-large {
		position: relative;
		/* position: relative creates stacking context */
		z-index: 10;
	}
}

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

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

.header-grid {
	align-items: center;
	display: grid;
	gap: 2rem;
	grid-template-columns: auto 1fr auto;
	justify-content: start;

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

	.logo {
		img {
			transition: var(--transition);
			width: 300px;

			@media (width < 500px) {
				width: 250px;
			}
		}

		&.scrolled img {
			width: 150px;
		}
	}
}

/* #endregion */
/* #region Footer */
.footer {
	background-color: var(--blue900);
	color: var(--blue100);
	font-size: var(--fz14);
	padding-block: 4rem 6rem;
	text-wrap: pretty;

	a {
		color: var(--rust300);
	}
}

.footer .links {
	display: grid;
	gap: 1rem;
	grid-auto-flow: column;
	justify-content: start;
	justify-items: start;
	margin-bottom: 1rem;

	@media (width < 900px) {
		grid-auto-flow: row;
	}
}

.footer-locations-grid {
	display: grid;
	font-size: var(--fz16);
	gap: .5rem 5vw;
	grid-template-columns: repeat(3, auto);
	justify-content: center;
	margin-bottom: 3rem;
	text-align: center;

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

	a:last-of-type {
		grid-column: 1/-1;
		justify-self: center;
	}

	h3 {
		font-size: var(--fz16);
		letter-spacing: 1px;
		margin-bottom: .8em;
		text-transform: uppercase;
	}
}

/* #endregion */
/* #region Hero */
.hero {
	background: linear-gradient(var(--blue700-70), transparent), url("https://ripcord.sirv.com/Riverfront/Depositphotos_93376392_XL.jpg?ch=1300") center/cover fixed, var(--blue700);
	color: white;
	height: 100vh;
	padding-top: 30vh;
	text-align: center;

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

	h1,
	h2, img {
		animation: heroFadeInUp 1s both;
	}

	h1 {
		font-size: var(--fz60);
		letter-spacing: -1px;
		margin-bottom: 1rem;
	}

	h2 {
		animation-delay: .5s;
		font-size: var(--fz24);
		font-weight: 300;
		letter-spacing: 0;
		line-height: 1.5;
		margin-inline: auto;
		max-width: 48ch;
	}
}

/* #endregion */
/* #region Home-Credentials */
.home-credentials {
	background: linear-gradient(white, var(--white-90), white), url("https://ripcord.sirv.com/Riverfront/shutterstock_216839761.jpg?saturation=-100") center/cover;
	padding-block: 6rem;
	text-align: center;

	a:last-of-type {
		margin-bottom: 4rem;
	}

	h2 {
		font-size: var(--home-h2-font-size);
		margin-bottom: .5rem;
	}

	h3 {
		font-weight: 400;
		margin-bottom: 4rem;
	}
}

.home-credentials-flex {
	display: flex;
	flex-wrap: wrap;
	font-size: var(--fz16);
	gap: 2rem 3vw;
	justify-content: center;
	margin-bottom: 4rem;

	> div {
		flex-basis: 200px;
		padding: .5rem 1rem;
	}

	i {
		display: block;
		font-size: var(--fz36);
		justify-self: center;
		margin-bottom: .2rem;
	}
}

/* #endregion */
/* #region Home-Intro */
.home-intro {
	background-color: var(--blue700);
	color: var(--blue100);

	.content {
		background: url("https://ripcord.sirv.com/Riverfront/watermark-blue.png") center/cover;
		padding-bottom: 6vh;
	}
}

.home-intro-boxes-grid {
	display: grid;
	gap: 2rem 2vw;
	grid-template-columns: repeat(3, 1fr);
	margin-bottom: 3vh;
	translate: 0 -2rem;

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

	> a {
		--home-intro-boxes-bg: url("https://ripcord.sirv.com/Riverfront/home-intro-boxes-table.jpg");
		background: linear-gradient(var(--blue900), transparent 50%), var(--blue900) var(--home-intro-boxes-bg) center/cover;
		border: 1px solid var(--blue300);
		border-radius: var(--radius);
		color: var(--blue100);
		font-size: var(--fz20);
		font-weight: 500;
		height: 400px;
		line-height: 1.3;
		padding: 1.5rem 1vw 0;
		text-align: center;

		&::after {
			height: 0;
		}

		&:hover {
			border-color: currentColor;
			color: var(--yellow300);
			scale: 1.05;
		}

		&:nth-of-type(2) {
			--home-intro-boxes-bg: url("https://ripcord.sirv.com/Riverfront/home-intro-boxes-partners.jpg");
		}

		&:nth-of-type(3) {
			--home-intro-boxes-bg: url("https://ripcord.sirv.com/Riverfront/home-intro-boxes-bryan-eric.jpg");
		}
	}
}

.home-intro-lower-grid {
	display: grid;
	gap: 2rem 4vw;
	grid-template-columns: auto 50%;
	margin-inline: auto;
	width: 90%;

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

	> a {
		color: var(--rust300);
		text-align: center;

		> div {
			background: url("https://ripcord.sirv.com/Riverfront/video-screenshot.jpg") center/cover;
			border: 1px solid currentColor;
			border-radius: var(--radius);
			display: grid;
			height: 250px;
			place-items: center;

			i {
				font-size: var(--fz60);
				transition: var(--transition);
			}

			&:hover i {
				scale: 1.4;
			}
		}
	}

	p {
		line-height: 1.7;
	}

	span {
		font-size: var(--fz24);
		font-weight: 700;
	}
}

/* #endregion */
/* #region Home-News */
.home-news {
	background: linear-gradient(to right, var(--blue100-50), var(--blue100) 40%), url("https://ripcord.sirv.com/Riverfront/glassdoor.jpg?cy=200") left/contain no-repeat;
	padding-block: var(--padding-block);
	text-align: center;

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

	h2 {
		font-size: var(--home-h2-font-size);
		margin-bottom: 3rem;
	}

	.content {
		width: min(80%, 600px);
	}
}

.home-news-grid {
	display: grid;
	gap: .5rem 2vw;
	grid-template-columns: 300px auto;
	justify-content: center;

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

	> div {
		text-align: left;

		@media (width < 900px) {
			text-align: center;
		}
	}

	h3 {
		margin-bottom: .3rem;
	}

	img {
		background-color: white;
		border: 2px solid var(--blue700-10);
		box-shadow: 2px 2px 6px 1px var(--blue700-10);
		border-radius: var(--radius);
		transition: var(--transition);
		width: 300px;

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

		&:hover {
			border-color: currentColor;
			scale: 1.07;
		}
	}
}

.home-news-grid-date {
	background-color: var(--blue500);
	color: white;
	display: inline-block;
	font-size: var(--fz12);
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 1rem;
	padding: .7em 1em;
	text-transform: uppercase;
}

/* #endregion */
/* #region Home-Services */
.home-services {
	background: var(--yellow100) url("https://ripcord.sirv.com/Riverfront/watermark-yellow.png") left top no-repeat;
	padding-block: var(--padding-block);
	text-align: center;

	h2 {
		color: var(--yellow700);
		font-size: var(--home-h2-font-size);
		margin-bottom: 2rem;
	}

	.u-disclaimer {
		color: var(--yellow700);
	}
}

.home-services-grid {
	display: grid;
	gap: .5rem;
	grid-template-columns: repeat(4, 1fr);
	margin-bottom: 2rem;

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

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

	> a {
		background-color: var(--white-90);
		border: 2px solid transparent;
		border-radius: var(--radius);
		color: var(--yellow700);
		display: grid;
		letter-spacing: 1px;
		padding-block: 2.2rem 1.8rem;
		place-items: center;
		text-decoration: none;
		text-transform: uppercase;

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

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

	span {
		font-size: var(--fz14);
		font-weight: 500;
		line-height: 1.2;
	}
}

/* #endregion */
/* #region Sub */
.sub {
	padding-block: 3rem 6rem;

	h2 {
		font-size: var(--fz32);
		margin-bottom: 2rem;
	}

	h3 {
		font-size: var(--fz20);
		margin-block: 2.5rem .5rem;
	}
}

.sub-callout {
	color: var(--blue300);
	font-size: var(--fz20);
	font-weight: 700;
	margin-bottom: 2rem;
}

.subhero {
	background: linear-gradient(to bottom, var(--blue700), transparent), var(--subhero-page-bg) center/cover, var(--blue700);
	min-height: 50vh;
	padding-top: 25vh;
	text-align: center;

	h1 {
		color: var(--white-90);
		font-size: var(--fz32);
		font-weight: 600;
		letter-spacing: .1em;
		text-transform: uppercase;
	}
}

.subhero-bio {
	background-color: var(--blue700);
	min-height: 15vh;
}

.subhero-careers {
	--subhero-page-bg: url("https://ripcord.sirv.com/Riverfront/iStock-1300792381.jpg?cy=200");
}

.subhero-contact {
	--subhero-page-bg: url("https://ripcord.sirv.com/Riverfront/shutterstock_1434043178.jpg?ch=1400");
}

.subhero-news {
	--subhero-page-bg: url("https://ripcord.sirv.com/Riverfront/Depositphotos_10580221_XL.jpg?cy=250");
}

.subhero-services {
	--subhero-page-bg: url("https://ripcord.sirv.com/Riverfront/Depositphotos_623892234_XL.jpg");
}

.subhero-sitemap {
	--subhero-page-bg: url("https://ripcord.sirv.com/Riverfront/iStock-1300792381.jpg?cy=200");
}

.subhero-team {
	--subhero-page-bg: url("https://ripcord.sirv.com/Riverfront/shutterstock_2249145281.jpg");
}

/* #endregion */
/* #region Sub-Careers */
.sub-careers-grid {
	display: grid;
	gap: 0 3vw;
	grid-template-columns: repeat(4, 1fr);

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

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

	h3 {
		margin-bottom: .8rem;
	}

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

/* #endregion */
/* #region Sub-Contact */
.sub-contact-address-grid {
	@media (width < 1200px) {
		display: grid;
		gap: 0 10vw;
		grid-template-columns: 1fr 1fr;
	}

	@media (width < 500px) {
		display: block;
	}

	iframe {
		aspect-ratio: 2/1.5;
		border: 1px solid var(--blue100);
		margin-bottom: 5rem;
		width: 500px;

		@media (width < 1200px) {
			display: none;
		}
	}
}

.sub-contact-grid {
	display: grid;
	gap: 2rem 6vw;
	grid-template-columns: auto 50%;
	justify-content: start;
	margin-top: 4rem;

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

	@media (width < 500px) {
		grid-template-columns: 1fr;
	}

	h3 {
		margin-top: 0;
	}

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

/* #endregion */
/* #region Sub-News */
.sub-news-grid {
	--col-min-width: 300px;
	display: grid;
	gap: 2rem 5vw;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col-min-width)), auto));
	margin-top: 3rem;

	h3 {
		margin-block: 0 .4rem;
	}

	img {
		border: 1px solid var(--rust500);
		margin-bottom: .4rem;
		transition: var(--transition);
		width: 200px;

		&:hover {
			translate: 0 -.3rem;
		}
	}

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

.sub-news-grid-date {
	font-size: var(--fz12);
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

/* #endregion */
/* #region Sub-Services */
.sub-services-grid {
	display: grid;
	gap: 3rem 2vw;
	grid-template-columns: repeat(8, 1fr);
	margin-bottom: 3rem;
	scroll-margin-top: 100px;
	justify-items: center;

	@media (width < 1200px) {
		grid-template-columns: repeat(4, 1fr);
	}

	@media (width < 700px) {
		grid-template-columns: 1fr 1fr;
	}

	a {
		border-bottom: 4px solid transparent;
		padding-bottom: 1rem;
		text-align: center;
	}

	i {
		display: block;
		font-size: var(--fz32);
		margin-bottom: 1rem;
		margin-inline: auto;
	}

	span {
		font-size: var(--fz18);
		font-weight: 500;
		line-height: 1.2;
	}

	.selected {
		border-color: currentColor;
		color: var(--blue700);
	}
}

.sub-services-text > div {
	display: none;

	&.active {
		display: block;
	}
}

.sub-services-text h3 {
	font-size: var(--fz36);
	margin-bottom: .5rem;
}

.sub-services-text p {
	line-height: 1.7;
	max-width: 70ch;
}

/* #endregion */
/* #region Sub-Sitemap */
.sub-sitemap-grid {
	display: grid;
	gap: 3rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin-top: 2rem;

	h2 {
		border-bottom: 2px solid var(--yellow500);
		color: var(--blue700);
		font-size: var(--fz24);
		margin-bottom: 1rem;
		padding-bottom: .5rem;
	}

	ul {
		list-style: none;
	}

	li {
		font-size: var(--fz18);
		line-height: 1.4;
		margin-bottom: .8rem;
	}
}

/* #endregion */
/* #region Sub-Team */
.sub-team-bio-grid {
	display: grid;
	gap: 1rem 3vw;
	grid-template-columns: auto 1fr;
	margin-bottom: 3rem;

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

	div:has(> i) {
		font-size: var(--fz16);
	}

	h2 {
		margin-bottom: .5rem;
	}

	i {
		margin: 0 .5rem .7rem 0;
	}

	img {
		background: url("https://ripcord.sirv.com/Riverfront/bio-background.jpg") center/cover no-repeat;
		border-radius: var(--radius);
		width: 300px;
	}

	ul {
		margin-bottom: 2rem;
	}

	.sub-team-role {
		font-size: var(--fz18);
		font-weight: 600;
		margin-bottom: 1rem;
	}
}

.sub-team-card {
	display: grid;
	font-size: var(--fz16);
	grid-template-rows: auto auto 1fr;

	> a {
		overflow: hidden;
		text-decoration: none;
	}

	.details {
		padding: 1.2rem;

		div:has(i) + div:has(i) {
			margin-top: .4rem;
		}

		h3 {
			margin-block: 0 .1rem;
		}

		i {
			margin-right: .5rem;
		}

		.sub-team-role {
			font-weight: 600;
			margin-bottom: 1rem;
		}
	}
}

.sub-team-credentials-grid {
	--col-min-width: 300px;
	display: grid;
	gap: 1rem 3vw;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col-min-width)), auto));
	margin-top: 2rem;
	scroll-margin-top: 220px;

	p {
		font-size: var(--fz14);
		text-wrap: pretty;
	}
}

.sub-team-grid {
	--col-min-width: 280px;
	display: grid;
	grid-gap: 3rem 1.5rem;
	grid-template-columns: repeat(auto-fill, var(--col-min-width));
	margin-block: 2rem 4rem;

	> div {
		box-shadow: 1px 1px 8px 2px var(--blue700-10);
		transition: all .2s;
	}

	img {
		background: url("https://ripcord.sirv.com/Riverfront/bio-background.jpg") center/cover no-repeat;
		filter: sepia(100%) hue-rotate(185deg);
		transition: var(--transition);

		&:hover {
			filter: none;
			scale: 1.07;
		}
	}
}

.sub-team-locations {
	--col-min-width: 200px;
	display: grid;
	gap: .3rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col-min-width)), auto));
	justify-content: start;

	button {
		background-color: var(--blue100-50);
		color: var(--blue700);
		font-family: var(--font-sans);
		font-size: var(--fz16);
		font-weight: 500;
		letter-spacing: 1px;
		padding: 1rem;
		text-transform: uppercase;
		transition: var(--transition);

		&:hover,
		&.active {
			background-color: var(--blue700);
			color: white;
		}
	}
}

/* #endregion */