/* fonts */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* reset default stules */

* {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	box-sizing: border-box;
	text-decoration: none;
	list-style: none;
}

/* color palette & other vars */

:root {
	/* colors */
	--color-white: #fff;
	--color-black: #000;
	--color-light: #fff9e6;
	--color-blue-100: #6fbbd5;
	--color-blue-200: #113458;
	--color-blue-300: #09233a;
	--color-green-100: #8dc63f;
	--color-green-200: #547a1d;
	--color-green-300: #145b19;
	/* dimensions */
	--container-width-sm: 84%;
	--container-width-md: 86%;
	--container-width-lg: 94%;
	/* transition */
	--transition: all 300ms ease;
}

/* general tags */

body {
	font-family: 'Poppins', sans-serif;
	/* line-height: 1.7; */
	color: var(--color-light);
	background-color: var(--color-blue-200);
}

h1 {
	font-size: 2.4rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.6rem;
}

h4 {
	font-size: 1.3rem;
}

h1,
h2,
h3,
h4,
h5 {
	line-height: 1.2;
}

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

img {
	width: 100%;
	display: block;
	object-fit: cover;
}

section {
	padding: 6rem 0;
}

section h2 {
	margin-bottom: 4rem;
	text-align: center;
}

.container {
	width: var(--container-width-lg);
	margin: 0 auto;
}

.btn {
	display: inline-block;
	padding: 0.5rem 2rem;
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
	color: var(--color-green-100);
	background-color: transparent;
	border: 1.5px solid var(--color-green-100);
	border-radius: 50px;
	transition: var(--transition);
	cursor: pointer;
}

.btn:hover {
	font-weight: 500;
	color: var(--color-blue-200);
	background-color: var(--color-green-100);
	box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.2);
	transform: scale(1.03);
}

/* don't actually know if i want to use this
.btn-primary {
	color: var(--color-light);
	background-color: var(--color-black);
}
 */

/* nav */

nav {
	width: 100vw;
	height: 5rem;
	position: fixed;
	top: 0;
	background-color: transparent;
	z-index: 11;
}

.nav-container {
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

nav img {
	width: 10%;
	padding: 1rem;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 5rem;
}

.nav-menu a {
	font-size: 0.9rem;
	font-weight: 300;
	transition: var(--transition);
}

.nav-menu a:hover {
	color: var(--color-green-100);
}

.nav-btn {
	display: none;
}

#contact-btn {
	padding: 0.5rem 1.5rem;
	font-family: 'Poppins', sans-serif;
	font-size: 0.9rem;
	font-weight: 300;
	color: var(--color-green-100);
	background-color: transparent;
	border: 1.5px solid var(--color-green-100);
	border-radius: 50px;
	cursor: pointer;
	transition: var(--transition);
}

#contact-btn:hover {
	font-weight: 500;
	color: var(--color-blue-200);
	background-color: var(--color-green-100);
	box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.2);
	transform: scale(1.03);
}

/* javascript ----- nav background color change on scroll */

.window-scroll {
	background-color: var(--color-blue-300);
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
	transition: var(--transition);
}

/* header */

header {
	height: 85vh;
	position: relative;
	top: 6rem;
	margin-bottom: 5rem;
	overflow: hidden;
	background-image: linear-gradient(
		to bottom,
		#113458,
		#0e3050,
		#0c2b49,
		#0a2741,
		#09233a
	);
}

.header-container {
	width: 85%;
	height: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 4rem;
}

.header-left {
	line-height: 1.8;
}

.header-left h1 {
	font-size: 8rem;
	font-weight: 800;
}

.header-left h3 {
	font-size: 2.5rem;
	font-weight: 600;
	color: var(--color-green-100);
}

.header-left p {
	width: 100%;
	margin: 2rem 0 2.4rem;
	font-size: 1.1rem;
	font-weight: 200;
}

/* services */

.services {
	height: 29rem;
	background-color: var(--color-green-100);
}

.services-container {
	width: 80%;
	display: grid;
	grid-template-columns: 40% 60%;
	align-items: center;
	padding: 0 1rem;
}

