@props([ 'title', 'subtitle' => null, 'compact' => false, 'light' => false, 'image' => null, ]) @php $hasImage = $image && file_exists(public_path($image)); @endphp
! $light && ! $hasImage, 'bg-firm-surface text-firm-ink border-slate-200' => $light, $compact ? 'py-12 sm:py-14' : 'py-16 sm:py-20 md:py-24', ])> @if($hasImage)
@endif
{{ $slot ?? '' }}

! $light, 'text-firm-ink' => $light, ])>{{ $title }}

@if($subtitle)

! $light, 'text-slate-600' => $light, ])>{{ $subtitle }}

@endif