import{c as m,r as x,j as e,L as n,A as p}from"./index-B6RN67SY.js";import{s as r}from"./staticBlogPosts-CjEZ3jk3.js";import{a as h,c as b}from"./site-footer-gnC-Otq6.js";import{B as l}from"./book-open-DqW_NDuP.js";import{C as u}from"./circle-alert-YBlo0ILC.js";import{W as i}from"./wrench-B20_iFkB.js";import{G as f}from"./gauge-Dzw_1tnS.js";import{D as w}from"./droplets-Bb0So6bE.js";import{S as A}from"./snowflake-KiyfM4KX.js";import{F as v}from"./flame-eiyy4Afa.js";import{C as j}from"./clock-DVXGf7Bn.js";import{C as y}from"./calendar-j6okrwg-.js";/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],P=m("external-link",H),B="647-919-9619",N="tel:+16479199619",F={"radiant-floor-heating":v,"snowmelt-systems":A,"drain-cleaning":w,"boiler-installations":i,"water-meter":f,"custom-plumbing":i,"emergency-plumbing":u},k={"radiant-floor-heating":"from-orange-500/20 to-red-500/10 border-orange-500/20","snowmelt-systems":"from-sky-500/20 to-blue-500/10 border-sky-500/20","drain-cleaning":"from-teal-500/20 to-cyan-500/10 border-teal-500/20","boiler-installations":"from-amber-500/20 to-yellow-500/10 border-amber-500/20","water-meter":"from-indigo-500/20 to-purple-500/10 border-indigo-500/20","custom-plumbing":"from-zinc-500/20 to-slate-500/10 border-zinc-500/20","emergency-plumbing":"from-rose-500/20 to-red-500/10 border-rose-500/20"},S={"radiant-floor-heating":"text-orange-400","snowmelt-systems":"text-sky-400","drain-cleaning":"text-teal-400","boiler-installations":"text-amber-400","water-meter":"text-indigo-400","custom-plumbing":"text-zinc-400","emergency-plumbing":"text-rose-400"},d={"radiant-floor-heating":"/services/radiant-floor-heating","snowmelt-systems":"/services/snowmelt-systems","drain-cleaning":"/services/drain-cleaning-clog-repair","boiler-installations":"/services/boiler-installations-mechanical-contracting","water-meter":"/services/water-meter-applications-upgrades","custom-plumbing":"/services/custom-home-plumbing-rough-ins","emergency-plumbing":"/services/emergency-plumbing-repair"};function C(a){return new Date(a).toLocaleDateString("en-CA",{year:"numeric",month:"short",day:"numeric"})}const q=Array.from(new Map(r.map(a=>[a.parentServiceSlug,a.serviceLabel])).entries()),Q=()=>{const[a,s]=x.useState("all"),o=a==="all"?r:r.filter(t=>t.parentServiceSlug===a);return e.jsxs("div",{className:"min-h-screen bg-white text-[#0A0A0A]","data-id":"nz43wns4l","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsx(h,{variant:"light",navItems:[{label:"About Us",href:"/about-us"},{type:"services"},{type:"areas"},{label:"Reviews",href:"/reviews"},{label:"FAQ",href:"/faq"},{label:"Contact",href:"/contact"}],ctaLabel:"Get a Free Quote",ctaHref:"/contact",ctaStyle:"orange",phoneDisplay:B,phoneHref:N,"data-id":"xlxn7ruwv","data-path":"src/pages/blog/BlogHomePage.tsx"}),e.jsxs("section",{className:"relative bg-[#0A0A0A] text-white overflow-hidden","data-id":"hy21t0jol","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsx("div",{className:"absolute inset-0 opacity-[0.04]",style:{backgroundImage:"radial-gradient(circle at 1px 1px, #8F8F8F 1px, transparent 0)",backgroundSize:"36px 36px"},"data-id":"8fy1mdiix","data-path":"src/pages/blog/BlogHomePage.tsx"}),e.jsxs("div",{className:"relative max-w-5xl mx-auto px-6 py-20 md:py-28 text-center","data-id":"s1s8j8fzp","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 border border-white/15 rounded-full px-4 py-1.5 text-xs font-semibold uppercase tracking-widest text-[#8F8F8F] mb-6","data-id":"a0og5tyvj","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsx(l,{className:"h-3.5 w-3.5","data-id":"0kpkkquy8","data-path":"src/pages/blog/BlogHomePage.tsx"}),"Resource Hub"]}),e.jsxs("h1",{className:"text-4xl md:text-6xl font-bold tracking-tight leading-tight mb-5","data-id":"j62ouziwp","data-path":"src/pages/blog/BlogHomePage.tsx",children:["Local Expertise &"," ",e.jsx("span",{className:"text-[#8F8F8F]","data-id":"9msk9w0hl","data-path":"src/pages/blog/BlogHomePage.tsx",children:"Resource Hub"})]}),e.jsx("p",{className:"text-[#8F8F8F] text-lg md:text-xl max-w-2xl mx-auto leading-relaxed","data-id":"ny9iocsrd","data-path":"src/pages/blog/BlogHomePage.tsx",children:"Practical guides and expert tips from licensed plumbers in the GTA — so you know exactly what to expect before we arrive at your door."})]})]}),e.jsx("section",{className:"sticky top-[var(--header-h,64px)] z-30 bg-white border-b border-[#0A0A0A]/10 shadow-sm","data-id":"orllju5gk","data-path":"src/pages/blog/BlogHomePage.tsx",children:e.jsx("div",{className:"max-w-5xl mx-auto px-6","data-id":"m0mg3szf3","data-path":"src/pages/blog/BlogHomePage.tsx",children:e.jsxs("div",{className:"flex items-center gap-2.5 py-3.5 overflow-x-auto no-scrollbar","data-id":"b3hw8e4i2","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsx(g,{label:"All Articles",active:a==="all",onClick:()=>s("all"),"data-id":"f9xoelfxw","data-path":"src/pages/blog/BlogHomePage.tsx"}),q.map(([t,c])=>e.jsx(g,{label:c,active:a===t,onClick:()=>s(t),"data-id":"or4t3xz33","data-path":"src/pages/blog/BlogHomePage.tsx"},t)),a!=="all"&&d[a]&&e.jsxs(n,{to:d[a],className:"shrink-0 ml-auto flex items-center gap-1.5 text-xs font-semibold text-[#0A0A0A] border border-[#0A0A0A]/20 rounded-full px-3.5 py-1.5 hover:bg-[#0A0A0A] hover:text-white transition whitespace-nowrap","data-id":"4dt5mluzo","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsx(P,{className:"h-3 w-3","data-id":"t2rajw6k4","data-path":"src/pages/blog/BlogHomePage.tsx"}),"View Service Page"]})]})})}),e.jsx("section",{className:"max-w-5xl mx-auto px-6 py-14","data-id":"le16mx72f","data-path":"src/pages/blog/BlogHomePage.tsx",children:o.length===0?e.jsxs("div",{className:"text-center py-24","data-id":"ogm47qyoe","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsx(l,{className:"h-10 w-10 text-[#8F8F8F]/40 mx-auto mb-4","data-id":"br8xcq9et","data-path":"src/pages/blog/BlogHomePage.tsx"}),e.jsx("p",{className:"text-[#8F8F8F]","data-id":"db39mjjg3","data-path":"src/pages/blog/BlogHomePage.tsx",children:"No articles for this service yet."})]}):e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6","data-id":"kkc3w7rms","data-path":"src/pages/blog/BlogHomePage.tsx",children:o.map(t=>e.jsx(z,{post:t,"data-id":"zlokidn0y","data-path":"src/pages/blog/BlogHomePage.tsx"},t.slug))})}),e.jsx(b,{"data-id":"yu6vt0swq","data-path":"src/pages/blog/BlogHomePage.tsx"})]})};function g({label:a,active:s,onClick:o}){return e.jsx("button",{type:"button",onClick:o,className:`shrink-0 rounded-full px-4 py-2.5 text-sm font-semibold border transition-all duration-200 whitespace-nowrap ${s?"bg-[#0A0A0A] text-white border-[#0A0A0A]":"bg-white text-[#8F8F8F] border-[#0A0A0A]/15 hover:border-[#0A0A0A]/40 hover:text-[#0A0A0A]"}`,"data-id":"9nih8bkbt","data-path":"src/pages/blog/BlogHomePage.tsx",children:a})}function z({post:a}){const s=F[a.parentServiceSlug]??l,o=k[a.parentServiceSlug]??"from-zinc-500/20 to-slate-500/10 border-zinc-500/20",t=S[a.parentServiceSlug]??"text-zinc-400";return e.jsxs("article",{className:"group flex flex-col rounded-2xl overflow-hidden border border-[#0A0A0A]/10 bg-white hover:border-[#0A0A0A]/20 hover:shadow-lg transition-all duration-300","data-id":"ck22d95r2","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsx("div",{className:`h-40 bg-gradient-to-br ${o} border-b flex items-center justify-center`,"data-id":"4rqkoj64d","data-path":"src/pages/blog/BlogHomePage.tsx",children:e.jsxs("div",{className:"relative","data-id":"gy9xgh2t7","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsx("div",{className:`absolute inset-0 blur-2xl rounded-full scale-150 opacity-30 bg-current ${t}`,"data-id":"24cxomn52","data-path":"src/pages/blog/BlogHomePage.tsx"}),e.jsx(s,{className:`relative h-12 w-12 ${t}`,strokeWidth:1.5,"data-id":"7n162o468","data-path":"src/pages/blog/BlogHomePage.tsx"})]})}),e.jsxs("div",{className:"flex flex-col flex-1 p-5","data-id":"j55aa85rp","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-[#8F8F8F] mb-2","data-id":"sur5gsslw","data-path":"src/pages/blog/BlogHomePage.tsx",children:a.serviceLabel}),e.jsx("h3",{className:"text-sm font-bold leading-snug mb-2.5 text-[#0A0A0A] group-hover:text-[#0A0A0A]/80 transition-colors line-clamp-2","data-id":"uxnm6q2zm","data-path":"src/pages/blog/BlogHomePage.tsx",children:a.title}),e.jsx("p",{className:"text-[#8F8F8F] text-xs leading-relaxed line-clamp-3 mb-4 flex-1","data-id":"bf1nw6qq6","data-path":"src/pages/blog/BlogHomePage.tsx",children:a.excerpt}),e.jsxs("div",{className:"mt-auto pt-3 border-t border-[#0A0A0A]/8 flex items-center justify-between gap-3","data-id":"dkp3bplrv","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsxs("div",{className:"flex items-center gap-3 text-[#8F8F8F] text-xs","data-id":"m40ehj1x6","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsxs("span",{className:"flex items-center gap-1","data-id":"wqwd1oo10","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsx(j,{className:"h-3 w-3","data-id":"tz0yrplys","data-path":"src/pages/blog/BlogHomePage.tsx"}),a.readingTime," min"]}),e.jsxs("span",{className:"flex items-center gap-1","data-id":"6aun0aiqs","data-path":"src/pages/blog/BlogHomePage.tsx",children:[e.jsx(y,{className:"h-3 w-3","data-id":"0jem5todh","data-path":"src/pages/blog/BlogHomePage.tsx"}),C(a.date)]})]}),e.jsxs(n,{to:`/blog/${a.slug}`,className:"inline-flex items-center gap-1 text-xs font-semibold text-[#0A0A0A] hover:gap-2 transition-all duration-200 shrink-0","data-id":"lbwelt2sk","data-path":"src/pages/blog/BlogHomePage.tsx",children:["Read Full Article",e.jsx(p,{className:"h-3.5 w-3.5","data-id":"bs09qmv4q","data-path":"src/pages/blog/BlogHomePage.tsx"})]})]})]})]})}export{Q as default};