/*
 * Transpirenaica Trail — footer «Pie GR11 Viajes» (Block Element «Pie», theme/elements/site-footer.html).
 *
 * Ported from base.css / mobile.css of the approved design (.site-footer*, .site-footer__agencia → __agency,
 * .site-footer__contacto → __contact). GeneratePress prints the Site Footer Element inside its own
 * <div class="site-footer">, so every rule is scoped to footer.site-footer.
 * - The legal links are the native menu «Footer» (location «Menú del pie»), printed by the block
 *   transpirenaica/menu-location as ul.site-footer__links > li.menu-item > a.
 * - Contact icons are the masks of components.css (mask-icon--mail / phone / clock) on each li.
 * GP colours links with a:hover, a:focus, a:active (0,1,1): link states below weigh more and repeat the colour.
 */

footer.site-footer {
	background: var(--forest-900);
	color: var(--on-dark-muted);
	font-size: var(--fs-small);
	line-height: 1.6;
}

footer.site-footer .site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: var(--space-8);
	padding-top: var(--space-9);
	padding-bottom: var(--space-8);
}

/* Brand */
footer.site-footer .site-footer__logo {
	width: auto;
	height: 22px;
	margin-bottom: var(--space-5);
}

footer.site-footer .site-footer__agency {
	max-width: 380px;
	margin-bottom: var(--space-5);
	line-height: 1.6;
}

footer.site-footer .site-footer__agency strong {
	color: var(--on-dark);
}

footer.site-footer .site-footer__brand .btn {
	--icon-size: 16px;
}

/* Column titles (h2, as in the approved design) */
footer.site-footer .site-footer__title {
	margin-bottom: var(--space-4);
	font-family: var(--font-heading);
	font-size: var(--fs-footer-title);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mustard);
}

/* Legal links: native menu «Footer» */
footer.site-footer .site-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--on-dark);
	text-decoration: none;
}

footer.site-footer .site-footer__links a:is(:hover, :focus, :active),
footer.site-footer .site-footer__contact-list a:is(:hover, :focus, :active) {
	color: var(--mustard);
}

/* Contact: icon (mask on the li) + text */
footer.site-footer .site-footer__contact-list li {
	display: flex;
	gap: var(--space-3);
	align-items: flex-start;
	padding: var(--space-2) 0;
	line-height: 1.5;
	--icon-size: 20px;
	--icon-color: var(--mustard);
}

footer.site-footer .site-footer__contact-list li::before {
	margin-top: 1px;
}

footer.site-footer .site-footer__contact-list a {
	color: var(--on-dark);
	text-decoration: none;
	white-space: nowrap;
}

/* Copyright bar */
footer.site-footer .site-footer__bottom {
	padding: var(--space-5) 0;
	border-top: 1px solid var(--on-dark-line);
	font-size: var(--fs-xs);
	color: var(--on-dark-muted);
}

/* Mobile (≤767 px): one column, brand → contact → legal */
@media (max-width: 767px) {
	footer.site-footer .site-footer__grid {
		grid-template-columns: 1fr;
		gap: var(--space-6);
		padding-top: var(--space-8);
		padding-bottom: var(--space-6);
	}

	footer.site-footer .site-footer__brand {
		order: 1;
	}

	footer.site-footer .site-footer__brand .btn {
		width: 100%;
	}

	footer.site-footer .site-footer__contact {
		order: 2;
	}

	footer.site-footer .site-footer__legal {
		order: 3;
	}

	footer.site-footer .site-footer__links a {
		min-height: 44px;
	}

	footer.site-footer .site-footer__contact-list li {
		padding: var(--space-3) 0;
	}

	footer.site-footer .site-footer__bottom p {
		text-align: center;
	}
}
