<footer class="relative overflow-hidden bg-ink text-slate-300">
    <div class="pointer-events-none absolute -right-24 -top-24 h-72 w-72 rounded-full bg-brand-700/30 blur-3xl"></div>
    <div class="pointer-events-none absolute -bottom-24 -left-24 h-72 w-72 rounded-full bg-brand-600/20 blur-3xl"></div>

    {{-- Stats strip --}}
    <div class="relative border-b border-white/10">
        <div class="container-x grid grid-cols-2 gap-8 py-12 md:grid-cols-4">
            @foreach ([['4K+','Satisfied students'],['80+','Partner colleges'],['9K+','Visas granted'],['15+','Years of expertise']] as $stat)
                <div class="text-center">
                    <div class="font-serif text-4xl font-semibold text-white md:text-5xl">{{ $stat[0] }}</div>
                    <div class="mt-1 text-sm text-slate-400">{{ $stat[1] }}</div>
                </div>
            @endforeach
        </div>
    </div>

    <div class="relative container-x grid gap-10 py-16 md:grid-cols-2 lg:grid-cols-4">
        <div>
            @include('partials.logo', ['light' => true])
            <p class="mt-5 max-w-xs text-sm leading-relaxed text-slate-400">Your one-stop partner for education, student visas and migration success across Australia.</p>
            <div class="mt-6 flex gap-3">
                @php
                    $socialIcons = [
                        'facebook' => 'M13.5 22v-8h2.7l.4-3.1h-3.1V8.9c0-.9.3-1.5 1.6-1.5h1.6V4.6c-.3 0-1.3-.1-2.4-.1-2.4 0-4 1.5-4 4.1v2.3H7.6V14h2.7v8h3.2z',
                        'instagram' => 'M12 7.4a4.6 4.6 0 1 0 0 9.2 4.6 4.6 0 0 0 0-9.2zm0 7.6a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm4.8-7.8a1.1 1.1 0 1 1-2.2 0 1.1 1.1 0 0 1 2.2 0zM20 8.9c-.1-1.5-.4-2.8-1.5-3.9S16.1 3.6 14.6 3.5c-1.5-.1-6.1-.1-7.6 0-1.5.1-2.8.4-3.9 1.5S1.6 6.9 1.5 8.4c-.1 1.5-.1 6.1 0 7.6.1 1.5.4 2.8 1.5 3.9s2.4 1.4 3.9 1.5c1.5.1 6.1.1 7.6 0 1.5-.1 2.8-.4 3.9-1.5s1.4-2.4 1.5-3.9c.1-1.5.1-6.1 0-7.6zm-1.9 9.2a3 3 0 0 1-1.7 1.7c-1.2.5-4 .4-5.3.4s-4.1.1-5.3-.4a3 3 0 0 1-1.7-1.7c-.5-1.2-.4-4-.4-5.3s-.1-4.1.4-5.3A3 3 0 0 1 6.7 5.5c1.2-.5 4-.4 5.3-.4s4.1-.1 5.3.4a3 3 0 0 1 1.7 1.7c.5 1.2.4 4 .4 5.3s.1 4.1-.4 5.3z',
                        'linkedin' => 'M6.9 20.5H3.5V9.5h3.4v11zM5.2 8A2 2 0 1 1 5.2 4a2 2 0 0 1 0 4zm15.3 12.5H17v-5.3c0-1.3 0-3-1.8-3s-2.1 1.4-2.1 2.9v5.4H9.7V9.5H13v1.5h.1c.5-.9 1.6-1.8 3.3-1.8 3.5 0 4.1 2.3 4.1 5.3v6z',
                        'tiktok' => 'M16.6 5.8a4.3 4.3 0 0 1-1-2.8h-3v12.1a2.5 2.5 0 1 1-2.5-2.5c.3 0 .5 0 .7.1v-3a5.5 5.5 0 1 0 4.8 5.4V9.7a7.2 7.2 0 0 0 4.2 1.3v-3a4.3 4.3 0 0 1-3.2-2.2z',
                    ];
                @endphp
                @foreach ($socialIcons as $name => $path)
                    <a href="{{ config('site.socials.'.$name) }}" aria-label="{{ ucfirst($name) }}" class="grid h-10 w-10 place-items-center rounded-full border border-white/15 text-slate-300 transition-colors hover:border-brand-500 hover:bg-brand-600 hover:text-white">
                        <svg class="h-5 w-5" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="{{ $path }}"/></svg>
                    </a>
                @endforeach
                <a href="https://wa.me/{{ config('site.whatsapp') }}" target="_blank" rel="noopener" aria-label="Chat on WhatsApp" class="grid h-10 w-10 place-items-center rounded-full border border-white/15 text-slate-300 transition-colors hover:border-[#25D366] hover:bg-[#25D366] hover:text-white">
                    <svg class="h-5 w-5" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M17.5 14.4c-.3-.1-1.8-.9-2-1-.3-.1-.5-.1-.7.1-.2.3-.7 1-.9 1.2-.2.2-.3.2-.6.1a8 8 0 0 1-2.4-1.5 9 9 0 0 1-1.6-2c-.2-.3 0-.5.1-.6l.5-.5c.1-.2.2-.3.3-.5.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.2.2 2.1 3.3 5.2 4.6.7.3 1.3.5 1.7.6.7.2 1.4.2 1.9.1.6-.1 1.8-.7 2-1.4.3-.7.3-1.3.2-1.4-.1-.2-.3-.2-.6-.4zM12 2a10 10 0 0 0-8.6 15L2 22l5.1-1.3A10 10 0 1 0 12 2zm0 18.2c-1.5 0-3-.4-4.2-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2z"/></svg>
                </a>
            </div>
        </div>

        <div>
            <h4 class="text-sm font-semibold uppercase tracking-wider text-white">Explore</h4>
            <ul class="mt-5 space-y-3 text-sm">
                @foreach ([['home','Home'],['about','About Us'],['services','Services'],['visa','Visa'],['contact','Contact Us']] as $l)
                    <li><a href="{{ route($l[0]) }}" class="text-slate-400 transition-colors hover:text-brand-400">{{ $l[1] }}</a></li>
                @endforeach
            </ul>
        </div>

        <div>
            <h4 class="text-sm font-semibold uppercase tracking-wider text-white">Resources</h4>
            <ul class="mt-5 space-y-3 text-sm">
                @foreach ([['services','Student Enrolment'],['visa','Visa Applications'],['points','Points Calculator'],['citizenship','Citizenship Application'],['services','Health Insurance']] as $l)
                    <li><a href="{{ route($l[0]) }}" class="text-slate-400 transition-colors hover:text-brand-400">{{ $l[1] }}</a></li>
                @endforeach
            </ul>
        </div>

        <div>
            <h4 class="text-sm font-semibold uppercase tracking-wider text-white">Get in touch</h4>
            <ul class="mt-5 space-y-4 text-sm text-slate-400">
                <li class="flex gap-3"><span class="text-brand-500">&#9679;</span><span>{{ config('site.address') }}</span></li>
                <li class="flex gap-3"><span class="text-brand-500">&#9679;</span><a href="mailto:{{ config('site.email') }}" class="hover:text-brand-400">{{ config('site.email') }}</a></li>
                <li class="flex gap-3"><span class="text-brand-500">&#9679;</span><a href="tel:{{ config('site.phone_link') }}" class="hover:text-brand-400">{{ config('site.phone') }} &middot; {{ config('site.mobile') }}</a></li>
            </ul>
        </div>
    </div>

    <div class="relative border-t border-white/10">
        <div class="container-x flex flex-col items-center justify-between gap-3 py-6 text-xs text-slate-500 md:flex-row">
            <p>{{ config('site.abn') }}</p>
            <p>&copy; {{ date('Y') }} {{ config('site.full_name') }} Pty Ltd. All rights reserved.</p>
        </div>
    </div>
</footer>
