/*********************************************
** Footer
*********************************************/

/* O rodapé é o chão da página: escuro, na mesma superfície de tinta das
   seções escuras da home (.surfaceInk do geral.css).

   A página termina em faixa clara - o bloco escuro da chamada final flutua
   sobre ela -, então o escuro aqui embaixo fecha a leitura em vez de deixar
   o rodapé parecendo mais uma seção clara que ficou faltando conteúdo.

   O padding de baixo é da .barraFinal, e não do #footer: assim o fio que
   separa a barra do resto atravessa o rodapé inteiro. */

#footer {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: linear-gradient(150deg, #250B4C 0%, #40166D 55%, #74065C 100%);
	padding: 72px 0 0 0;
}

/* Fio de luz na borda de cima: o mesmo do bloco da chamada final, aqui
   atravessando a largura do container - é ele que costura o rodapé no
   conteúdo em vez de deixar o corte seco entre o claro e o escuro */

#footer .fioTopo {
	position: absolute;
	top: 0;
	left: 50%;
	translate: -50% 0;
	width: 100%;
	max-width: 1152px;
	height: 2px;
	background: linear-gradient(90deg, transparent, #FF6C58, #FE2A67, transparent);
	z-index: 1;
	pointer-events: none;
}

/* Fundo: a trama atrás e as manchas de luz por cima dela. Nada se move - o
   rodapé não tem paralaxe, é o fim da página */

#footer .fundoFooter {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	pointer-events: none;
}

/* Xadrez diagonal, a mesma trama da seção do Blog na home: duas faixas que
   se cruzam a 45 graus. A máscara apaga a trama de baixo para cima, então
   ela some antes de encostar na barra final */

#footer .fundoFooter .grade {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image:
		repeating-linear-gradient(45deg, transparent 0px, transparent 39px, rgba(250, 249, 253, 0.05) 39px, rgba(250, 249, 253, 0.05) 40px),
		repeating-linear-gradient(-45deg, transparent 0px, transparent 39px, rgba(250, 249, 253, 0.05) 39px, rgba(250, 249, 253, 0.05) 40px);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 92%);
	mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 92%);
}

/* Manchas de luz nos cantos: é o que dá volume ao degradê, senão o fundo
   fica chapado numa área desta altura. O blur é pintado uma vez e depois
   ninguém mexe nele */

#footer .fundoFooter .bolha {
	position: absolute;
	border-radius: 9999px;
	filter: blur(110px);
}

#footer .fundoFooter .bolhaEsquerda {
	top: -170px;
	left: -140px;
	width: 480px;
	height: 380px;
	background: rgba(254, 42, 103, 0.16);
}

#footer .fundoFooter .bolhaDireita {
	right: -180px;
	bottom: -200px;
	width: 520px;
	height: 400px;
	background: rgba(116, 6, 92, 0.5);
}

#footer .container {
	position: relative;
	z-index: 1;
}

/* Colunas */

/* A coluna da marca é mais larga que as outras três: ela carrega o logo, a
   frase e as redes, e as de link só precisam da largura do maior link */

#footer .boxColunas {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1.3fr 1fr;
	gap: 48px 40px;
}

#footer .colunaFooter {
	min-width: 0;
}

/* Logo */

#footer .logo {
	display: inline-block;
	font-size: 24px;
	line-height: 32px;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--primary-foreground);
}

/* O ".aí" em degradê, como o texto de destaque da home: o vermelho puro do
   --accent perde força em cima do roxo escuro */

#footer .logo span {
	font-size: inherit;
	font-weight: 800;
	color: transparent;
	background: linear-gradient(100deg, #FF6C58, #FE2A67);
	-webkit-background-clip: text;
	background-clip: text;
}

#footer .frase {
	max-width: 320px;
	font-size: 14px;
	line-height: 22px;
	color: rgba(250, 249, 253, 0.7);
	margin: 14px 0 0 0;
}

/* Redes sociais */

