const { Button, Icon } = window.HaileyAlexanderRealtorDesignSystem_1e3b8f;
function GuideLayout({go,eyebrow,title,lead,photo,steps,faq,cta,side}){
  return <main>
    <section className="wrap g75" style={{paddingTop:'clamp(40px,6vw,72px)'}}>
      <div><div className="eyebrow">{eyebrow}</div><h1 className="display" style={{fontSize:D.xl,margin:'16px 0 20px'}}>{title}</h1><p style={{fontSize:18,color:'var(--text-secondary)',maxWidth:560,margin:'0 0 28px'}}>{lead}</p><Button size="lg" iconRight={<Icon name="arrow-right" size={20}/>} onClick={()=>go('contact')}>Book a call</Button></div>
      <img className="photo" src={photo} alt="" style={{width:'100%',maxWidth:380,height:'clamp(320px,40vw,480px)',objectFit:'cover',objectPosition:'50% 30%',borderRadius:'var(--radius-portrait)',display:'block',justifySelf:'center'}}/>
    </section>
    <section className="wrap sec"><div className="gside" style={{gap:64}}>
      <div><div className="eyebrow" style={{marginBottom:20}}>Step by step</div><Steps steps={steps}/></div>
      <aside style={{position:'sticky',top:96,background:'var(--cognac-100)',borderRadius:'var(--radius-xl)',padding:32}}><div className="eyebrow">{side.title}</div><ul style={{listStyle:'none',padding:0,margin:'14px 0 0',display:'grid',gap:12}}>{side.items.map(t=><li key={t} style={{display:'flex',gap:10,fontSize:15,fontWeight:500,alignItems:'flex-start'}}><Icon name="check" size={16} stroke={3} style={{color:'var(--rasp-500)',marginTop:3,flexShrink:0}}/>{t}</li>)}</ul></aside>
    </div></section>
    <section className="wrap sec"><div className="g57" style={{alignItems:'start'}}><div><div className="eyebrow">Questions I get a lot</div><h2 className="display" style={{fontSize:D.md,marginTop:10}}>Straight <em>answers</em>.</h2></div><FAQ items={faq}/></div></section>
    <CTABand go={go} {...cta}/>
  </main>;
}
function BuyerGuide(p){
  return <GuideLayout {...p} eyebrow="For buyers" photo="../../assets/photos/hailey-white-chair-02.jpg" title={<>Buying your first home shouldn't feel <em>scary</em>.</>} lead="Here's exactly what happens between 'we're thinking about it' and the keys in your hand — and where I step in so you never have to guess."
    steps={[['A quick call','Fifteen minutes. What you want, where, and when. I\'ll tell you honestly what your budget buys in each town.'],['Get pre-approved','I\'ll connect you with two local lenders who actually answer their phones. A pre-approval letter makes your offer real.'],['Tour with intent','I set up a private MLS search so you see new listings before the portals. We tour on your schedule — evenings and weekends included.'],['Make a smart offer','I pull comps, read the seller\'s situation, and write an offer that wins without overpaying. You decide; I advise.'],['Inspection & option period','Texas gives you a few days to walk away. I\'ll bring an inspector I trust and negotiate repairs or credits.'],['Close and celebrate','Title, appraisal, final walk-through, signatures. I\'m there for all of it — and I\'ll bring the coffee.']]}
    side={{title:'Bring to our first call',items:['A rough budget or monthly payment you\'re comfortable with','Your must-haves vs. nice-to-haves','Towns you\'re curious about','Your timeline — even if it\'s "someday"']}}
    faq={[['How much do I need for a down payment?','Often less than you think. FHA loans start at 3.5%, and there are Texas programs for first-time buyers with as little as 3% down. Parts of Hunt County are USDA-eligible, which can mean zero down — I\'ll check the address for you.'],['Do I pay you as a buyer?','In most cases the seller covers my commission, and I\'ll explain exactly how that works in writing before we tour a single home — it\'s the law in Texas now, and I like it that way.'],['What does "under contract with option" mean?','You\'ve agreed on price and have a short window — usually 7–10 days — to inspect and back out for any reason. It\'s your safety net.'],['Can I buy land or acreage the same way?','Mostly, yes — but wells, septic, ag exemptions, and easements add steps. I do a lot of land and farm & ranch and will walk you through the differences.']]}
    cta={{eyebrow:'Ready to start?',title:<>Let's find your <em style={{color:'var(--rasp-300)'}}>first place</em>.</>,body:'Fifteen minutes, no pressure. I\'ll tell you honestly what your budget buys and what to do next.'}}/>;
}
function SellerGuide(p){
  return <GuideLayout {...p} eyebrow="For sellers" photo="../../assets/photos/hailey-green-sofa-floral.jpg" title={<>Let's get you <em>top dollar</em> without the drama.</>} lead="Pricing right, prepping smart, and marketing like it matters. Here's how I sell homes in Hunt County — and why my listings tend to move fast."
    steps={[['Walk-through & honest pricing','I come see the house, pull real comps, and tell you the number that sells — not the one that flatters. You\'ll see the data.'],['Prep that pays off','A short list of fixes and staging that return more than they cost. I\'ll bring my cleaner, handyman, and landscaper if you want them.'],['Photos & marketing','Professional photos, drone for acreage, a dedicated listing page, MLS syndication, and a real social push to my local network.'],['Showings & feedback','I coordinate every showing around your life and text you what buyers said the same day.'],['Offers, negotiated','Every offer on one sheet — price, terms, financing strength, risk. I\'ll flag the one most likely to actually close.'],['Contract to close','Inspection negotiation, appraisal, title, and a clean closing. I handle the chaos so you can pack.']]}
    side={{title:'What moves a house here right now',items:['Priced within 3% of comps in the first two weeks','Fresh neutral paint and bright lights','Great photos — most buyers tour online first','Clear on septic, well, and survey up front (acreage)']}}
    faq={[['What will my home sell for?','I\'ll give you a real number after a walk-through and a comps pull — no algorithm, no fluff. Book a call and I\'ll come by.'],['How long will it take?','It depends on price, condition and time of year. I\'ll give you a realistic window for your street after I\'ve seen the house and pulled the comps — not a number designed to win the listing.'],['Do I have to fix everything the inspector finds?','No. We negotiate. I\'ll tell you what\'s worth fixing, what\'s worth a credit, and what to politely decline.'],['Can I sell and buy at the same time?','Yes, and I do it often. There are a few ways to time it — I\'ll map the one that fits your finances and your nerves.']]}
    cta={{eyebrow:'Curious what it\'s worth?',title:<>Let's talk about your <em style={{color:'var(--rasp-300)'}}>number</em>.</>,body:'A walk-through and an honest price, with the comps to back it up. No obligation.',button:'Book a walk-through'}}/>;
}
Object.assign(window,{BuyerGuide,SellerGuide});