<section class="our-pack" data-reveal>
  <div class="container">
    <div class="our-pack__stacked">
      <div class="our-pack__hero-image" data-reveal>
        {%- if section.settings.image != blank -%}
          <img src="{{ section.settings.image | image_url: width: 1400 }}" srcset="{{ section.settings.image | image_url: width: 600 }} 600w, {{ section.settings.image | image_url: width: 1000 }} 1000w, {{ section.settings.image | image_url: width: 1400 }} 1400w" sizes="100vw" alt="{{ section.settings.image.alt | escape }}" loading="lazy" class="our-pack__img">
        {%- else -%}
          <img src="{{ 'brand-story.png' | asset_url }}" alt="Our story" loading="lazy" class="our-pack__img">
        {%- endif -%}
      </div>
      <div class="our-pack__columns" data-reveal style="--index: 2">
        <div class="our-pack__col-left">
          {%- if section.settings.eyebrow != blank -%}
            <span class="section-eyebrow">{{ section.settings.eyebrow }}</span>
          {%- endif -%}
          <h2 class="section-heading">{{ section.settings.heading }}</h2>
          {%- if section.settings.cta_text != blank -%}
            <a href="{{ section.settings.cta_url | default: '/pages/about' }}" class="btn btn--primary">{{ section.settings.cta_text }}</a>
          {%- endif -%}
        </div>
        <div class="our-pack__col-right">
          {%- if section.settings.text != blank -%}
            <div class="our-pack__body">{{ section.settings.text }}</div>
          {%- endif -%}
        </div>
      </div>
    </div>
  </div>
</section>

{% schema %}
{
  "name": "Our Pack",
  "class": "section-our-pack",
  "settings": [
    { "type": "text", "id": "eyebrow", "label": "Eyebrow", "default": "OUR STORY" },
    { "type": "text", "id": "heading", "label": "Heading", "default": "Started with One Good Dog" },
    { "type": "richtext", "id": "text", "label": "Story text" },
    { "type": "text", "id": "cta_text", "label": "Button text" },
    { "type": "text", "id": "cta_url", "label": "Button URL" },
    { "type": "image_picker", "id": "image", "label": "Image" }
  ],
  "presets": [{ "name": "Our Pack" }]
}
{% endschema %}
