<?php
/**
 * Footer newsletter signup section.
 *
 * Cream-background section with benefits list and email input.
 * Form action is a placeholder — in production this would connect
 * to a mailing list provider (Mailchimp, Campaign Monitor, etc.).
 *
 * @package Northfield_Theatre
 * @since 1.0.0
 */
?>
<section class="footer-newsletter" aria-labelledby="newsletter-heading">
	<div class="footer-newsletter__inner container">
		<div class="footer-newsletter__content">
			<h2 id="newsletter-heading" class="footer-newsletter__heading">
				<?php esc_html_e( 'Subscribe to our newsletters', 'northfield-theatre' ); ?>
			</h2>
			<ul class="footer-newsletter__benefits" role="list">
				<li><?php esc_html_e( 'Be first to hear about new shows and seasons', 'northfield-theatre' ); ?></li>
				<li><?php esc_html_e( 'Exclusive pre-sale access for subscribers', 'northfield-theatre' ); ?></li>
				<li><?php esc_html_e( 'Behind-the-scenes content and interviews', 'northfield-theatre' ); ?></li>
				<li><?php esc_html_e( 'Special offers and last-minute deals', 'northfield-theatre' ); ?></li>
			</ul>
		</div>
		<div class="footer-newsletter__form-wrapper">
			<form class="footer-newsletter__form" action="#" method="post" novalidate>
				<div class="footer-newsletter__input-group">
					<label class="sr-only" for="newsletter-email">
						<?php esc_html_e( 'Email address', 'northfield-theatre' ); ?>
					</label>
					<input type="email"
					       id="newsletter-email"
					       class="footer-newsletter__input"
					       name="newsletter_email"
					       placeholder="<?php esc_attr_e( 'Enter your email address', 'northfield-theatre' ); ?>"
					       autocomplete="email"
					       required />
					<button type="submit" class="btn btn--primary footer-newsletter__submit">
						<?php esc_html_e( 'Subscribe', 'northfield-theatre' ); ?>
					</button>
				</div>
				<p class="footer-newsletter__disclaimer">
					<?php
					printf(
						/* translators: %s: link to privacy policy */
						esc_html__( 'By subscribing you agree to our %s. You can unsubscribe at any time.', 'northfield-theatre' ),
						'<a href="' . esc_url( get_privacy_policy_url() ) . '">' . esc_html__( 'Privacy Policy', 'northfield-theatre' ) . '</a>'
					);
					?>
				</p>
			</form>
		</div>
	</div>
</section>
