:root {
	--bg: #f5f7f2;
	--surface: rgba(255, 255, 255, 0.78);
	--surface-strong: #ffffff;
	--text: #11230f;
	--muted: #3e5640;
	--line: rgba(17, 35, 15, 0.12);
	--primary: #28684d;
	--primary-2: #173a2b;
	--accent: #f9a826;
	--danger: #ac2f2f;
	--shadow: 0 20px 45px rgba(17, 35, 15, 0.12);
}

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

html,
body {
	min-height: 100%;
}

body {
	font-family: "Space Grotesk", sans-serif;
	color: var(--text);
	background: radial-gradient(circle at 20% 0%, #d7ead8 0%, var(--bg) 48%),
		linear-gradient(180deg, #e8efe0 0%, #f5f7f2 45%, #edf2e7 100%);
	line-height: 1.45;
	overflow-x: hidden;
}

.bg-layer {
	position: fixed;
	z-index: -2;
	filter: blur(10px);
	opacity: 0.5;
}

.bg-layer-1 {
	width: 26rem;
	height: 26rem;
	border-radius: 50%;
	top: -5rem;
	right: -6rem;
	background: #79ba8d;
}

.bg-layer-2 {
	width: 28rem;
	height: 28rem;
	border-radius: 42% 58% 61% 39% / 42% 51% 49% 58%;
	bottom: -8rem;
	left: -8rem;
	background: #f3c87d;
}

.container {
	width: min(1200px, calc(100% - 2rem));
	margin-inline: auto;
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10;
	backdrop-filter: blur(14px);
	background: rgba(245, 247, 242, 0.8);
	border-bottom: 1px solid var(--line);
}

main {
	padding-top: 5.25rem;
}

.nav-wrap {
	min-height: 5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.brand h1 {
	font-family: "Sora", sans-serif;
	font-size: 0.95rem;
	margin-bottom: 0.15rem;
}

.brand p {
	color: var(--muted);
	font-size: 0.8rem;
}

.brand-badge {
	width: 3rem;
	height: 3rem;
	display: grid;
	place-items: center;
	font-family: "Sora", sans-serif;
	font-weight: 800;
	border-radius: 0.9rem;
	color: #f4ffef;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	box-shadow: var(--shadow);
}

nav {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

nav a {
	color: var(--text);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
}

nav a:hover {
	color: var(--primary);
}

.hero {
	padding: 1rem 0 4rem;
	animation: rise 0.7s ease;
}

.hero-tag {
	display: inline-block;
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 0.8rem;
	font-weight: 700;
}

.hero h2 {
	font-family: "Sora", sans-serif;
	font-size: clamp(1.8rem, 3.2vw, 3rem);
	max-width: 16ch;
	line-height: 1.1;
	margin-bottom: 1rem;
}

.hero h2 span {
	color: var(--primary);
}

.hero p {
	max-width: 64ch;
	color: var(--muted);
	margin-bottom: 1.2rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.section {
	margin: 1.5rem auto;
	padding: 1.4rem;
}

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 1.15rem;
	box-shadow: var(--shadow);
	backdrop-filter: blur(8px);
}

.section-head {
	margin-bottom: 1rem;
}

.section h3,
.section-head h3 {
	font-family: "Sora", sans-serif;
	font-size: 1.5rem;
	margin-bottom: 0.4rem;
}

.section-head p,
.section p {
	color: var(--muted);
}

#sobre > p {
	margin-bottom: 1.1rem;
}

.stats-grid,
.board-grid,
.posts-grid,
.notice-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.9rem;
}

.stats-grid article,
.board-card,
.post-card,
.notice-card {
	border-radius: 1rem;
	padding: 1rem;
	border: 1px solid var(--line);
	background: var(--surface-strong);
}

.stats-grid strong,
.board-card h4,
.post-card h4,
.notice-card h4 {
	font-family: "Sora", sans-serif;
	margin-bottom: 0.35rem;
}

.notice-card {
	border-left: 5px solid var(--accent);
}

.post-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 1rem;
}

.btn,
.filter-btn {
	border: none;
	border-radius: 0.7rem;
	padding: 0.7rem 1rem;
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover,
.filter-btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: #effff4;
	box-shadow: 0 12px 30px rgba(23, 58, 43, 0.26);
}

.btn-outline {
	border: 1px solid var(--line);
	background: #fff;
	color: var(--text);
}

.btn-ghost {
	border: 1px solid rgba(40, 104, 77, 0.35);
	background: rgba(40, 104, 77, 0.07);
	color: var(--primary);
}

.filter-btn {
	background: #fff;
	border: 1px solid var(--line);
	font-weight: 600;
}

.filter-btn.active {
	background: var(--primary);
	color: #fff;
	border-color: transparent;
}

.post-card {
	position: relative;
	animation: rise 0.4s ease;
}

.post-meta {
	font-size: 0.83rem;
	color: var(--muted);
	margin-bottom: 0.6rem;
}

.post-tag {
	display: inline-block;
	padding: 0.22rem 0.6rem;
	border-radius: 99px;
	font-size: 0.75rem;
	font-weight: 700;
	margin-bottom: 0.65rem;
}

.tag-edital {
	background: rgba(249, 168, 38, 0.15);
	color: #825300;
}

.tag-atividade {
	background: rgba(40, 104, 77, 0.14);
	color: #204f3b;
}

.tag-comunicado {
	background: rgba(23, 58, 43, 0.12);
	color: #173a2b;
}

.empty-state {
	padding: 1.2rem;
	border: 1px dashed var(--line);
	border-radius: 0.8rem;
	color: var(--muted);
	text-align: center;
}

.site-footer {
	margin-top: 2.6rem;
	padding: 1.2rem 0 1.8rem;
	border-top: 1px solid var(--line);
}

.footer-wrap {
	display: flex;
	justify-content: space-between;
	gap: 0.8rem;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 0.9rem;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(7, 15, 10, 0.45);
}

.modal.hidden,
.hidden {
	display: none;
}

.modal-content {
	width: min(640px, 100%);
	position: relative;
	padding: 1.3rem;
}

.modal-close {
	position: absolute;
	top: 0.7rem;
	right: 0.8rem;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 1.1rem;
}

.form-grid {
	display: grid;
	gap: 0.7rem;
}

.form-grid label {
	display: grid;
	gap: 0.3rem;
	font-weight: 500;
}

input,
select,
textarea {
	width: 100%;
	border-radius: 0.7rem;
	border: 1px solid var(--line);
	padding: 0.7rem;
	font: inherit;
	background: #fff;
}

textarea {
	resize: vertical;
}

.feedback {
	margin-top: 0.6rem;
	min-height: 1.2rem;
	font-size: 0.9rem;
}

.feedback.error {
	color: var(--danger);
}

.feedback.success {
	color: var(--primary);
}

.admin-header {
	display: flex;
	justify-content: space-between;
	gap: 0.7rem;
	align-items: center;
	margin-bottom: 0.3rem;
}

.inline-actions {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.manage-title {
	font-family: "Sora", sans-serif;
	font-size: 1.1rem;
	margin: 1rem 0 0.6rem;
}

.admin-list {
	display: grid;
	gap: 0.6rem;
}

.manage-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.7rem;
	border: 1px solid var(--line);
	border-radius: 0.8rem;
	padding: 0.75rem;
	background: #fff;
}

.page-intro h2 {
	font-family: "Sora", sans-serif;
	font-size: clamp(1.45rem, 2.7vw, 2rem);
	margin-bottom: 0.6rem;
}

.members-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
	gap: 1.1rem;
	justify-content: center;
	align-items: start;
}

