<?php
/**
 * Title: Header with logo, menu and button.
 * Slug: gutena/header-logo-nav-button
 * Categories: gutena-header
 * Block Types: core/template-part/header
 * Keywords: header
 */
?>
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|small","bottom":"var:preset|spacing|small"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--small);padding-bottom:var(--wp--preset--spacing--small)"><!-- wp:site-logo {"width":152} /-->
<?php 
//if site logo not exists, display gutena logo
if ( ! function_exists('has_custom_logo') || ! has_custom_logo() ) { 
?> 
    <!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
    <figure class="wp-block-image size-large"><img src="<?php echo esc_url( GUTENA_THEME_URI  ). '/assets/img/icons/logo.svg'; ?>" alt="<?php esc_attr_e( 'logo', 'gutena' ); ?>"/></figure>
    <!-- /wp:image --> 
<?php 
} 
?>
<!-- wp:navigation {"__unstableLocation":"main_nav","className":"is-style-gutena-navigation-style","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"nowrap"},"style":{"spacing":{"blockGap":"var:preset|spacing|normal"}}} /-->

<!-- wp:buttons {"className":"hide-in-mobile hide-in-tablet"} -->
<div class="wp-block-buttons hide-in-mobile hide-in-tablet"><!-- wp:button {"style":{"color":{"background":"#015d61"},"spacing":{"padding":{"top":"1.1rem","bottom":"1.1rem","left":"1.5rem","right":"1.5rem"}}}} -->
<div class="wp-block-button"><a class="wp-block-button__link  has-background wp-element-button" style="background-color:#015d61;padding-top:1.1rem;padding-right:1.5rem;padding-bottom:1.1rem;padding-left:1.5rem"><?php esc_html_e( 'Get in touch', 'gutena' ); ?> <img class="wp-image-14" style="width: 10px;" src="<?php echo esc_url( GUTENA_THEME_URI  ). '/assets/img/icons/top-right-arrow.svg'; ?>" alt="<?php esc_attr_e( 'Get in touch', 'gutena' ); ?>"></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:group -->
