/* Variables */
:root {
	--font-stack: proxima-nova, sans-serif;
	--font-footer: open-sans, sans-serif;
	--orange: #f05a27;
	--yellow: #f9af1c;
	--olive: #a8b443;
	--green: #549041;
	--blue: #386d77;
	--blue-alt: #204e6a;
}

/* Base */
body {
	border-top: 8px solid var(--green);
}

/* Grid */
.container-fluid {
	max-width: 1200px;
	padding: 0 3rem;
}

/* Typography */
html {
	font-size: 62.5%;
}

body {
	font-family: var(--font-stack);
	line-height: 1.5;
}

h1 {
	font-size: 8rem;
	font-weight: 900;
	line-height: 1;
}

h2 {
	font-size: 4.8rem;
	font-weight: 900;
	line-height: 1;
}

h3 {
	font-size: 3.2rem;
	font-weight: 900;
}

p {
	font-size: 1.7rem;
	font-weight: 700;
	color: var(--blue-alt);
}

.rollover-text-sm {
	font-size: 2.4rem;
	line-height: 1.2;
}

.rollover-text-md {
	font-size: 3.2rem;
	line-height: 1.2;
}

.rollover-text-lg {
	font-size: 4.8rem;
	font-weight: 900;
	line-height: 1;
}

/* Header */
#header .logo {
	max-width: 18rem;
}

/* Section - Hero */
#hero-carousel .carousel-indicators,
#hero-carousel .carousel-inner .carousel-item .carousel-item-head {
	height: 36rem;
}

#hero-carousel .carousel-inner .carousel-item .carousel-item-head {
	background: url('./assets/img/Texture.png');
}

#hero-carousel .carousel-indicators [data-bs-target] {
	position: relative;
	width: 5.6rem;
	height: auto;
	margin: 0;
	text-indent: 0;
	background-color: transparent;
	border: 0;
	opacity: 1;
}

#hero-carousel .carousel-indicators [data-bs-target]:hover::after,
#hero-carousel .carousel-indicators [data-bs-target].active::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -16px;
	bottom: unset;
	left: unset;
	width: 4px;
	height: 4.4rem;
	border-radius: 16px;
	transform: translateY(-50%);
}

#hero-carousel .carousel-inner .carousel-item .carousel-item-head img {
	height: 100%;
	transform: scale(1.15) translateY(-1px);
	transform-origin: left center;
}

#hero-carousel .carousel-inner .carousel-item .carousel-item-head h1 {
	position: absolute;
	top: 47.5%;
	left: 72.5%;
	color: #fff;
	transform: translate(-50%, -50%);
}

#hero-carousel .carousel-inner .carousel-item .carousel-item-foot h2 {
	hyphens: auto;
}

#hero-carousel .carousel-inner .carousel-item:nth-of-type(1) .carousel-item-foot h2 {
	color: var(--orange);
}

#hero-carousel .carousel-inner .carousel-item:nth-of-type(2) .carousel-item-foot h2 {
	color: var(--green);
}

#hero-carousel .carousel-inner .carousel-item:nth-of-type(3) .carousel-item-foot h2 {
	color: var(--olive);
}

#hero-carousel .carousel-inner .carousel-item:nth-of-type(4) .carousel-item-foot h2 {
	color: var(--blue);
}

#hero-carousel .carousel-inner .carousel-item:nth-of-type(5) .carousel-item-foot h2 {
	color: var(--yellow);
}

#hero-carousel .carousel-indicators [data-bs-slide-to='0']:hover::after,
#hero-carousel .carousel-indicators [data-bs-slide-to='0'].active::after,
#hero-carousel .carousel-inner .carousel-item:nth-of-type(1) .carousel-item-head {
	background-color: var(--orange);
}

#hero-carousel .carousel-indicators [data-bs-slide-to='1']:hover::after,
#hero-carousel .carousel-indicators [data-bs-slide-to='1'].active::after,
#hero-carousel .carousel-inner .carousel-item:nth-of-type(2) .carousel-item-head {
	background-color: var(--green);
}

#hero-carousel .carousel-indicators [data-bs-slide-to='2']:hover::after,
#hero-carousel .carousel-indicators [data-bs-slide-to='2'].active::after,
#hero-carousel .carousel-inner .carousel-item:nth-of-type(3) .carousel-item-head {
	background-color: var(--olive);
}

#hero-carousel .carousel-indicators [data-bs-slide-to='3']:hover::after,
#hero-carousel .carousel-indicators [data-bs-slide-to='3'].active::after,
#hero-carousel .carousel-inner .carousel-item:nth-of-type(4) .carousel-item-head {
	background-color: var(--blue);
}

#hero-carousel .carousel-indicators [data-bs-slide-to='4']:hover::after,
#hero-carousel .carousel-indicators [data-bs-slide-to='4'].active::after,
#hero-carousel .carousel-inner .carousel-item:nth-of-type(5) .carousel-item-head {
	background-color: var(--yellow);
}

/* Section - Cards */
#section-cards {
	margin-bottom: 15rem;
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	grid-template-rows: repeat(9, 12rem);
	grid-column-gap: 16px;
	grid-row-gap: 16px;
}

