function FAQ() {
  const [open, setOpen] = React.useState(0);
  const items = [
    { q: "How long does window installation take?",
      a: "Most window installations are completed in just 1–2 days, depending on the number of windows. Our crews work efficiently and keep disruption to your daily life to a minimum." },
    { q: "What brand of windows do you install?",
      a: "We carry several top window brands including Anlin, Milgard, Sierra Pacific, and more — all factory-direct. Anlin is one of our most popular choices: made in the USA, Energy Star certified, and backed by a double lifetime warranty. We'll help you pick the right fit for your home and budget during your free estimate." },
    { q: "Do new windows qualify for energy efficiency tax credits?",
      a: "Yes — Energy Star certified windows like Anlin qualify under the Inflation Reduction Act. Eligible homeowners can claim up to 30% back (up to $600) on qualifying window upgrades. Tax credits depend on your individual tax situation, so we recommend confirming with your tax professional. We'll provide all the product documentation you need at your estimate." },
    { q: "What financing options are available?",
      a: "We work with multiple financing partners to make it as easy as possible. Qualified homeowners can take advantage of 0% APR options for up to 25 months, so you can get comfortable, energy-efficient windows installed now without a big upfront cost." },
    { q: "What warranty do I get on my new windows?",
      a: "Anlin windows come with a double lifetime warranty covering the glass, frame, hardware, and even accidental glass breakage — for as long as you own the home. On top of that, we back every installation with our own 10-year workmanship warranty." },
    { q: "Is the estimate really free? What does it include?",
      a: "Yes, 100% free with no obligation. During your estimate, a specialist visits your home, takes precise measurements, walks you through product options, explains the bonus offer, and provides a detailed written quote. There's no pressure to commit on the spot." },
    { q: "How do I know if my windows need replacing?",
      a: "Common signs include drafts or air leaks around frames, condensation or fogging between panes, difficulty opening or closing, high energy bills, or visible damage like rot or warping. If your windows are 15–20 years old, a free inspection can help." },
  ];
  return (
    <section className="section section--soft" id="faq">
      <div className="container">
        <div className="section-head section-head--center">
          <span className="eyebrow">Frequently asked</span>
          <h2 className="h2">Everything you're probably wondering.</h2>
        </div>
        <div className="faq-wrap">
          {items.map((it, i) => (
            <div key={i} className={"faq-item " + (open === i ? "is-open" : "")}>
              <button className="faq-q" onClick={() => setOpen(open === i ? -1 : i)}>
                <span>{it.q}</span>
                <span className="ico"><Ic.plus size={14} /></span>
              </button>
              <div className="faq-a"><div className="faq-a-inner">{it.a}</div></div>
            </div>
          ))}
        </div>
        <div style={{display:'flex', justifyContent:'center', marginTop:48}}>
          <button className="btn btn-primary btn-lg" onClick={() => document.dispatchEvent(new CustomEvent('open-estimate'))}>
            Get Free Estimate &amp; Offer <Ic.arrow />
          </button>
        </div>
      </div>
    </section>
  );
}
window.FAQ = FAQ;
