@php
    $c = (array) ($site->contact ?? []);
    $social = (array) ($site->social ?? []);
    $navPages = $navPages ?? collect();
    $opts = (array) ($site->options ?? []);
@endphp
<footer class="sh-footer">
    <div class="vs-container sh-donate-band" data-aos="fade-up">
        <div><h2>Your kindness saves lives</h2><p>Every donation helps us feed, treat and rehome animals in need.</p></div>
        <a href="{{ $opts['cta_url'] ?? '#contact' }}" class="sh-btn sh-btn-light"><i class="fas fa-heart"></i> Donate today</a>
    </div>
    <div class="vs-container sh-footer-grid">
        <div>
            <a href="/" class="sh-logo" style="color:#fff">
                @if($site->logoUrl())<img src="{{ $site->logoUrl() }}" alt="">@else<span class="sh-logo-mark"><i class="fas fa-hand-holding-heart"></i></span>@endif
                <span>{{ $site->name }}</span>
            </a>
            @if($site->tagline)<p class="sh-footer-about">{{ $site->tagline }}</p>@endif
            <div class="sh-social">
                @foreach(['facebook','instagram','twitter','youtube','tiktok'] as $net)
                    @if(!empty($social[$net]))<a href="{{ $social[$net] }}" target="_blank" rel="noopener"><i class="fab fa-{{ $net }}"></i></a>@endif
                @endforeach
            </div>
        </div>
        <div><h4>Get involved</h4><ul><li><a href="#adopt">Adopt</a></li><li><a href="#contact">Donate</a></li><li><a href="#contact">Volunteer</a></li><li><a href="#contact">Foster</a></li></ul></div>
        <div><h4>Explore</h4><ul>@foreach($navPages as $p)<li><a href="{{ $p->is_home ? '/' : '/'.$p->slug }}">{{ $p->title }}</a></li>@endforeach<li><a href="/portal">Client Portal</a></li></ul></div>
        <div><h4>Contact</h4><ul class="sh-footer-contact">
            @if(!empty($c['address']))<li><i class="fas fa-location-dot"></i> {{ $c['address'] }}</li>@endif
            @if(!empty($c['phone']))<li><i class="fas fa-phone"></i> {{ $c['phone'] }}</li>@endif
            @if(!empty($c['email']))<li><i class="fas fa-envelope"></i> {{ $c['email'] }}</li>@endif
        </ul></div>
    </div>
    <div class="sh-footer-bar"><div class="vs-container">
        <span>© {{ now()->year }} {{ $site->name }} · Registered charity</span><span style="opacity:.6">Powered by VET One</span>
    </div></div>
</footer>
