import{u as h,a as n,j as e,N as g,n as p,L as l,s as o,P as j}from"./index-B5zQMA8I.js";import{g as x}from"./iconMap-CvQDyxG8.js";import{B as v}from"./Breadcrumb-CVo4_-RZ.js";import{S as b}from"./SEOHead-QKDdyRHo.js";import{B as N,S as f,F as u}from"./SchemaMarkup-DjRiKSt-.js";import{C as y}from"./CTABanner-CqpcwSWC.js";import{C as w}from"./check-circle-Bp-CYy8q.js";import"./shield-check-BBQ6nAeH.js";import"./home-bpN861Pw.js";import"./arrow-right-DuP5P4b_.js";function P(){const{serviceSlug:d}=h(),a=n.find(s=>s.slug===d);if(!a)return e.jsx(g,{to:"/404",replace:!0});const m=x(a.icon),i=n.filter(s=>a.relatedServices.includes(s.slug)),r=p.filter(s=>a.relevantNeighborhoods.includes(s.slug)),c=[{label:"Services",href:"/services"},{label:a.name}];return e.jsxs(e.Fragment,{children:[e.jsx(b,{title:`${a.name} in Chicago, IL | MidWest Electrical Services`,description:`Professional ${a.name.toLowerCase()} services in Chicago. ${a.shortDescription} Call (872) 335-4677 for a free estimate.`,canonical:`/services/${a.slug}`}),e.jsx(N,{items:c}),e.jsx(f,{service:a}),e.jsx(u,{faqs:a.faqs}),e.jsx(v,{items:c}),e.jsx("section",{className:"bg-navy-900 py-12 sm:py-16",children:e.jsx("div",{className:"container-main",children:e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8 lg:gap-12 items-center",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"flex items-center gap-3 mb-4",children:e.jsx("div",{className:"w-12 h-12 rounded-xl bg-electric-500/20 flex items-center justify-center",children:e.jsx(m,{className:"w-6 h-6 text-amber-400"})})}),e.jsxs("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-white mb-4",children:[a.name," in Chicago, IL"]}),e.jsx("p",{className:"text-gray-300 text-lg leading-relaxed",children:a.content.intro}),e.jsxs("div",{className:"mt-6 flex flex-col sm:flex-row gap-3",children:[e.jsx(l,{to:"/contact",className:"btn-primary",children:"Get a Free Estimate"}),e.jsxs("a",{href:o.phoneHref,className:"btn-secondary flex items-center gap-2",children:[e.jsx(j,{className:"w-4 h-4"}),o.phone]})]})]}),a.image&&e.jsx("div",{className:"lg:w-[420px] shrink-0",children:e.jsx("img",{src:`/images/${a.image}`,alt:`${a.name} service in Chicago, IL`,width:"420",height:"300",loading:"lazy",className:"rounded-xl shadow-2xl w-full object-cover"})})]})})}),e.jsx("section",{className:"section-padding bg-white",children:e.jsx("div",{className:"container-main",children:e.jsx("div",{className:"max-w-3xl mx-auto",children:a.content.body.map((s,t)=>e.jsx("p",{className:"text-gray-700 leading-relaxed mb-6 text-base sm:text-lg",children:s},t))})})}),e.jsx("section",{className:"py-12 sm:py-16 bg-gray-50",children:e.jsxs("div",{className:"container-main",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-navy-900 mb-10 text-center",children:"What to Expect"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 max-w-5xl mx-auto",children:a.content.process.map(s=>e.jsxs("div",{className:"relative text-center p-6",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-electric-500 text-white font-bold text-xl flex items-center justify-center mx-auto mb-4",children:s.step}),e.jsx("h3",{className:"font-bold text-navy-900 mb-2",children:s.title}),e.jsx("p",{className:"text-gray-600 text-sm leading-relaxed",children:s.description})]},s.step))})]})}),e.jsx("section",{className:"section-padding bg-white",children:e.jsxs("div",{className:"container-main max-w-3xl mx-auto",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-navy-900 mb-8",children:"Frequently Asked Questions"}),e.jsx("div",{className:"space-y-6",children:a.faqs.map((s,t)=>e.jsxs("div",{className:"border-b border-gray-200 pb-6 last:border-0",children:[e.jsx("h3",{className:"font-bold text-navy-900 text-lg mb-2",children:s.question}),e.jsx("p",{className:"text-gray-600 leading-relaxed",children:s.answer})]},t))})]})}),i.length>0&&e.jsx("section",{className:"py-12 sm:py-16 bg-gray-50",children:e.jsxs("div",{className:"container-main",children:[e.jsx("h2",{className:"text-2xl font-bold text-navy-900 mb-6",children:"Related Services"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:i.map(s=>{const t=x(s.icon);return e.jsxs(l,{to:`/services/${s.slug}`,className:"card p-5 flex items-center gap-4 group",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-electric-50 flex items-center justify-center shrink-0",children:e.jsx(t,{className:"w-5 h-5 text-electric-500"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-navy-900 group-hover:text-electric-600 transition-colors",children:s.name}),e.jsx("p",{className:"text-gray-500 text-sm",children:s.shortDescription})]})]},s.slug)})})]})}),r.length>0&&e.jsx("section",{className:"py-12 sm:py-16 bg-white",children:e.jsxs("div",{className:"container-main",children:[e.jsx("h2",{className:"text-2xl font-bold text-navy-900 mb-4",children:"Neighborhoods We Serve"}),e.jsxs("p",{className:"text-gray-600 mb-6",children:["We provide ",a.name.toLowerCase()," services throughout Chicago's south and southwest side, including:"]}),e.jsx("div",{className:"flex flex-wrap gap-3",children:r.map(s=>e.jsxs(l,{to:`/areas/${s.slug}`,className:"flex items-center gap-2 px-4 py-2.5 rounded-lg bg-gray-50 hover:bg-electric-50 border border-gray-200 hover:border-electric-200 transition-all text-sm font-medium text-navy-900 hover:text-electric-600",children:[e.jsx(w,{className:"w-4 h-4 text-electric-500"}),s.name]},s.slug))})]})}),e.jsx(y,{heading:`Schedule Your ${a.name}`})]})}export{P as default};