<?php
$page_title = 'Digital Holding Company';
require_once __DIR__ . '/../config.php';
if (session_status() === PHP_SESSION_NONE) { session_start(); }
if (!isset($_SESSION['admin_id'])) { redirect(SITE_URL . '/admin/login.php'); }
require_once __DIR__ . '/header.php';
?>
<div style="background:linear-gradient(135deg,#0f172a,#1e293b); border-radius:16px; padding:30px; color:#fff; margin-bottom:24px; position:relative; overflow:hidden;">
    <div style="position:relative; z-index:2;">
        <h2 style="font-size:2rem; margin:0 0 5px; font-family:'Outfit',sans-serif;">Digital Holding Company Layer</h2>
        <p style="color:#94a3b8; font-size:0.95rem; margin:0 0 25px;">Multi-brand management, shared services, central procurement, group analytics.</p>
        <div style="display:grid; grid-template-columns:repeat(4,1fr); gap:15px;">
            <div style="background:rgba(255,255,255,0.05); padding:15px; border-radius:10px; border:1px solid rgba(255,255,255,0.1); text-align:center;">
                <div style="color:#94a3b8; font-size:0.75rem; text-transform:uppercase; margin-bottom:8px;">Group Revenue</div>
                <div style="font-size:1.8rem; font-weight:700; color:#10b981;">₹240 Cr</div>
            </div>
            <div style="background:rgba(255,255,255,0.05); padding:15px; border-radius:10px; border:1px solid rgba(255,255,255,0.1); text-align:center;">
                <div style="color:#94a3b8; font-size:0.75rem; text-transform:uppercase; margin-bottom:8px;">Brands</div>
                <div style="font-size:1.8rem; font-weight:700; color:#38bdf8;">4</div>
            </div>
            <div style="background:rgba(255,255,255,0.05); padding:15px; border-radius:10px; border:1px solid rgba(255,255,255,0.1); text-align:center;">
                <div style="color:#94a3b8; font-size:0.75rem; text-transform:uppercase; margin-bottom:8px;">Employees</div>
                <div style="font-size:1.8rem; font-weight:700; color:#f59e0b;">4,800</div>
            </div>
            <div style="background:rgba(255,255,255,0.05); padding:15px; border-radius:10px; border:1px solid rgba(255,255,255,0.1); text-align:center;">
                <div style="color:#94a3b8; font-size:0.75rem; text-transform:uppercase; margin-bottom:8px;">Treasury</div>
                <div style="font-size:1.8rem; font-weight:700; color:#8b5cf6;">₹42 Cr</div>
            </div>
        </div>
    </div>
    <div style="position:absolute; top:-40px; right:-40px; opacity:0.05;"><i class="fas fa-city" style="font-size:20rem;"></i></div>
</div>
<div class="grid-2" style="margin-bottom:24px;">
    <div style="background:#fff; padding:20px; border-radius:12px; border:1px solid #e2e8f0;">
        <h3 style="margin:0 0 15px; font-size:1.15rem; color:#0f172a;"><i class="fas fa-th-large" style="color:#6366f1; margin-right:8px;"></i>Multi-Brand Portfolio</h3>
        <?php
        $brands = [
            ['Balimeen Steel', '₹120 Cr', 'Core Steel Trading', '#3b82f6', '48%'],
            ['Balimeen Infra', '₹65 Cr', 'Infrastructure & Projects', '#10b981', '26%'],
            ['Balimeen Auto', '₹35 Cr', 'Automotive Components', '#f59e0b', '14%'],
            ['Balimeen Global', '₹20 Cr', 'International Trade', '#8b5cf6', '12%'],
        ];
        foreach ($brands as $b): ?>
        <div style="border:1px solid #e2e8f0; border-radius:8px; padding:15px; margin-bottom:10px; border-left:4px solid <?= $b[3] ?>;">
            <div style="display:flex; justify-content:space-between; margin-bottom:5px;">
                <div style="font-weight:600; font-size:0.9rem;"><?= $b[0] ?></div>
                <span style="font-weight:bold; color:<?= $b[3] ?>;"><?= $b[1] ?></span>
            </div>
            <div style="display:flex; justify-content:space-between; font-size:0.75rem; color:#94a3b8;">
                <span><?= $b[2] ?></span>
                <span><?= $b[4] ?> of Group</span>
            </div>
        </div>
        <?php endforeach; ?>
    </div>
    <div style="display:flex; flex-direction:column; gap:24px;">
        <div style="background:#fff; padding:20px; border-radius:12px; border:1px solid #e2e8f0;">
            <h3 style="margin:0 0 15px; font-size:1.15rem; color:#0f172a;"><i class="fas fa-share-alt" style="color:#10b981; margin-right:8px;"></i>Shared Services Center</h3>
            <?php
            $services = [
                ['Shared HR', '4,800 employees managed centrally', '#3b82f6'],
                ['Shared Finance', 'Group consolidation & treasury', '#10b981'],
                ['Central Procurement', '₹86 Cr spend pooled', '#f59e0b'],
                ['Group IT', 'Unified tech stack across brands', '#8b5cf6'],
            ];
            foreach ($services as $s): ?>
            <div style="border-left:3px solid <?= $s[2] ?>; padding-left:12px; margin-bottom:12px;">
                <div style="font-weight:600; font-size:0.9rem;"><?= $s[0] ?></div>
                <div style="font-size:0.8rem; color:#64748b;"><?= $s[1] ?></div>
            </div>
            <?php endforeach; ?>
        </div>
        <div style="background:linear-gradient(135deg,#6366f1,#4f46e5); color:#fff; padding:20px; border-radius:12px;">
            <h3 style="margin:0 0 8px; font-size:1.1rem;"><i class="fas fa-chart-pie"></i> Group Analytics</h3>
            <div style="display:flex; justify-content:space-between; font-size:0.85rem; margin-bottom:8px;">
                <span>Group EBITDA</span><span style="font-weight:bold;">₹36 Cr (15%)</span>
            </div>
            <div style="display:flex; justify-content:space-between; font-size:0.85rem; margin-bottom:8px;">
                <span>Working Capital</span><span style="font-weight:bold;">₹28 Cr</span>
            </div>
            <div style="display:flex; justify-content:space-between; font-size:0.85rem;">
                <span>Group ROCE</span><span style="font-weight:bold;">22%</span>
            </div>
        </div>
    </div>
</div>
<?php require_once __DIR__ . '/footer.php'; ?>
