/* ============================================================
   SIG Denúncia — redesign visual
   Carregado após assets/style.css; apenas sobrescreve o tema.
   Paleta da marca: navy #355077
   ============================================================ */

:root {
	--sd-navy: #355077;
	--sd-navy-dark: #2a4160;
	--sd-navy-deep: #1c2b40;
	--sd-ink: #22314a;
	--sd-muted: #5b6b80;
	--sd-bg: #f4f6f9;
	--sd-line: rgba(34, 49, 74, 0.1);
	--sd-radius: 14px;
	--sd-radius-sm: 10px;
	--sd-shadow: 0 16px 40px rgba(28, 43, 64, 0.12);
	--sd-shadow-sm: 0 6px 18px rgba(28, 43, 64, 0.07);
	--sd-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
	font-family: var(--sd-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--sd-muted);
	background: var(--sd-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sd-font);
	color: var(--sd-ink);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
}

a {
	color: var(--sd-navy);
}

a:hover, a:focus {
	color: var(--sd-navy-dark);
}

/* barra decorativa vazia do tema antigo */
.wrap {
	display: none;
}

/* o tema esconde .ftco-animate via JS de scroll; garante visibilidade sempre */
.ftco-animate {
	opacity: 1 !important;
	visibility: visible !important;
}

/* ---------- Navbar ---------- */
.ftco-navbar-light {
	position: sticky !important;
	top: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, 0.94) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 var(--sd-line), var(--sd-shadow-sm) !important;
	padding: 10px 15px;
}

.ftco-navbar-light .navbar-brand img {
	height: 56px;
	width: auto;
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	color: var(--sd-ink);
	padding: 0.6rem 1rem;
	border-radius: 999px;
	border-bottom: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover,
.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
	color: #fff;
	background: var(--sd-navy);
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:before {
	display: none;
}

.ftco-navbar-light .navbar-toggler {
	border: 1px solid var(--sd-line);
	border-radius: 999px;
	padding: 0.45rem 1rem;
	font-size: 0.85rem;
	color: var(--sd-ink);
	background: #fff;
}

/* ---------- Hero ---------- */
.hero-wrap {
	position: relative;
	background-size: 520px auto !important;
}

.hero-wrap .overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(
		115deg,
		rgba(28, 43, 64, 0.96) 0%,
		rgba(42, 65, 96, 0.88) 55%,
		rgba(53, 80, 119, 0.72) 100%
	);
	opacity: 1;
}

.hero-wrap .slider-text {
	position: relative;
	z-index: 2;
	padding: 2.25rem 0 4.5rem;
	height: auto !important;
}

.hero-copy {
	text-align: center !important;
	animation: sdFadeUp 0.7s ease both;
}

.hero-wrap .slider-text .hero-copy h1 {
	color: #fff;
	font-family: var(--sd-font);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin-bottom: 0.6rem;
}

.hero-lead {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.97rem;
	line-height: 1.6;
	max-width: 42rem;
	margin: 0 auto;
}

/* ---------- Cards de ação (Consultar / Denúncia / Sugestão) ---------- */
.ftco-intro {
	background: transparent !important;
	position: relative;
	z-index: 5;
	margin-top: -3rem;
	padding-bottom: 0 !important;
}

.ftco-intro .services {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	text-align: left;
	background: #fff;
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
	padding: 1rem 3.1rem 1rem 1.2rem !important;
	margin-top: 0;
	margin-bottom: 1rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ftco-intro .services:hover {
	background: #fff;
	transform: translateY(-3px);
	box-shadow: 0 18px 38px rgba(28, 43, 64, 0.18);
	border-color: rgba(53, 80, 119, 0.35);
}

.ftco-intro .services .icon {
	position: static;
	width: 44px;
	height: 44px;
	margin: 0;
	flex-shrink: 0;
	border-radius: 12px;
	background: var(--sd-navy);
	box-shadow: 0 8px 18px rgba(53, 80, 119, 0.3);
	transition: transform 0.25s ease;
}

.ftco-intro .services:hover .icon {
	background: var(--sd-navy);
	transform: scale(1.06);
}

.ftco-intro .services .icon i {
	color: #fff;
	font-size: 17px;
}

.ftco-intro .services .media-body {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.ftco-intro .services .media-body h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--sd-ink);
	margin-bottom: 0.1rem;
}

