/* ==========================================================================
   WhyDusty.jsx | 06 Why Dusty Cleaning?
   Six reasons, each with a solid icon from the brand icon language.
   ========================================================================== */

const MC_REASONS = [
  {
    icon: 'magnifier',
    title: 'Attention to detail',
    text: 'A thoughtful approach to every space, little details included.',
  },
  {
    icon: 'heart',
    title: 'A personal touch',
    text: 'Friendly service that treats your space with care and respect.',
  },
  {
    icon: 'calendar',
    title: 'Flexible cleaning',
    text: 'Cleaning options to suit different homes, routines and needs.',
  },
  {
    icon: 'spray',
    title: 'Everyday freshness',
    text: 'Help keeping your home comfortable and welcoming, day to day.',
  },
  {
    icon: 'squeegee',
    title: 'A clear process',
    text: 'Straightforward communication, from your first enquiry to the finished clean.',
  },
  {
    icon: 'broom',
    title: 'A little personality',
    text: 'A refreshing cleaning experience from a brand you’ll actually remember.',
  },
];

function MCWhyDusty() {
  return (
    <section className="mc-section mc-why" id="why" aria-labelledby="mc-why-title">
      <div className="mc-wrap">
        <header className="mc-head mc-head--split" data-reveal>
          <div>
            <MCEyebrow>Why choose us</MCEyebrow>
            <h2 className="mc-h2" id="mc-why-title">
              Cleaning should feel like a weight off your shoulders.
            </h2>
          </div>
          <MCStamp className="mc-why__stamp" text="Dusty approved ✦ Dusty approved ✦ " center="moon" />
        </header>

        <ul className="mc-why__grid" role="list">
          {MC_REASONS.map((reason, index) => (
            <li key={reason.title} className="mc-why__item" data-reveal style={{ '--rd': `${(index % 3) * 90}ms` }}>
              <span className="mc-why__icon" aria-hidden="true">
                <MCIcon name={reason.icon} />
              </span>
              <h3 className="mc-why__title">{reason.title}</h3>
              <p className="mc-why__text">{reason.text}</p>
            </li>
          ))}
        </ul>
      </div>
    </section>
  );
}

Object.assign(window, { MCWhyDusty });
