/**
 * Section: Site Footer Style
 * Arquivo: sections/site-footer/style.css
 *
 * Desenvolvido por: Roger Alves
 * Data da Modificacao: 2026-08-29
 * Hora da Modificacao: 12:05
 *
 * 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;
}

/* ── Selector de idioma (TranslatePress) apilado arriba del WhatsApp ──
   85px (bottom del whatsapp) + 45px (altura) + 10px (gap) = 140px.
   Configurado como "dropdown" + sin "idioma opuesto": el icono visible
   es siempre el idioma ACTUAL; al hacer click se revela el otro idioma
   al lado, en horizontal (no abajo, no en lista vertical).
   Los iconos redondos son archivos propios (no las banderas 4:3 de
   TranslatePress) para no tener que recortar nada. */
.trp-floating-switcher {
	--bg: transparent !important;
	--bg-hover: transparent !important;
	--border: none !important;
	--switcher-padding: 0 !important;
	bottom: 140px !important;
	right: 30px !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	box-shadow: none !important;
}

.trp-floating-switcher .trp-language-switcher-inner {
	flex-direction: row-reverse !important;
	align-items: center !important;
	gap: 8px !important;
}

.trp-floating-switcher .trp-language-item,
.trp-floating-switcher .trp-language-item__current {
	width: 45px !important;
	height: 45px !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	box-sizing: border-box !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.trp-floating-switcher .trp-switcher-dropdown-list {
	flex-direction: row !important;
	align-items: center !important;
	gap: 0;
	max-height: none !important;
	max-width: 0;
	overflow: hidden;
	transition: max-width 0.2s ease-in-out, gap 0.2s ease-in-out;
}

.trp-floating-switcher .trp-switcher-dropdown-list:not([hidden]) {
	gap: 8px;
	max-width: 60px;
	overflow: visible;
}

.trp-floating-switcher .trp-flag-image {
	width: 45px !important;
	height: 45px !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: contain;
	border-radius: 0 !important;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.trp-floating-switcher img[src*="es_ES.svg"] {
	content: url("../../assets/img/flags/es.png");
}

.trp-floating-switcher img[src*="pt_BR.svg"] {
	content: url("../../assets/img/flags/pt-br.png");
}
