<?php
/**
 * Title: Header
 * Slug: twentytwentyfive/header
 * Categories: header
 * Block Types: core/template-part/header
 * Description: Investor-focused site header 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_session_url = get_permalink( get_page_by_path( 'book-session', OBJECT, 'page' ) ) ?: home_url( '/book-session/' );
?>
<!-- wp:group {"align":"full","className":"aizone-site-header-shell aizone-site-header","layout":{"type":"default"}} -->
<div class="wp-block-group alignfull aizone-site-header-shell aizone-site-header">
	<!-- wp:group {"layout":{"type":"constrained"}} -->
	<div class="wp-block-group">
		<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
		<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)">
			<!-- wp:site-title {"level":0} /-->

			<!-- wp:navigation {"overlayBackgroundColor":"base","overlayTextColor":"contrast","layout":{"type":"flex","justifyContent":"center","flexWrap":"wrap"}} -->
			<!-- wp:navigation-link {"label":"Thesis","type":"custom","url":"<?php echo esc_url( $home_url . '#thesis' ); ?>","kind":"custom"} /-->
			<!-- wp:navigation-link {"label":"Platform","type":"custom","url":"<?php echo esc_url( $home_url . '#platform' ); ?>","kind":"custom"} /-->
			<!-- wp:navigation-link {"label":"Security","type":"custom","url":"<?php echo esc_url( $home_url . '#security' ); ?>","kind":"custom"} /-->
			<!-- wp:navigation-link {"label":"Raise","type":"custom","url":"<?php echo esc_url( $home_url . '#raise' ); ?>","kind":"custom"} /-->
			<!-- wp:navigation-link {"label":"Request Deck","type":"custom","url":"<?php echo esc_url( $request_deck ); ?>","kind":"custom"} /-->
			<!-- /wp:navigation -->

			<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"right"}} -->
			<div class="wp-block-buttons">
				<!-- wp:button -->
				<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="<?php echo esc_url( $book_session_url ); ?>">Book a call</a></div>
				<!-- /wp:button -->
			</div>
			<!-- /wp:buttons -->
		</div>
		<!-- /wp:group -->
	</div>
	<!-- /wp:group -->
</div>
<!-- /wp:group -->
