<?php
/**
 * Title: Call to action
 * Slug: larder/call-to-action
 * Categories: larder, call-to-action
 * Description: A full-width dark call-to-action section with heading, description, and gold button.
 * Keywords: cta, banner, promotion, subscribe
 */

?>
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70","right":"var:preset|spacing|30","left":"var:preset|spacing|30"}}},"backgroundColor":"heading","layout":{"type":"constrained","contentSize":"600px"}} -->
<div class="wp-block-group alignfull has-heading-background-color has-background" style="padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--30)">

	<!-- wp:heading {"textAlign":"center","textColor":"surface","style":{"typography":{"fontWeight":"900"}}} -->
	<h2 class="wp-block-heading has-text-align-center has-surface-color has-text-color" style="font-weight:900"><?php echo esc_html__( 'Subscribe for weekly deals', 'larder' ); ?></h2>
	<!-- /wp:heading -->

	<!-- wp:paragraph {"align":"center","style":{"color":{"text":"#c4b99a"}},"fontSize":"small"} -->
	<p class="has-text-align-center has-text-color has-small-font-size" style="color:#c4b99a"><?php echo esc_html__( 'Get fresh picks and exclusive discounts delivered to your inbox every week. No spam, just goodness.', '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":"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" 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__( 'Join the list', 'larder' ); ?></a></div>
		<!-- /wp:button -->
	</div>
	<!-- /wp:buttons -->

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