:root {
  --black: rgb(30, 30, 30);
  --gray: rgb(130, 130, 130);
  --white: rgb(255, 255, 255);
  --green: rgb(78, 139, 100);
	--greenalpha: rgba(78, 139, 100, 0.8);
	--greenalpha2: rgba(78, 139, 100, 0.2);
  --lightgray: rgb(246, 244, 239);
  --lightgrayalpha: rgba(246, 244, 239, 0.8);
	--lightgrayalpha2: rgba(246, 244, 239, 0.2);
  --accent: rgb(244, 162, 97);
  --accentalpha: rgba(244, 162, 97, 0.8);
  --accentalpha2: rgba(244, 162, 97, 0.2);
	--blue: rgb(63, 167, 214);
	
	--menu-height: 60px;
	
	--peb-img-max-width: 640px;
	--peb-img-max-height: 905px;
	
	--border-radius: 10px;
}

/*
	Common
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Ibarra Real Nova';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/IbarraRealNova-VariableFont_wght.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/Gabarito-VariableFont_wght.woff2') format('woff2');
  font-display: swap;
}

.font-content {
	font-family: 'Ibarra Real Nova', sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.font-highlight {
	font-family: 'Gabarito', sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
}

body {
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: var(--green);
  margin: 0;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

section {
	display: flex;
	justify-content: center;
  align-items: start;
  flex-direction: column;
  margin: auto;
  padding: 80px 20vw; 
  width: 100%;
}

.bg-light {
	background-color: var(--lightgray);
}

.bg-color {
	background-color: var(--green);
}

h2 {
	font-weight: 400;
	margin-top: 1rem;
  margin-bottom: 4rem;
  font-size: 2.5rem;
  text-transform: uppercase;
	user-select: none; 
}

.bg-light h2 {
  color: var(--green);
}

.bg-color h2 {
  color: var(--lightgray);
}

p {
	font-size: 1.2rem;
	padding: 10px 0;
}

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

/*
	Nav
*/

#navbar {
	position: fixed;
	width: 100vw;
	height: var(--menu-height);
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	gap: 2vw;
	padding: 0 50px;
	transform: translateY(calc(-1 * var(--menu-height)));
	color: var(--white);
	background-color: var(--green);
	pointer-events: auto;
	z-index: 10;
	visibility: hidden;
}

#navbar.scrolled {
	visibility: visible;
	transform: translateY(0);
}

.logo {
	flex-shrink: 0;
	height: calc(var(--menu-height) - 20px);
	display: flex;
	align-items: center;
}

.logo-a {
	display: flex;
	height: 100%;
}

.logo img {
	height: 100%;
	width: auto;
}

.menu {
	flex: 1;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	padding: 0;
}

.menu a {
	display: block;
	padding: 6px 14px;
	color: var(--lightgray);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.85rem;
	border-radius: var(--border-radius);
	transition: background 0.15s;
	white-space: nowrap;
}

.menu a:hover {
	background: var(--lightgrayalpha2);
	color: var(--lightgray);
}

.nav-sep {
	width: 1px;
	height: 20px;
	background: var(--lightgrayalpha2);
	flex-shrink: 0;
	margin: 0 4px;
}

.menu .nav-cta {
	background: var(--accent);
	color: var(--white);
	font-weight: 600;
	padding: 7px 16px;
}

.menu .nav-cta:hover {
	background: var(--accent);
	color: var(--white);
	opacity: 0.88;
}

/* Animations */

@keyframes navIn {
  from { transform: translateY(calc(-1*var(--menu-height))); }
  to { transform: translateY(0); }
}

@keyframes navOut {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-1*var(--menu-height))); }
}

#navbar.scrolled {
	animation: navIn 0.5s ease-out 0s none;
}

#navbar:not(.initial):not(.scrolled) {
	animation: navOut 0.5s ease-out 0s none;
}

/*
	Header
*/

#header {
	position: relative;
	height: 100vh;
	display: flex;
	overflow: hidden;
	color: var(--white);
	background-color: var(--green);
}

#hero-content {
	position: relative;
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	user-select: none;

	z-index: 0;

	background: url('img/background.webp') center/cover no-repeat;
}

