1import{a as f,j as e}from"./data-Bf5MWwWq.js";import{L as c}from"./react-core-CODCD0Uu.js";import{E as h}from"./EditContentButton-CEw4GwC1.js";import{u as y,L as n}from"./index-CmGpZYga.js";import{S as o}from"./SEO-BaTH7UDn.js";import{a as g}from"./useAnalytics-LvmbswYz.js";import{m as i}from"./ui-motion-CUqLXSBe.js";import{b,f as j,L as N,g as v}from"./ui-icons-DnM5ulES.js";import"./button-DhuKkqGK.js";import"./ui-radix-B0erNgt_.js";import"./utils-CeQhfUqd.js";const w={"heart-pulse":e.jsx(v,{className:"w-8 h-8"}),leaf:e.jsx(N,{className:"w-8 h-8"}),users:e.jsx(j,{className:"w-8 h-8"})};function G(){const{company:t,benefits:a,loading:m,error:l,collectionsError:d}=y();if(g("Benefits"),f.useEffect(()=>{document.title=t?`Why Microgreens - ${t.name}`:"Why Microgreens - Garfield Produce Company"},[t]),m)return e.jsxs(n,{fullPage:!0,children:[e.jsx(o,{title:"Why Microgreens - Loading...",description:"Loading benefits"}),e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-primary border-r-transparent"}),e.jsx("p",{className:"mt-4 text-muted-foreground",children:"Loading..."})]})})]});if(l&&!t)return e.jsxs(n,{fullPage:!0,children:[e.jsx(o,{title:"Why Microgreens - Error",description:"Error loading benefits"}),e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsxs("div",{className:"text-center max-w-md px-4",children:[e.jsx("p",{className:"text-destructive font-semibold",children:"Error loading content"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:l||"Could not load benefits data"})]})})]});if(!a)return null;const x=[{key:"health",data:a.health},{key:"environmental",data:a.environmental},{key:"community",data:a.community}];return e.jsxs(n,{fullPage:!0,children:[d&&e.jsxs("div",{className:"bg-amber-100 dark:bg-amber-900/30 border-b border-amber-200 dark:border-amber-800 text-amber-900 dark:text-amber-100 text-center py-2 px-4 text-sm flex items-center justify-center gap-2 flex-wrap",children:[e.jsx("span",{children:d}),e.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"underline font-medium hover:no-underline",children:"Refresh to retry"})]}),e.jsx(o,{title:`Why Microgreens - ${t?.name||"Garfield Produce Company"}`,description:"Learn about the health benefits of microgreens and the environmental impact of sustainable hydroponic farming.",type:"website"}),e.jsxs("div",{className:"overflow-y-auto h-full",children:[e.jsx("section",{className:"py-12 sm:py-16 px-4 sm:px-8 lg:px-12 bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx(i.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"font-serif text-4xl sm:text-5xl font-bold text-foreground mb-4",children:"Why Microgreens?"}),e.jsx(i.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"text-xl text-muted-foreground",children:"Discover the benefits for your health, the environment, and our community"})]})}),x.map((r,p)=>e.jsx("section",{className:`py-12 sm:py-16 px-4 sm:px-8 lg:px-12 ${p%2===1?"bg-gray-50":""}`,children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs(i.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-14 h-14 flex items-center justify-center rounded-full bg-primary/10 text-primary",children:w[r.data.icon]}),e.jsx("h2",{className:"font-serif text-2xl sm:text-3xl font-bold text-foreground",children:r.data.title})]}),e.jsx(i.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},className:"text-lg text-muted-foreground mb-8 max-w-3xl",children:r.data.introduction}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:r.data.items.map((s,u)=>e.jsxs(i.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:u*.05},className:"p-5 bg-background rounded-lg border border-border",children:[e.jsxs("h3",{className:"font-semibold text-lg text-foreground mb-2 flex items-center gap-2",children:[e.jsx(b,{className:"w-4 h-4 text-primary flex-shrink-0"}),s.title]}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed pl-6",children:s.description})]},s.title))})]})},r.key)),e.jsx("section",{className:"py-12 sm:py-16 px-4 sm:px-8 lg:px-12 bg-primary text-primary-foreground",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"font-serif text-2xl sm:text-3xl font-bold mb-4",children:"Ready to Experience the Benefits?"}),e.jsx("p",{className:"text-lg opacity-90 mb-6",children:"Start incorporating nutrient-packed microgreens into your diet today."}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[e.jsx(c,{to:"/our-greens",className:"inline-flex items-center gap-2 px-6 py-3 bg-background text-foreground font-semibold rounded-md hover:opacity-90 transition-opacity",children:"Explore Our Greens"}),e.jsx(c,{to:"/about",className:"inline-flex items-center gap-2 px-6 py-3 border-2 border-primary-foreground text-primary-foreground font-semibold rounded-md hover:bg-primary-foreground hover:text-primary transition-colors",children:"Learn Our Story"})]})]})})]}
1),e.jsx(h,{pageId:"benefits"})]})}export{G as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.