/* =========================
	 1) Design Tokens
	 ========================= */
:root {
	--color-brand: #6faa2d;
	--color-brand-dark: #4d7a1e;
	--color-brand-soft: #edf6e6;
	--color-ink: #1d2421;
	--color-muted: #59635f;
	--color-surface: #f3f5f1;
	--color-surface-strong: #ebefe9;
	--color-line: #e2e6e1;
	--color-darkbar: #141d1a;
	--color-overlay: rgba(11, 15, 13, 0.7);
	--color-white: #ffffff;
	--color-link: #9ccf68;
	--shadow-soft: 0 18px 40px rgba(18, 24, 20, 0.12);
	--shadow-card: 0 22px 50px rgba(20, 29, 26, 0.12);
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--space-1: 0.5rem;
	--space-2: 0.75rem;
	--space-3: 1rem;
	--space-4: 1.5rem;
	--space-5: 2rem;
	--space-6: 3rem;
	--max-content: 1240px;
}

/* =========================
	 2) Base and Helpers
	 ========================= */
* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	color: var(--color-ink);
	background:
		radial-gradient(circle at top left, rgba(111, 170, 45, 0.12), transparent 28%),
		linear-gradient(180deg, #f8faf7 0%, #f2f5f1 100%);
	line-height: 1.6;
	animation: fadeBody 0.7s ease-out;
}

@keyframes fadeBody {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes riseIn {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes floatImage {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-8px); }
}

@keyframes sheen {
	0% { transform: translateX(-120%); opacity: 0; }
	20% { opacity: 1; }
	100% { transform: translateX(120%); opacity: 0; }
}

img,
video {
	max-width: 100%;
}

a {
	color: inherit;
}

.container {
	width: min(var(--max-content), 100% - 10vw);
	margin-inline: auto;
}

.kicker {
	color: var(--color-brand);
	font-weight: 700;
	letter-spacing: 0.15em;
	font-size: 0.76rem;
	text-transform: uppercase;
}

.green-line {
	width: 50px;
	height: 3px;
	background: var(--color-brand);
	margin: 0 auto var(--space-3);
}

/* =========================
	 3) Buttons (padroes)
	 ========================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-decoration: none;
	font-weight: 700;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: linear-gradient(135deg, #6faa2d 0%, #3a7b1a 100%);
	color: #fff;
	box-shadow: 0 16px 28px rgba(86, 130, 43, 0.25);
}

.btn-primary:hover {
	background: linear-gradient(135deg, #7ebd35 0%, #4a8a22 100%);
	box-shadow: 0 20px 32px rgba(86, 130, 43, 0.32);
}

.btn-outline {
	border-color: var(--color-brand);
	color: var(--color-brand-dark);
	background: transparent;
}

.btn-ghost {
	background: transparent;
	color: var(--color-ink);
}

.btn-sm {
	padding: 0.45rem 0.8rem;
	font-size: 0.82rem;
}

.btn-md {
	padding: 0.72rem 1.15rem;
	font-size: 0.92rem;
}

.btn-lg {
	padding: 0.85rem 1.35rem;
	font-size: 0.98rem;
}

/* =========================
	 4) Header and Navigation
	 ========================= */
.topbar {
	background: linear-gradient(180deg, #131c19 0%, #101714 100%);
	color: #edf0ee;
	font-size: 0.77rem;
	padding: 0.48rem 5vw;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.topbar label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.topbar label > span {
	opacity: 0.86;
	font-size: 0.74rem;
	letter-spacing: 0.01em;
}

.lang-select-native {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
}


.lang-flags {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
}

.lang-flag-btn {
	width: 32px;
	height: 22px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.lang-flag-btn:hover {
	border-color: rgba(255, 255, 255, 0.72);
	filter: saturate(1.08);
}

.lang-flag-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.42);
}

.lang-flag-btn.is-active {
	border-color: #ffffff;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.lang-flag-image {
	width: 23px;
	height: 15px;
	object-fit: cover;
	border-radius: 1px;
	box-shadow: none;
}

.site-header {
	--header-height: 64px;
	height: var(--header-height);
	min-height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.2rem 3vw;
	border-bottom: 1px solid rgba(17, 25, 22, 0.08);
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	gap: var(--space-4);
	box-sizing: border-box;
	position: sticky;
	top: 0;
	z-index: 30;
	box-shadow: 0 8px 24px rgba(17, 25, 22, 0.04);
}

.brand-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 0;
}

.official-logo {
	display: block;
	height: 42px;
	width: auto;
	max-width: 46vw;
	object-fit: contain;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 1.4rem;
}

.main-nav a {
	color: #2d352f;
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	position: relative;
	transition: color 0.2s ease;
}

.main-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.42rem;
	width: 100%;
	height: 2px;
	background: var(--color-brand);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.main-nav a:hover {
	color: var(--color-brand-dark);
}

.main-nav a:hover::after {
	transform: scaleX(1);
}

.breadcrumbs {
	width: min(var(--max-content), 100% - 10vw);
	margin: 1rem auto 0;
	color: #67706b;
	font-size: 0.86rem;
}

