<?php
/**
 * Generator for SmartThink Global Technology industry pages.
 * Run from project root: php scripts/generate_industry_pages.php
 */

$baseDir = __DIR__ . '/../website';

$industries = [
    ['slug' => 'industry-government', 'name' => 'Government & Public Sector', 'description' => 'AI-powered public services and digital government transformation.', 'icon' => 'fa-landmark'],
    ['slug' => 'industry-financial', 'name' => 'Financial Services', 'description' => 'Intelligent risk, compliance, and digital banking transformation.', 'icon' => 'fa-university'],
    ['slug' => 'industry-insurance', 'name' => 'Insurance', 'description' => 'AI claims processing, regulatory technology, and digital customer experience.', 'icon' => 'fa-file-contract'],
    ['slug' => 'industry-education', 'name' => 'Education', 'description' => 'Digital learning platforms, AI analytics, and institutional cybersecurity.', 'icon' => 'fa-graduation-cap'],
    ['slug' => 'industry-healthcare', 'name' => 'Healthcare', 'description' => 'AI clinical support, digital health transformation, and patient data security.', 'icon' => 'fa-hospital'],
    ['slug' => 'industry-telecom', 'name' => 'Telecommunications', 'description' => 'Network intelligence, AI customer service, and digital operations.', 'icon' => 'fa-broadcast-tower'],
    ['slug' => 'industry-energy', 'name' => 'Energy & Utilities', 'description' => 'Smart grid AI, OT security, and predictive operations.', 'icon' => 'fa-bolt'],
    ['slug' => 'industry-mining', 'name' => 'Mining', 'description' => 'AI-driven efficiency, safety intelligence, and supply chain digitalisation.', 'icon' => 'fa-hard-hat'],
    ['slug' => 'industry-manufacturing', 'name' => 'Manufacturing', 'description' => 'Smart manufacturing, Industrial IoT, and AI quality control.', 'icon' => 'fa-industry'],
    ['slug' => 'industry-transportation', 'name' => 'Transportation & Logistics', 'description' => 'Supply chain intelligence and digital operations.', 'icon' => 'fa-shipping-fast'],
    ['slug' => 'industry-agriculture', 'name' => 'Agriculture', 'description' => 'Precision agriculture AI and digital supply chains.', 'icon' => 'fa-seedling'],
    ['slug' => 'industry-ngo', 'name' => 'NGOs & Development Organizations', 'description' => 'Digital programme management and impact intelligence.', 'icon' => 'fa-hands-helping'],
];

$template = <<<'HTML'
<?php
require_once __DIR__ . '/_site_content.php';
$activePage = 'industries';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{NAME}} — SmartThink Global Technology</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="../assets/css/smartthink-global.css">
</head>
<body>
<?php include __DIR__ . '/includes/header.php'; ?>

    <section class="st-hero" style="min-height: 55vh; padding: 8rem 0 5rem;">
        <div class="container">
            <nav aria-label="breadcrumb" class="mb-3"><ol class="breadcrumb" style="--bs-breadcrumb-divider: '>';"><li class="breadcrumb-item"><a href="industries.php" style="color: rgba(255,255,255,.7);">Industries</a></li><li class="breadcrumb-item active" aria-current="page" style="color: #fff;">{{NAME}}</li></ol></nav>
            <div class="st-hero-badge"><span>Industries</span></div>
            <h1 class="mt-3">SmartThink Global Technology for {{NAME}}</h1>
            <p>{{DESCRIPTION}}</p>
            <div class="st-hero-actions">
                <a class="st-btn st-btn-primary" href="contact.php">Speak to Our {{NAME}} Team</a>
                <a class="st-btn st-btn-ghost-white" href="contact.php">Download Sector Brief</a>
            </div>
        </div>
    </section>

    <section class="st-section">
        <div class="container">
            <h2>How We Help {{NAME}}</h2>
            <p>SmartThink Global Technology brings together AI, digital transformation, cybersecurity, and enterprise solutions to address the specific challenges facing {{NAME}}. We understand the regulatory environment, operational pressures, and opportunities unique to this sector.</p>
            <div class="row">
                <div class="col-md-4 mb-4">
                    <div class="pillar-card h-100"><h3>AI &amp; Intelligence</h3><p>Apply AI to automate processes, improve decision-making, and enhance stakeholder experiences.</p></div>
                </div>
                <div class="col-md-4 mb-4">
                    <div class="pillar-card h-100"><h3>Digital Transformation</h3><p>Modernize legacy processes, platforms, and service delivery models for the digital economy.</p></div>
                </div>
                <div class="col-md-4 mb-4">
                    <div class="pillar-card h-100"><h3>Cybersecurity &amp; Risk</h3><p>Protect critical assets, ensure compliance, and build resilience against evolving threats.</p></div>
                </div>
            </div>
        </div>
    </section>

    <section class="st-section st-section-cloud">
        <div class="container">
            <h2>Relevant Solutions</h2>
            <div class="row">
                <div class="col-md-4 mb-4">
                    <div class="pillar-card h-100"><h3>Enterprise Digital Transformation</h3><a class="pillar-cta" href="enterprise-digital-transformation.php">Learn more <i class="fas fa-arrow-right"></i></a></div>
                </div>
                <div class="col-md-4 mb-4">
                    <div class="pillar-card h-100"><h3>AI Business Assistants</h3><a class="pillar-cta" href="ai-business-assistants.php">Learn more <i class="fas fa-arrow-right"></i></a></div>
                </div>
                <div class="col-md-4 mb-4">
                    <div class="pillar-card h-100"><h3>Virtual CISO</h3><a class="pillar-cta" href="virtual-ciso.php">Learn more <i class="fas fa-arrow-right"></i></a></div>
                </div>
            </div>
        </div>
    </section>

    <section class="st-section-navy final-cta">
        <div class="container">
            <h2>Ready to Transform {{NAME}}?</h2>
            <div class="final-cta-actions">
                <a class="st-btn st-btn-primary" href="contact.php">Speak to Our Sector Team</a>
                <a class="st-btn st-btn-ghost-white" href="case-studies.php">View Case Studies</a>
            </div>
        </div>
    </section>

<?php include __DIR__ . '/includes/footer.php'; ?>
HTML;

foreach ($industries as $industry) {
    $output = str_replace(
        ['{{NAME}}', '{{DESCRIPTION}}', '{{ICON}}'],
        [$industry['name'], $industry['description'], $industry['icon']],
        $template
    );
    $file = $baseDir . '/' . $industry['slug'] . '.php';
    file_put_contents($file, $output);
    echo "Generated: {$industry['slug']}.php\n";
}

echo "Done. Generated " . count($industries) . " industry pages.\n";
