// Nav + Hero const { useState, useEffect, useRef } = React; const Nav = () => { const [scrolled, setScrolled] = useState(false); const [menuOpen, setMenuOpen] = useState(false); useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 20); window.addEventListener("scroll", onScroll); return () => window.removeEventListener("scroll", onScroll); }, []); useEffect(() => { document.body.style.overflow = menuOpen ? "hidden" : ""; }, [menuOpen]); const links = [ ["How it works", "#how"], ["Pre-foreclosure", "#foreclosure"], ["Cash Offer", "#cash-offer"], ["Situations", "#situations"], ["About", "#about"], ]; return (
Capital Home Solutions Capital Region · NY
(518) 817-3726 Get my options Options
{/* Mobile menu drawer */} {menuOpen && (
{links.map(([label, href]) => ( setMenuOpen(false)} style={{ fontSize:18, fontFamily:"var(--font-display)", color:"var(--navy-900)", padding:"14px 0", borderBottom:"1px solid var(--line)", display:"flex", justifyContent:"space-between", alignItems:"center", }}> {label} ))} setMenuOpen(false)} style={{ marginTop:16, padding:"14px 18px", borderRadius:12, background:"var(--navy-900)", color:"var(--cream)", display:"flex", alignItems:"center", gap:10, fontFamily:"var(--font-mono)", fontSize:14, }}> Call (518) 817-3726
)}
); }; const Hero = () => { const [form, setForm] = useState({ address:"", name:"", phone:"" }); const [submitted, setSubmitted] = useState(false); return (
{/* Background ornament */}
Serving the Capital Region of NY

A solution for
every situation.

Any house. Any condition. Any situation. Foreclosure 30 days out? We step in with a mortgage modification or short sale help. Probate headache? We buy as-is, full cash, 7-day close. Relocating Friday? Pick your closing date. Divorce, liens, code violations, hoarder home, behind on taxes. We've seen it, fixed it, closed it. And when an MLS listing gets you more money, we'll say so and list it ourselves. One call. Real answer in 24 hours. Close when you want to.

{/* Offer card */}
{e.preventDefault(); setSubmitted(true);}} style={{ marginTop:36, background:"var(--paper)", border:"1px solid var(--line)", borderRadius:20, padding:22, boxShadow:"var(--shadow-lg)", display:"grid", gridTemplateColumns:"1.2fr 1fr .8fr auto", gap:10, alignItems:"stretch", maxWidth: 640, }}> setForm(f=>({...f, address:v}))} icon={}/> setForm(f=>({...f, name:v}))}/> setForm(f=>({...f, phone:v}))}/>
Free consultation Response in 24 hrs No obligation
{/* Proof row */}
{/* Right side: 3D scene */}
{/* Marquee */} ); }; const Field = ({ placeholder, value, onChange, icon }) => ( ); const MiniBadge = ({children}) => ( {children} ); const Stat = ({value, label}) => (
{value}
{label}
); const HeroScene = () => { return (
{/* Large soft plate */}
{/* Foreclosure notice - red stamp style */}
{/* torn/aged feel - corner fold */}
Notice of Default
Foreclosure
Pending
You have RIGHTS. Act now.
{/* stamp */}
URGENT
TIME SENSITIVE
{/* Main house - distressed for urgency */}
{/* We can help card - solution card */}
We can help
Stop the foreclosure.
Save your credit.
Mortgage mods, short sales, cash offers. Free consultation in 24 hrs.
{/* Tag */}
Free · Confidential · No obligation
); }; const Marquee = () => { const items = [ "400+ homeowners helped", "Cash offers for as-is sales", "MLS listings for top dollar", "Mortgage modifications", "Short sale navigation", "Probate and inherited homes", "Close in as little as 7 days", "A solution for every situation", ]; const doubled = [...items, ...items]; return (
{doubled.map((t, i) => ( {t} ))}
); }; Object.assign(window, { Nav, Hero });