.breadcrumbs a {
	color: #56615b;
	text-decoration: none;
}

.breadcrumbs strong {
	color: #1f2421;
}

/* =========================
	 5) Hero Blocks
	 ========================= */
.hero-home {
	min-height: 500px;
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	background:
		radial-gradient(circle at top left, rgba(111, 170, 45, 0.12), transparent 35%),
		linear-gradient(135deg, #f7faf6 0%, #edf2eb 42%, #f5f7f3 100%);
	border-bottom: 1px solid rgba(17, 25, 22, 0.06);
	overflow: hidden;
}

.hero-copy {
	padding: 5.2rem 7vw 4.1rem 8vw;
	display: flex;
	flex-direction: column;
	justify-content: center;
	animation: riseIn 0.8s ease-out both;
}

.hero-home h1,
.hero-gallery h1 {
	margin: 0.8rem 0 1rem;
	color: #1d2421;
}

.hero-home h1 {
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 0.96;
	font-weight: 700;
	letter-spacing: -0.045em;
	max-width: 620px;
	text-shadow: 0 2px 0 rgba(255, 255, 255, 0.2);
}

.hero-home p,
.hero-gallery p {
	color: var(--color-muted);
	line-height: 1.7;
	max-width: 620px;
	font-size: 1.02rem;
}

.hero-image {
	background:
		linear-gradient(135deg, rgba(15, 22, 18, 0.12), rgba(15, 22, 18, 0.04)),
		url("../hero.jpg") center / cover no-repeat;
	min-height: 500px;
	position: relative;
	animation: floatImage 9s ease-in-out infinite;
	border-radius: 0;
	overflow: hidden;
}

.hero-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-image::after {
	content: "";
	position: absolute;
	left: 3%;
	right: 3%;
	top: 6%;
	bottom: 6%;
	border-radius: 22px;
	box-shadow: 0 26px 48px rgba(12, 18, 15, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.15);
	pointer-events: none;
}

.missing {
	position: relative;
}

.missing::after {
	content: "Missing hero image: assets/hero.jpg";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1.8rem;
	color: #828782;
	background: linear-gradient(135deg, #efefec, #ddd);
	font-size: 0.88rem;
}

.hero-gallery {
	background: var(--color-surface);
	padding: 3.2rem 8vw 2.4rem;
}

.hero-gallery h1 {
	font-size: clamp(1.85rem, 4vw, 3.1rem);
}

/* =========================
	 6) Sections and Cards
	 ========================= */
.section {
	padding: 4.8rem 5vw;
}

.section-head {
	text-align: center;
	max-width: 780px;
	margin: 0 auto 2.7rem;
}

.section-head h2 {
	font-size: clamp(1.9rem, 4vw, 2.7rem);
	margin: 0.5rem 0 0.8rem;
	font-weight: 700;
	letter-spacing: -0.04em;
	animation: riseIn 0.9s ease-out both;
}

.section-head p {
	color: #66716c;
	line-height: 1.7;
	font-size: 1.02rem;
}

.grid {
	display: grid;
	gap: 1.35rem;
}

.grid-home {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 1020px;
	margin-inline: auto;
}

.grid-categories {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	width: min(var(--max-content), 100% - 10vw);
	margin-inline: auto;
	padding-block: 1.2rem 3.4rem;
}

.media-count {
	width: min(var(--max-content), 100% - 10vw);
	margin: 1rem auto 0;
	color: #6e7672;
	font-size: 0.86rem;
}

.card {
	position: relative;
	overflow: hidden;
	text-decoration: none;
	border-radius: var(--radius-lg);
	background: #dfe2de;
	min-height: 315px;
	box-shadow: var(--shadow-card);
	border: 1px solid rgba(17, 25, 22, 0.04);
	transition: transform 0.26s ease, box-shadow 0.26s ease, filter 0.26s ease;
	isolation: isolate;
}

.card[hidden],
.empty[hidden] {
	display: none !important;
}

.card::before {
	content: "";
	position: absolute;
	inset: -20% auto auto -20%;
	width: 45%;
	height: 140%;
	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 100%);
	transform: rotate(20deg) translateX(-120%);
	transition: transform 0.7s ease;
	z-index: 1;
}

.card:hover {
	transform: translateY(-6px) scale(1.01);
	box-shadow: 0 30px 52px rgba(17, 25, 22, 0.2);
	filter: saturate(1.04);
}

.card:hover::before {
	transform: rotate(20deg) translateX(240%);
}

.card img,
.card video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.32s ease;
}

.card:hover img,
.card:hover video {
	transform: scale(1.035);
}

.card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 15, 13, 0.04) 26%, rgba(11, 15, 13, 0.76) 100%);
}

.card-copy {
	position: absolute;
	z-index: 2;
	left: 1.5rem;
	right: 1.5rem;
	bottom: 1.5rem;
	color: #fff;
}

.card-copy h3 {
	margin: 0;
	font-size: 1.28rem;
	letter-spacing: 0.01em;
	font-weight: 700;
}

