import{j as e}from"./ui-vendor-CPlxOuHz.js";import{u as s,r as a,L as o}from"./react-vendor-DjUmVRt1.js";import{S as t}from"./SEOHead-_u8HLdws.js";import{H as r}from"./Header-CCcWTXhg.js";import{F as i}from"./Footer-BqYZBv1u.js";import{C as l,a as c}from"./card-DOdpRqkP.js";import{B as n,s as d}from"./index-09CqdSdZ.js";import{B as m,M as x,P as h,a as p,S as u,c as g}from"./icons-ClkGBw8e.js";import"./logo-oficial-BW9aD_Pb.js";import"./supabase-vendor-CuzYIAJN.js";const j=[{icon:x,title:"Rastreamento Veicular",description:"Monitore seu veículo em tempo real com tecnologia GPS",href:"/rastreamento"},{icon:h,title:"Assistência 24h",description:"Socorro mecânico e guincho disponível a qualquer hora",href:"/assistencia-24h"},{icon:p,title:"Gestão de Frotas",description:"Controle total da sua frota com relatórios inteligentes",href:"/gestao-frotas"},{icon:u,title:"Seguros",description:"Proteção completa para você e seu veículo",href:"/seguros"}],f=()=>{const x=s(),[p,u]=a.useState("client"),[f,N]=a.useState([]);return a.useEffect(()=>{},[x.pathname]),a.useEffect(()=>{(async()=>{const{data:e}=await d.from("blog_posts").select("title, slug, excerpt, featured_image").eq("status","published").order("published_at",{ascending:!1}).limit(3);e&&N(e)})()},[]),e.jsxs(e.Fragment,{children:[e.jsx(t,{title:"Página Não Encontrada",description:"A página que você procura não existe mais, mas estamos sempre com você! Conheça nossos serviços de rastreamento, assistência 24h, gestão de frotas e seguros.",noIndex:!0}),e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(r,{viewMode:p,onViewModeChange:u}),e.jsxs("main",{className:"flex-1",children:[e.jsx("section",{className:"py-16 md:py-24 px-4 bg-gradient-to-br from-primary/5 via-background to-primary/10",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("span",{className:"text-7xl md:text-9xl font-bold text-primary/20",children:"404"}),e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-foreground mt-4 mb-4",children:"Parece que essa página não existe mais, mas estamos sempre com você!"}),e.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:"A página que você procura pode ter sido movida ou removida. Veja abaixo como podemos ajudar."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(n,{asChild:!0,size:"lg",children:e.jsx(o,{to:"/",children:"Voltar ao Início"})}),e.jsx(n,{asChild:!0,variant:"outline",size:"lg",children:e.jsxs(o,{to:"/blog",children:[e.jsx(m,{className:"mr-2 h-5 w-5"}),"Visite Nosso Blog"]})})]})]})}),e.jsx("section",{className:"py-12 px-4 bg-background",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsx("h2",{className:"text-2xl font-bold text-center text-foreground mb-8",children:"Conheça Nossas Soluções"}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:j.map(s=>e.jsx(o,{to:s.href,children:e.jsx(l,{className:"h-full hover:shadow-lg transition-shadow cursor-pointer border-primary/10 hover:border-primary/30",children:e.jsxs(c,{className:"pt-6 text-center",children:[e.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(s.icon,{className:"w-7 h-7 text-primary"})}),e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.description})]})})},s.href))})]})}),f.length>0&&e.jsx("section",{className:"py-12 px-4 bg-muted/30",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsx("h2",{className:"text-2xl font-bold text-center text-foreground mb-8",children:"Posts Recentes do Blog"}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:f.map(s=>e.jsx(o,{to:`/blog/${s.slug}`,children:e.jsxs(l,{className:"h-full hover:shadow-lg transition-shadow cursor-pointer overflow-hidden",children:[s.featured_image&&e.jsx("img",{src:s.featured_image,alt:s.title,className:"w-full h-48 object-cover",loading:"lazy"}),e.jsxs(c,{className:"pt-4",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2 line-clamp-2",children:s.title}),s.excerpt&&e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-3",children:s.excerpt})]})]})},s.slug))})]})}),e.jsx("section",{className:"py-12 px-4 bg-background",children:e.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[e.jsx("h2",{className:"text-2xl font-bold text-foreground mb-6",children:"Precisa de Ajuda?"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(n,{size:"lg",className:"bg-[#25D366] hover:bg-[#20BA5A] text-white",onClick:()=>window.open("https://wa.me/558001118686","_blank"),children:[e.jsx(g,{className:"mr-2 h-5 w-5"}),"WhatsApp"]}),e.jsxs(n,{variant:"outline",size:"lg",onClick:()=>window.open("tel:08001118686"),children:[e.jsx(h,{className:"mr-2 h-5 w-5"}),"0800 111 8686"]})]})]})})]}),e.jsx(i,{})]})]})};export{f as default};