main {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 7rem;
	margin-bottom: 480px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.main-section {
	max-width: 1760px;
	margin: 0 auto;
	/* padding: 0 1rem 3rem; */
	box-sizing: border-box;
}

/* Hero Section */
.hero {
	background: url('../img/hero-bg.webp') no-repeat center center/cover;
	color: #fff;
	padding: 100px 0;
	text-align: left;
	position: relative;
	height: calc(100dvh - 2rem);
	margin: 1rem;
	border-radius: 2rem;
	box-sizing: border-box;
	overflow: clip;
	box-shadow: 0 0 15px #202E30;
	display: flex;
	justify-content: end;
	flex-direction: column;
	transition: all .3s ease-in-out;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	/* background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 31%, rgba(0, 0, 0, 0) 50%); */
	/* background: linear-gradient(to top right, rgba(0, 0, 0, 0.4) 31%, rgba(0, 0, 0, 0) 50%); */
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.hero-content {
	position: relative;
	width: 100%;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.hero-content img {
	width: 15dvh;
}

.hero .title {
	font-size: 3em;
	font-weight: 900;
}

.hero .subtitle>* {
	font-size: clamp(1rem, 2vw, 1.2rem);
	font-weight: 300;
	max-width: 400px;
}

.hero .btn {
	position: relative;
	width: max-content;
	font-size: 1rem;
	text-decoration: none;
	color: #fff;
	font-weight: 500;
}

.hero .btn:before {
	content: "";
	display: block;
	width: .3rem;
	height: .3rem;
	border: 1px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(-45deg) translateY(-50%);
	left: calc(100% + 3.3rem);
	position: absolute;
	top: 50%;
	transition: left .3s;
}

.hero .btn:after {
	content: "";
	display: block;
	width: 3rem;
	height: 1px;
	background: #fff;
	transition: width .3s;
	position: absolute;
	top: 50%;
	left: 100%;
	margin-left: .5rem;
}

.hero .btn:hover:before {
	left: calc(100% + 5.3rem);
}

.hero .btn:hover:after {
	width: 5rem;
}

#hero-video {
	width: 100%;
	height: 100%;
	position: absolute;
	object-fit: cover;
	top: 0;
	left: 0;
}

/* Intro section */

.intro .container {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.intro .container .title {
	font-size: clamp(2.2rem, 5vw, 3.5em);
	font-weight: 900;
	color: var(--black);
}

.intro .container .title strong {
	color: var(--white);
	background-color: var(--black);
	padding: 0 0.5rem;
}

.intro .container .text {
	font-size: clamp(1rem, 3vw, 1.5em);
	font-weight: 400;
	color: var(--black);
	max-width: 80%;
}

.intro .container .btn {
	position: relative;
	width: max-content;
	font-size: 1rem;
	text-decoration: none;
	color: var(--black);
	font-weight: 500;
}

.intro .container .btn:before {
	content: "";
	display: block;
	width: .3rem;
	height: .3rem;
	border: 1px solid var(--black);
	border-top: none;
	border-left: none;
	transform: rotate(-45deg) translateY(-50%);
	left: calc(100% + 3.3rem);
	position: absolute;
	top: 50%;
	transition: left .3s;
}

.intro .container .btn:after {
	content: "";
	display: block;
	width: 3rem;
	height: 1px;
	background: var(--black);
	transition: width .3s;
	position: absolute;
	top: 50%;
	left: 100%;
	margin-left: .5rem;
}

.intro .container .btn:hover:before {
	left: calc(100% + 5.3rem);
}

.intro .container .btn:hover:after {
	width: 5rem;
}

/* Services Section */
.services {
	/* background: url(../img/forest.webp); */
	background-size: cover;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-auto-rows: minmax(350px, auto);
	grid-template-areas:
		"a a a b b c c"
		"d d e e f f f";
	gap: 20px;
	margin: 0 1rem;
}

.services-grid> :nth-child(1) {
	grid-area: a;
}

.services-grid> :nth-child(2) {
	grid-area: b;
}

.services-grid> :nth-child(3) {
	grid-area: c;
}

.services-grid> :nth-child(4) {
	grid-area: d;
}

.services-grid> :nth-child(5) {
	grid-area: e;
}

.services-grid> :nth-child(6) {
	grid-area: f;
}

.service-card {
	background-image: url(../img/forest.webp);
	background-size: cover;
	background-attachment: fixed;
	background-repeat: no-repeat;
	color: var(--dark);
	padding: 30px;
	border-radius: 2rem;
	box-shadow: 0 0 10px rgba(24, 36, 33, .5);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: end;
	gap: 1rem;
	overflow: hidden;
	transition: all .5s ease-in-out;
}

.service-card h3 {
	font-size: clamp(1.5rem, 2vw, 2rem);
}

.service-card p {
	font-size: clamp(1rem, 1vw, 1.2rem);
}

.service-card>* {
	position: relative;
	z-index: 1;
}

.service-card:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, #DBF1EB00 0%, #dbf1ebc4 65%);
	transition: all .3s ease-in-out;
}

.service-card:hover {
	color: #d8f9fe;
}

.service-card:hover:after {
	filter: brightness(.2);
}

/* latest articles */
.latest-articles .articles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.latest-articles .articles .demo-card {
	background-color: var(--of-white);
	padding: .5rem;
	border-radius: 2rem;
	box-shadow: 0 0 20px rgba(24, 36, 33, .25);
}

.latest-articles .articles .demo-card .card-top {
	height: 270px;
	position: relative;
}

.latest-articles .articles .demo-card .card-top h1 {
	z-index: 1;
	position: absolute;
	bottom: 0.7rem;
	font-size: 1rem;
	font-weight: 600;
	left: 1rem;
	color: var(--black);
}

.latest-articles .articles .demo-card .card-top img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	border-radius: 1.5rem;
	position: absolute;
	top: 0;
	box-shadow: 0 0 10px rgba(20, 40, 35, .15);
	transition: all .3s ease-in-out;
	z-index: 0;
}

.latest-articles .articles .demo-card .card-top::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 1.5rem;
	background: linear-gradient(to bottom, #DBF1EB00 0%, #dbf1ebc4 65%);
	transition: all .3s ease-in-out;
}

.latest-articles .articles .demo-card p {
	margin: 1rem 1.2rem;
}

.latest-articles .articles .demo-card a {
	display: inline-block;
	color: var(--black);
	margin: 0 1.2rem 0.5rem;
	font-weight: 600;
	font-size: .8rem;
}

.latest-articles .articles .demo-card:hover .card-top img,
.latest-articles .articles .demo-card:hover .card-top::after {
	transform: scale(1.02);
}

.latest-articles .articles .demo-card:hover a:before {
	left: calc(100% + 5.3rem);
}

.latest-articles .articles .demo-card:hover a:after {
	width: 5rem;
}

/* Call to Action Section */
.cta-section {
	position: relative;
	background: url(/static/img/forest.webp);
	background-size: cover;
	background-attachment: fixed;
	background-repeat: no-repeat;
	color: var(--black);
	padding: 10rem 0;
	z-index: 1;
}

.cta-section:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to left, #eef4f300 0%, #EEF4F3 80%);
	z-index: -1;
}

