/* TYPOGRAPHY */
@font-face {
	font-family: "PlayfairDisplay";
	src: url("../typography/PlayfairDisplay-Regular.ttf") format("truetype");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "PlayfairDisplay";
	src: url("../typography/PlayfairDisplay-Bold.ttf") format("truetype");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Poppins";
	src: url("../typography/Poppins-Regular.ttf") format("truetype");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Poppins";
	src: url("../typography/Poppins-Bold.ttf") format("truetype");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "MeowScript";
	src: url("../typography/MeowScript-Regular.ttf") format("truetype");
	font-weight: 400;
	font-display: swap;
}

/* ROOT & BASE */
:root {
	--primary-color: #14241e;
	--accent-color: #4fb048;
	--bg-color: #f5f4f0;
	--text-dark: #121212;
	--text-light: #f9f7f4;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border: none;
	list-style: none;
	text-decoration: none;
}
body {
	background-color: var(--bg-color);
	color: var(--text-dark);
	font-family: "Poppins", sans-serif;
	overflow-x: hidden;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	body {
		scroll-behavior: auto;
	}
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--accent-color);
	outline-offset: 3px;
}

.body-container {
	display: grid;
	justify-items: center;
	grid-template-columns: 1fr;
}

/* SECTIONS */
section {
	padding: 1.5rem;
	width: 100%;
	max-width: 1200px;
}
@media (min-width: 700px) {
	section {
		padding: 4rem 1.5rem;
	}
}
.section-tag {
	font-size: 0.8rem;
	letter-spacing: 2px;
	color: var(--accent-color);
	font-weight: 600;
	text-transform: uppercase;
}
.section-title {
	font-family: "PlayfairDisplay", serif;
	font-size: 2rem;
	line-height: 1.1;
	margin-top: 0.5rem;
	margin-bottom: 2rem;
}
@media (min-width: 700px) {
	.section-title {
		font-size: 2.5rem;
	}
}

/* NAVIGATION */
.nav {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 2rem;
	width: 100%;
	z-index: 1000;
	position: fixed;
	top: 0;
	left: 0;
	background-color: transparent;
	transition:
		background-color 0.4s ease,
		padding 0.4s ease,
		box-shadow 0.4s ease;
}
.nav.scrolled {
	background-color: var(--primary-color);
	padding: 1rem 2rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
@media (min-width: 700px) {
	.nav.scrolled {
		padding: 0.5rem 2rem;
	}
}
.brand-logo-img {
	width: 100%;
	max-width: 200px;
}
.nav-links-container {
	position: fixed;
	top: 0;
	right: -100%;
	width: 80%;
	height: 100vh;
	background-color: var(--primary-color);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	transition: right 0.4s ease;
}
.nav-links-container.active {
	right: 0;
}
@media (min-width: 700px) {
	.nav-links-container {
		position: static;
		width: auto;
		height: auto;
		background-color: transparent;
		flex-direction: row;
		gap: 40px;
	}
}
.nav-link {
	color: var(--text-light);
	font-size: 0.9rem;
	text-transform: uppercase;
	transition: color 0.3s ease;
}
.nav-link:hover {
	color: var(--accent-color);
}
.nav-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}
.nav-btn {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	border-radius: 500px;
	font-weight: bold;
	font-size: 0.8rem;
	cursor: pointer;
	background-color: var(--accent-color);
	color: var(--primary-color);
	text-transform: uppercase;
	transition: background-color 0.3s ease;
}
@media (min-width: 700px) {
	.nav-btn {
		padding: 0.6rem 1rem;
		font-size: 0.9rem;
	}
}
.nav-btn:hover {
	background-color: #b1bd6d;
}
.burger-menu {
	width: 30px;
	height: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
	z-index: 1001;
	background: transparent;
	padding: 0;
}
@media (min-width: 700px) {
	.burger-menu {
		display: none;
	}
}
.burger-menu span {
	width: 100%;
	height: 2px;
	background-color: var(--text-light);
	border-radius: 5px;
	transition:
		transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
		opacity 0.3s ease;
}
.burger-menu.open span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
	opacity: 0;
	transform: translateX(-20px);
}
.burger-menu.open span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* HERO */
.hero {
	width: 100%;
	height: 100vh;
	position: relative;
	background-image: url("../assets/images/hero-bg.jpg");
	background-size: cover;
	background-position: center;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.8),
		rgba(0, 0, 0, 0.4)
	);
	z-index: 1;
}
.hero-info {
	position: absolute;
	top: 55%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	color: var(--text-light);
	z-index: 2;
	text-align: center;
}
@media (min-width: 700px) {
	.hero-info {
		max-width: 1200px;
		text-align: left;
	}
}
.hero-subtitle {
	font-size: 0.7rem;
	letter-spacing: 3px;
}
.hero-title {
	font-family: "PlayfairDisplay";
	font-size: 2.5rem;
	margin: 1rem 0;
}
@media (min-width: 700px) {
	.hero-title {
		font-size: 4.5rem;
		margin: 1.5rem 0;
	}
}
.hero-title span {
	color: var(--accent-color);
}
.hero-description {
	margin: 0 auto;
	max-width: 500px;
	line-height: 1.6;
	font-size: 0.9rem;
}
@media (min-width: 700px) {
	.hero-description {
		margin: 0;
		font-size: 1rem;
	}
}
.hero-cta {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 2rem;
}
@media (min-width: 700px) {
	.hero-cta {
		flex-direction: row;
	}
}
.btn-primary,
.ghost-btn {
	padding: 1rem 2rem;
	border-radius: 2px;
	font-weight: bold;
	font-size: 0.9rem;
	cursor: pointer;
	text-transform: uppercase;
	text-align: center;
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}
.btn-primary {
	background-color: var(--accent-color);
	color: var(--primary-color);
}
.btn-primary:hover {
	background-color: #b1bd6d;
}
.ghost-btn {
	border: 1px solid var(--text-light);
	color: var(--text-light);
	background: transparent;
}
.ghost-btn:hover {
	background: var(--text-light);
	color: var(--text-dark);
}

