/* ==========================================================================
   Esconde o footer do TEMA quando o rodapé do plugin está sendo usado —
   pra não ficarem os dois exibidos juntos.
   ========================================================================== */
footer:not(.dc-footer):not(article footer, .entry-content footer, .post footer, .hentry footer, main footer, [role="main"] footer),
footer[role="contentinfo"]:not(.dc-footer),
.site-footer:not(.dc-footer),
#colophon:not(.dc-footer) {
	display: none !important;
}

/* ==========================================================================
   Rodapé do site — cor de fundo fixa #1f2937. Logo + texto configurados
   em Divulcar → Rodapé; colunas de links e redes sociais gerenciadas em
   Aparência → Menus.
   ========================================================================== */

.dc-shortcode-scope.dc-footer {
	--dc-footer-bg: #1f2937;
	--dc-footer-border: rgba(255, 255, 255, .1);
	--dc-footer-text: #ffffff;
	--dc-footer-text-muted: #9ca3af;

	position: relative !important;
	background: var(--dc-footer-bg) !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	box-sizing: border-box !important;
}

.dc-shortcode-scope.dc-footer a {
	text-decoration: none !important;
}

.dc-shortcode-scope .dc-footer-inner {
	max-width: 1280px !important;
	margin: 0 auto !important;
	padding: 56px 24px 40px !important;
}

/* ---------------- Colunas (links + redes sociais) ---------------- */
.dc-shortcode-scope .dc-footer-columns {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 32px !important;
	margin-bottom: 80px !important;
}

.dc-shortcode-scope .dc-footer-col-title {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	cursor: default !important;
	text-align: left !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--dc-footer-text) !important;
	margin: 0 0 18px !important;
}

.dc-shortcode-scope .dc-footer-toggle-icon {
	display: none !important;
}

.dc-shortcode-scope .dc-footer-col-menu {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
}

.dc-shortcode-scope .dc-footer-col-menu a {
	font-size: 14px !important;
	font-weight: 500 !important;
	color: var(--dc-footer-text) !important;
	text-decoration: underline !important;
	text-underline-offset: 2px !important;
	text-decoration-color: rgba(255, 255, 255, .35) !important;
	transition: text-decoration-color .15s ease !important;
}

.dc-shortcode-scope .dc-footer-col-menu a:hover {
	text-decoration-color: rgba(255, 255, 255, .9) !important;
}

/* ---------------- Redes sociais (ícones) ---------------- */
.dc-shortcode-scope .dc-footer-social-icons {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
}

.dc-shortcode-scope .dc-footer-social-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 8px !important;
	border: 1.5px solid rgba(255, 255, 255, .3) !important;
	color: var(--dc-footer-text) !important;
	transition: background .15s ease, border-color .15s ease !important;
}

.dc-shortcode-scope .dc-footer-social-icon:hover {
	background: rgba(255, 255, 255, .1) !important;
	border-color: rgba(255, 255, 255, .6) !important;
}

.dc-shortcode-scope .dc-footer-social-icon svg {
	width: 18px !important;
	height: 18px !important;
}

/* ---------------- Aviso pra admin quando não há menu associado ---------------- */
.dc-shortcode-scope .dc-footer-menu-hint {
	font-size: 13px !important;
	color: var(--dc-footer-text-muted) !important;
	border: 1px dashed rgba(255, 255, 255, .3) !important;
	border-radius: 8px !important;
	padding: 14px 16px !important;
	margin: 0 0 40px !important;
}

/* ---------------- Marca (logo + descrição) ---------------- */
.dc-shortcode-scope .dc-footer-brand {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 16px !important;
}

.dc-shortcode-scope .dc-footer-logo-link {
	display: inline-block !important;
	text-decoration: none !important;
	color: inherit !important;
	border: none !important;
	box-shadow: none !important;
	line-height: 0 !important;
}

.dc-shortcode-scope .dc-footer-logo-link:hover .dc-footer-logo {
	opacity: .85 !important;
}

.dc-shortcode-scope .dc-footer-logo {
	display: block !important;
	max-height: var(--dc-footer-logo-height, 32px) !important;
	width: auto !important;
}

.dc-shortcode-scope .dc-footer-logo-text {
	font-size: 20px !important;
	font-weight: 800 !important;
	color: var(--dc-footer-text) !important;
	letter-spacing: -.01em !important;
}

.dc-shortcode-scope .dc-footer-desc {
	max-width: 620px !important;
	font-size: 13.5px !important;
	line-height: 1.6 !important;
	color: var(--dc-footer-text-muted) !important;
	margin: 0 !important;
}

/* ---------------- Barra inferior (copyright + links legais) ---------------- */
.dc-shortcode-scope .dc-footer-bottom {
	border-top: 1px solid var(--dc-footer-border) !important;
}

.dc-shortcode-scope .dc-footer-bottom-inner {
	max-width: 1280px !important;
	margin: 0 auto !important;
	padding: 20px 24px !important;
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px 24px !important;
}

.dc-shortcode-scope .dc-footer-copy {
	font-size: 13px !important;
	color: var(--dc-footer-text-muted) !important;
	margin: 0 !important;
}

.dc-shortcode-scope .dc-footer-legal-menu {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 6px 18px !important;
}

.dc-shortcode-scope .dc-footer-legal-menu a {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: var(--dc-footer-text-muted) !important;
	text-decoration: underline !important;
	text-underline-offset: 2px !important;
}

.dc-shortcode-scope .dc-footer-legal-menu a:hover {
	color: var(--dc-footer-text) !important;
}

/* ---------------- Responsivo & Toggle exclusivo para Mobile (<= 900px) ---------------- */
@media (max-width: 900px) {
	.dc-shortcode-scope .dc-footer-columns {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 0 24px !important;
	}

	.dc-shortcode-scope .dc-footer-col {
		border-bottom: 1px solid var(--dc-footer-border) !important;
	}

	.dc-shortcode-scope .dc-footer-col-title {
		cursor: pointer !important;
		margin: 0 !important;
		padding: 16px 0 !important;
	}

	.dc-shortcode-scope .dc-footer-toggle-icon {
		display: inline-block !important;
		width: 16px !important;
		height: 16px !important;
		transition: transform 0.25s ease !important;
		flex-shrink: 0 !important;
		margin-left: 8px !important;
	}

	.dc-shortcode-scope .dc-footer-col.is-open .dc-footer-toggle-icon {
		transform: rotate(180deg) !important;
	}

	.dc-shortcode-scope .dc-footer-col .dc-footer-col-content {
		max-height: 0 !important;
		overflow: hidden !important;
		/* Fechar é mais rápido que abrir */
		transition: max-height 0.18s ease, opacity 0.15s ease, padding-bottom 0.18s ease !important;
		opacity: 0 !important;
		padding-bottom: 0 !important;
	}

	.dc-shortcode-scope .dc-footer-col.is-open .dc-footer-col-content {
		max-height: 500px !important;
		opacity: 1 !important;
		padding-bottom: 16px !important;
		transition: max-height 0.3s ease, opacity 0.25s ease, padding-bottom 0.3s ease !important;
	}
}

@media (max-width: 560px) {
	.dc-shortcode-scope .dc-footer-inner {
		padding: 40px 20px 32px !important;
	}
	.dc-shortcode-scope .dc-footer-columns {
		grid-template-columns: 1fr !important;
		gap: 0 !important;
	}

	.dc-shortcode-scope .dc-footer-col-social {
		border-bottom: none !important;
		padding-top: 16px !important;
	}
	.dc-shortcode-scope .dc-footer-bottom-inner {
		flex-direction: column !important;
		align-items: flex-start !important;
	}
}
