<?php
// header_desktop.php  — Soziety desktop topbar
if (session_status() === PHP_SESSION_NONE) session_start();
require_once __DIR__ . '/config.php';
if (!isset($ASSET)) {
    $BASE = defined('BASE_URL') ? rtrim(BASE_URL, '/') . '/' : '/';
    $ASSET = $BASE . 'mobile/';
}
if (!function_exists('h')) { function h($s){ return htmlspecialchars((string)$s, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); } }
?>
<div class="topbar">
    <div class="topinner">
        <div style="display:flex;align-items:center;gap:14px">
            <div class="logo">
                <a href="<?php echo h($ASSET.'index.html'); ?>">
                    <img src="<?php echo h($ASSET.'assets/images/icon.png'); ?>" alt="logo" style="height:28px">
                </a>
            </div>
            <nav class="nav">
                <a href="<?php echo h($ASSET.'index.html'); ?>">Projects</a>
                <a href="<?php echo h($ASSET.'pages.html'); ?>">Pages</a>
            </nav>
        </div>
        <button id="openSidebar" class="hamb" aria-label="Open menu"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 6h18M3 12h18M3 18h18"/></svg></button>
    </div>
</div>
