/**
 * footer.css — rodapé editorial.
 *
 * Camada de estilo sobre o grid do Bootstrap. Carregada depois de main.css;
 * usa os tokens --ee-*. Mobile: colunas empilham naturalmente (col-12 / col-6).
 *
 * Sumário:
 *   1. Faixa superior (marca + colunas de links)
 *   2. Faixa inferior (copyright, menu legal, voltar ao topo)
 */

/* ==========================================================================
   1. Faixa superior — fundo azul muito claro
   ========================================================================== */
.footer-top {
	background-color: var(--ee-blue-light);
	color: var(--ee-text);
	padding-block: var(--ee-space-7);
	border-top: 3px solid var(--ee-blue);
}

/* Marca */
.footer-brand-name {
	color: var(--ee-blue-dark);
	font-weight: 800;
	text-decoration: none;
}

.footer-brand-name:hover,
.footer-brand-name:focus {
	color: var(--ee-blue);
}

.footer-logo img {
	max-height: 56px;
	width: auto;
}

.footer-brand-desc {
	color: var(--ee-text-muted);
	max-width: 38ch;
}

/* Redes sociais (marca) */
.footer-social {
	margin: 0;
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: var(--ee-blue-dark);
	background-color: #fff;
	border: 1px solid var(--ee-border, rgba(13, 71, 161, 0.15));
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.footer-social-link:hover,
.footer-social-link:focus {
	color: #fff;
	background-color: var(--ee-blue);
	border-color: var(--ee-blue);
}

.footer-social-link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Títulos das colunas */
.footer-heading {
	color: var(--ee-blue-dark);
	font-weight: 700;
	margin-bottom: var(--ee-space-4);
	padding-bottom: var(--ee-space-2);
	border-bottom: 2px solid var(--ee-orange);
	display: inline-block;
}

/* Listas de links das colunas */
.footer-links {
	display: flex;
	flex-direction: column;
	gap: var(--ee-space-2);
}

.footer-links li {
	line-height: 1.3;
}

.footer-links a {
	color: var(--ee-gray-700);
	text-decoration: none;
	transition: color var(--ee-transition);
}

.footer-links a:hover,
.footer-links a:focus {
	color: var(--ee-blue);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* ==========================================================================
   2. Faixa inferior — copyright, menu legal, voltar ao topo
   ========================================================================== */
.footer-bottom {
	background-color: var(--ee-blue-dark);
	color: rgba(255, 255, 255, 0.85);
	padding-block: var(--ee-space-4);
}

.footer-bottom .copyright {
	color: rgba(255, 255, 255, 0.85);
}

.footer-bottom .footer-cnpj {
	color: rgba(255, 255, 255, 0.65);
}

/* Menu legal */
.footer-bottom .footer-menu {
	gap: var(--ee-space-1) var(--ee-space-3);
	margin: 0;
	flex-wrap: wrap;
}

.footer-bottom .footer-menu .nav-link {
	padding: 0;
	color: rgba(255, 255, 255, 0.85);
	transition: color var(--ee-transition);
}

.footer-bottom .footer-menu .nav-link:hover,
.footer-bottom .footer-menu .nav-link:focus {
	color: var(--ee-white);
}

/* Link "voltar ao topo" no rodapé */
.footer-back-to-top {
	display: inline-flex;
	align-items: center;
	gap: var(--ee-space-1);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: color var(--ee-transition);
}

.footer-back-to-top:hover,
.footer-back-to-top:focus {
	color: var(--ee-white);
}

.footer-back-to-top-icon {
	display: inline-flex;
	line-height: 0;
}
