import type { Metadata } from "next";
import Link from "next/link";
import { PageHero } from "@/components/patterns/PageHero";
import { SectionHeading } from "@/components/patterns/SectionHeading";
import { CtaSection } from "@/components/patterns/CtaSection";
import { Card, CardHeader, CardTitle, CardDescription } from "@/components/ui/Card";

export const metadata: Metadata = {
  title: "Sector Funding",
  description:
    "Fundraising advisory and investor introductions tailored to the funding realities of startups, MSMEs, SMEs, NGOs, and trusts. ROPTS advises and introduces — it does not invest directly.",
  alternates: { canonical: "/services/sector-funding" },
  openGraph: {
    title: "Sector Funding — ROPTS Venture Capital",
    description:
      "Startup Funding, MSME Funding, SME Growth Capital, NGO Funding, and Trust Funding — advisory and introductions matched to each sector's actual funding landscape.",
    type: "website",
    url: "/services/sector-funding",
  },
};

const jsonLd = {
  "@context": "https://schema.org",
  "@type": "Service",
  serviceType: "Sector Funding Advisory",
  provider: { "@type": "Organization", name: "ROPTS Venture Capital" },
  description:
    "Fundraising advisory and introduction services organized by sector and organization type — startups, MSMEs, SMEs, NGOs, and trusts — matched to the investors and funding routes relevant to each.",
  areaServed: "IN",
};

const subServices = [
  {
    title: "Startup Funding",
    slug: "startup-funding",
    summary: "Readiness, narrative, and introductions to angel investors and VC firms for equity-stage founders.",
  },
  {
    title: "MSME Funding",
    slug: "msme-funding",
    summary: "Working-capital and growth-capital pathways for Udyam-registered micro, small, and medium enterprises.",
  },
  {
    title: "SME Growth Capital",
    slug: "sme-growth-capital",
    summary: "Structured growth capital for established SMEs scaling operations, capacity, or new markets.",
  },
  {
    title: "NGO Funding",
    slug: "ngo-funding",
    summary: "Compliance-ready fundraising positioning and introductions for registered NGOs and Section 8 companies.",
  },
  {
    title: "Trust Funding",
    slug: "trust-funding",
    summary: "Funding readiness and partner introductions for public charitable trusts with clear governance.",
  },
];

export default function SectorFundingPage() {
  return (
    <>
      <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }} />

      <PageHero
        breadcrumb={[{ label: "Home", href: "/" }, { label: "Services", href: "/services" }, { label: "Sector Funding" }]}
        eyebrow="Services"
        title="Sector Funding"
        description="Every sector raises differently. Startups pitch equity narratives; MSMEs navigate Udyam classification and working capital; NGOs and trusts must show compliance readiness before a grant conversation even starts. ROPTS matches advisory and introductions to the funding reality of your organization type."
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="See How It Works"
        secondaryHref="/how-it-works"
      />

      <div className="container py-16">
        <div className="max-w-2xl">
          <SectionHeading
            eyebrow="Why Sector Matters"
            title="The right introduction depends on the right classification"
          />
          <p className="mt-6 text-body-md text-ink-soft">
            An investor thesis, a bank&apos;s working-capital product, and a CSR program&apos;s Schedule VII focus area are
            three different funding routes with three different qualification criteria. Before ROPTS introduces your
            organization to anyone, we confirm which of these routes actually fits — your legal structure, registration
            status, and stage — so the introductions you receive are ones that can realistically convert, not a
            generic list of contacts.
          </p>
        </div>

        <div className="mt-16">
          <SectionHeading eyebrow="Explore by Sector" title="Choose the path that matches your organization" />
          <div className="mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
            {subServices.map((service) => (
              <Link key={service.slug} href={`/services/sector-funding/${service.slug}`} className="block">
                <Card className="h-full">
                  <CardHeader>
                    <CardTitle>{service.title}</CardTitle>
                    <CardDescription>{service.summary}</CardDescription>
                  </CardHeader>
                </Card>
              </Link>
            ))}
          </div>
        </div>
      </div>

      <CtaSection
        title="Not sure which sector path fits your organization?"
        description="Take the Readiness Review — it identifies the right funding route before we make any introduction."
        primaryLabel="Take the Readiness Review"
        primaryHref="/apply/organization"
        secondaryLabel="See How It Works"
        secondaryHref="/how-it-works"
      />
    </>
  );
}
