<?php
    use Illuminate\Support\Facades\Storage;
    $logo = $siteSettings->logo;
    $businessLogoPath = public_path('assets/images/hillcrest-living-logo.png');
    $logoUrl = $logo
        ? Storage::disk($logo->disk)->url($logo->path)
        : (file_exists($businessLogoPath) ? asset('assets/images/hillcrest-living-logo.png') : null);
    $logoAlt = $logo?->alt_text ?: 'Hillcrest Living Ltd logo';
?>

<header
    class="sticky top-0 z-50 border-b transition-colors duration-300"
    x-data="{ mobileOpen: false, scrolled: false }"
    x-init="window.addEventListener('scroll', () => { scrolled = window.scrollY > 16 })"
    :class="scrolled ? 'border-neutral-200 bg-white/95 backdrop-blur-md' : 'border-transparent bg-transparent'"
>
    <nav class="mx-auto flex max-w-7xl items-center justify-between gap-4 px-4 py-2.5 lg:px-8" aria-label="Primary">
        <a href="<?php echo e(route('home')); ?>" class="flex min-h-[64px] items-center gap-2">
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($logoUrl): ?>
                <img
                    src="<?php echo e($logoUrl); ?>"
                    alt="<?php echo e($logoAlt); ?>"
                    class="h-16 w-auto object-contain md:h-20"
                >
            <?php else: ?>
                <span class="font-display text-xl font-semibold tracking-wide text-[var(--color-heading)]" style="font-family: var(--font-heading);">HILLCREST LIVING LTD</span>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </a>

        <div class="hc-main-menu-panel hidden items-center gap-1 rounded-full px-2 py-1.5 md:flex">
            <?php if (isset($component)) { $__componentOriginal8183ad81c318ed172dc53e96efe1a400 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8183ad81c318ed172dc53e96efe1a400 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.site.nav-link','data' => ['href' => ''.e(route('home')).'','route' => 'home']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('site.nav-link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => ''.e(route('home')).'','route' => 'home']); ?>Home <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $attributes = $__attributesOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $component = $__componentOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__componentOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal8183ad81c318ed172dc53e96efe1a400 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8183ad81c318ed172dc53e96efe1a400 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.site.nav-link','data' => ['href' => ''.e(url('/about')).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('site.nav-link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => ''.e(url('/about')).'']); ?>About <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $attributes = $__attributesOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $component = $__componentOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__componentOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal8183ad81c318ed172dc53e96efe1a400 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8183ad81c318ed172dc53e96efe1a400 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.site.nav-link','data' => ['href' => ''.e(route('services.index')).'','route' => 'services.index']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('site.nav-link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => ''.e(route('services.index')).'','route' => 'services.index']); ?>Services <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $attributes = $__attributesOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $component = $__componentOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__componentOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal8183ad81c318ed172dc53e96efe1a400 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8183ad81c318ed172dc53e96efe1a400 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.site.nav-link','data' => ['href' => ''.e(route('how-it-works')).'','route' => 'how-it-works']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('site.nav-link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => ''.e(route('how-it-works')).'','route' => 'how-it-works']); ?>How it works <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $attributes = $__attributesOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $component = $__componentOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__componentOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal8183ad81c318ed172dc53e96efe1a400 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8183ad81c318ed172dc53e96efe1a400 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.site.nav-link','data' => ['href' => ''.e(route('careers.index')).'','route' => 'careers.*']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('site.nav-link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => ''.e(route('careers.index')).'','route' => 'careers.*']); ?>Careers <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $attributes = $__attributesOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $component = $__componentOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__componentOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal8183ad81c318ed172dc53e96efe1a400 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8183ad81c318ed172dc53e96efe1a400 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.site.nav-link','data' => ['href' => ''.e(route('contact.show')).'','route' => 'contact.*']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('site.nav-link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => ''.e(route('contact.show')).'','route' => 'contact.*']); ?>Contact <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $attributes = $__attributesOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__attributesOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8183ad81c318ed172dc53e96efe1a400)): ?>
