/*
Theme Name: SCS Transparência
Author: Sociedade dos Criadores de Surubim
Description: Portal enxuto de prestação de contas da Sociedade dos Criadores de Surubim.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: scs-transparencia
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: accessibility-ready, custom-logo, wide-blocks
*/

:root {
	--scst-ink: #1d2823;
	--scst-forest: #173c31;
	--scst-forest-2: #245846;
	--scst-rust: #a64f31;
	--scst-gold: #d9aa61;
	--scst-cream: #f5f1e8;
	--scst-paper: #fcfbf8;
	--scst-white: #fff;
	--scst-muted: #646b66;
	--scst-border: #d8d4c9;
	--scst-shadow: 0 18px 50px rgb(20 55 44 / 10%);
	--scst-radius: 16px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--scst-ink);
	background: var(--scst-paper);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .scst-header {
	top: 32px;
}

a {
	color: var(--scst-forest-2);
	text-underline-offset: .18em;
}

a:hover {
	color: var(--scst-rust);
}

img,
svg {
	display: block;
	max-width: 100%;
}

h1,
h2,
h3,
h4 {
	margin-top: 0;
	color: var(--scst-forest);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	line-height: 1.13;
}

h1 {
	font-size: clamp(2.45rem, 6vw, 4.8rem);
	letter-spacing: -.045em;
}

h2 {
	font-size: clamp(1.8rem, 4vw, 3rem);
	letter-spacing: -.025em;
}

p {
	margin-top: 0;
}

.scst-shell {
	width: min(1160px, calc(100% - 40px));
	margin-inline: auto;
}

.scst-shell--narrow {
	width: min(780px, calc(100% - 40px));
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: .8rem 1rem;
	margin: 0;
	clip: auto;
	color: #fff;
	background: var(--scst-forest);
	border-radius: 6px;
}

.scst-header {
	position: relative;
	z-index: 20;
	background: rgb(252 251 248 / 96%);
	border-bottom: 1px solid var(--scst-border);
}

.scst-header__bar {
	color: #e8eee9;
	background: var(--scst-forest);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .05em;
}

.scst-header__bar .scst-shell {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: .48rem;
}

.scst-header__bar a {
	color: #fff;
}

.scst-header__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 90px;
}

.scst-brand,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	color: var(--scst-forest);
	text-decoration: none;
}

.custom-logo {
	width: auto;
	max-width: 270px;
	max-height: 68px;
}

.scst-brand__symbol {
	display: grid;
	place-items: center;
	width: 49px;
	height: 49px;
	color: #fff;
	background: var(--scst-forest);
	border-radius: 50%;
}

.scst-brand__symbol svg {
	width: 31px;
	fill: currentColor;
}

.scst-brand strong,
.scst-brand small {
	display: block;
}

.scst-brand strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.08rem;
}

.scst-brand small {
	color: var(--scst-muted);
	font-size: .7rem;
	font-weight: 750;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.scst-header__links {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.scst-header__links a {
	color: var(--scst-forest);
	font-size: .88rem;
	font-weight: 750;
	text-decoration: none;
}

.scst-header__links .scst-header__contact {
	padding: .7rem 1rem;
	color: #fff;
	background: var(--scst-forest);
	border-radius: 8px;
}

.scst-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
	background:
		radial-gradient(circle at 82% 24%, rgb(217 170 97 / 32%) 0 9%, transparent 9.2%),
		linear-gradient(135deg, #f7f3ea 0%, #efe8da 100%);
}

.scst-hero::after {
	position: absolute;
	right: -7rem;
	bottom: -11rem;
	width: 34rem;
	height: 34rem;
	content: "";
	border: 1px solid rgb(23 60 49 / 12%);
	border-radius: 50%;
	box-shadow: 0 0 0 4rem rgb(23 60 49 / 3%), 0 0 0 8rem rgb(23 60 49 / 2%);
}

.scst-hero__layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr);
	gap: clamp(3rem, 8vw, 7rem);
	align-items: center;
}

.scst-eyebrow {
	margin-bottom: .85rem;
	color: var(--scst-rust);
	font-size: .76rem;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.scst-hero h1 {
	max-width: 820px;
	margin-bottom: 1.25rem;
}

.scst-hero__lead {
	max-width: 730px;
	margin-bottom: 1.8rem;
	color: #4f5b55;
	font-size: clamp(1.05rem, 2vw, 1.27rem);
}

.scst-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
}