.cta-section h2 {
	font-size: clamp(2.2rem, 5vw, 3.5em);
	line-height: clamp(2.5rem, 4.7vw, 4.5rem);
	font-weight: 900;
}

.cta-section h2 strong {
	background-color: var(--black);
	color: var(--white);
	padding: 0 0.5rem;
}

.cta-section p {
	font-size: clamp(1.2rem, 3vw, 1.5em);
	font-weight: 400;
}

.cta-section .container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.cta-section .btn {
	position: relative;
	width: max-content;
	font-size: 1rem;
	text-decoration: none;
	color: var(--black);
	font-weight: 500;
}

.cta-section .btn:before {
	content: "";
	display: block;
	width: .3rem;
	height: .3rem;
	border: 1px solid var(--black);
	border-top: none;
	border-left: none;
	transform: rotate(-45deg) translateY(-50%);
	left: calc(100% + 3.3rem);
	position: absolute;
	top: 50%;
	transition: left .3s;
}

.cta-section .btn:after {
	content: "";
	display: block;
	width: 3rem;
	height: 1px;
	background: var(--black);
	transition: width .3s;
	position: absolute;
	top: 50%;
	left: 100%;
	margin-left: .5rem;
}

.cta-section .btn:hover:before {
	left: calc(100% + 5.3rem);
}

.cta-section .btn:hover:after {
	width: 5rem;
}

.text-center {
	text-align: center;
}

@media only screen and (max-width: 767px) {
	main {
		gap: 5rem !important;
		margin-bottom: 600px;
	}

	main .hero {
		margin: 1rem 2%;
	}

	main .hero .title {
		font-size: clamp(2rem, 7vw, 3em);
	}

	main .container {
		padding: 0 2% !important;
	}

	main .container .title {
		text-wrap: balance;
	}

	main .container .text {
		max-width: 100% !important;
	}

	main #services .services-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: minmax(300px, auto);
		grid-template-areas:
			"a a"
			"b b"
			"c c"
			"d d"
			"e e"
			"f f";
		gap: 1rem;
		margin: 0 2%;
	}

	main .latest-articles .articles {
		grid-template-columns: 1fr;
	}

	main .cta-section h2 {
		white-space: preserve-spaces;
		text-wrap: balance;
	}

	main .pre-footer {
		padding: 4rem 4% 3rem;
	}
}