{#
	Site footer — tagline + back-to-top | contact rows → meta → rule → wordmark
#}
{% set footer_tagline = options.text_footer|default('We build high-impact one-page websites made to launch fast and scale later.') %}
{% set footer_email = options.footer_email|default('contact@genesis.fr') %}
{% set footer_rows = options.footer_locations|default([
	{ label: 'Adresse mail', value: footer_email, href: 'mailto:' ~ footer_email },
	{ label: 'Paris', value: 'Kazakhstan, Almaty (GMT+5)' },
	{ label: 'Bordeaux', value: 'Kazakhstan, Almaty (GMT+5)' },
	{ label: 'Poitiers', value: 'Kazakhstan, Almaty (GMT+5)' }
]) %}
{% set socials = [
	{ label: 'TikTok', url: options.social_tiktok_url|default('#') },
	{ label: 'YouTube', url: options.social_youtube_url|default('#') },
	{ label: 'Instagram', url: options.social_instagram_url|default('#') },
	{ label: 'LinkedIn', url: options.social_linkedin_url|default('#') }
] %}

<footer class="site-footer is-gray" data-theme-section="light">
	<div class="site-footer__inner">
		<div class="site-footer__top">
			<div class="site-footer__intro">
				<p class="site-footer__tagline font-title text-xs">{{ footer_tagline|striptags|upper }}</p>
				<button type="button" class="site-footer__back font-mono text-xxs" data-anchor-target="#page-top">
					{{ __('Back to top', 'genesis')|upper }}
				</button>
			</div>

			<ul class="site-footer__rows" role="list">
				{% for row in footer_rows %}
					<li class="site-footer__row">
						<span class="site-footer__label font-mono text-xxs">{{ row.label|upper }}</span>
						{% if row.href %}
							<a class="site-footer__value font-mono text-xxs" href="{{ safe_url(row.href) }}">{{ row.value|upper }}</a>
						{% else %}
							<span class="site-footer__value font-mono text-xxs">{{ row.value|upper }}</span>
						{% endif %}
					</li>
				{% endfor %}
			</ul>
		</div>

		<div class="site-footer__bottom">
			<div class="site-footer__meta">
				<p class="site-footer__copy font-mono text-xxs">{{ "now"|date('Y') }} © {{ __('Genesis Football', 'genesis')|upper }}</p>
				<ul class="site-footer__socials" role="list">
					{% for item in socials %}
						{% if item.url %}
							<li>
								<a
									class="site-footer__social font-mono text-xxs"
									href="{{ safe_url(item.url) }}"
									{% if item.url starts with 'http' %}target="_blank" rel="noopener noreferrer"{% endif %}
								>{{ item.label|upper }}</a>
							</li>
						{% endif %}
					{% endfor %}
				</ul>
			</div>

			<hr class="site-footer__rule">

			<div class="site-footer__mark" aria-hidden="true">
				{% include 'svg/footer-logo.svg' %}
			</div>
		</div>
	</div>
</footer>