/* Botões redondos vazados, do tamanho de alvo de dedo no celular. No hover
   eles acendem no degradê da marca e sobem um fio */

#footer .listaRedes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 24px 0 0 0;
	list-style: none;
}

#footer .listaRedes li {
	list-style: none;
}

#footer .listaRedes li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	border: solid 1px rgba(250, 249, 253, 0.18);
	background: rgba(250, 249, 253, 0.06);
	transition: background 0.3s, border-color 0.3s, translate 0.3s, box-shadow 0.3s;
}

#footer .listaRedes li a i {
	font-size: 15px;
	color: rgba(250, 249, 253, 0.8);
	transition: color 0.3s;
}

#footer .listaRedes li a:hover {
	border-color: transparent;
	background: linear-gradient(100deg, #FF6C58, #FE2A67);
	translate: 0 -3px;
	box-shadow: 0 12px 24px -14px rgba(254, 42, 103, 0.9);
}

#footer .listaRedes li a:hover i {
	color: var(--primary-foreground);
}

/* Título da coluna */

/* Caixa alta e espaçada, como a etiqueta das seções: em cima de uma lista de
   links, o título tem de se separar pela forma e não pelo tamanho */

#footer .tituloColuna {
	display: block;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--primary-foreground);
}

/* Risquinho no degradê da marca embaixo de cada título */

#footer .tituloColuna::after {
	content: "";
	display: block;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, #FF6C58, #FE2A67);
	margin: 12px 0 0 0;
}

/* Listas e Menu */

#footer .listaColuna,
#footer ul.menu {
	padding: 0;
	margin: 20px 0 0 0;
	list-style: none;
}

#footer .listaColuna li,
#footer ul.menu li {
	list-style: none;
	font-size: 14px;
	line-height: 20px;
	color: rgba(250, 249, 253, 0.72);
}

#footer .listaColuna li + li,
#footer ul.menu li + li {
	margin-top: 12px;
}

/* No hover o link anda para a direita e um tracinho acende no lugar de onde
   ele saiu. Como o efeito é deslocamento (e não sublinhado), a altura da
   linha não muda e a coluna inteira fica parada */

#footer .listaColuna li a,
#footer ul.menu li a {
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 20px;
	color: rgba(250, 249, 253, 0.72);
	transition: color 0.3s, translate 0.3s;
}

#footer .listaColuna li a::before,
#footer ul.menu li a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -14px;
	width: 8px;
	height: 1px;
	background: #FE2A67;
	opacity: 0;
	transition: opacity 0.3s;
}

#footer .listaColuna li a:hover,
#footer ul.menu li a:hover {
	color: var(--primary-foreground);
	translate: 6px 0;
}

#footer .listaColuna li a:hover::before,
#footer ul.menu li a:hover::before {
	opacity: 1;
}

/* Contato */

/* Cada contato é um link de verdade (mailto:, tel: e wa.me) com o ícone em
   uma caixinha na frente: no celular estes três são o caminho mais curto
   para falar com a marca, e o ícone dá um alvo maior que o texto sozinho */

#footer .listaContato {
	padding: 0;
	margin: 20px 0 0 0;
	list-style: none;
}

#footer .listaContato li {
	list-style: none;
}

#footer .listaContato li + li {
	margin-top: 12px;
}

#footer .listaContato li a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

#footer .listaContato .icone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 12px;
	border: solid 1px rgba(250, 249, 253, 0.14);
	background: rgba(250, 249, 253, 0.06);
	transition: background 0.3s, border-color 0.3s;
}

#footer .listaContato .icone i {
	font-size: 13px;
	color: rgba(250, 249, 253, 0.8);
	transition: color 0.3s;
}

#footer .listaContato .texto {
	font-size: 14px;
	line-height: 20px;
	color: rgba(250, 249, 253, 0.72);
	transition: color 0.3s;
}

#footer .listaContato li a:hover .icone {
	border-color: rgba(254, 42, 103, 0.45);
	background: rgba(254, 42, 103, 0.16);
}