.scst-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: .72rem 1.1rem;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: .86rem;
	font-weight: 800;
	text-decoration: none;
}

.scst-button--primary {
	color: #fff;
	background: var(--scst-forest);
}

.scst-button--primary:hover {
	color: #fff;
	background: var(--scst-forest-2);
}

.scst-button--text {
	color: var(--scst-forest);
	border-color: var(--scst-forest);
}

.scst-button--light {
	color: var(--scst-forest);
	background: #fff;
}

.scst-hero__notice {
	padding: 2rem;
	color: #e9f0eb;
	background: var(--scst-forest);
	border-radius: var(--scst-radius);
	box-shadow: var(--scst-shadow);
}

.scst-hero__notice-icon {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	margin-bottom: 1.2rem;
	color: var(--scst-gold);
	background: rgb(255 255 255 / 8%);
	border: 1px solid rgb(255 255 255 / 15%);
	border-radius: 50%;
}

.scst-hero__notice-icon svg {
	width: 34px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.5;
}

.scst-hero__notice p {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	line-height: 1.35;
}

.scst-stats {
	position: relative;
	z-index: 2;
	margin-top: -2.35rem;
}

.scst-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: #fff;
	border: 1px solid var(--scst-border);
	border-radius: 12px;
	box-shadow: var(--scst-shadow);
}

.scst-stats__grid > div {
	display: flex;
	align-items: baseline;
	gap: .7rem;
	padding: 1.25rem 1.5rem;
}

.scst-stats__grid > div + div {
	border-left: 1px solid var(--scst-border);
}

.scst-stats strong {
	color: var(--scst-forest);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.45rem;
}

.scst-stats span {
	color: var(--scst-muted);
	font-size: .78rem;
	font-weight: 700;
}

.scst-documents {
	padding: clamp(5rem, 9vw, 8rem) 0;
}

.scst-documents--archive {
	padding-top: 3.5rem;
}

.scst-section-heading {
	display: grid;
	grid-template-columns: 1fr minmax(280px, .65fr);
	gap: 2rem;
	align-items: end;
	margin-bottom: 2rem;
}

.scst-section-heading h2 {
	margin-bottom: 0;
}

.scst-section-heading > p {
	margin-bottom: .3rem;
	color: var(--scst-muted);
}

.scst-help {
	padding: 0 0 clamp(5rem, 9vw, 8rem);
}

.scst-help__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2rem;
	align-items: center;
	padding: clamp(2rem, 5vw, 3.5rem);
	color: #e7eeea;
	background: var(--scst-forest);
	border-radius: var(--scst-radius);
}

.scst-help__panel h2 {
	margin-bottom: .75rem;
	color: #fff;
}

.scst-help__panel p:last-child {
	max-width: 700px;
	margin-bottom: 0;
}

.scst-page-hero {
	padding: clamp(3.5rem, 7vw, 6rem) 0;
	background: var(--scst-cream);
	border-bottom: 1px solid var(--scst-border);
}

.scst-page-hero h1 {
	margin-bottom: 1rem;
	font-size: clamp(2.2rem, 5vw, 4rem);
}

.scst-page-hero p:last-child {
	max-width: 700px;
	margin-bottom: 0;
	color: var(--scst-muted);
	font-size: 1.08rem;
}

.scst-document-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.5rem;
}

.scst-document-meta span {
	display: flex;
	flex-direction: column;
	min-width: 125px;
	padding: .75rem 1rem;
	background: rgb(255 255 255 / 65%);
	border: 1px solid var(--scst-border);
	border-radius: 8px;
}

