<?php
$pageTitle = $pageTitle ?? cfg('site.brand');
$pageDescription = $pageDescription ?? cfg('site.tagline');
?>
<!doctype html>
<html lang="tr">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="theme-color" content="#ffffff">
    <meta name="referrer" content="strict-origin-when-cross-origin">
    <title><?= e($pageTitle) ?> | <?= e(cfg('site.brand')) ?></title>
    <meta name="description" content="<?= e($pageDescription) ?>">
    <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=Poppins:wght@400;500;600;700;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    <link rel="stylesheet" href="assets/css/style.css?v=1.0.0">
</head>
<body>
<div class="announcement"><i class="bi bi-lightning-charge-fill"></i> <?= e(cfg('site.announcement')) ?></div>
<header class="site-header">
    <div class="container header-inner">
        <a class="brand" href="index.php" aria-label="<?= e(cfg('site.brand')) ?> ana sayfa"><?= e(cfg('site.brand')) ?></a>
        <nav class="desktop-nav" aria-label="Ana menü">
            <a href="index.php#urun">Ürün</a>
            <a href="index.php#neden">Neden MOEN-TR?</a>
            <a href="index.php#detaylar">Teknik Detaylar</a>
            <a href="index.php#iletisim">İletişim</a>
        </nav>
        <div class="header-actions">
            <a href="tel:<?= e(preg_replace('/[^+\d]/', '', (string) cfg('site.support_phone'))) ?>" aria-label="Telefon"><i class="bi bi-telephone"></i></a>
            <a href="https://wa.me/<?= e(preg_replace('/\D+/', '', (string) cfg('site.whatsapp_number'))) ?>" target="_blank" rel="noopener" aria-label="WhatsApp"><i class="bi bi-whatsapp"></i></a>
            <a class="mini-buy" href="checkout.php">Satın Al</a>
        </div>
    </div>
</header>
<main>
