<%- include('partials/head') %>
<section class="hero">
  <div class="hero-copy">
    <span class="eyebrow"><%= t('home.eyebrow') %></span>
    <h1><%= t('home.title') %></h1>
    <p class="lede"><%= t('home.lede') %></p>
    <div class="cta-row">
      <a class="btn btn-primary btn-lg" href="/register"><%= t('home.cta1') %></a>
      <a class="btn btn-ghost btn-lg" href="/services"><%= t('home.cta2') %></a>
    </div>
    <ul class="checks">
      <li><span class="tick"></span> <%= t('home.check1') %></li>
      <li><span class="tick"></span> <%= t('home.check2') %></li>
      <li><span class="tick"></span> <%= t('home.check3') %></li>
    </ul>
  </div>
  <aside class="hero-panel">
    <div class="panel-head">
      <span><%= t('home.popular') %></span>
      <span class="dot"></span>
    </div>
    <% services.slice(0, 5).forEach(function (s) { %>
      <div class="mini-row">
        <div>
          <div class="mini-name"><%= svcName(s) %></div>
          <div class="mini-cat"><%= CATEGORY_LABELS[s.category] %></div>
        </div>
        <div class="mini-price"><%= fmt(priceFor(s)) %></div>
      </div>
    <% }) %>
    <a class="btn btn-primary btn-block" href="/services"><%= t('home.all_services') %></a>
  </aside>
</section>

<section class="section">
  <div class="section-head">
    <h2><%= t('home.ready') %></h2>
    <a class="small" href="/services"><%= t('home.view_all') %> ←</a>
  </div>
  <div class="grid cards">
    <% services.slice(0, 6).forEach(function (s) { %>
      <article class="card service-card">
        <span class="chip"><%= CATEGORY_LABELS[s.category] %></span>
        <h3><%= svcName(s) %></h3>
        <p class="muted small"><%= svcDesc(s) %></p>
        <div class="card-foot">
          <span class="price"><%= fmt(priceFor(s)) %></span>
          <% if (user) { %>
            <a class="btn btn-primary btn-sm" href="/orders/new?service=<%= s.id %>"><%= t('home.order_now') %></a>
          <% } else { %>
            <a class="btn btn-ghost btn-sm" href="/login"><%= t('home.login_to_order') %></a>
          <% } %>
        </div>
      </article>
    <% }) %>
  </div>
</section>

<section class="section">
  <h2><%= t('home.how') %></h2>
  <div class="grid steps">
    <div class="step">
      <span class="step-num">1</span>
      <h3><%= t('home.step1_title') %></h3>
      <p class="muted small"><%= t('home.step1_desc') %></p>
    </div>
    <div class="step">
      <span class="step-num">2</span>
      <h3><%= t('home.step2_title') %></h3>
      <p class="muted small"><%= t('home.step2_desc') %></p>
    </div>
    <div class="step">
      <span class="step-num">3</span>
      <h3><%= t('home.step3_title') %></h3>
      <p class="muted small"><%= t('home.step3_desc') %></p>
    </div>
    <div class="step">
      <span class="step-num">4</span>
      <h3><%= t('home.step4_title') %></h3>
      <p class="muted small"><%= t('home.step4_desc') %></p>
    </div>
  </div>
</section>
<%- include('partials/foot') %>
