<?php
/**
 * Title: Footer
 * Slug: twentytwentyfive/footer
 * Categories: footer
 * Block Types: core/template-part/footer
 * Description: Investor-focused footer for AIzone MENA.
 *
 * @package WordPress
 * @subpackage Twenty_Twenty_Five
 * @since Twenty Twenty-Five 1.0
 */

$home_url     = trailingslashit( home_url( '/' ) );
$request_deck = get_permalink( get_page_by_path( 'request-deck', OBJECT, 'page' ) ) ?: home_url( '/request-deck/' );
$book_url     = get_permalink( get_page_by_path( 'book-session', OBJECT, 'page' ) ) ?: home_url( '/book-session/' );

$footer_links = [
    [
        'index' => '01',
        'label' => __( 'Investment Thesis', 'twentytwentyfive' ),
        'note'  => __( 'Why AI augmentation wins in MENA', 'twentytwentyfive' ),
        'url'   => $home_url . '#thesis',
    ],
    [
        'index' => '02',
        'label' => __( 'Platform Model', 'twentytwentyfive' ),
        'note'  => __( 'Services-led wedge into recurring software', 'twentytwentyfive' ),
        'url'   => $home_url . '#platform',
    ],
    [
        'index' => '03',
        'label' => __( 'Security Posture', 'twentytwentyfive' ),
        'note'  => __( 'Human approval, secure deployment, governance', 'twentytwentyfive' ),
        'url'   => $home_url . '#security',
    ],
    [
        'index' => '04',
        'label' => __( 'Request Deck', 'twentytwentyfive' ),
        'note'  => __( 'Qualified investors can request materials', 'twentytwentyfive' ),
        'url'   => $request_deck,
    ],
];
?>
<!-- wp:group {"align":"full","className":"aizone-site-footer-shell aizone-site-footer","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull aizone-site-footer-shell aizone-site-footer"><div class="wp-block-group__inner-container">
    <div class="aizone-site-footer-inner">
        <div class="aizone-site-footer-grid">
            <div class="aizone-site-footer-copy">
                <p class="aizone-eyebrow"><?php echo esc_html__( 'Investor next step', 'twentytwentyfive' ); ?></p>
                <h2><?php echo esc_html__( 'Start diligence with a focused conversation.', 'twentytwentyfive' ); ?></h2>
                <p><?php echo esc_html__( 'AIzone MENA is positioning to become the trusted AI augmentation layer for serious enterprises across the region: strategic, secure, bilingual, and execution-first.', 'twentytwentyfive' ); ?></p>
                <div class="aizone-site-footer-actions">
                    <a class="aizone-button" href="<?php echo esc_url( $book_url ); ?>"><?php echo esc_html__( 'Book a call', 'twentytwentyfive' ); ?></a>
                    <a class="aizone-button is-secondary" href="<?php echo esc_url( $request_deck ); ?>"><?php echo esc_html__( 'Request the deck', 'twentytwentyfive' ); ?></a>
                </div>
            </div>
            <div class="aizone-site-footer-links" aria-label="<?php echo esc_attr__( 'Footer navigation', 'twentytwentyfive' ); ?>">
                <?php foreach ( $footer_links as $footer_link ) : ?>
                    <a class="aizone-site-footer-link" href="<?php echo esc_url( $footer_link['url'] ); ?>">
                        <span><?php echo esc_html( $footer_link['index'] ); ?></span>
                        <span><strong><?php echo esc_html( $footer_link['label'] ); ?></strong><br><em><?php echo esc_html( $footer_link['note'] ); ?></em></span>
                        <i aria-hidden="true">↗</i>
                    </a>
                <?php endforeach; ?>
            </div>
        </div>
        <div class="aizone-site-footer-meta">
            <span><?php echo esc_html( get_bloginfo( 'name' ) ); ?> · <?php echo esc_html( get_bloginfo( 'description' ) ); ?></span>
            <span>© <?php echo esc_html( wp_date( 'Y' ) ); ?> <?php echo esc_html( get_bloginfo( 'name' ) ); ?></span>
        </div>
    </div>
</div></div>
<!-- /wp:group -->
