@php($d = $d ?? [])
<section class="vs-section cl-hero" id="home">
    @if(!empty($d['image']))<div class="cl-hero-bg" style="background-image:url('{{ $d['image'] }}')"></div>@endif
    <div class="cl-hero-overlay"></div>
    <div class="vs-container cl-hero-inner">
        <div class="cl-hero-copy" data-aos="fade-up">
            @if(!empty($d['eyebrow']))<span class="cl-eyebrow"><span class="cl-eyebrow-bar"></span> {{ $d['eyebrow'] }}</span>@endif
            <h1 class="cl-hero-title">{!! nl2br(e($d['heading'] ?? '')) !!}</h1>
            @if(!empty($d['subheading']))<p class="cl-hero-sub">{{ $d['subheading'] }}</p>@endif
            <div class="cl-hero-actions">
                @if(!empty($d['primary_label']))<a href="{{ $d['primary_url'] ?? '#' }}" class="cl-btn cl-btn-primary">{{ $d['primary_label'] }}</a>@endif
                @if(!empty($d['secondary_label']))<a href="{{ $d['secondary_url'] ?? '#' }}" class="cl-btn cl-btn-outline">{{ $d['secondary_label'] }}</a>@endif
            </div>
        </div>
    </div>
    {{-- quick appointment bar --}}
    <div class="vs-container">
        <form class="cl-quickbar" method="POST" action="/contact" data-aos="fade-up" data-aos-delay="150">
            <input type="hidden" name="return" value="{{ ltrim(request()->path(),'/')==='/' ? '' : ltrim(request()->path(),'/') }}">
            <input type="hidden" name="subject" value="Quick appointment request">
            <div style="position:absolute;left:-9999px"><input type="text" name="company" tabindex="-1"></div>
            <div class="cl-qb-field"><i class="fas fa-paw"></i><input type="text" name="name" placeholder="Your name" required></div>
            <div class="cl-qb-field"><i class="fas fa-phone"></i><input type="text" name="phone" placeholder="Phone number"></div>
            <div class="cl-qb-field"><i class="fas fa-stethoscope"></i><input type="text" name="message" placeholder="Service needed"></div>
            <button type="submit" class="cl-btn cl-btn-primary">Request <i class="fas fa-arrow-right"></i></button>
        </form>
    </div>
</section>