.card-copy span {
	display: inline-block;
	margin-top: 0.42rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.83rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.card.folder::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(130deg, #93b977, #51753d);
	opacity: 0.3;
	z-index: 1;
}

.card.folder .card-copy {
	bottom: 1.4rem;
}

.card.folder h3 {
	text-transform: uppercase;
}

.empty {
	width: min(var(--max-content), 100% - 10vw);
	margin: 1.4rem auto 3.2rem;
	background: #f6f7f4;
	border: 1px dashed #cfd8d0;
	border-radius: var(--radius-md);
	text-align: center;
	color: #6e7771;
	padding: 3rem 1.5rem;
}

/* =========================
	 7) About and Footer
	 ========================= */
.about {
	background: linear-gradient(180deg, #f6f8f5 0%, #edf1ec 100%);
	padding: 4rem 7vw 4.4rem;
	text-align: center;
	border-top: 1px solid rgba(17, 25, 22, 0.06);
}

.about h2 {
	margin: 0 0 0.9rem;
	font-weight: 700;
	letter-spacing: -0.04em;
	font-size: clamp(2rem, 4vw, 2.8rem);
}

.about p {
	max-width: 860px;
	margin: auto;
	color: #5d6661;
	line-height: 1.8;
	font-size: 1.04rem;
}

.analytics-cta {
	margin-top: 1.7rem;
}

.site-footer {
	background: linear-gradient(180deg, #141d1a 0%, #0d1513 100%);
	color: #d8ddd8;
	padding: 2.6rem 5vw;
	display: flex;
	justify-content: space-between;
	gap: var(--space-4);
	align-items: center;
	font-size: 0.82rem;
}

.site-footer strong {
	color: #fff;
	font-size: 1.2rem;
	letter-spacing: 0.06em;
}

.site-footer a {
	color: var(--color-link);
	text-decoration: none;
	font-weight: 600;
}

.whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 1200;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 25%, #ffffff 0%, #f2fff7 65%, #e5f9ef 100%);
	box-shadow: 0 18px 32px rgba(18, 88, 49, 0.2);
	border: 2px solid rgba(38, 203, 105, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 22px 38px rgba(18, 88, 49, 0.28);
}

.whatsapp-float:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.85);
	outline-offset: 4px;
}

.whatsapp-float img {
	width: 38px;
	height: 38px;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	display: block;
}

.whatsapp-float::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 1px solid rgba(38, 203, 105, 0.32);
	animation: whatsappPulse 2.2s ease-out infinite;
}

@keyframes whatsappPulse {
	0% {
		opacity: 0.9;
		transform: scale(1);
	}
	70% {
		opacity: 0;
		transform: scale(1.18);
	}
	100% {
		opacity: 0;
		transform: scale(1.18);
	}
}

/* =========================
	 8) Media Viewer
	 ========================= */
.viewer {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 1.8rem;
}

.viewer.open {
	display: flex;
}

#viewerContent {
	width: 94vw;
	height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.viewer img,
.viewer video {
	max-width: 94vw;
	max-height: 88vh;
	object-fit: contain;
}

.viewer video {
	width: 94vw;
	height: 88vh;
	display: block;
}

.close {
	position: absolute;
	right: 22px;
	top: 16px;
	color: #fff;
	font-size: 38px;
	cursor: pointer;
	border: 0;
	background: none;
	z-index: 3;
}

.nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 58px;
	height: 78px;
	border: 0;
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
	font-size: 54px;
	line-height: 1;
	cursor: pointer;
	border-radius: 8px;
}

.nav:hover {
	background: rgba(0, 0, 0, 0.48);
}

.prev {
	left: 18px;
}

.next {
	right: 18px;
}

/* =========================
	 9) Responsive
	 ========================= */
@media (max-width: 900px) {
	.site-header {
		--header-height: 56px;
		height: var(--header-height);
		min-height: var(--header-height);
		padding: 0.2rem 6vw;
	}

	.official-logo {
		height: 36px;
		width: auto;
		max-width: 70vw;
	}

	.hero-home {
		grid-template-columns: 1fr;
	}

	.hero-copy {
		padding: 3.2rem 7vw;
	}

	.hero-image {
		min-height: 280px;
	}

	.grid-home {
		grid-template-columns: 1fr;
	}

	.site-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 720px) {
	.topbar {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.lang-flags {
		gap: 0.3rem;
	}

	.lang-flag-btn {
		width: 32px;
		height: 22px;
	}

	.lang-flag-image {
		width: 22px;
		height: 14px;
	}

	.main-nav {
		display: none;
	}

	.hero-gallery {
		padding: 2.2rem 7vw 1.8rem;
	}

	.grid-categories {
		width: calc(100% - 2.2rem);
		grid-template-columns: 1fr;
		gap: 0.8rem;
		padding-bottom: 2.1rem;
	}

	.media-count,
	.empty,
	.breadcrumbs {
		width: calc(100% - 2.2rem);
	}

	.card {
		min-height: 240px;
	}

	.nav {
		width: 50px;
		height: 68px;
		font-size: 48px;
	}
}