.services-left {
	position: relative;
	bottom: 6rem;
}

.services-left h1 {
	margin-bottom: 2rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-blue-200);
}

.services-left p {
	width: 85%;
	margin: 1rem 0 2rem;
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--color-blue-300);
}

#services-btn {
	color: var(--color-blue-200);
	background-color: transparent;
	border: 1.6px solid var(--color-blue-200);
	font-weight: 500;
}

#services-btn:hover {
	color: var(--color-green-100);
	background-color: var(--color-blue-200);
}

.services-right {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.service {
	padding: 2rem;
	border: 1.6px solid var(--color-green-100);
	border-radius: 2rem;
	background-color: var(--color-blue-200);
	transition: var(--transition);
}

.service:hover {
	background-color: var(--color-blue-300);
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
	transform: scale(1.1);
	z-index: 1;
}

.service-icon {
	padding: 0.8rem 1.1rem;
	font-size: 1.3rem;
	color: var(--color-blue-300);
	border-radius: 50px;
	background-color: var(--color-green-100);
}

.service h5 {
	margin: 2rem 0 0.7rem;
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--light);
}

.service p {
	font-size: 0.8rem;
	font-weight: 300;
	color: var(--color-green-100);
}

/* comunicados & novidades */

.news {
	margin-top: 6rem;
}

.news-container {
	max-width: 80%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.news h2 {
	font-weight: 700;
	color: var(--color-green-100);
}

.news-item {
	text-align: center;
	border: 2px solid transparent;
	border-radius: 15px;
	background-color: var(--color-blue-300);
	overflow: hidden;
	transition: var(--transition);
}

.news-item:hover {
	border-color: var(--color-green-200);
	background-color: var(--color-green-200);
	box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.4);
	transform: scale(1.02);
}

.news-info {
	padding: 2rem;
}

.news-info h4 {
	font-weight: 600;
	color: var(--color-green-100);
}

.news-info p {
	margin: 1.2rem 0 2rem;
	font-size: 0.9rem;
	font-weight: 300;
	color: var(--color-light);
}

/* faq */

.faq {
	background-color: var(--color-green-100);
	box-shadow: inset 0 1rem 2rem rgba(0, 0, 0, 0.5);
}

.faq h2 {
	font-weight: 700;
	color: var(--color-blue-300);
}

.faq-container {
	width: 80%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2rem;
}

.faq-item {
	height: fit-content;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.3rem;
	border-radius: 50px;
	background-color: var(--color-green-200);
	cursor: pointer;
	transition: var(--transition);
}

.faq-item:hover {
	background-color: var(--color-blue-200);
	box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
	transform: scale(1.02);
}

.faq-icon {
	align-self: flex-start;
	margin-left: 0.7rem;
	padding-top: 0.25rem;
	font-size: 1.2rem;
}

.faq-item h4 {
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 2.2;
	color: var(--color-light);
}

.faq-item p {
	width: 90%;
	margin-top: 0.8rem;
	display: none;
	font-size: 0.9rem;
	font-weight: 300;
	color: var(--color-green-100);
}

.faq-item.open p {
	display: block;
}

/* reviews */

.reviews-container {
	width: 80%;
	position: relative;
	margin-bottom: 5rem;
	overflow-x: hidden;
}

.review {
	padding-top: 1rem;
}

.avatar {
	width: 8rem;
	height: 8rem;
	margin: 0 auto;
	border-radius: 50px;
	overflow: hidden;
}

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

.review-info h5 {
	margin-top: 0.6rem;
	font-size: 1.2rem;
	font-weight: 500;
}

.review-star {
	position: relative;
	top: 0.2rem;
	left: 0.2rem;
	letter-spacing: 0.4rem;
	color: var(--color-green-100);
}

.review-body {
	position: relative;
	margin-top: 3rem;
	padding: 1.5rem;
	border-radius: 50px;
	background-color: var(--color-green-100);
}

