<?php
/**
 * Home value banner.
 *
 * @package ALFASMART
 */

$highlight_color = alfasmart_get_home_field('home_value_highlight_color', '#f5b400');
$background_image = alfasmart_get_image_url(alfasmart_get_home_field('home_value_background_image'), 'banner-driven.webp');
?>
<section class="as-value-banner as-reveal" aria-labelledby="as-value-title">
    <div class="as-value-bg" style="background-image: url('<?php echo esc_url($background_image); ?>');" aria-hidden="true"></div>
    <div class="as-value-content">
        <h2 class="as-display-heading" id="as-value-title" style="--as-section-highlight-color: <?php echo esc_attr($highlight_color); ?>;"><?php echo alfasmart_highlight_text(alfasmart_get_home_field('home_value_title', 'Driven by Smart Trading, <br>Defined by <span>Value</span>'), alfasmart_get_home_field('home_value_highlight_text', 'Value')); ?></h2>
        <p><?php echo esc_html(alfasmart_get_home_field('home_value_description', 'We combine intelligent trading strategies with a deep understanding of market dynamics to deliver consistent value. Our approach is built on precision, reliability, and long-term partnerships that drive sustainable growth.')); ?></p>
        <a href="<?php echo esc_url(alfasmart_get_home_field('home_value_button_url', alfasmart_url('about'))); ?>" class="as-primary-button as-magnetic"><?php echo esc_html(alfasmart_get_home_field('home_value_button_text', 'Learn More About Us')); ?> <i class="fa-solid fa-arrow-right" aria-hidden="true"></i></a>
    </div>
</section>
