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: "CSR & Grants",
  description:
    "Structured CSR partnership matchmaking, grant discovery, government funding guidance, and impact investment advisory for organizations and corporate CSR teams. ROPTS advises and introduces only.",
  alternates: { canonical: "/services/csr-and-grants" },
  openGraph: {
    title: "CSR & Grants — ROPTS Venture Capital",
    description:
      "CSR Partnership, Corporate CSR Matchmaking, Grant Discovery, Government Funding Guidance, and Impact Investment Advisory — connecting organizations with the funders and programs that fit their focus area.",
    type: "website",
    url: "/services/csr-and-grants",
  },
};

const jsonLd = {
  "@context": "https://schema.org",
  "@type": "Service",
  serviceType: "CSR and Grants Advisory",
  provider: { "@type": "Organization", name: "ROPTS Venture Capital" },
  description:
    "Advisory and introduction services connecting organizations with CSR partners, grant programs, government funding schemes, and impact investors, and helping corporate CSR teams find vetted organizations to partner with.",
  areaServed: "IN",
};

const subServices = [
  {
    title: "CSR Partnership",
    slug: "csr-partnership",
    summary: "Structured, Schedule VII-aligned matching between organizations raising and corporate CSR programs.",
  },
  {
    title: "Corporate CSR Matchmaking",
    slug: "corporate-csr-matchmaking",
    summary: "For corporate CSR teams seeking vetted NGOs and trusts whose programs fit their mandated focus areas.",
  },
  {
    title: "Grant Discovery",
    slug: "grant-discovery",
    summary: "Identifying and qualifying for grant programs relevant to your organization's stage and sector.",
  },
  {
    title: "Government Funding Guidance",
    slug: "government-funding-guidance",
    summary: "Navigating eligibility and application pathways for public funding schemes.",
  },
  {
    title: "Impact Investment Advisory",
    slug: "impact-investment-advisory",
    summary: "Structuring a fundraising case for investors who weight measurable social impact alongside return.",
  },
];

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

      <PageHero
        breadcrumb={[{ label: "Home", href: "/" }, { label: "Services", href: "/services" }, { label: "CSR & Grants" }]}
        eyebrow="Services"
        title="CSR & Grants"
        description="India's CSR mandate, institutional grant programs, government schemes, and impact-oriented investors each evaluate organizations differently. ROPTS structures the case and makes the introduction on both sides of that relationship."
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="Apply as an Investor or Partner"
        secondaryHref="/apply/investor-or-partner"
      />

      <div className="container py-16">
        <div className="max-w-2xl">
          <SectionHeading
            eyebrow="Two Sides, One Match"
            title="CSR and grant funding is a matching problem for both parties"
          />
          <p className="mt-6 text-body-md text-ink-soft">
            Corporate CSR teams under India&apos;s Schedule VII mandate need vetted, compliant organizations whose programs
            map cleanly to their focus areas and reporting requirements. Organizations raising need to find the right
            CSR partner, grant program, or government scheme among many they don&apos;t have visibility into. ROPTS works
            both sides — reviewing readiness on one, vetting focus-area fit on the other — so the introduction we make
            has a real chance of turning into a working partnership.
          </p>
        </div>

        <div className="mt-16">
          <SectionHeading eyebrow="Explore by Service" title="Choose the service that matches your need" />
          <div className="mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
            {subServices.map((service) => (
              <Link key={service.slug} href={`/services/csr-and-grants/${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="Whether you're raising or funding, the right match starts with readiness"
        description="Apply as an organization seeking capital, or as a CSR partner, grant provider, or impact investor."
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="Apply as an Investor or Partner"
        secondaryHref="/apply/investor-or-partner"
      />
    </>
  );
}