.review-body::before {
	content: '';
	width: 2.5rem;
	height: 2.5rem;
	display: block;
	position: absolute;
	left: 47.5%;
	top: -1rem;
	background: linear-gradient(
		135deg,
		transparent,
		var(--color-green-100),
		var(--color-green-100),
		var(--color-green-100)
	);
	border-radius: 10px;
	transform: rotate(45deg);
}

.review-body p {
	font-family: 'Merriweather', serif;
	font-size: 0.85rem;
	font-weight: 400;
	font-style: italic;
	text-align: center;
	color: var(--color-blue-300);
}

/* footer */

footer {
	padding-top: 3rem;
	font-size: 0.9rem;
	background-image: linear-gradient(
		to right bottom,
		#8dc63f,
		#6cab36,
		#4e8f2d,
		#317523,
		#145b19
	);
}

.footer-container {
	width: 80%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50rem;
	align-items: center;
}

footer img {
	width: 70%;
	margin-bottom: 1.2rem;
}

.footer-container > div h4 {
	margin-bottom: 1rem;
	font-weight: 600;
}

.footer-1 p {
	margin: 2rem 0 2rem;
	font-weight: 300;
	width: 200%;
}

.footer-social {
	display: flex;
	gap: 1.5rem;
	font-size: 1.5rem;
}

.footer-social a {
	transition: var(--transition);
}

.footer-social a:hover {
	color: var(--color-blue-300);
}

.footer-2 p {
	font-weight: 300;
}

.footer-2 span {
	margin-right: 1rem;
}

.footer-address {
	margin-bottom: 1.2rem;
}

.footer-copyright {
	margin-top: 2rem;
	padding: 1.2rem 0;
	font-size: 0.9rem;
	font-weight: 200;
	text-align: center;
	letter-spacing: 0.1rem;
	border-top: 2px solid var(--color-green-300);
}

.footer-copyright a {
	transition: var(--transition);
}

.footer-copyright a:hover {
	font-weight: 500;
	color: var(--color-blue-300);
}

/* media queries */

