function VideoTestimonial() {
  const [playing, setPlaying] = React.useState(false);
  const vimeoId = "1171193307";
  const vimeoHash = "8cbfaf0c86";
  const thumb = "assets/testimonial-thumb.jpg";

  return (
    <div className="vt-card">
      <div className="vt-media">
        {playing ? (
          <iframe
            className="vt-iframe"
            src={`https://player.vimeo.com/video/${vimeoId}?h=${vimeoHash}&autoplay=1&title=0&byline=0&portrait=0`}
            frameBorder="0"
            allow="autoplay; fullscreen; picture-in-picture"
            allowFullScreen
            title="Katherine & Jeff Dix — Whole Home Remodel Testimonial"
          />
        ) : (
          <>
            <img src={thumb} alt="Katherine & Jeff Dix share their New Day Construction whole home remodel experience" className="vt-thumb" />
            <button className="vt-play" aria-label="Play testimonial video" onClick={() => setPlaying(true)}>
              <Ic.play size={28} />
            </button>
          </>
        )}
      </div>

      <div className="vt-info">
        <div>
          <h3 className="vt-title">Whole Home Remodel — Living Room &amp; Kitchen</h3>
          <div className="vt-loc">Greater Seattle Area</div>

          <div className="vt-tags">
            <span className="vt-tag"><Ic.check size={12} /> Whole home remodel</span>
            <span className="vt-tag"><Ic.check size={12} /> Finished on time</span>
          </div>

          <blockquote className="vt-quote">
            "You want someone to come in and push what you think is possible. New Day did exactly that — and the result is exactly what we wanted."
          </blockquote>
        </div>

        <div className="vt-author">
          <div className="vt-avatar">KJ</div>
          <div>
            <div className="vt-author-name">Katherine &amp; Jeff Dix</div>
            <div className="vt-author-meta">Homeowners · Greater Seattle Area</div>
          </div>
        </div>
      </div>
    </div>
  );
}
window.VideoTestimonial = VideoTestimonial;
