{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero",
  "type": "registry:block",
  "title": "Hero Section",
  "description": "High-impact landing hero with split/centered layout, CTA actions, media, and key statistics.",
  "dependencies": [
    "@butterflypress/core",
    "@butterflypress/astro"
  ],
  "devDependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "components/blocks/Hero.astro",
      "content": "---\nimport BpImage from \"@butterflypress/astro/primitives/BpImage.astro\"\nimport BpRichText from \"@butterflypress/astro/primitives/BpRichText.astro\"\nimport BpAction from \"@butterflypress/astro/primitives/BpAction.astro\"\nimport type { StreamBlock } from \"@butterflypress/core\"\n\ninterface Props {\n  block?: StreamBlock\n  value?: any\n  settings?: any\n  components?: Record<string, any>\n  apiBaseUrl?: string\n  localizePath?: (path: string) => string\n}\n\nconst { block, value: rawValue, apiBaseUrl, localizePath } = Astro.props\n\nconst value = rawValue || block?.value || {}\n\nconst title = value?.title || value?.heading\nconst subtitle = value?.subtitle || value?.description || value?.body || value?.text\nconst eyebrow = value?.eyebrow || value?.badge\nconst media = value?.image || value?.media\nconst actions = Array.isArray(value?.actions || value?.buttons)\n  ? value.actions || value.buttons\n  : value?.cta\n    ? [value.cta]\n    : []\n\nconst stats = Array.isArray(value?.stats) ? value.stats : []\nconst layout = value?.layout || \"split\" // \"split\" | \"centered\"\n---\n\n<section data-bp-section=\"hero\" class=\"relative py-16 md:py-24 overflow-hidden bg-background text-foreground\">\n  <div class=\"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8\">\n    {\n      layout === \"centered\" ? (\n        <div class=\"text-center max-w-3xl mx-auto\">\n          {eyebrow && (\n            <div class=\"inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold tracking-wide uppercase bg-primary/10 text-primary mb-4\">\n              {eyebrow}\n            </div>\n          )}\n          {title && <h1 class=\"text-4xl md:text-6xl font-extrabold tracking-tight mb-6\">{title}</h1>}\n          {subtitle && (\n            <div class=\"text-lg md:text-xl text-muted-foreground leading-relaxed mb-8\">\n              <BpRichText html={subtitle} localizePath={localizePath} />\n            </div>\n          )}\n          {actions.length > 0 && (\n            <div class=\"flex flex-wrap justify-center gap-4 mb-12\">\n              {actions.map((act: any, idx: number) => (\n                <BpAction\n                  action={act}\n                  localizePath={localizePath}\n                  class={`px-6 py-3 rounded-lg text-sm font-semibold transition-all ${\n                    idx === 0\n                      ? \"bg-primary text-primary-foreground hover:opacity-90 shadow-md\"\n                      : \"bg-secondary text-secondary-foreground hover:bg-secondary/80 border border-border\"\n                  }`}\n                />\n              ))}\n            </div>\n          )}\n          {media && (\n            <div class=\"rounded-2xl border border-border overflow-hidden shadow-2xl\">\n              <BpImage image={media} apiBaseUrl={apiBaseUrl} class=\"w-full h-auto object-cover max-h-[500px]\" />\n            </div>\n          )}\n        </div>\n      ) : (\n        <div class=\"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-16 items-center\">\n          <div>\n            {eyebrow && (\n              <div class=\"inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold tracking-wide uppercase bg-primary/10 text-primary mb-4\">\n                {eyebrow}\n              </div>\n            )}\n            {title && <h1 class=\"text-4xl md:text-5xl lg:text-6xl font-extrabold tracking-tight mb-6\">{title}</h1>}\n            {subtitle && (\n              <div class=\"text-lg text-muted-foreground leading-relaxed mb-8\">\n                <BpRichText html={subtitle} localizePath={localizePath} />\n              </div>\n            )}\n            {actions.length > 0 && (\n              <div class=\"flex flex-wrap gap-4 mb-8\">\n                {actions.map((act: any, idx: number) => (\n                  <BpAction\n                    action={act}\n                    localizePath={localizePath}\n                    class={`px-6 py-3 rounded-lg text-sm font-semibold transition-all ${\n                      idx === 0\n                        ? \"bg-primary text-primary-foreground hover:opacity-90 shadow-md\"\n                        : \"bg-secondary text-secondary-foreground hover:bg-secondary/80 border border-border\"\n                    }`}\n                  />\n                ))}\n              </div>\n            )}\n            {stats.length > 0 && (\n              <div class=\"grid grid-cols-2 sm:grid-cols-3 gap-6 pt-6 border-t border-border\">\n                {stats.map((st: any) => (\n                  <div>\n                    <div class=\"text-2xl md:text-3xl font-extrabold text-foreground\">{st.value || st.number}</div>\n                    <div class=\"text-xs text-muted-foreground mt-1\">{st.label || st.text}</div>\n                  </div>\n                ))}\n              </div>\n            )}\n          </div>\n          {media && (\n            <div class=\"relative\">\n              <div class=\"rounded-2xl border border-border overflow-hidden shadow-2xl\">\n                <BpImage image={media} apiBaseUrl={apiBaseUrl} class=\"w-full h-[400px] md:h-[500px] object-cover\" />\n              </div>\n            </div>\n          )}\n        </div>\n      )\n    }\n  </div>\n</section>\n",
      "type": "registry:block",
      "target": "components/blocks/Hero.astro"
    }
  ],
  "meta": {
    "framework": "astro",
    "category": "Macro-Sections",
    "blockType": "hero"
  }
}