<?php
$standalone = false;
if (!defined('ABEMS_ACCESS')) {
    require_once __DIR__ . '/../../config/config.php';
    $standalone = abems_standalone_begin([
        'config_path' => __DIR__ . '/../../config/config.php',
        'title'       => 'Certifications | A Believers EMS',
        'description' => 'Texas DSHS licensure, NREMT certifications, HIPAA compliance, Medicare enrollment and other credentials.',
        'header_img'  => 'about/about-vision.jpg',
        'heading'     => 'Certifications &amp; <em class="display">Licensure</em>',
        'intro'       => 'Every certification we hold is a promise to the families and hospitals who trust us with their patients.',
        'breadcrumb'  => [
            ['About', 'about.php'],
            ['Certifications', null]
        ],
    ]);
}
$certs = [
    ['title' => 'Texas DSHS',         'body' => 'License #' . CRED_TX_LICENSE,  'icon' => 'shield'],
    ['title' => 'NPI Registry',       'body' => '#' . CRED_NPI,                  'icon' => 'check'],
    ['title' => 'Texas Medicaid',     'body' => '#' . CRED_TX_MEDICAID,          'icon' => 'check'],
    ['title' => 'Medicare',           'body' => 'Enrolled Provider',             'icon' => 'check'],
    ['title' => 'Houston Health',     'body' => 'Permitted Ambulance Provider',  'icon' => 'shield'],
    ['title' => 'HIPAA',              'body' => 'Privacy Compliant',             'icon' => 'lock'],
    ['title' => 'AHA BLS',            'body' => 'Crew Certified',                'icon' => 'heart'],
    ['title' => 'Active Since 2006',  'body' => CRED_YEARS_ACTIVE . ' Years Houston','icon' => 'award'],
];
$icon = function($name) {
    $map = [
        'shield' => '<path d="M12 2l8 4v6c0 5-3.5 9-8 10-4.5-1-8-5-8-10V6l8-4z"/>',
        'star'   => '<path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/>',
        'lock'   => '<rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',
        'check'  => '<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/>',
        'award'  => '<circle cx="12" cy="8" r="7"/><path d="M8.21 13.89L7 23l5-3 5 3-1.21-9.12"/>',
        'heart'  => '<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/>',
    ];
    return $map[$name] ?? $map['check'];
};
?>
<section class="section bg-cream">
    <div class="container">
        <div class="section-head js-reveal">
            <span class="eyebrow">Credentials &amp; Licensure</span>
            <h2>Verified credentials. <em class="display">Real numbers.</em></h2>
            <p class="lead" style="margin-inline:auto;">
                Every credential below is publicly verifiable through CMS NPPES, the Texas DSHS provider registry,
                and the Houston Health Department permitting database. Look us up.
            </p>
        </div>

        <div class="cert-grid js-stagger">
            <?php foreach ($certs as $c): ?>
                <div class="cert-card">
                    <div class="cert-card-icon">
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" width="24" height="24"><?= $icon($c['icon']) ?></svg>
                    </div>
                    <h5><?= e($c['title']) ?></h5>
                    <span class="body"><?= e($c['body']) ?></span>
                </div>
            <?php endforeach; ?>
        </div>
    </div>
</section>
<?php abems_standalone_end($standalone); ?>