<?php $component = $__componentOriginal8183ad81c318ed172dc53e96efe1a400; ?>
<?php unset($__componentOriginal8183ad81c318ed172dc53e96efe1a400); ?>
<?php endif; ?>
        </div>

        <div class="hidden md:block">
            <a
                href="<?php echo e(route('referral.show')); ?>"
                class="hc-btn-primary px-4 py-2"
            >
                Make a referral
            </a>
        </div>

        <button
            type="button"
            class="inline-flex min-h-[40px] min-w-[40px] items-center justify-center rounded-lg border border-neutral-200 bg-white text-neutral-800 shadow-sm md:hidden"
            @click="mobileOpen = !mobileOpen"
            :aria-expanded="mobileOpen.toString()"
            aria-controls="mobile-nav"
        >
            <span class="sr-only">Menu</span>
            <span x-show="!mobileOpen">☰</span>
            <span x-show="mobileOpen" x-cloak>✕</span>
        </button>
    </nav>

    <div
        id="mobile-nav"
        x-show="mobileOpen"
        x-cloak
        x-transition:enter="transition ease-out duration-220"
        x-transition:enter-start="opacity-0 -translate-y-2 scale-[0.98]"
        x-transition:enter-end="opacity-100 translate-y-0 scale-100"
        x-transition:leave="transition ease-in duration-160"
        x-transition:leave-start="opacity-100 translate-y-0 scale-100"
        x-transition:leave-end="opacity-0 -translate-y-1 scale-[0.99]"
        class="border-t border-neutral-200 bg-white/95 backdrop-blur-sm md:hidden"
    >
        <div class="flex max-h-[72vh] flex-col gap-1.5 overflow-y-auto px-4 py-3">
            <a @click="mobileOpen = false" class="hc-mobile-nav-link <?php echo e(request()->routeIs('home') ? 'hc-mobile-nav-link-active' : ''); ?>" href="<?php echo e(route('home')); ?>">Home</a>
            <a @click="mobileOpen = false" class="hc-mobile-nav-link <?php echo e(request()->is('about') ? 'hc-mobile-nav-link-active' : ''); ?>" href="<?php echo e(url('/about')); ?>">About</a>
            <a @click="mobileOpen = false" class="hc-mobile-nav-link <?php echo e(request()->routeIs('services.index') ? 'hc-mobile-nav-link-active' : ''); ?>" href="<?php echo e(route('services.index')); ?>">Services</a>
            <a @click="mobileOpen = false" class="hc-mobile-nav-link <?php echo e(request()->routeIs('how-it-works') ? 'hc-mobile-nav-link-active' : ''); ?>" href="<?php echo e(route('how-it-works')); ?>">How it works</a>
            <a @click="mobileOpen = false" class="hc-mobile-nav-link <?php echo e(request()->routeIs('careers.*') ? 'hc-mobile-nav-link-active' : ''); ?>" href="<?php echo e(route('careers.index')); ?>">Careers</a>
            <a @click="mobileOpen = false" class="hc-mobile-nav-link <?php echo e(request()->routeIs('contact.*') ? 'hc-mobile-nav-link-active' : ''); ?>" href="<?php echo e(route('contact.show')); ?>">Contact</a>
            <div class="mt-1.5 grid grid-cols-2 gap-1.5 text-sm">
                <a @click="mobileOpen = false" class="rounded-lg border border-neutral-200 px-3 py-2 font-medium text-neutral-700 hover:bg-neutral-50" href="<?php echo e(route('news.index')); ?>">News</a>
                <a @click="mobileOpen = false" class="rounded-lg border border-neutral-200 px-3 py-2 font-medium text-neutral-700 hover:bg-neutral-50" href="<?php echo e(url('/who-we-support')); ?>">Who we support</a>
                <a @click="mobileOpen = false" class="rounded-lg border border-neutral-200 px-3 py-2 font-medium text-neutral-700 hover:bg-neutral-50" href="<?php echo e(url('/testimonials')); ?>">Testimonials</a>
                <a @click="mobileOpen = false" class="rounded-lg border border-neutral-200 px-3 py-2 font-medium text-neutral-700 hover:bg-neutral-50" href="<?php echo e(route('downloads.index')); ?>">Downloads</a>
            </div>
            <a @click="mobileOpen = false" class="hc-btn-primary mt-2 px-3 py-2.5 text-center" href="<?php echo e(route('referral.show')); ?>">Make a referral</a>
        </div>
    </div>
</header>
<?php /**PATH C:\Users\MrKennyJava\Herd\hillcrest-web\resources\views/site/partials/nav.blade.php ENDPATH**/ ?>