{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ds-footer-cta",
  "title": "Footer CTA",
  "description": "Bloco de rodapé integrado com cartão de conversão de alto impacto posicionado antes dos links.",
  "dependencies": [
    "class-variance-authority",
    "lucide-react"
  ],
  "registryDependencies": [
    "@lema-ds/button",
    "@lema-ds/ds-social-links",
    "@lema-ds/ds-footer-bottom-bar",
    "@lema-ds/ds-footer-menu",
    "@lema-ds/ui-i18n",
    "@lema-ds/ds-locale-provider",
    "@lema-ds/tokens"
  ],
  "files": [
    {
      "path": "components/ds/ds-footer-cta.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { ArrowRightIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { type UILocale } from \"@/lib/ui-i18n\"\nimport { useUILocale } from \"@/components/ui/ds-locale-provider\"\nimport { Button } from \"@/components/ui/button\"\nimport { SocialLinks, type SocialLinkItem } from \"./ds-social-links\"\nimport { FooterBottomBar, type LegalLinkItem } from \"./ds-footer-bottom-bar\"\nimport { FooterMenu, type FooterGroupData } from \"./ds-footer-menu\"\n\n// ── Types ──\n\nexport interface FooterCtaAction {\n  label: string\n  href?: string\n  onClick?: () => void\n}\n\nexport interface FooterCtaProps\n  extends\n    React.HTMLAttributes<HTMLElement>,\n    VariantProps<typeof footerCtaVariants> {\n  ctaTitle?: string\n  ctaDescription?: string\n  primaryAction?: FooterCtaAction\n  secondaryAction?: FooterCtaAction\n  columns?: FooterGroupData[]\n  brand?: React.ReactNode\n  socialLinks?: SocialLinkItem[]\n  brandName?: string\n  legalLinks?: LegalLinkItem[]\n  locale?: UILocale\n}\n\n// ── Variants ──\n\nexport const footerCtaVariants = cva(\n  \"relative w-full border-t border-border bg-background pt-16 pb-12\",\n  {\n    variants: {\n      ctaTone: {\n        card: \"border-border bg-card\",\n        primary: \"border-transparent bg-primary text-primary-foreground\",\n        glow: \"border-primary/20 bg-card/80 shadow-lg shadow-primary/5\",\n      },\n    },\n    defaultVariants: {\n      ctaTone: \"glow\",\n    },\n  }\n)\n\n// ── Component ──\n\nexport const FooterCta = React.forwardRef<HTMLElement, FooterCtaProps>(\n  (\n    {\n      ctaTitle = \"Ready to transform your digital experience?\",\n      ctaDescription = \"Join researchers, developers, and students building modern web applications with the LEMA Design System.\",\n      primaryAction = {\n        label: \"Get started now\",\n        href: \"#\",\n      },\n      secondaryAction = {\n        label: \"Talk to the team\",\n        href: \"#\",\n      },\n      columns = [\n        {\n          title: \"Product\",\n          options: [\n            { name: \"Components\", url: \"#\" },\n            { name: \"Tokens\", url: \"#\" },\n            { name: \"Templates\", url: \"#\" },\n          ],\n        },\n        {\n          title: \"Developers\",\n          options: [\n            { name: \"Documentation\", url: \"#\" },\n            { name: \"GitHub\", url: \"#\" },\n            { name: \"Registry\", url: \"#\" },\n          ],\n        },\n        {\n          title: \"Institutional\",\n          options: [\n            { name: \"About LEMA\", url: \"#\" },\n            { name: \"UFPB\", url: \"#\" },\n            { name: \"Contact\", url: \"#\" },\n          ],\n        },\n      ],\n      brand,\n      socialLinks = [\n        { platform: \"github\", href: \"https://github.com\" },\n        { platform: \"x\", href: \"https://x.com\" },\n        { platform: \"linkedin\", href: \"https://linkedin.com\" },\n      ],\n      brandName = \"LEMA - UFPB\",\n      legalLinks,\n      ctaTone = \"glow\",\n      locale: localeProp,\n      className,\n      ...props\n    },\n    ref\n  ) => {\n    const locale = useUILocale(localeProp)\n    return (\n      <footer\n        ref={ref}\n        className={cn(footerCtaVariants({ ctaTone }), className)}\n        {...props}\n      >\n        <div className=\"mx-auto flex max-w-7xl flex-col gap-16 px-4 sm:px-6 lg:px-8\">\n          {/* CTA Card / Band */}\n          <div\n            className={cn(\n              \"relative overflow-hidden rounded-3xl border p-8 transition-all md:p-12\",\n              ctaTone === \"primary\"\n                ? \"border-transparent bg-primary text-primary-foreground\"\n                : ctaTone === \"glow\"\n                  ? \"border-primary/20 bg-card shadow-xl shadow-primary/5\"\n                  : \"border-border bg-card\"\n            )}\n          >\n            {/* Ambient subtle glow background */}\n            <div\n              className=\"pointer-events-none absolute -top-16 -right-16 size-72 rounded-full bg-primary/10 blur-3xl\"\n              aria-hidden=\"true\"\n            />\n            <div\n              className=\"pointer-events-none absolute -bottom-16 -left-16 size-72 rounded-full bg-highlight-violet/10 blur-3xl\"\n              aria-hidden=\"true\"\n            />\n\n            <div className=\"relative z-10 flex flex-col items-start justify-between gap-8 md:flex-row md:items-center\">\n              <div className=\"flex max-w-2xl flex-col gap-3\">\n                <h2 className=\"text-2xl font-bold tracking-tight md:text-3xl lg:text-4xl\">\n                  {ctaTitle}\n                </h2>\n                {ctaDescription && (\n                  <p\n                    className={cn(\n                      \"text-sm leading-relaxed md:text-base\",\n                      ctaTone === \"primary\"\n                        ? \"text-primary-foreground/80\"\n                        : \"text-muted-foreground\"\n                    )}\n                  >\n                    {ctaDescription}\n                  </p>\n                )}\n              </div>\n\n              <div className=\"flex shrink-0 flex-wrap items-center gap-3\">\n                {primaryAction && (\n                  <Button\n                    asChild={Boolean(primaryAction.href)}\n                    size=\"lg\"\n                    onClick={primaryAction.onClick}\n                    variant={ctaTone === \"primary\" ? \"secondary\" : \"default\"}\n                    className=\"gap-2 font-semibold\"\n                  >\n                    {primaryAction.href ? (\n                      <a href={primaryAction.href}>\n                        <span>{primaryAction.label}</span>\n                        <ArrowRightIcon className=\"size-4\" aria-hidden=\"true\" />\n                      </a>\n                    ) : (\n                      <>\n                        <span>{primaryAction.label}</span>\n                        <ArrowRightIcon className=\"size-4\" aria-hidden=\"true\" />\n                      </>\n                    )}\n                  </Button>\n                )}\n\n                {secondaryAction && (\n                  <Button\n                    asChild={Boolean(secondaryAction.href)}\n                    size=\"lg\"\n                    variant={ctaTone === \"primary\" ? \"ghost\" : \"outline\"}\n                    onClick={secondaryAction.onClick}\n                    className=\"font-medium\"\n                  >\n                    {secondaryAction.href ? (\n                      <a href={secondaryAction.href}>{secondaryAction.label}</a>\n                    ) : (\n                      <span>{secondaryAction.label}</span>\n                    )}\n                  </Button>\n                )}\n              </div>\n            </div>\n          </div>\n\n          {/* Navigation Links Grid */}\n          <div className=\"grid grid-cols-1 gap-10 lg:grid-cols-12\">\n            <div className=\"flex flex-col gap-4 lg:col-span-4\">\n              {brand || (\n                <div className=\"flex items-center gap-2 font-bold text-foreground\">\n                  <div className=\"flex size-7 items-center justify-center rounded-lg bg-primary text-xs font-bold text-primary-foreground\">\n                    L\n                  </div>\n                  <span>{brandName}</span>\n                </div>\n              )}\n\n              {socialLinks.length > 0 && (\n                <SocialLinks links={socialLinks} variant=\"ghost\" size=\"sm\" />\n              )}\n            </div>\n\n            <div className=\"lg:col-span-8\">\n              <FooterMenu data={columns} locale={locale} size=\"sm\" />\n            </div>\n          </div>\n\n          {/* Bottom Bar */}\n          <FooterBottomBar\n            brandName={brandName}\n            legalLinks={legalLinks}\n            locale={locale}\n          />\n        </div>\n      </footer>\n    )\n  }\n)\nFooterCta.displayName = \"FooterCta\"\n",
      "type": "registry:ui"
    }
  ],
  "categories": [
    "footer"
  ],
  "type": "registry:block"
}