.member-card {
	overflow: hidden;
	border-radius: 1rem;
	border: 1px solid var(--line);
	background: #fff;
	box-shadow: var(--shadow);
	width: 100%;
	max-width: 320px;
	display: flex;
	flex-direction: column;
}

.member-photo {
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	display: block;
	object-fit: cover;
	object-position: center 24%;
	background: #e6ede2;
}

.member-info {
	padding: 1rem;
	display: grid;
	gap: 0.45rem;
}

.member-info h4 {
	font-family: "Sora", sans-serif;
	font-size: 1.1rem;
}

.member-role {
	font-size: 0.9rem;
	color: var(--primary);
	font-weight: 700;
}

.member-info p {
	line-height: 1.5;
}

.reveal {
	opacity: 0;
	transform: translateY(12px);
	animation: revealUp 0.5s forwards;
}

.reveal:nth-of-type(2) {
	animation-delay: 0.08s;
}

.reveal:nth-of-type(3) {
	animation-delay: 0.16s;
}

.reveal:nth-of-type(4) {
	animation-delay: 0.24s;
}

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

@keyframes revealUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 880px) {
	.container {
		width: min(100%, calc(100% - 1.5rem));
	}

	main {
		padding-top: 7.2rem;
	}

	.nav-wrap {
		padding: 0.5rem 0;
		align-items: flex-start;
		flex-direction: column;
	}

	nav {
		width: 100%;
		justify-content: flex-start;
	}

	.hero,
	.section {
		padding-left: 0;
		padding-right: 0;
	}

	.hero {
		padding-top: 0.5rem;
	}
}

@media (max-width: 560px) {
	main {
		padding-top: 7.8rem;
	}

	.section {
		margin: 1rem auto;
		padding: 1rem;
	}

	.hero h2 {
		max-width: 100%;
		font-size: clamp(1.55rem, 9vw, 2.2rem);
	}

	.brand {
		align-items: flex-start;
	}

	.brand h1 {
		font-size: 0.88rem;
	}

	nav a,
	.btn {
		font-size: 0.9rem;
	}

	.modal-content {
		padding: 1rem;
	}

	.members-grid {
		grid-template-columns: 1fr;
	}

	.member-card {
		max-width: 100%;
	}

	.manage-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-wrap {
		flex-direction: column;
	}
}