.cards-grid-item {
	display: flex;
	flex-flow: column;
	justify-content: space-between;
	position: relative;
	padding: 3rem;
}

/* Video Card */
.cards-grid-item-1 {
	grid-area: 1 / 1 / 4 / 6;
	color: #fff;
	background-color: #fff;
}

/* Our Mission Card */
.cards-grid-item-2 {
	grid-area: 1 / 6 / 4 / 9;
	color: #fff;
	background-color: var(--blue);
}

/* Core Belief Card */
.cards-grid-item-3 {
	grid-area: 4 / 1 / 6 / 5;
	color: var(--blue-alt);
	background-color: var(--olive);
}

/* Our Purpose Card */
.cards-grid-item-4 {
	grid-area: 4 / 5 / 8 / 9;
	color: #fff;
	background-color: var(--green);
}

/* Our Vision Card */
.cards-grid-item-5 {
	grid-area: 6 / 1 / 10 / 5;
	color: var(--blue-alt);
	background-color: var(--yellow);
}

/* Keep Connected Card */
.cards-grid-item-6 {
	grid-area: 8 / 5 / 10 / 7;
	color: #fff;
	background-color: var(--orange);
}

/* Sun Graphic Card */
.cards-grid-item-7 {
	grid-area: 8 / 7 / 10 / 9;
}

.cards-grid-item .icon-sm {
	width: 2.8rem;
}

.cards-grid-item .icon-lg {
	width: 8rem;
}

.cards-grid-item .rollover {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	padding: 3rem;
	color: var(--blue-alt);
	background-color: #fff;
	box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
	opacity: 0;
	transition: opacity 0.25s;
}

.cards-grid-item .rollover.active {
	z-index: 1;
	opacity: 1;
}

.cards-grid-item .rollover .rollover-icon {
	width: 15%;
}

.cards-grid-item .rollover .rollover-image-belief {
	background: url('./assets/img/Image-Belief.png') no-repeat center/cover;
}

.cards-grid-item .rollover .rollover-image-purpose {
	background: url('./assets/img/Image-Purpose.png') no-repeat center/cover;
}

.social-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-column-gap: 16px;
	grid-row-gap: 16px;
	max-width: 16rem;
}

.sun {
	transform: translateY(125%);
}

.sun.rise {
	animation: sunrise 2s ease-out forwards;
}

@keyframes sunrise {
	from {
		transform: translateY(125%);
	}

	to {
		transform: translateY(0);
	}
}

/* Footer */
#footer {
	color: #000;
	background-color: var(--green);
}

#footer p,
#footer a {
	font-family: var(--font-footer);
	font-size: 13px;
	font-weight: 400;
	color: #000;
}

#footer a:hover {
	text-decoration: none;
}

#footer .image {
	position: absolute;
	bottom: 0;
	left: 0;
	max-width: 36rem;
	transform: scale(1.15) translate(0);
}

#footer .logo {
	max-width: 16rem;
	margin-right: 4.5rem;
	margin-left: 6rem;
}

/* Media */
@media (max-width: 576px) {
	html {
		font-size: 51.4705%;
	}

	h1 {
		font-size: 5.6rem;
	}

	#hero-carousel .carousel-inner .carousel-item .carousel-item-head img {
		position: absolute;
		bottom: 0;
		height: 67.5%;
		transform: scale(1.15) translateY(4px);
		transform-origin: left center;
	}

	#hero-carousel .carousel-inner .carousel-item .carousel-item-head h1 {
		top: 35%;
		left: 72.5%;
		color: #fff;
		transform: translate(-50%, -50%);
	}

	.social-grid {
		max-width: 20rem;
	}
}

@media (max-width: 768px) {
	#hero-carousel .carousel-indicators {
		height: unset;
	}

	#hero-carousel .carousel-indicators [data-bs-target]:hover::after,
	#hero-carousel .carousel-indicators [data-bs-target].active::after {
		top: unset;
		right: unset;
		bottom: -12px;
		left: 50%;
		width: 3.2rem;
		height: 4px;
		transform: translateX(-50%);
	}
}

@media (max-width: 992px) {
	#section-cards {
		margin-bottom: 9rem;
	}

	.cards-grid {
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: repeat(21, 12rem);
	}

	.cards-grid-item-1 {
		grid-area: 1 / 1 / 4 / 5;
	}

	.cards-grid-item-2 {
		grid-area: 4 / 1 / 7 / 5;
	}

	.cards-grid-item-3 {
		grid-area: 7 / 1 / 10 / 5;
	}

	.cards-grid-item-4 {
		grid-area: 10 / 1 / 13 / 5;
	}

	.cards-grid-item-5 {
		grid-area: 13 / 1 / 16 / 5;
	}

	.cards-grid-item-6 {
		grid-area: 16 / 1 / 19 / 5;
	}

	.cards-grid-item-7 {
		grid-area: 19 / 1 / 22 / 5;
	}

	#footer {
		padding-top: 10rem !important;
	}

	#footer .image {
		bottom: 0;
		left: 50%;
		transform: scale(1) translateX(-50%);
	}

	#footer .logo {
		max-width: 20rem;
	}
}
