@php($d = $d ?? [])
<section class="vs-section vs-pets" id="adopt">
    <div class="vs-container">
        <div class="vs-head" data-aos="fade-up">
            <h2 class="vs-h2">{{ $d['heading'] ?? 'Adoptable pets' }}</h2>
            @if(!empty($d['subheading']))<p class="vs-lead">{{ $d['subheading'] }}</p>@endif
        </div>
        <div class="vs-pet-grid">
            @foreach(($d['items'] ?? []) as $i => $p)
                <div class="vs-pet-card" data-aos="fade-up" data-aos-delay="{{ ($i % 4) * 70 }}">
                    <div class="vs-pet-media">
                        @if(!empty($p['image']))<img src="{{ $p['image'] }}" alt="{{ $p['name'] ?? '' }}" loading="lazy">@else<div class="vs-pet-ph"><i class="fas fa-paw"></i></div>@endif
                        @if(!empty($p['gender']))<span class="vs-pet-gender"><i class="fas fa-{{ strtolower($p['gender'])==='female' ? 'venus' : 'mars' }}"></i> {{ $p['gender'] }}</span>@endif
                    </div>
                    <div class="vs-pet-body">
                        <h3 class="vs-pet-name">{{ $p['name'] ?? '' }}</h3>
                        <p class="vs-pet-meta">{{ $p['breed'] ?? '' }}@if(!empty($p['age'])) · {{ $p['age'] }}@endif</p>
                        <a href="#contact" class="vs-btn vs-btn-primary vs-pet-btn"><i class="fas fa-heart"></i> Adopt me</a>
                    </div>
                </div>
            @endforeach
        </div>
    </div>
</section>