#footer .listaContato li a:hover .icone i,
#footer .listaContato li a:hover .texto {
	color: var(--primary-foreground);
}

/* Botão da coluna Acessar */

#footer .colunaFooter .botao {
	margin: 24px 0 0 0;
	padding: 12px 22px;
	font-size: 13px;
}

#footer .colunaFooter .botao i {
	font-size: 12px;
	transition: translate 0.3s;
}

#footer .colunaFooter .botao:hover i {
	translate: 3px 0;
}

/* Barra final */

/* Copyright de um lado, os links de sempre e o atalho para o topo do outro,
   com um fio separando do resto do rodapé */

#footer .barraFinal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	border-top: solid 1px rgba(250, 249, 253, 0.12);
	padding: 26px 0 32px 0;
	margin: 56px 0 0 0;
}

#footer .barraFinal .copy {
	font-size: 12px;
	line-height: 18px;
	color: rgba(250, 249, 253, 0.72);
	margin: 0;
}

#footer .barraFinal .boxFinal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

#footer .listaLegal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 20px;
	padding: 0;
	margin: 0;
	list-style: none;
}

#footer .listaLegal li {
	list-style: none;
}

#footer .listaLegal li a {
	font-size: 12px;
	line-height: 18px;
	color: rgba(250, 249, 253, 0.72);
	transition: color 0.3s;
}

#footer .listaLegal li a:hover {
	color: var(--primary-foreground);
}

/* Voltar ao topo: é um link para o #body, então funciona sem javascript - a
   rolagem macia vem do scroll-behavior do geral.css */

#footer .voltarTopo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 9999px;
	border: solid 1px rgba(250, 249, 253, 0.2);
	padding: 9px 18px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: var(--primary-foreground);
	transition: background 0.3s, border-color 0.3s, translate 0.3s;
}

#footer .voltarTopo i {
	font-size: 11px;
	color: var(--primary-foreground);
	transition: translate 0.3s;
}

#footer .voltarTopo:hover {
	border-color: rgba(250, 249, 253, 0.35);
	background: rgba(250, 249, 253, 0.1);
	translate: 0 -2px;
}

#footer .voltarTopo:hover i {
	translate: 0 -2px;
}

/*********************************************
** Menos Animação
*********************************************/

/* Quem pediu menos movimento no sistema recebe o rodapé parado: as cores
   ainda mudam no hover, o que sai é o deslocamento */

@media (prefers-reduced-motion: reduce) {

	#footer .listaRedes li a:hover,
	#footer .voltarTopo:hover,
	#footer .voltarTopo:hover i,
	#footer .colunaFooter .botao:hover i,
	#footer .listaColuna li a:hover,
	#footer ul.menu li a:hover {
		translate: none;
	}

}

/*********************************************
** Responsivo
*********************************************/

@media only screen and (max-width: 1023px) {

	/* A marca passa a ocupar a linha de cima inteira e as três colunas de
	   link dividem a de baixo */

	#footer .boxColunas {
		grid-template-columns: repeat(3, 1fr);
		gap: 44px 32px;
	}

	#footer .colunaMarca {
		grid-column: 1 / -1;
	}

}

@media only screen and (max-width: 767px) {

	#footer {
		padding-top: 56px;
	}

	#footer .boxColunas {
		grid-template-columns: repeat(2, 1fr);
		gap: 36px 24px;
	}

	#footer .frase {
		max-width: 100%;
	}

	/* Copyright e atalhos empilhados e centrados: lado a lado nesta largura
	   eles quebram em duas linhas tortas */

	#footer .barraFinal {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		margin-top: 44px;
	}

	#footer .barraFinal .boxFinal {
		flex-direction: column;
		gap: 16px;
	}

	#footer .listaLegal {
		justify-content: center;
	}

}

@media only screen and (max-width: 500px) {

	#footer .boxColunas {
		grid-template-columns: repeat(1, 1fr);
	}

}
