<?php
require_once __DIR__ . '/includes/functions.php';
$branches = getBranches();
$meta = pageMeta(['title' => 'ASSK Şubeleri | Eyüp, Başakşehir, Topkapı, Merter, Beylikdüzü Yüzme Kursu', 'canonical' => url('branches.php')]);
require __DIR__ . '/includes/header.php';
?>
<section class="page-hero compact"><div><span class="eyebrow">Şubeler</span><h1>Size En Yakın Şubeyi Seçin</h1><p>ASSK Yüzme Kursu, İstanbul’un seçili premium lokasyonlarında aile dostu ve profesyonel yüzme eğitimi sunar.</p></div></section>
<section class="section"><div class="branch-grid">
<?php foreach ($branches as $branch): ?>
    <article class="branch-card tilt-card reveal"><div class="branch-media"><img src="<?= e(url(branchImage($branch))) ?>" alt="<?= e($branch['seo_title']) ?>" loading="lazy"><span><i class="icon-3d mini icon-location"></i><?= e($branch['district']) ?></span></div><div class="branch-glass-footer"><h2><?= e($branch['seo_title']) ?></h2><strong><?= e($branch['venue_name']) ?></strong><p><?= e($branch['short_description']) ?></p><p class="muted"><?= e($branch['address']) ?></p><div class="card-actions"><a class="btn btn-primary" href="<?= e(branchUrl($branch['slug'])) ?>">Şubeyi İncele</a><a class="btn btn-ghost" href="<?= e(CONTACT_WHATSAPP) ?>">WhatsApp</a></div></div></article>
<?php endforeach; ?>
</div></section>
<?php require __DIR__ . '/includes/footer.php'; ?>
