<?php
/**
 * Title: Hero
 * Slug: larder/hero
 * Categories: larder, featured
 * Description: A full-width cover image hero with centered text overlay and call-to-action buttons.
 * Keywords: hero, banner, header, cta
 */

?>
<!-- wp:cover {"url":"<?php echo esc_url( get_theme_file_uri( 'assets/images/hero-larder.png' ) ); ?>","dimRatio":60,"overlayColor":"heading","isUserOverlayColor":true,"minHeight":520,"align":"full","className":"larder-hero","style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80","left":"var:preset|spacing|30","right":"var:preset|spacing|30"}}}} -->
<div class="wp-block-cover alignfull larder-hero" style="padding-top:var(--wp--preset--spacing--80);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--30);min-height:520px"><span aria-hidden="true" class="wp-block-cover__background has-heading-background-color has-background-dim has-background-dim-60"></span><img class="wp-block-cover__image-background" alt="<?php esc_attr_e( 'Fresh organic produce — replace this image in the Site Editor', 'larder' ); ?>" src="<?php echo esc_url( get_theme_file_uri( 'assets/images/hero-larder.png' ) ); ?>" data-object-fit="cover"/><div class="wp-block-cover__inner-container">

	<!-- wp:group {"layout":{"type":"constrained","contentSize":"620px"}} -->
	<div class="wp-block-group">

		<!-- wp:heading {"textAlign":"center","level":1,"style":{"typography":{"fontSize":"3rem","fontWeight":"900","lineHeight":"1.2"}},"textColor":"surface","fontFamily":"heading"} -->
		<h1 class="wp-block-heading has-text-align-center has-surface-color has-text-color has-heading-font-family" style="font-size:3rem;font-weight:900;line-height:1.2"><?php echo esc_html__( 'Fresh. Organic. Delivered to your door.', 'larder' ); ?></h1>
		<!-- /wp:heading -->

		<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"1.125rem","lineHeight":"1.8"}},"textColor":"surface","fontFamily":"heading"} -->
		<p class="has-text-align-center has-surface-color has-text-color has-heading-font-family" style="font-size:1.125rem;line-height:1.8"><?php echo esc_html__( 'Handpicked produce and artisan goods from local farms and trusted producers, brought straight to your table.', 'larder' ); ?></p>
		<!-- /wp:paragraph -->

		<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"},"style":{"spacing":{"margin":{"top":"var:preset|spacing|40"}}}} -->
		<div class="wp-block-buttons" style="margin-top:var(--wp--preset--spacing--40)">
			<!-- wp:button {"backgroundColor":"primary","textColor":"surface","style":{"border":{"radius":"var(--wp--custom--border-radius)"},"typography":{"fontWeight":"700","textTransform":"uppercase","letterSpacing":"0.05em","fontSize":"0.875rem"},"spacing":{"padding":{"top":"0.875rem","bottom":"0.875rem","left":"2rem","right":"2rem"}}}} -->
			<div class="wp-block-button"><a class="wp-block-button__link has-surface-color has-primary-background-color has-text-color has-background has-custom-font-size wp-element-button" href="<?php echo esc_url( function_exists( 'wc_get_page_permalink' ) ? wc_get_page_permalink( 'shop' ) : home_url( '/shop/' ) ); ?>" style="border-radius:var(--wp--custom--border-radius);padding-top:0.875rem;padding-right:2rem;padding-bottom:0.875rem;padding-left:2rem;font-size:0.875rem;font-weight:700;letter-spacing:0.05em;text-transform:uppercase"><?php echo esc_html__( 'Shop now', 'larder' ); ?></a></div>
			<!-- /wp:button -->

			<!-- wp:button {"backgroundColor":"secondary","textColor":"heading","style":{"border":{"radius":"var(--wp--custom--border-radius)"},"typography":{"fontWeight":"700","textTransform":"uppercase","letterSpacing":"0.05em","fontSize":"0.875rem"},"spacing":{"padding":{"top":"0.875rem","bottom":"0.875rem","left":"2rem","right":"2rem"}}}} -->
			<div class="wp-block-button"><a class="wp-block-button__link has-heading-color has-secondary-background-color has-text-color has-background has-custom-font-size wp-element-button" href="#" style="border-radius:var(--wp--custom--border-radius);padding-top:0.875rem;padding-right:2rem;padding-bottom:0.875rem;padding-left:2rem;font-size:0.875rem;font-weight:700;letter-spacing:0.05em;text-transform:uppercase"><?php echo esc_html__( 'Our story', 'larder' ); ?></a></div>
			<!-- /wp:button -->
		</div>
		<!-- /wp:buttons -->

	</div>
	<!-- /wp:group -->

</div></div>
<!-- /wp:cover -->