#header-overset {
	position: absolute;
	inset: 0;
	background-color: var(--greenalpha);
	z-index: 1;
}

.hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	padding: 2rem;
	text-align: center;
	width: 100%;
	max-width: 700px;
}

.header-logo {
	width: 90%;
	max-width: 1024px;
}

.header-logo img {
	width: 100%;
	height: auto;
}

.hero-catchphrase {
	font-family: 'Ibarra Real Nova', sans-serif;
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	color: var(--lightgray);
	opacity: 0;
	line-height: 1.55;
	animation: fadeIn 0.3s ease-out 0.6s forwards;
}

.hero-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	opacity: 0;
	animation: fadeIn 0.3s ease-out 0.8s forwards;
}

.hero-pill {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--lightgrayalpha2);
	border: 1px solid var(--lightgrayalpha2);
	color: var(--lightgray);
	font-family: 'Gabarito', sans-serif;
	font-size: 0.9rem;
	white-space: nowrap;
}

.hero-pill-icon {
	width: 16px;
	height: 16px;
	fill: var(--accent);
	flex-shrink: 0;
}

.hero-cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
	opacity: 0;
	animation: fadeIn 0.3s ease-out 1s forwards;
}

.hero-btn-primary {
	padding: 12px 26px;
	background: var(--accent);
	color: var(--white);
	font-weight: 600;
	font-size: 1rem;
	border: none;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-family: 'Gabarito', sans-serif;
	text-decoration: none;
	transition: opacity 0.2s;
}

.hero-btn-primary:hover {
	opacity: 0.88;
	color: var(--white);
}

.hero-btn-ghost {
	padding: 11px 24px;
	background: transparent;
	color: var(--lightgray);
	font-weight: 500;
	font-size: 1rem;
	border: 1px solid var(--lightgrayalpha2);
	border-radius: var(--border-radius);
	cursor: pointer;
	font-family: 'Gabarito', sans-serif;
	text-decoration: none;
	transition: background 0.2s;
}

.hero-btn-ghost:hover {
	background: var(--lightgrayalpha2);
	color: var(--lightgray);
}

.know-more {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	text-decoration: none;
	animation: fadeIn 0.3s ease-out 1.2s forwards;
}

.know-more-icon {
	width: clamp(36px, 5vw, 48px);
	height: clamp(36px, 5vw, 48px);
	fill: var(--accent);
	animation: bounce 2.2s ease-in-out 1.5s infinite;
}

.know-more-icon:hover {
	fill: var(--white);
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(6px); }
}

/*
	Media
*/

@media (max-width: 1200px) {
  section {
    padding: 50px 10vw;
  }
}

@media (max-width: 992px) {
  section {
    padding: 40px 10vw;
  }
}

@media (max-width: 992px) and (orientation: landscape) {
	#navbar {
		display: none;
	}
	
	.header-logo {
		width: 50%;
	}
	
	.hero-catchphrase {
		font-size: clamp(0.9rem, 2.0vw, 1.0rem);
	}
	
	.know-more {
		left: 90%;
	}
}

@media (max-width: 768px) {
	section {
		padding: 30px 5vw;
	}

	#navbar {
		display: none;
	}

	.header-logo {
		width: 70%;
	}

	.hero-pills {
		gap: 8px;
	}

	.hero-pill {
		font-size: 0.82rem;
		padding: 6px 12px;
	}
}

@media (max-width: 768px) and (orientation: landscape) {
	.header-logo {
		width: 40%;
	}
	
	.hero-catchphrase {
		font-size: clamp(0.85rem, 1.9vw, 0.9rem);
	}
	
	.know-more {
		left: 90%;
	}

}

@media (max-width: 480px) {
	section {
		padding: 20px 5vw;
	}

	h2 {
		font-size: 1.5rem;
	}

	#navbar {
		display: none;
	}

	.header-logo {
		width: 80%;
	}

	.hero-pills {
		gap: 6px;
	}

	.hero-pill {
		font-size: 0.78rem;
		padding: 5px 10px;
	}

	.hero-btn-primary,
	.hero-btn-ghost {
		padding: 10px 18px;
		font-size: 0.9rem;
	}
}

