import{j as e}from"./query-DJMphkOq.js";import{L as d}from"./react-vendor-wls9bBVT.js";import{b as k,c as u}from"./index-BaQQEgxi.js";import{d as N,H as v,N as C,e as _,f as T,W as S,h as A,i as f,A as y,q as G,P as L,ab as M,O}from"./icons-B6XnNDpJ.js";const F={Wrench:f,Shield:A,Wifi:S,Cloud:T,Monitor:_,Network:C,HardDrive:v,Camera:N},w={blue:{bg:"from-blue-500 to-blue-700",badge:"bg-blue-100 dark:bg-blue-900/50 text-blue-700 dark:text-blue-300",btn:"bg-blue-600 hover:bg-blue-700",glow:"shadow-blue-200 dark:shadow-blue-900"},indigo:{bg:"from-indigo-500 to-indigo-700",badge:"bg-indigo-100 dark:bg-indigo-900/50 text-indigo-700 dark:text-indigo-300",btn:"bg-indigo-600 hover:bg-indigo-700",glow:"shadow-indigo-200 dark:shadow-indigo-900"},violet:{bg:"from-violet-500 to-violet-700",badge:"bg-violet-100 dark:bg-violet-900/50 text-violet-700 dark:text-violet-300",btn:"bg-violet-600 hover:bg-violet-700",glow:"shadow-violet-200 dark:shadow-violet-900"},sky:{bg:"from-sky-500 to-sky-700",badge:"bg-sky-100 dark:bg-sky-900/50 text-sky-700 dark:text-sky-300",btn:"bg-sky-600 hover:bg-sky-700",glow:"shadow-sky-200 dark:shadow-sky-900"},cyan:{bg:"from-cyan-500 to-cyan-700",badge:"bg-cyan-100 dark:bg-cyan-900/50 text-cyan-700 dark:text-cyan-300",btn:"bg-cyan-600 hover:bg-cyan-700",glow:"shadow-cyan-200 dark:shadow-cyan-900"},teal:{bg:"from-teal-500 to-teal-700",badge:"bg-teal-100 dark:bg-teal-900/50 text-teal-700 dark:text-teal-300",btn:"bg-teal-600 hover:bg-teal-700",glow:"shadow-teal-200 dark:shadow-teal-900"},orange:{bg:"from-orange-500 to-orange-700",badge:"bg-orange-100 dark:bg-orange-900/50 text-orange-700 dark:text-orange-300",btn:"bg-orange-600 hover:bg-orange-700",glow:"shadow-orange-200 dark:shadow-orange-900"},red:{bg:"from-red-500 to-red-700",badge:"bg-red-100 dark:bg-red-900/50 text-red-700 dark:text-red-300",btn:"bg-red-600 hover:bg-red-700",glow:"shadow-red-200 dark:shadow-red-900"},green:{bg:"from-green-500 to-green-700",badge:"bg-green-100 dark:bg-green-900/50 text-green-700 dark:text-green-300",btn:"bg-green-600 hover:bg-green-700",glow:"shadow-green-200 dark:shadow-green-900"}};function $({service:t,lang:a="en",onClick:o,compact:n=!1}){var h,m;const l=F[t.icon]||f,r=w[t.color]||w.blue,s=a==="cy"&&t.title_cy?t.title_cy:t.title,i=a==="cy"&&t.short_summary_cy?t.short_summary_cy:a==="cy"?t.description_cy||t.short_summary||t.description:t.short_summary||t.description,c=(a==="cy"&&((h=t.features_cy)==null?void 0:h.length)>0?t.features_cy:t.features)||[],g=t.slug||((m=t.title)==null?void 0:m.toLowerCase().replace(/[^a-z0-9]+/g,"-")),b=`/services/${g}`,x=()=>{o&&o(t),k.analytics.track({eventName:"service_card_click",properties:{service:t.title,slug:g}}),window.scrollTo({top:0,behavior:"instant"})};return n?e.jsxs(d,{to:b,onClick:x,className:"group flex items-center gap-3 p-4 bg-white dark:bg-gray-800 rounded-xl border border-gray-100 dark:border-gray-700 hover:border-blue-200 dark:hover:border-blue-700 hover:shadow-md transition-all",children:[e.jsx("div",{className:`w-10 h-10 rounded-xl bg-gradient-to-br ${r.bg} flex items-center justify-center shrink-0`,children:e.jsx(l,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-bold text-gray-900 dark:text-white text-sm truncate",children:s}),e.jsxs("p",{className:"text-gray-400 text-xs truncate",children:[i==null?void 0:i.substring(0,60),"..."]})]}),e.jsx(y,{className:"w-4 h-4 text-gray-300 group-hover:text-blue-500 group-hover:translate-x-0.5 transition-all shrink-0"})]}):e.jsxs(d,{to:b,onClick:x,className:"group relative bg-white dark:bg-gray-800 rounded-2xl overflow-hidden border border-gray-100 dark:border-gray-700 hover:shadow-xl hover:-translate-y-1 transition-all duration-300 flex flex-col",children:[e.jsxs("div",{className:`relative h-44 overflow-hidden bg-gradient-to-br ${r.bg} shrink-0`,children:[t.image_url?e.jsx("img",{src:t.image_url,alt:`${s} - CefniTech IT Services`,className:"w-full h-full object-cover opacity-60 group-hover:scale-105 transition-transform duration-700"}):null,e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/40 to-transparent"}),e.jsx("div",{className:"absolute bottom-4 left-4",children:e.jsx("div",{className:"w-10 h-10 rounded-xl bg-white/20 backdrop-blur-sm border border-white/30 flex items-center justify-center",children:e.jsx(l,{className:"w-5 h-5 text-white"})})})]}),e.jsxs("div",{className:"p-6 flex flex-col flex-1",children:[e.jsx("h3",{className:"font-black text-gray-900 dark:text-white text-lg mb-2 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors leading-tight",children:s}),e.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm leading-relaxed mb-4 flex-1",children:i}),c.length>0&&e.jsx("ul",{className:"space-y-1.5 mb-5 border-t border-gray-100 dark:border-gray-700 pt-4",children:c.slice(0,3).map((p,j)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-gray-600 dark:text-gray-300",children:[e.jsx(G,{className:"w-3.5 h-3.5 text-green-500 shrink-0 mt-0.5"}),p]},j))}),e.jsxs("div",{className:`inline-flex items-center gap-2 text-sm font-bold text-white px-5 py-2.5 rounded-full self-start ${r.btn} transition-all group-hover:gap-3`,children:[a==="cy"?"Cael Gwybod Mwy":"Find Out More"," ",e.jsx(y,{className:"w-4 h-4"})]})]})]})}function I({lang:t="en",heading:a,subtext:o}){const n=a||(t==="cy"?"Barod i ddechrau?":"Ready to get started?"),l=o||(t==="cy"?"Siaradwch â thîm CefniTech heddiw — dim pwysau, dim jargon, dim rhwymedigaeth.":"Talk to the CefniTech team today — no pressure, no jargon, no obligation."),r=s=>k.analytics.track({eventName:s});return e.jsxs("section",{className:"relative overflow-hidden py-0",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-900 via-blue-950 to-indigo-950"}),e.jsx("div",{className:"absolute inset-0 opacity-5",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"28px 28px"}}),e.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-blue-600/20 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-72 h-72 bg-indigo-600/20 rounded-full blur-3xl translate-y-1/2 -translate-x-1/2"}),e.jsxs("div",{className:"relative max-w-6xl mx-auto px-6 py-12",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("p",{className:"text-blue-400 text-xs font-bold uppercase tracking-widest mb-4",children:t==="cy"?"Cysylltu â Ni":"Get in Touch"}),e.jsx("h2",{className:"text-4xl md:text-5xl font-black text-white tracking-tight leading-tight mb-5",children:n}),e.jsx("p",{className:"text-gray-300 text-lg max-w-lg mx-auto leading-relaxed",children:l})]}),e.jsxs("div",{className:"grid sm:grid-cols-3 gap-4 max-w-2xl mx-auto mb-6",children:[e.jsxs("a",{href:"tel:07721422537",onClick:()=>r("phone_click"),className:"group bg-white/10 backdrop-blur-sm border border-white/20 rounded-2xl p-6 text-center hover:bg-white/20 transition-all hover:scale-105",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-500 rounded-xl flex items-center justify-center mx-auto mb-3",children:e.jsx(L,{className:"w-6 h-6 text-white"})}),e.jsx("p",{className:"text-white font-black text-sm mb-1",children:t==="cy"?"Ffoniwch Ni":"Call Us"}),e.jsx("p",{className:"text-blue-300 text-xs font-semibold",children:"07721 422537"})]}),e.jsxs(d,{to:u("Contact"),onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:"group bg-blue-600 border border-blue-500 rounded-2xl p-6 text-center hover:bg-blue-500 transition-all hover:scale-105",children:[e.jsx("div",{className:"w-12 h-12 bg-white/20 rounded-xl flex items-center justify-center mx-auto mb-3",children:e.jsx(M,{className:"w-6 h-6 text-white"})}),e.jsx("p",{className:"text-white font-black text-sm mb-1",children:t==="cy"?"Cysylltu":"Contact Us"}),e.jsx("p",{className:"text-blue-200 text-xs",children:t==="cy"?"Am ddim, dim rhwymedigaeth":"Free, no obligation"})]}),e.jsxs(d,{to:u("Contact"),onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:"group bg-white/10 backdrop-blur-sm border border-white/20 rounded-2xl p-6 text-center hover:bg-white/20 transition-all hover:scale-105",children:[e.jsx("div",{className:"w-12 h-12 bg-indigo-500 rounded-xl flex items-center justify-center mx-auto mb-3",children:e.jsx(O,{className:"w-6 h-6 text-white"})}),e.jsx("p",{className:"text-white font-black text-sm mb-1",children:t==="cy"?"Cael Dyfynbris":"Get a Quote"}),e.jsx("p",{className:"text-gray-300 text-xs",children:t==="cy"?"Wedi'i deilwra i chi":"Tailored to you"})]})]}),e.jsx("p",{className:"text-center text-gray-400 text-sm font-medium",children:t==="cy"?"📍 Lleol i Fôn a Gogledd Cymru · 🌐 O bell ar draws y DU · ⭐ 5★ ar Google":"📍 Local to Anglesey & North Wales · 🌐 Remote across the UK · ⭐ 5★ on Google"})]})]})}export{$ as S,I as a};