.scst-document-meta small {
	color: var(--scst-muted);
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.scst-document-meta strong {
	color: var(--scst-forest);
}

.scst-entry {
	padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.scst-entry__content {
	font-size: 1.04rem;
}

.scst-entry__content > *:first-child {
	margin-top: 0;
}

.scst-entry__content h2 {
	margin-top: 2.2rem;
	font-size: 1.7rem;
}

.scst-entry__download {
	display: flex;
	align-items: center;
	gap: .8rem;
	padding: 1.25rem;
	margin-top: 2rem;
	background: var(--scst-cream);
	border-radius: 10px;
}

.scst-entry__back {
	margin-top: 2rem;
	font-weight: 750;
}

.scst-error {
	padding: clamp(5rem, 12vw, 10rem) 0;
	text-align: center;
}

.scst-error h1 {
	font-size: clamp(2.2rem, 5vw, 4rem);
}

.scst-plugin-notice {
	padding: 2rem;
	background: #fff4d7;
	border: 1px solid #e3c97e;
	border-radius: 10px;
}

.scst-footer {
	color: #dfe8e2;
	background: #102f26;
}

.scst-footer__grid {
	display: grid;
	grid-template-columns: 1.15fr .9fr .9fr;
	gap: clamp(2rem, 6vw, 5rem);
	padding-block: clamp(3.5rem, 7vw, 6rem);
}

.scst-footer .scst-brand {
	color: #fff;
}

.scst-footer .scst-brand__symbol {
	color: var(--scst-forest);
	background: var(--scst-gold);
}

.scst-footer .scst-brand small,
.scst-footer p,
.scst-footer li {
	color: #b9c9c0;
}

.scst-footer h2 {
	margin-bottom: 1.1rem;
	color: #fff;
	font-family: inherit;
	font-size: .8rem;
	font-weight: 850;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.scst-footer__identity p {
	max-width: 390px;
	margin-top: 1.25rem;
}

.scst-footer ul {
	display: grid;
	gap: .8rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.scst-footer li {
	display: flex;
	flex-direction: column;
}

.scst-footer li span {
	color: #82998c;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.scst-footer a {
	color: #fff;
}

.scst-footer__address p {
	margin-bottom: .7rem;
}

.scst-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.15rem;
	border-top: 1px solid rgb(255 255 255 / 10%);
	font-size: .74rem;
}

.scst-footer__bottom p {
	margin: 0;
}

.scst-footer__bottom p:last-child {
	display: flex;
	gap: .65rem;
}

body .scs-directory__filters {
	background: #fff;
	box-shadow: 0 10px 30px rgb(23 60 49 / 6%);
}

body .scs-document-row {
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body .scs-document-row:hover {
	transform: translateY(-2px);
	border-color: #b9c6bf;
	box-shadow: 0 12px 28px rgb(23 60 49 / 9%);
}

@media (max-width: 800px) {
	body.admin-bar .scst-header {
		top: 46px;
	}

	.scst-hero__layout,
	.scst-section-heading,
	.scst-help__panel,
	.scst-footer__grid {
		grid-template-columns: 1fr;
	}

	.scst-hero__notice {
		max-width: 480px;
	}

	.scst-help__panel .scst-button {
		justify-self: start;
	}

	.scst-stats__grid {
		grid-template-columns: 1fr;
	}

	.scst-stats__grid > div + div {
		border-top: 1px solid var(--scst-border);
		border-left: 0;
	}

	.scst-footer__grid {
		gap: 2.5rem;
	}
}

@media (max-width: 560px) {
	.scst-shell,
	.scst-shell--narrow {
		width: min(100% - 28px, 1160px);
	}

	.scst-header__bar .scst-shell {
		justify-content: center;
	}

	.scst-header__bar a {
		display: none;
	}

	.scst-header__main {
		min-height: 78px;
	}

	.scst-header__links > a:first-child {
		display: none;
	}

	.scst-header__contact {
		padding: .62rem .8rem !important;
	}

	.scst-brand strong {
		max-width: 145px;
		font-size: .93rem;
		line-height: 1.1;
	}

	.scst-brand__symbol {
		width: 43px;
		height: 43px;
	}

	.scst-hero {
		padding-top: 3.8rem;
	}

	.scst-hero__layout {
		gap: 2.5rem;
	}

	.scst-hero h1 {
		font-size: 2.65rem;
	}

	.scst-hero__actions,
	.scst-entry__download,
	.scst-footer__bottom {
		align-items: stretch;
		flex-direction: column;
	}

	.scst-button {
		width: 100%;
	}

	.scst-stats {
		margin-top: -1.5rem;
	}

	.scst-stats__grid > div {
		padding: 1rem 1.15rem;
	}

	.scst-document-meta {
		flex-direction: column;
	}

	.scst-footer__bottom p:last-child {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
