/**
 * Section: Site Footer Style
 * Arquivo: sections/site-footer/style.css
 *
 * Desenvolvido por: Roger Alves
 * Data da Modificacao: 2026-06-10
 * Hora da Modificacao: 19:03
 *
 * Todos os direitos reservados.
 */

.site-footer {
	background: var(--color-primary-dark);
	color: var(--color-text-on-dark);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
	padding-top: clamp(3rem, 7vw, 5rem);
	padding-bottom: clamp(3rem, 7vw, 5rem);
}

.footer-column h2 {
	margin-bottom: 1rem;
	font-family: var(--font-body);
	font-size: 1rem;
	text-transform: uppercase;
	color: var(--color-secondary);
}

.footer-column ul {
	list-style: none;
}

.footer-column li + li {
	margin-top: 0.55rem;
}

.footer-column a,
.footer-column p,
.footer-bottom p {
	color: rgba(255, 255, 255, 0.78);
}

.footer-column a:hover {
	color: var(--color-secondary);
}

.newsletter-form {
	display: grid;
	gap: 0.75rem;
	margin-top: 1rem;
}

.newsletter-form input {
	width: 100%;
	min-height: 46px;
	padding: 0 1rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.08);
	color: var(--color-text-on-dark);
}

.newsletter-form input::placeholder {
	color: rgba(255, 255, 255, 0.62);
}

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

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1.25rem 0;
	text-align: center;
}

.footer-bottom p {
	margin-bottom: 0;
	font-size: 0.9rem;
}

@media (max-width: 980px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Botón Flotante WhatsApp ── */
.whatsapp-float {
	position: fixed;
	bottom: 85px; /* 30px (back-to-top) + 45px (altura) + 10px gap */
	right: 30px;  /* mesmo right do .yydev-back-to-top */
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	background-color: #25d366;
	color: #fff;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transition: background-color 0.2s ease, transform 0.2s ease;
	text-decoration: none;
}

.whatsapp-float:hover {
	background-color: #1ebe5d;
	transform: scale(1.1);
	color: #fff;
}

.whatsapp-float svg {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
}

.whatsapp-float__tooltip {
	position: absolute;
	right: calc(100% + 0.75rem);
	background: #1a1a1a;
	color: #fff;
	padding: 0.3rem 0.75rem;
	border-radius: 6px;
	font-size: 0.85rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
	opacity: 1;
}
