<section class="signal-cta" data-reveal>
  <div class="signal-cta__band">
    <div class="container">
      <div class="signal-cta__layout">
        <div class="signal-cta__copy">
          {%- if section.settings.heading != blank -%}
            <h2 class="signal-cta__heading">{{ section.settings.heading }}</h2>
          {%- endif -%}
          {%- if section.settings.subheading != blank -%}
            <p class="signal-cta__sub">{{ section.settings.subheading }}</p>
          {%- endif -%}
        </div>
        {%- if section.settings.cta_text != blank -%}
          <a href="{{ section.settings.cta_url | default: '/collections/all' }}" class="btn btn--primary signal-cta__btn">{{ section.settings.cta_text }}</a>
        {%- endif -%}
      </div>
    </div>
  </div>
</section>

{% schema %}
{
  "name": "Signal CTA",
  "class": "section-signal-cta",
  "settings": [
    { "type": "text", "id": "heading", "label": "Heading", "default": "Ready to upgrade?" },
    { "type": "textarea", "id": "subheading", "label": "Subheading" },
    { "type": "text", "id": "cta_text", "label": "Button text", "default": "Shop Now" },
    { "type": "text", "id": "cta_url", "label": "Button URL", "default": "/collections/all" }
  ],
  "presets": [{ "name": "Signal CTA" }]
}
{% endschema %}