<!DOCTYPE html>
<html class="h-full" lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

    <?php
        $resolvedTitle = trim($__env->yieldContent('title'));
        $resolvedDescription = trim($__env->yieldContent('meta_description'));
        $siteName = trim((string) $siteSettings->site_name);
        $titleContainsSiteName = $resolvedTitle !== ''
            && $siteName !== ''
            && str_contains(mb_strtolower($resolvedTitle), mb_strtolower($siteName));
    ?>

    <title>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($resolvedTitle !== ''): ?>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($titleContainsSiteName): ?>
                <?php echo e($resolvedTitle); ?>

            <?php else: ?>
                <?php echo e($resolvedTitle); ?> · <?php echo e($siteSettings->site_name); ?>

            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        <?php else: ?>
            <?php echo e($siteSettings->site_name); ?>

        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    </title>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($resolvedDescription !== ''): ?>
        <meta name="description" content="<?php echo e($resolvedDescription); ?>">
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    <?php
        $businessLogoExists = file_exists(public_path('assets/images/hillcrest-living-logo.png'));
        $legacyLogoExists = file_exists(public_path('assets/hillcrest-living-logo.jpeg'));
        $defaultOgImage = $businessLogoExists
            ? asset('assets/images/hillcrest-living-logo.png')
            : ($legacyLogoExists ? asset('assets/hillcrest-living-logo.jpeg') : null);
        $faviconPath = public_path('favicon.ico');
        $faviconPngPath = public_path('assets/images/favicon.png');
        $faviconVersion = file_exists($faviconPath) ? filemtime($faviconPath) : time();
    ?>
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($defaultOgImage): ?>
        <meta property="og:image" content="<?php echo e($defaultOgImage); ?>">
        <meta name="twitter:image" content="<?php echo e($defaultOgImage); ?>">
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(file_exists($faviconPath)): ?>
        <link rel="icon" type="image/x-icon" href="<?php echo e(asset('favicon.ico')); ?>?v=<?php echo e($faviconVersion); ?>">
        <link rel="shortcut icon" href="<?php echo e(asset('favicon.ico')); ?>?v=<?php echo e($faviconVersion); ?>">
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(file_exists($faviconPngPath)): ?>
        <link rel="icon" type="image/png" sizes="32x32" href="<?php echo e(asset('assets/images/favicon.png')); ?>?v=<?php echo e($faviconVersion); ?>">
        <link rel="icon" type="image/png" sizes="16x16" href="<?php echo e(asset('assets/images/favicon.png')); ?>?v=<?php echo e($faviconVersion); ?>">
        <link rel="apple-touch-icon" href="<?php echo e(asset('assets/images/favicon.png')); ?>?v=<?php echo e($faviconVersion); ?>">
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

    <?php echo $__env->yieldPushContent('meta'); ?>

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">

    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?>

    <style>
        :root {
            --color-primary: <?php echo e($siteSettings->theme_primary_color); ?>;
            --color-accent: <?php echo e($siteSettings->theme_accent_color); ?>;
            --color-heading: <?php echo e($siteSettings->theme_heading_color); ?>;
            --color-body: <?php echo e($siteSettings->theme_body_color); ?>;
            --color-surface: <?php echo e($siteSettings->theme_surface_color); ?>;
            --color-surface-alt: <?php echo e($siteSettings->theme_surface_alt_color); ?>;
            --font-heading: "<?php echo e($siteSettings->theme_font_heading); ?>", "Plus Jakarta Sans", system-ui, sans-serif;
            --font-body: "<?php echo e($siteSettings->theme_font_body); ?>", "Inter", system-ui, sans-serif;
        }
    </style>
</head>
<body class="min-h-full bg-[var(--color-surface)] text-[var(--color-body)] antialiased font-sans" style="font-family: var(--font-body);">
    <div class="scroll-progress" aria-hidden="true"></div>
    <div
        class="pointer-events-none fixed inset-0 -z-10 opacity-45"
        style="background-image: linear-gradient(rgba(255,255,255,0.74), rgba(255,255,255,0.87)), url('<?php echo e(asset('assets/images/hillcrest-floral-background.png')); ?>'); background-size: 700px auto; background-attachment: fixed;"
        aria-hidden="true"
    ></div>
    <?php echo $__env->make('site.partials.nav', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <main id="main-content">
        <?php echo $__env->yieldContent('content'); ?>
    </main>

    <?php echo $__env->make('site.partials.footer', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <?php echo $__env->yieldPushContent('scripts'); ?>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($siteSettings->cookie_notice_enabled && filled($siteSettings->cookie_notice_text)): ?>
        <div
            x-data="{ show: localStorage.getItem('hillcrest_cookie_ok') !== '1' }"
            x-show="show"
            x-cloak
            class="fixed inset-x-4 bottom-4 z-50 max-w-lg rounded-lg border border-neutral-200 bg-white p-4 shadow-lg md:left-auto md:right-8"
            role="dialog"
            aria-live="polite"
        >
            <p class="text-sm text-neutral-700"><?php echo nl2br(e($siteSettings->cookie_notice_text)); ?></p>
            <div class="mt-3 flex gap-2 justify-end">
                <button
                    type="button"
                    class="rounded-md bg-[var(--color-accent)] px-4 py-2 text-sm font-semibold text-white hover:opacity-90 min-h-[44px]"
                    @click="localStorage.setItem('hillcrest_cookie_ok','1'); show=false"
                >
                    Accept
                </button>
            </div>
        </div>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

    <button
        type="button"
        x-data="{ visible: false }"
        x-init="window.addEventListener('scroll', () => { visible = window.scrollY > 400 })"
        x-show="visible"
        x-cloak
        @click="window.scrollTo({ top: 0, behavior: 'smooth' })"
        class="fixed bottom-6 right-6 z-40 flex h-11 w-11 items-center justify-center rounded-full bg-[var(--color-primary)] text-white shadow-lg hover:opacity-90"
        aria-label="Back to top"
    >
        ↑
    </button>
</body>
</html>
<?php /**PATH C:\Users\MrKennyJava\Herd\hillcrest-web\resources\views/layouts/site.blade.php ENDPATH**/ ?>