.ftco-intro .services:hover .media-body,
.ftco-intro .services:hover .media-body h3 {
	color: var(--sd-ink);
}

.ftco-intro .services .media-body p {
	color: var(--sd-muted);
	font-size: 0.82rem;
	line-height: 1.45;
	margin-bottom: 0;
}

.ftco-intro .services:hover .media-body p {
	color: var(--sd-muted);
}

.ftco-intro .services .btn-custom {
	position: absolute;
	left: auto;
	right: 1rem;
	top: 50%;
	bottom: auto;
	width: 30px;
	height: 30px;
	margin: 0;
	border-radius: 50%;
	background: var(--sd-navy);
	transform: translateY(-50%);
	transition: transform 0.25s ease;
}

.ftco-intro .services:hover .btn-custom {
	background: var(--sd-navy-dark);
	right: 1rem;
	transform: translateY(-50%) scale(1.1);
}

.ftco-intro .services .btn-custom span,
.ftco-intro .services:hover .btn-custom span {
	color: #fff;
}

/* card ativo (página atual) */
.ftco-intro .services.active,
.ftco-intro .services.active:hover {
	background: var(--sd-navy);
	border-color: var(--sd-navy);
}

.ftco-intro .services.active .media-body h3 {
	color: #fff;
}

.ftco-intro .services.active .media-body p {
	color: rgba(255, 255, 255, 0.8);
}

.ftco-intro .services.active .icon {
	background: #fff;
}

.ftco-intro .services.active .icon i {
	color: var(--sd-navy);
}

.ftco-intro .services.active .btn-custom {
	background: #fff;
}

.ftco-intro .services.active .btn-custom span {
	color: var(--sd-navy);
}

/* ---------- Conteúdo ---------- */
#conteudo {
	padding: 2rem 15px 4rem;
}

body.is-inner #conteudo {
	padding-top: 2.5rem;
}

/* sem transform e sem fill forwards: animação persistente criaria stacking
   context e prenderia modais (position:fixed) abaixo do backdrop */
.page-shell {
	background: #fff;
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow-sm);
	padding: 2rem 1.4rem;
	animation: sdFadeIn 0.5s ease backwards;
}

@media (min-width: 768px) {
	.page-shell {
		padding: 2.75rem 3rem;
	}
}

#conteudo h1 {
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	font-weight: 800;
	margin-bottom: 1.5rem;
	padding-bottom: 0.9rem;
	position: relative;
}

#conteudo h1::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 52px;
	height: 4px;
	border-radius: 2px;
	background: var(--sd-navy);
}

#conteudo h1[align="center"]::after {
	left: 50%;
	transform: translateX(-50%);
}

#conteudo p {
	color: var(--sd-muted);
}

/* ---------- Formulários ---------- */
.contactForm .label,
#conteudo label.label {
	color: var(--sd-ink) !important;
	text-transform: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.contactForm .form-control,
#conteudo .form-control {
	border: 1px solid rgba(34, 49, 74, 0.16) !important;
	border-radius: var(--sd-radius-sm);
	padding: 0.7rem 0.95rem;
	height: auto;
	font-size: 1rem;
	color: var(--sd-ink);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contactForm .form-control:focus,
#conteudo .form-control:focus {
	border-color: var(--sd-navy) !important;
	box-shadow: 0 0 0 3px rgba(53, 80, 119, 0.18) !important;
	outline: none;
}

/* ---------- Botões ---------- */
.btn {
	border-radius: var(--sd-radius-sm);
	font-weight: 600;
}

.btn-primary {
	background: var(--sd-navy) !important;
	border-color: var(--sd-navy) !important;
	padding: 0.6rem 1.5rem;
	box-shadow: 0 8px 18px rgba(53, 80, 119, 0.28);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
	background: var(--sd-navy-dark) !important;
	border-color: var(--sd-navy-dark) !important;
}

