import{j as e}from"./vendor-radix-DNxwLykc.js";import{u as g,B as b,A as E,r as C,z as T,D as k,E as R,G as L,l as q,_ as F,$ as D,I as v,T as $,L as z,a0 as I,s as _,a1 as B,h as O,S as K}from"./index-J-xrBmTv.js";import{L as N}from"./vendor-router-CYowL1Ry.js";import{T as M}from"./LocationBenefits-v-mI8Bxt.js";import{B as P}from"./BlogCostCalculator-DGRQcG7K.js";import{r as x}from"./vendor-react-BsBmf7g_.js";import{o as Q,s as p,Z as U}from"./vendor-data-D4F9-7cQ.js";function ae({titleKey:n,highlightKey:s,subtitleKey:r,icon:a}){const{t}=g(),m=t(n),c=t(s),o=t(r);return e.jsx("section",{className:"min-h-[80vh] flex items-start md:items-center justify-center px-4 md:px-8 pt-32 pb-12 md:pt-36 md:pb-20",children:e.jsx("div",{className:"container-custom",children:e.jsxs("div",{className:"flex flex-col items-center text-center max-w-4xl mx-auto",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 mb-8 px-4 py-2 rounded-full bg-accent-blue/10 text-accent-blue text-sm font-medium animate-fade-in",children:[e.jsx(a,{className:"w-4 h-4"}),t("service.professional")," ",c]}),e.jsxs("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-light tracking-tight mb-6 animate-fade-in",children:[m," ",e.jsx("span",{className:"text-accent-blue",children:c})]}),e.jsx("p",{className:"text-lg md:text-xl text-silver max-w-2xl mb-10 animate-fade-in-delay leading-relaxed",children:o}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 animate-slide-up mb-8",children:[e.jsx(b,{asChild:!0,size:"lg",className:"bg-foreground text-background hover:bg-foreground/90 transition-all duration-300 text-base px-8 py-6 rounded-full group",children:e.jsxs(N,{to:"/contact",children:[t("service.getQuote"),e.jsx(E,{className:"ml-2 h-5 w-5 group-hover:translate-x-1 transition-transform"})]})}),e.jsx(b,{asChild:!0,size:"lg",variant:"outline",className:"border-foreground text-foreground hover:bg-foreground hover:text-background transition-all duration-300 text-base px-8 py-6 rounded-full group",children:e.jsxs(N,{to:"/pricing-calculator",children:[e.jsx(C,{className:"mr-2 h-5 w-5"}),t("calculator.badge")]})})]}),e.jsx(M,{})]})})})}function re({titleKey:n,subtitleKey:s,features:r}){const{t:a}=g();return e.jsx("section",{className:"section-padding",id:"features",children:e.jsxs("div",{className:"container-custom",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-light text-center mb-4",children:a(n)}),e.jsx("p",{className:"text-silver-muted text-center max-w-2xl mx-auto mb-16",children:a(s)}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:r.map((t,m)=>{const c=t.icon;return e.jsxs("div",{className:"group p-8 border border-border rounded-2xl hover:border-silver-muted transition-all duration-300 hover:bg-card",children:[e.jsx(c,{className:"h-10 w-10 mb-6 text-silver group-hover:text-foreground transition-colors"}),e.jsx("h3",{className:"text-xl font-medium mb-3",children:a(t.titleKey)}),e.jsx("p",{className:"text-silver-muted leading-relaxed",children:a(t.descKey)})]},m)})})]})})}function ne({serviceKey:n,faqs:s}){const{t:r}=g();return e.jsx("section",{className:"section-padding bg-muted",children:e.jsxs("div",{className:"container-custom",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-light text-center mb-4",children:r("service.faqTitle")}),e.jsxs("p",{className:"text-silver-muted text-center max-w-2xl mx-auto mb-16",children:[r("service.faqSubtitle")," ",r(n).toLowerCase(),"."]}),e.jsx("div",{className:"max-w-3xl mx-auto",children:e.jsx(T,{type:"single",collapsible:!0,className:"w-full",children:s.map((a,t)=>e.jsxs(k,{value:`item-${t}`,children:[e.jsx(R,{className:"text-left",children:r(a.questionKey)}),e.jsx(L,{className:"text-silver-muted",children:r(a.answerKey)})]},t))})}),e.jsx("div",{"aria-hidden":"true",style:{position:"absolute",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"},children:s.map((a,t)=>e.jsxs("div",{children:[e.jsx("h3",{children:r(a.questionKey)}),e.jsx("p",{children:r(a.answerKey)})]},`seo-${t}`))})]})})}const V=Q({name:p().trim().min(1).max(100),company:p().trim().max(100).optional(),phone:p().trim().max(20).optional(),email:p().trim().email().max(255),message:p().trim().min(1).max(1e3)});function H(){if(typeof window>"u")return{};const n=new URLSearchParams(window.location.search),s=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"],r={};for(const a of s){const t=n.get(a);t&&(r[a]=t)}return r}function G({serviceKey:n}){const{t:s,language:r}=g(),a=r==="fr",{toast:t}=q(),m=x.useRef(null),c=x.useRef({}),[o,u]=x.useState(!1),[j,y]=x.useState(!1),[i,d]=x.useState({name:"",company:"",phone:"",email:"",message:""});x.useEffect(()=>{c.current=H()},[]);const h=f=>{d({...i,[f.target.name]:f.target.value})},A=async f=>{var w;if(f.preventDefault(),!((w=m.current)!=null&&w.value)){try{V.parse(i)}catch(l){l instanceof U&&t({title:a?"Erreur de validation":"Validation Error",description:l.errors[0].message,variant:"destructive"});return}u(!0);try{const{data:l,error:S}=await _.functions.invoke("send-contact-email",{body:{type:"contact",name:i.name,email:i.email,company:i.company||void 0,phone:i.phone||void 0,message:i.message,source:"service-inline",serviceKey:n,landingPath:typeof window<"u"?window.location.pathname:void 0,adSource:c.current}});if(S)throw new Error(S.message||"Failed to send message");if(!(l!=null&&l.success))throw new Error((l==null?void 0:l.error)||"Failed to send message");t({title:s("contact.success"),description:s("contact.successMessage")||"We'll get back to you soon!",duration:5e3}),B(),d({name:"",company:"",phone:"",email:"",message:""}),y(!0)}catch(l){t({title:a?"Erreur":"Error",description:l instanceof Error?l.message:"Failed to send message. Please try again.",variant:"destructive"})}finally{u(!1)}}};return j?e.jsxs("div",{className:"flex flex-col items-center justify-center text-center border border-border rounded-lg bg-card p-8 max-w-2xl mx-auto",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-accent-blue/10 flex items-center justify-center mb-6",children:e.jsx(F,{className:"w-8 h-8 text-accent-blue"})}),e.jsx("h3",{className:"text-xl font-light tracking-tight mb-2",children:a?"Merci pour votre demande":"Thank You for Your Request"}),e.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:a?"Notre équipe a bien reçu votre message. Réponse par courriel sous 4 heures ouvrables.":"We received your message. Expect an email reply within 4 business hours."})]}):e.jsxs("form",{onSubmit:A,className:"space-y-4 max-w-2xl mx-auto text-left",children:[e.jsx(D,{ref:m}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsx(v,{name:"name",placeholder:s("contact.name"),value:i.name,onChange:h,required:!0,disabled:o,className:"bg-card border-border focus:border-silver transition-colors"}),e.jsx(v,{name:"company",placeholder:s("contact.company"),value:i.company,onChange:h,disabled:o,className:"bg-card border-border focus:border-silver transition-colors"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsx(v,{name:"email",type:"email",placeholder:s("contact.email"),value:i.email,onChange:h,required:!0,disabled:o,className:"bg-card border-border focus:border-silver transition-colors"}),e.jsx(v,{name:"phone",type:"tel",placeholder:s("contact.phone"),value:i.phone,onChange:h,disabled:o,className:"bg-card border-border focus:border-silver transition-colors"})]}),e.jsx($,{name:"message",placeholder:a?"Décrivez votre installation (type, superficie, fréquence souhaitée)…":"Tell us about your facility (type, sqft, cleaning frequency)…",value:i.message,onChange:h,required:!0,disabled:o,rows:4,className:"bg-card border-border focus:border-silver transition-colors resize-none"}),e.jsx(b,{type:"submit",size:"lg",disabled:o,className:"w-full bg-foreground text-background hover:bg-foreground/90 transition-all duration-300 group",children:o?e.jsxs(e.Fragment,{children:[e.jsx(z,{className:"mr-2 h-4 w-4 animate-spin"}),s("contact.sending")||"Sending..."]}):e.jsxs(e.Fragment,{children:[s("contact.submit"),e.jsx(I,{className:"ml-2 h-4 w-4 group-hover:translate-x-1 transition-transform"})]})})]})}function ie({serviceKey:n}){const{t:s}=g();return e.jsx("section",{className:"section-padding",children:e.jsx("div",{className:"container-custom",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsxs("h2",{className:"text-3xl md:text-4xl font-light mb-4",children:[s("service.ctaTitle")," ",s(n),"?"]}),e.jsx("p",{className:"text-silver-muted mb-10 max-w-2xl mx-auto",children:s("service.ctaSubtitle")}),e.jsx("div",{className:"mb-10",children:e.jsx(G,{serviceKey:n})}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-6 text-silver",children:[e.jsxs("a",{href:"mailto:info@ssimple.ca",className:"flex items-center gap-2 hover:text-foreground transition-colors",children:[e.jsx(O,{className:"h-5 w-5"}),"info@ssimple.ca"]}),e.jsx("span",{className:"hidden sm:inline",children:"•"}),e.jsx("span",{children:s("service.responseGuarantee")})]}),e.jsxs("div",{className:"max-w-lg mx-auto mt-14",children:[e.jsx("h3",{className:"text-2xl md:text-3xl font-light text-center mb-4",children:s("service.calculatorTitle")||"Or estimate your cost first"}),e.jsx(P,{}),e.jsx("div",{className:"mt-4",children:e.jsx(b,{asChild:!0,variant:"ghost",size:"sm",children:e.jsxs(N,{to:"/pricing-calculator",children:[e.jsx(C,{className:"mr-2 h-4 w-4"}),s("hero.pricingCalculator")]})})})]})]})})})}const J=["Montreal","Toronto","Vancouver","Laval","Mississauga","Brampton"];function oe({service:n,title:s,description:r,url:a,faqs:t,areaServed:m,alternateFr:c}){const o="https://ssimple.ca",u=`${o}${a}`,j=`${s} | Simple Service`,y={"@context":"https://schema.org","@type":"Service",name:n,description:r,url:u,provider:{"@type":"LocalBusiness",name:"Simple Service",email:"info@ssimple.ca",url:o,areaServed:(m||J).map(d=>({"@type":"City",name:d})),aggregateRating:{"@type":"AggregateRating",ratingValue:"5",bestRating:"5",reviewCount:"500"}},serviceType:n,offers:{"@type":"Offer",priceCurrency:"CAD",price:"Custom quote based on facility size",priceSpecification:{"@type":"PriceSpecification",priceCurrency:"CAD",price:"From $0.08/sq ft"},availability:"https://schema.org/InStock",areaServed:{"@type":"Country",name:"Canada"}}},i=t.length>0?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.map(d=>({"@type":"Question",name:d.question,acceptedAnswer:{"@type":"Answer",text:d.answer}}))}:null;return e.jsxs(K,{title:j,description:r,path:a,children:[c&&e.jsx("link",{rel:"alternate",hrefLang:"fr-CA",href:`${o}${c}`}),c&&e.jsx("link",{rel:"alternate",hrefLang:"en-CA",href:u}),c&&e.jsx("link",{rel:"alternate",hrefLang:"x-default",href:u}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(y)}),i&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify(i)})]})}export{oe as S,ae as a,re as b,ne as c,ie as d};