/* #region @keyframes */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-1rem);
	}

	to {
		opacity: 1;
		transform: translateY(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 :root */
:root {
	/* Colors - Blue */
	--blue050: hsl(207 90 95);
	--blue100: hsl(210 91 91);
	--blue200: hsl(210 93 84);
	--blue300: hsl(208 91 74);
	--blue400: hsl(210 91 61);
	--blue500: hsl(214 91 50);
	--blue600: hsl(219 91 46);
	--blue700: hsl(222 83 43);
	--blue800: hsl(224 76 35);
	--blue900: hsl(223 69 25);
	--blue900-60: hsl(223 69 25 / .6);
	--blue900-95: hsl(223 69 25 / .95);
	--blue950: hsl(225 59 15);
	--blue950-50: hsl(225 59 15 / .5);
	/* Colors - Grey */
	--grey050: hsl(220 10 95);
	--grey100: hsl(220 10 87);
	--grey200: hsl(220 10 76);
	--grey300: hsl(220 10 60);
	--grey400: hsl(220 10 41);
	--grey500: hsl(220 10 30);
	--grey600: hsl(220 10 26);
	--grey700: hsl(220 10 23);
	--grey800: hsl(220 10 20);
	--grey900: hsl(220 10 15);
	--grey950: hsl(220 10 10);
	--grey950-40: hsl(220 10 10 / .4);
	/* Colors - Red */
	--red050: hsl(17 100 96);
	--red100: hsl(19 100 92);
	--red200: hsl(16 100 83);
	--red300: hsl(15 99 72);
	--red400: hsl(11 98 61);
	--red500: hsl(9 97 55);
	--red600: hsl(5 92 48);
	--red700: hsl(1 89 40);
	--red800: hsl(359 80 34);
	--red900: hsl(359 76 28);
	--red950: hsl(357 81 15);
	/* Colors - Yellow */
	--yellow050: hsl(48 79 96);
	--yellow100: hsl(45 85 90);
	--yellow200: hsl(46 85 78);
	--yellow300: hsl(44 84 67);
	--yellow400: hsl(41 84 58);
	--yellow500: hsl(35 81 54);
	--yellow600: hsl(30 83 47);
	--yellow700: hsl(23 80 40);
	--yellow800: hsl(21 73 34);
	--yellow900: hsl(19 68 29);
	--yellow950: hsl(19 82 15);
	/* Colors - White */
	--white-80: hsl(0 0 100 / .8);
	--white-90: hsl(0 0 100 / .9);
	--white-95: hsl(0 0 100 / .95);
	/* Fonts */
	--font-sans: "Nunito Sans", sans-serif;
	--fz12: .75rem;
	--fz14: .875rem;
	--fz16: 1rem;
	--fz18: clamp(1rem, 2vw, 1.125rem);
	--fz20: clamp(1.125rem, 2.25vw, 1.25rem);
	--fz24: clamp(1.25rem, 2.625vw, 1.5rem);
	--fz28: clamp(1.5rem, 3.25vw, 1.75rem);
	--fz32: clamp(1.625rem, 3.5vw, 2rem);
	--fz36: clamp(1.75rem, 4vw, 2.25rem);
	--fz40: clamp(1.875rem, 4.5vw, 2.5rem);
	--fz48: clamp(2rem, 5.25vw, 3rem);
	--fz60: clamp(2.25rem, 6.25vw, 3.75rem);
	--fz72: clamp(2.75rem, 7.5vw, 4.5rem);
	--fz96: clamp(3.5rem, 10vw, 6rem);
	/* Utility */
	--radius: .4rem;
	--radius-lg: 1rem;
	--transition: .3s;
}

/* #endregion */
/* #region Elements */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

a {
	color: var(--blue600);
	text-decoration: none;
	transition: var(--transition);

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

body {
	color: var(--grey900);
	font-family: var(--font-sans);
	font-size: var(--fz18);
	line-height: 1.4;
}

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

h1, h2, h3 {
	line-height: 1.2;
	margin-bottom: calc(.5rem + .3em);
	text-wrap: pretty;
}

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

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

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

li {
	margin: 0 0 .8rem 1.5rem;
}

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

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

/* #endregion */
/* #region Global */
.block-link {
	display: block;
	margin-bottom: 1rem;
	width: fit-content;
}

.btn {
	background-color: var(--blue500);
	border-radius: var(--radius);
	color: white;
	cursor: pointer;
	display: inline-block;
	font-size: var(--fz14);
	font-weight: 700;
	letter-spacing: 2px;
	padding: .875rem 2rem;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: var(--transition);

	&:hover {
		background-color: var(--blue700);
		color: white;
		translate: 0 -2px;
	}
}

.btn-alt {
	background-color: var(--blue900);

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

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

.float {
	border-radius: var(--radius);
	float: right;
	margin: 0 0 2rem 4rem;

	@media (width < 800px) {
		float: none;
		margin-left: 0;
	}
}

.link {
	color: var(--blue500);
	font-size: var(--fz16);
	text-decoration: none;
	text-transform: uppercase;
	transition: var(--transition);

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

.new {
	&::after {
		background-color: honeydew;
		color: green;
		content: "New";
		font-size: var(--fz12);
		font-weight: 700;
		margin-left: 2px;
		padding: 2px;
		position: relative;
		text-transform: uppercase;
		top: -6px;
		vertical-align: super;
	}
}

.no-bullets {
	list-style: none;

	li {
		margin-left: .2rem;
	}
}

/* #endregion */
/* #region Nav */
.nav-contain {
	--main-nav-font-size: var(--fz18);
	--main-nav-font-weight: 700;
	--inside-dropdown-font-size: var(--fz16);
	--inside-dropdown-font-weight: 600;
	justify-self: end;

	@media (width < 1200px) {
		--main-nav-font-size: var(--fz24);
		--inside-dropdown-font-size: var(--fz20);
		align-content: start;
		background-color: var(--blue900-95);
		display: grid;
		height: 100vh;
		inset: 0;
		justify-content: center;
		opacity: 0;
		padding: 10vh 2.5rem 2.5rem;
		pointer-events: none;
		position: fixed;
		transition: var(--transition);
		width: 100vw;

		&.open {
			opacity: 1;
			pointer-events: all;
		}
	}

	> a {
		color: var(--grey800);
		display: inline-block;
		font-size: var(--main-nav-font-size);
		font-weight: var(--main-nav-font-weight);
		margin-left: 1.5rem;
		text-decoration: none;
		transition: var(--transition);

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

		@media (width < 1200px) {
			color: white;
			display: block;
			margin: 0 0 2rem;
			padding: 0;

			&:hover {
				color: white;
			}
		}
	}
}

.nav-item-dropdown {
	display: inline-block;
	margin-left: 1.5rem;
	position: relative;

	&:hover .nav-item-dropdown-menu,
	&:focus-within .nav-item-dropdown-menu {
		animation: slideDown .3s ease-out;
		opacity: 1;
		pointer-events: all;
		visibility: visible;
	}

	@media (width < 1200px) {
		display: block;
		margin: 0 0 1rem;
		padding: 0;

		&:hover .nav-item-dropdown-menu,
		&:focus-within .nav-item-dropdown-menu {
			animation: none;
		}
	}
}

.nav-item-dropdown-menu {
	background-color: white;
	border-radius: var(--radius);
	box-shadow: 0 4px 20px hsl(0 0 0 / .1);
	left: 0;
	min-width: 200px;
	opacity: 0;
	overflow: hidden;
	padding: .5rem 0 0;
	pointer-events: none;
	position: absolute;
	top: 100%;
	transition: var(--transition);
	visibility: hidden;

	@media (width < 1200px) {
		background: none;
		box-shadow: none;
		opacity: 1;
		padding-left: 1rem;
		position: static;
		visibility: visible;
	}

	a {
		color: var(--grey800);
		display: block;
		font-size: var(--inside-dropdown-font-size);
		font-weight: var(--inside-dropdown-font-weight);
		padding: .7rem 1.25rem;
		text-decoration: none;
		transition: var(--transition);

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

		@media (width < 1200px) {
			color: white;
			padding: .5rem 0;

			&:hover {
				background-color: transparent;
				color: white;
			}
		}
	}
}

.nav-item-has-dropdown {
	color: var(--grey800);
	font-size: var(--main-nav-font-size);
	font-weight: 700;
	text-decoration: none;
	transition: var(--transition);

	@media (width < 1200px) {
		color: white;
	}

	&:hover {
		color: var(--blue500);

		@media (width < 1200px) {
			color: white;
		}
	}

	i {
		display: inline-block;
		font-size: var(--fz14);
		font-weight: var(--main-nav-font-weight);
		/* Width added to prevent layout shift: reserves space for icon (matches Font Awesome default icon width) */
		width: .875rem;
	}
}

.nav-toggle {
	color: var(--grey800);
	display: none;
	font-size: var(--fz24);
	justify-self: end;
	padding: .5rem;
	position: relative;
	z-index: 1000;

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

/* Makes the close 'X' icon white; */
.header:has(.nav-contain.open) .nav-toggle {
	@media (width < 1200px) {
		color: white;
	}
}

/* #endregion */
/* #region Header */
.header {
	background-color: white;
	border-bottom: 2px solid var(--grey100);
	padding: 1rem 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;

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

.logo {
	display: inline-block;
	text-decoration: none;

	img {
		display: inline-block;
		transition: var(--transition);
		width: 200px;
	}

	&.scrolled img {
		width: 150px;
	}

	@media (width < 1200px) {
		img {
			width: 150px;
		}
	}

	@media (width < 300px) {
		img {
			width: 100px;
		}
	}
}

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

.footer-grid {
	display: grid;
	font-size: var(--fz18);
	gap: 8vw;
	grid-template-columns: 350px auto auto;

	@media (width < 800px) {
		gap: 2rem;
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}
}

.footer-logo {
	img {
		margin-bottom: 1rem;
		max-width: 130px;

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

	p {
		font-size: var(--fz16);
		max-width: 45ch;
	}
}

.footer-nav {
	a {
		color: var(--blue200);
		display: block;
		font-size: var(--fz16);
		margin-bottom: 1rem;
		text-decoration: none;
		transition: var(--transition);
		width: fit-content;

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

		&:hover {
			color: white;
		}
	}
}

.footer-social {
	a {
		color: var(--blue200);
		display: inline-block;
		font-size: var(--fz28);
		margin-right: 1rem;
		transition: var(--transition);

		@media (width < 800px) {
			font-size: var(--fz32);
		}

		&:hover {
			color: white;
		}
	}
}

/* #endregion */
/* #region Hero */
.hero {
	background: url("https://ripcord.sirv.com/NEFP/hero-new-topaz.jpg") center/cover no-repeat;
	color: white;
	display: grid;
	padding-block: 40vh;
	place-items: center;
	position: relative;
	text-align: center;

	@media (width < 1200px) {
		padding-block: 20vh;
	}

	@media (width < 500px) {
		padding-block: 30vh 20vh;
	}

	&::before {
		background: linear-gradient(var(--blue950-50), var(--blue950-50));
		content: "";
		inset: 0;
		position: absolute;
	}

	.btn {
		animation: slideDown 1s both 1.5s;
	}

	h1 {
		animation: slideDown 2s both .5s;
		color: white;
		font-size: var(--fz60);
		margin-bottom: 2rem;

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

/* #endregion */
/* #region Home-About */
.home-about {
	background-color: white;
	padding: 5rem 0;

	.home-about-grid {
		align-items: center;
		display: grid;
		gap: 4rem;
		grid-template-columns: 1fr auto;

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

		a {
			display: inline-block;
			font-size: var(--fz14);
			font-weight: 800;
			letter-spacing: 1px;
			margin-top: 1rem;
			text-transform: uppercase;
		}

		img {
			max-width: 200px;

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

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

/* #endregion */
/* #region Home-Ecker */
.home-ecker {
	background: radial-gradient(white 30%, var(--white-80)), url("https://ripcord.sirv.com/NEFP/con-art-rainbow-shapes.jpg") center/cover no-repeat;
	padding-block: 8rem;
	position: relative;
	text-align: center;

	h2 {
		font-size: var(--fz36);
	}

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

	p {
		font-size: var(--fz20);
		margin: 0 auto 3rem;
		max-width: 900px;
		text-align: left;
	}
}

.home-ecker-grid {
	display: grid;
	gap: 5rem;
	grid-template-columns: repeat(3, auto);
	justify-content: center;
	margin: 3rem auto;

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

	> a {
		cursor: pointer;
		display: block;
		text-align: center;
		text-decoration: none;
		transition: var(--transition);

		.image-wrapper {
			aspect-ratio: 1;
			border: 4px solid var(--grey200);
			border-radius: 50%;
			margin: 0 auto 1rem;
			overflow: hidden;
			transition: var(--transition);
			width: 250px;

			@media (width < 400px) {
				width: 200px;
			}

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

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

		h4 {
			font-size: var(--fz20);
			text-decoration: none;
		}

		&:hover {
			img {
				scale: 1.06;
			}
		}
	}
}

/* #endregion */
/* #region Home-Grant */
.home-grant {
	background-color: white;
	padding: 5rem 0;
	text-align: center;

	h2 {
		font-size: var(--fz36);
	}
}

.grant-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(4, 1fr);
	margin-block: 3rem;

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

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

	a {
		background-color: var(--blue050);
		border-radius: var(--radius-lg);
		color: var(--grey500);
		overflow: hidden;
		text-align: center;
		text-decoration: none !important;
		transition: var(--transition);

		&:hover {
			background-color: var(--blue100);
			/* box-shadow: 0 6px 10px var(--grey200); */
			color: var(--blue600);
			translate: 0 -6px;
		}

		img {
			height: 200px;
			object-fit: cover;
			width: 100%;
		}

		h4 {
			font-size: var(--fz16);
			padding: 1.5rem;
		}
	}
}

/* #endregion */
/* #region Sub */
.sub {
	min-height: 40vh;
	padding-block: 4rem 5rem;

	a {
		text-decoration: underline;
	}

	h1 {
		font-size: var(--fz36);
		max-width: 40ch;
	}
}

.subhero {
	background: linear-gradient(var(--blue900), var(--blue900-60)), var(--subhero-bg) center 20%/cover no-repeat;
	padding-block: 20vh 10vh;

	div {
		color: white;
		font-size: var(--fz32);
		font-weight: 700;
		letter-spacing: .8rem;
		text-align: center;
		text-transform: uppercase;

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

	&.about {
		--subhero-bg: url("https://ripcord.sirv.com/NEFP/con-art-rainbow-balls.jpg?blur=6");
	}

	&.contact {
		--subhero-bg: url("https://ripcord.sirv.com/NEFP/con-art-multi-circles.jpg?blur=6");
	}

	&.ecker {
		--subhero-bg: url("https://ripcord.sirv.com/NEFP/con-art-rainbow-shapes.jpg?blur=6");
	}

	&.grant {
		--subhero-bg: url("https://ripcord.sirv.com/NEFP/con-art-blue-web.jpg?blur=6");
	}
}

/* #endregion */
/* #region Sub-Ecker */
.sub-ecker-grid {
	display: grid;
	gap: 5rem 3rem;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 3rem;

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

	> div {
		position: relative;
		scroll-margin-top: 10rem;

		&::before {
			aspect-ratio: 1;
			content: "";
			left: 50%;
			opacity: .15;
			position: absolute;
			top: 0;
			translate: -50% 0;
			width: 270px;
			z-index: -1;
		}
	}

	h2 {
		font-size: var(--fz24);
		text-align: center;
	}

	img {
		aspect-ratio: 1;
		border-radius: 50%;
		margin: 0 auto 1rem;
		object-fit: cover;
		position: relative;
		width: 250px;
		z-index: 1;
	}
}

/* #endregion */
/* #region Sub-Grant */
.grant-recipients {
	background-color: var(--blue050);
	border-radius: var(--radius-lg);
	margin-top: 4rem;
	padding: 2.5rem;
	width: fit-content;

	h2 {
		font-size: var(--fz20);
		margin-bottom: 1.5rem;
	}

	.grid {
		display: grid;

		a {
			font-size: var(--fz16);
			margin-bottom: .8rem;
		}
	}
}

.sub-grant-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(4, 1fr);

	img {
		border-radius: var(--radius);
	}
}

/* #endregion */