import{u as j,b as l,j as e,N as f,a as N,s as c,P as b,L as o}from"./index-BEDZZ8Sb.js";import{L as m,Z as d}from"./lucide-react-C6G5wnCr.js";import{S as v}from"./SEOHead-BOJZl23s.js";import{S as w}from"./SchemaMarkup-D6BCIW80.js";import{g as y,B as S}from"./Breadcrumb-BPtvhqB5.js";import{C as A}from"./CTABanner-CzVofEX7.js";import{A as $}from"./arrow-right-BtftDQBS.js";import{C}from"./check-circle-CuS6EXVu.js";import"./arrow-left-DXCvxd5F.js";import"./thermometer-w2sOHdbV.js";import"./heart-De9RzRXg.js";import"./send-CDMH76AD.js";function W(){const{serviceSlug:h}=j(),s=l.find(a=>a.slug===h);if(!s)return e.jsx(f,{to:"/404",replace:!0});const x=m[s.icon]||d,i=[{label:"Services",href:"/services"},{label:s.name}],r=(s.relatedServices||[]).map(a=>l.find(t=>t.slug===a)).filter(Boolean),n=(s.relevantAreas||[]).map(a=>N.find(t=>t.slug===a)).filter(Boolean),g={"@context":"https://schema.org","@type":"Service",name:s.name,description:s.shortDescription,provider:{"@type":"Electrician",name:c.companyName,telephone:c.phoneSchema,url:c.domain},areaServed:{"@type":"City",name:"Tucson",sameAs:"https://en.wikipedia.org/wiki/Tucson,_Arizona"},url:`${c.domain}/services/${s.slug}`},p=s.faqs&&s.faqs.length>0?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:s.faqs.map(a=>({"@type":"Question",name:a.question,acceptedAnswer:{"@type":"Answer",text:a.answer}}))}:null,u=[g,p,y(i)].filter(Boolean);return e.jsxs(e.Fragment,{children:[e.jsx(v,{title:`${s.name} in Tucson, AZ | Flowing Wells Electric`,description:s.shortDescription,canonical:`/services/${s.slug}`}),e.jsx(w,{schemas:u}),e.jsx("div",{className:"bg-white border-b border-charcoal-100",children:e.jsx("div",{className:"container-custom",children:e.jsx(S,{items:i})})}),e.jsxs("section",{className:"relative bg-charcoal-900 text-white overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 md:relative md:hidden",children:e.jsx("img",{src:`/images/${s.image}`,alt:`${s.name} in Tucson, AZ`,width:1200,height:600,className:"w-full h-full object-cover opacity-20"})}),e.jsx("div",{className:"container-custom relative z-10",children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-center py-16 md:py-20",children:[e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-3 mb-4",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-amber-600/20 flex items-center justify-center",children:e.jsx(x,{className:"w-6 h-6 text-amber-400"})})}),e.jsxs("h1",{className:"text-white mb-6",children:[s.name," in Tucson, AZ"]}),e.jsx("p",{className:"text-charcoal-200 text-lg leading-relaxed mb-8",children:s.content.intro}),e.jsxs("a",{href:c.phoneHref,className:"btn-primary text-lg inline-flex items-center gap-2",children:[e.jsx(b,{className:"w-5 h-5"}),"Call ",c.phone]})]}),e.jsx("div",{className:"hidden md:block",children:e.jsx("img",{src:`/images/${s.image}`,alt:`${s.name} in Tucson, AZ`,width:600,height:400,className:"rounded-xl shadow-lg w-full h-auto object-cover"})})]})})]}),e.jsx("section",{className:"section-padding bg-cream-100",children:e.jsx("div",{className:"container-custom max-w-4xl",children:s.content.body.map((a,t)=>e.jsx("p",{className:"text-charcoal-700 text-lg leading-relaxed mb-6 last:mb-0",children:a},t))})}),s.content.process&&s.content.process.length>0&&e.jsx("section",{className:"section-padding bg-white",children:e.jsxs("div",{className:"container-custom max-w-5xl",children:[e.jsx("h2",{className:"text-center mb-12",children:"Our Process"}),e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:s.content.process.map((a,t)=>e.jsxs("div",{className:"flex gap-5",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-full bg-amber-600 text-white flex items-center justify-center text-lg font-bold",children:t+1})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-charcoal-900 mb-2",children:a.title}),e.jsx("p",{className:"text-charcoal-600 leading-relaxed",children:a.description})]})]},t))})]})}),s.faqs&&s.faqs.length>0&&e.jsx("section",{className:"section-padding bg-cream-100",children:e.jsxs("div",{className:"container-custom max-w-4xl",children:[e.jsx("h2",{className:"text-center mb-12",children:"Frequently Asked Questions"}),e.jsx("div",{className:"space-y-6",children:s.faqs.map((a,t)=>e.jsxs("div",{className:`rounded-xl p-6 md:p-8 ${t%2===0?"bg-white":"bg-charcoal-50"}`,children:[e.jsx("h3",{className:"text-lg md:text-xl font-bold text-charcoal-900 mb-3",children:a.question}),e.jsx("p",{className:"text-charcoal-600 leading-relaxed",children:a.answer})]},t))})]})}),r.length>0&&e.jsx("section",{className:"section-padding bg-white",children:e.jsxs("div",{className:"container-custom",children:[e.jsx("h2",{className:"text-center mb-12",children:"Related Services"}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-5xl mx-auto",children:r.map(a=>{const t=m[a.icon]||d;return e.jsxs(o,{to:`/services/${a.slug}`,className:"card group p-6 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-50 flex items-center justify-center flex-shrink-0",children:e.jsx(t,{className:"w-5 h-5 text-amber-600"})}),e.jsx("h3",{className:"text-lg font-bold text-charcoal-900",children:a.name})]}),e.jsx("p",{className:"text-charcoal-600 text-sm leading-relaxed mb-4 flex-1",children:a.shortDescription}),e.jsxs("span",{className:"inline-flex items-center gap-1 text-amber-600 font-semibold text-sm group-hover:gap-2 transition-all",children:["Learn More",e.jsx($,{className:"w-4 h-4"})]})]},a.slug)})})]})}),n.length>0&&e.jsx("section",{className:"section-padding bg-cream-100",children:e.jsxs("div",{className:"container-custom max-w-4xl",children:[e.jsxs("h2",{className:"text-center mb-6",children:["Areas We Serve for ",s.name]}),e.jsxs("p",{className:"text-charcoal-600 text-center text-lg mb-10",children:["We provide ",s.name.toLowerCase()," services throughout the greater Tucson metropolitan area, including the following communities."]}),e.jsx("div",{className:"flex flex-wrap justify-center gap-3",children:n.map(a=>e.jsxs(o,{to:`/areas/${a.slug}`,className:"inline-flex items-center gap-2 bg-white rounded-lg px-5 py-3 text-charcoal-700 font-medium shadow-sm hover:shadow-md hover:text-amber-600 transition-all",children:[e.jsx(C,{className:"w-4 h-4 text-amber-600"}),a.name]},a.slug))})]})}),e.jsx(A,{heading:`Need ${s.name} in Tucson?`,subtext:`Call Flowing Wells Electric today for a free estimate on your ${s.name.toLowerCase()} project.`})]})}export{W as default};