import{i as s,j as e,c,P as d}from"./index-D-pl_72i.js";import{F as x}from"./file-text-CkYKoPR6.js";function b({sentinelId:r="hero-sentinel",formAnchor:i="#combo-form"}){const[t,n]=s.useState(!1);return s.useEffect(()=>{const o=document.getElementById(r);if(!o)return;const a=new IntersectionObserver(([l])=>n(!l.isIntersecting),{threshold:0,rootMargin:"-80px 0px 0px 0px"});return a.observe(o),()=>a.disconnect()},[r]),s.useEffect(()=>(t?document.body.classList.add("has-sticky-bar"):document.body.classList.remove("has-sticky-bar"),()=>document.body.classList.remove("has-sticky-bar")),[t]),e.jsx("div",{className:`fixed bottom-0 left-0 right-0 z-40 lg:hidden bg-white border-t border-gray-200 transition-transform duration-300 ${t?"translate-y-0":"translate-y-full"}`,style:{boxShadow:"0 -2px 12px rgba(0,0,0,0.08)"},children:e.jsxs("div",{className:"flex gap-2 p-2 max-w-lg mx-auto",children:[e.jsxs("a",{href:c.phoneHref,className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-3 text-sm font-semibold text-white rounded-lg transition-all",style:{backgroundColor:"#d63031"},children:[e.jsx(d,{className:"w-4 h-4"}),"Call Now"]}),e.jsxs("a",{href:i,className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-3 text-sm font-semibold text-steel-blue bg-steel-blue/10 rounded-lg hover:bg-steel-blue/20 transition-all",children:[e.jsx(x,{className:"w-4 h-4"}),"Get Estimate"]})]})})}export{b as M};