<?php if (!defined('TEKDEK')) die('Direct access not permitted.'); ?>

<section class="hero">
    <h1>Welcome to TekDek</h1>
    <p class="lead">Documentation &amp; Strategy Hub — where our vision, projects, and tools come together.</p>
</section>

<section class="grid cards">
    <?php foreach ($MENU as $slug => $item): ?>
        <?php if ($slug !== 'home' && $item['nav']): ?>
            <?php $url = ($slug === 'team') ? SITE_BASE_URL . 'team.html' : page_url($slug); ?>
            <a href="<?= e($url) ?>" class="card">
                <span class="card-icon"><?= $item['icon'] ?></span>
                <h3><?= e($item['title']) ?></h3>
            </a>
        <?php endif; ?>
    <?php endforeach; ?>
</section>