/* SERVICES */
.section-header {
	margin-bottom: 2rem;
}
@media (min-width: 700px) {
	.section-header {
		margin-bottom: 3rem;
	}
}
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	width: 100%;
}
.service-card {
	min-height: 350px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: var(--text-light);
	border-radius: 2px;
}
.card-media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 2px;
}
.card-bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.7);
	transition:
		transform 0.3s ease,
		filter 0.3s ease;
}
.service-card:hover .card-bg {
	transform: scale(1.1);
	filter: brightness(0.5);
}
.card-info {
	background-color: var(--primary-color);
	width: 100%;
	padding: 1.5rem;
	position: relative;
	z-index: 1;
}
.card-icon {
	position: absolute;
	top: -20px;
	left: 1.5rem;
	width: 40px;
	background-color: var(--primary-color);
	border: solid 2px var(--accent-color);
	padding: 6px;
	border-radius: 2px;
}
.card-title {
	font-family: "PlayfairDisplay";
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}
@media (min-width: 700px) {
	.card-title {
		font-size: 1.5rem;
	}
}
.card-text {
	font-size: 0.9rem;
	opacity: 0.8;
	margin-bottom: 1.5rem;
}
.card-link {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent-color);
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 5px;
}
.card-link img {
	width: 18px;
	transition: transform 0.3s ease;
}
.card-link:hover img {
	transform: translateX(5px);
}

/* CTA BANNER */
.cta-banner-section {
	width: 100%;
	max-width: unset;
	background-color: rgba(0, 0, 0, 0.6);
	background-image: url("../assets/images/cta-bg-pattern.png");
	background-position: right;
	background-blend-mode: multiply;
	text-align: center;
	color: var(--text-light);
}
.cta-banner-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}
@media (min-width: 700px) {
	.cta-banner-content {
		flex-direction: row;
		justify-content: space-between;
	}
}
.cta-banner-content h2 {
	font-family: "PlayfairDisplay";
	font-size: 1.8rem;
	margin-bottom: 1rem;
}
@media (min-width: 700px) {
	.cta-banner-content h2 {
		font-size: 2.5rem;
	}
	.cta-text {
		max-width: 450px;
		text-align: left;
	}
}
.cta-banner-content p {
	margin-bottom: 2rem;
	opacity: 0.8;
}
.cta-banner-content .ghost-btn {
	align-self: center;
	display: flex;
	align-items: center;
	line-height: 0;
}
.cta-banner-content .ghost-btn:hover .btn-icon {
	filter: invert(1);
}
.btn-icon {
	width: 18px;
	transition: filter 0.3s ease;
}

/* ABOUT */
.about-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	padding: 1.5rem;
}
@media (min-width: 700px) {
	.about-container {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}
.about-description {
	margin-bottom: 1rem;
}
.about-signature {
	font-family: "MeowScript";
	text-align: right;
	color: var(--accent-color);
}
.image-wrapper {
	position: relative;
}
.image-wrapper::before {
	content: "";
	position: absolute;
	top: -25px;
	left: -25px;
	height: 100%;
	aspect-ratio: 2/3;
	background-color: var(--accent-color);
	z-index: -1;
}
.about-img {
	border-radius: 2px;
	aspect-ratio: 4/3;
	object-fit: cover;
	width: 100%;
	max-width: 480px;
	display: block;
}

/* FOOTER */
.main-footer {
	background-color: var(--primary-color);
	color: var(--text-light);
	width: 100%;
}
.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	padding: 3rem 1.5rem;
}
@media (min-width: 700px) {
	.footer-container {
		grid-template-columns: 1fr 1.5fr;
		gap: 4rem;
		padding: 4rem 1.5rem;
	}
}
.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 15px;
}
.footer-brand .brand-logo {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: "PlayfairDisplay";
}
.footer-brand-img {
	width: 100%;
	max-width: 250px;
}
.social-links {
	display: flex;
	gap: 10px;
}
.footer-links-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 700px) {
	.footer-links-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
.footer-column h3 {
	color: var(--accent-color);
	margin-bottom: 1rem;
}
.footer-link {
	color: var(--text-light);
	opacity: 0.6;
	font-size: 0.9rem;
	transition:
		opacity 0.3s ease,
		color 0.3s ease;
}
.footer-link:hover {
	opacity: 1;
	color: var(--accent-color);
}
.footer-bottom {
	max-width: 1200px;
	margin: 2rem auto 0;
	padding-block: 2rem;
	border-top: 1px solid var(--text-light);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}
@media (min-width: 700px) {
	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
	}
}
.footer-bottom a {
	color: var(--text-light);
}
.copyright {
	font-size: 0.8rem;
	opacity: 0.6;
}
.powered-by {
	display: flex;
	align-items: center;
	gap: 10px;
}
.so-logo {
	width: 100%;
	max-width: 250px;
}