@media screen and (max-width: 1024px) {
	:root {
		--container-width-lg: var(--container-width-md);
	}

	h1 {
		font-size: 2.1rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	section {
		padding: 5rem 0;
	}

	section h2 {
		margin-bottom: 3rem;
	}

	html,
	body {
		max-width: 100%;
		overflow-x: hidden;
	}

	img {
		max-width: 100%;
		height: auto;
	}

	nav img {
		width: clamp(7rem, 10vw, 10rem);
		padding: 0.6rem 0;
	}

	.services {
		height: auto;
		min-height: 29rem;
	}

	.footer-container {
		gap: clamp(3rem, 12vw, 10rem);
	}

	.footer-1 p {
		width: 100%;
	}

	.nav-container {
		width: var(--container-width-md);
	}

	.nav-menu {
		gap: 2.5rem;
	}

	header {
		height: auto;
		min-height: 70vh;
		top: 5rem;
		margin-bottom: 5rem;
		padding: 3rem 0 4rem;
	}

	.header-container {
		width: var(--container-width-md);
		grid-template-columns: 1fr 0.8fr;
		gap: 2.5rem;
	}

	.header-left h1 {
		font-size: clamp(4.2rem, 10vw, 6rem);
	}

	.header-left h3 {
		font-size: clamp(1.7rem, 4vw, 2.2rem);
	}

	.header-left p {
		font-size: 1rem;
	}

	.services-container {
		width: var(--container-width-md);
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0;
	}

	.services-left {
		bottom: 0;
		text-align: center;
	}

	.services-left p {
		width: 100%;
		max-width: 46rem;
		margin-inline: auto;
	}

	.services-right {
		grid-template-columns: repeat(2, 1fr);
	}

	.service:hover,
	.news-item:hover,
	.faq-item:hover {
		transform: none;
	}

	.news {
		margin-top: 0;
	}

	.news-container {
		width: var(--container-width-md);
		max-width: none;
		grid-template-columns: repeat(2, 1fr);
	}

	.news-item:last-child {
		grid-column: 1 / -1;
		max-width: 32rem;
		justify-self: center;
	}

	.faq-container {
		width: var(--container-width-md);
		grid-template-columns: 1fr;
	}

	.faq-item {
		border-radius: 2rem;
	}

	.faq-item h4 {
		line-height: 1.5;
	}

	.faq-item p {
		width: 100%;
	}

	.reviews-container {
		width: var(--container-width-md);
	}

	.footer-container {
		width: var(--container-width-md);
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}

	footer img {
		width: min(18rem, 75%);
	}
}

@media screen and (max-width: 768px) {
	nav {
		background-color: var(--color-blue-300);
	}

	.nav-container {
		position: relative;
	}

	.nav-menu {
		width: 16rem;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		position: absolute;
		top: 5rem;
		right: 8%;
		background-color: var(--color-blue-300);
		box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
	}

	.nav-menu.active {
		display: flex;
	}

	.nav-menu li {
		width: 100%;
	}

	.nav-menu li a {
		width: 100%;
		display: block;
		padding: 1rem 1.5rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.nav-menu li a:hover {
		background-color: var(--color-blue-200);
	}

	#contact-btn {
		width: 100%;
		padding: 0;
		text-align: left;
		color: var(--color-light);
		border: 0;
		border-radius: 0;
	}

	#contact-btn:hover {
		color: var(--color-green-100);
		background-color: transparent;
		box-shadow: none;
		transform: none;
	}

	.nav-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		font-size: 1.5rem;
		color: var(--color-light);
		background: transparent;
		cursor: pointer;
	}

	#close-menu-btn {
		display: none;
	}

	#open-menu-btn.hide {
		display: none;
	}

	#close-menu-btn.show {
		display: inline-flex;
	}

	.header-container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.header-left {
		order: 2;
	}

	.header-right {
		order: 1;
		max-width: 18rem;
		margin: 0 auto;
	}

	.header-left p {
		margin-inline: auto;
	}

	.services-right,
	.news-container,
	.footer-container {
		grid-template-columns: 1fr;
	}

	.news-item:last-child {
		grid-column: auto;
		max-width: none;
	}

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

	footer img {
		margin-inline: auto;
	}

	.footer-social {
		justify-content: center;
	}
}

@media screen and (max-width: 480px) {
	:root {
		--container-width-lg: var(--container-width-sm);
		--container-width-md: var(--container-width-sm);
	}

	nav {
		height: 4.5rem;
	}

	nav img {
		width: 7rem;
	}

	.nav-menu {
		top: 4.5rem;
		width: 100%;
	}

	header {
		top: 4.5rem;
		padding: 2rem 0 3rem;
		margin-bottom: 4.5rem;
	}

	.header-left h1 {
		font-size: 3.7rem;
	}

	.header-left h3 {
		font-size: 1.45rem;
	}

	.header-left p,
	.services-left p,
	.news-info p,
	.faq-item p,
	.footer-1 p,
	.footer-2 p {
		font-size: 0.9rem;
	}

	.btn {
		width: 100%;
		max-width: 18rem;
		text-align: center;
	}

	.service {
		padding: 1.6rem;
		border-radius: 1.5rem;
	}

	.service h5 {
		margin-top: 1.5rem;
		font-size: 0.95rem;
	}

	.news-info {
		padding: 1.5rem;
	}

	.faq-item {
		align-items: flex-start;
		padding: 1.1rem;
		border-radius: 1.4rem;
	}

	.faq-icon {
		margin-left: 0;
	}

	.review-body {
		border-radius: 1.5rem;
	}

	.review-body::before {
		left: calc(50% - 1.25rem);
	}

	footer img {
		width: 50%;
	}

	.footer-copyright {
		padding-inline: 1rem;
		font-size: 0.75rem;
		letter-spacing: 0.03rem;
	}
}

@media screen and (max-width: 768px) {
	.nav-menu.active {
		display: flex;
	}

	#open-menu-btn.hide {
		display: none;
	}

	#close-menu-btn.show {
		display: inline-flex;
	}
}