.btn-secondary {
	background: #fff !important;
	border: 1px solid rgba(34, 49, 74, 0.2) !important;
	color: var(--sd-ink) !important;
	padding: 0.6rem 1.4rem;
}

.btn-secondary:hover {
	background: var(--sd-bg) !important;
}

.btn-info {
	background: #fff !important;
	border: 1px solid var(--sd-navy) !important;
	color: var(--sd-navy) !important;
}

.btn-info:hover {
	background: var(--sd-navy) !important;
	color: #fff !important;
}

/* ---------- Tabelas (consulta de protocolo) ---------- */
#conteudo .table {
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius-sm);
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
}

#conteudo .table th,
#conteudo .table td {
	border-top: 1px solid var(--sd-line);
	padding: 0.6rem 0.9rem;
	vertical-align: middle;
}

#conteudo .table tr:first-child th,
#conteudo .table tr:first-child td {
	border-top: none;
}

#conteudo .table .table-active {
	background: rgba(53, 80, 119, 0.08);
	color: var(--sd-navy-deep);
}

/* ---------- Alertas e badges ---------- */
.alert {
	border: none;
	border-radius: var(--sd-radius-sm);
}

.alert-primary {
	background: rgba(53, 80, 119, 0.1);
	color: var(--sd-navy-deep);
}

.badge-secondary {
	background: var(--sd-navy);
	border-radius: 999px;
	padding: 0.6rem 1.3rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
.footer {
	background: var(--sd-navy-deep) !important;
	padding: 2.25rem 0 !important;
}

.footer .copyright {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.85rem;
	margin: 0;
}

/* ---------- Loader ---------- */
#ftco-loader .path {
	stroke: var(--sd-navy);
}

/* ---------- Aviso de cookies ---------- */
.fixed-bottom.p-4 {
	pointer-events: none;
}

.fixed-bottom .toast {
	pointer-events: auto;
	max-width: 460px !important;
	margin-left: auto;
	border: none;
	border-radius: var(--sd-radius);
	overflow: hidden;
	box-shadow: var(--sd-shadow);
	background: var(--sd-navy-deep) !important;
}

.fixed-bottom .toast h4 {
	font-size: 1.05rem;
}

.fixed-bottom .toast p {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: 0.75rem;
}

/* ---------- Animações ---------- */
@keyframes sdFadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes sdFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* ---------- Modais ---------- */
/* acima da navbar sticky (1030) e do aviso de cookies (1080) */
.modal {
	z-index: 2000;
}

.modal-backdrop {
	z-index: 1990;
}

.modal-content {
	border: none;
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
}

.modal-header {
	border-bottom: 1px solid var(--sd-line);
}

.modal-footer {
	border-top: 1px solid var(--sd-line);
}

@media (prefers-reduced-motion: reduce) {
	.hero-copy,
	.page-shell {
		animation: none;
	}
}

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
	.ftco-navbar-light .navbar-collapse {
		background: #fff;
		border: 1px solid var(--sd-line);
		border-radius: var(--sd-radius);
		box-shadow: var(--sd-shadow-sm);
		margin-top: 0.75rem;
		padding: 0.75rem;
	}

	.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
		padding: 0.6rem 1rem;
		margin: 0.1rem 0;
	}

	.hero-wrap .slider-text {
		padding: 2rem 0 4rem;
	}
}

@media (max-width: 767.98px) {
	.ftco-intro {
		margin-top: -2.5rem;
	}

	.ftco-intro .services {
		margin-bottom: 0.85rem;
	}
}

@media (max-width: 575.98px) {
	.ftco-navbar-light .navbar-brand img {
		height: 46px;
	}

	.hero-wrap .slider-text {
		padding: 1.75rem 0 3.75rem;
	}

	.hero-lead {
		font-size: 1rem;
	}

	.page-shell {
		padding: 1.5rem 1.1rem;
	}
}
