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

export const metadata: Metadata = {
  title: "Trust Funding",
  description:
    "Fundraising readiness advisory and introductions for public charitable trusts to CSR partners, grant providers, and philanthropic funders. ROPTS advises and introduces — it does not disburse funds.",
  alternates: { canonical: "/services/sector-funding/trust-funding" },
  openGraph: {
    title: "Trust Funding — ROPTS Venture Capital",
    description:
      "Governance and compliance readiness review and curated introductions for charitable trusts seeking CSR, grant, or philanthropic funding.",
    type: "website",
    url: "/services/sector-funding/trust-funding",
  },
};

const jsonLd = {
  "@context": "https://schema.org",
  "@type": "Service",
  serviceType: "Trust Funding Advisory",
  provider: { "@type": "Organization", name: "ROPTS Venture Capital" },
  description:
    "Fundraising readiness advisory and introduction service for public charitable trusts, connecting them with CSR partners, grant providers, and philanthropic organizations once governance and compliance readiness is confirmed.",
  areaServed: "IN",
};

const included = [
  {
    title: "Governance review",
    description: "A check on trust deed clarity, trustee structure, and whether decision-making and financial controls are documented the way funders expect.",
  },
  {
    title: "Compliance standing",
    description: "Confirming 12A and 80G status, and FCRA registration where foreign contributions are part of the plan, before you approach a funder.",
  },
  {
    title: "Curated introduction",
    description: "Matched to CSR partners, grant providers, or philanthropic organizations whose focus areas fit your trust's charitable purpose.",
  },
];

const faqs = [
  {
    question: "Do trusts qualify for the same funders as NGOs and Section 8 companies?",
    answer:
      "Many CSR partners and grant providers work across all three legal forms, but each has its own governance conventions. We assess your trust deed, trustee structure, and compliance standing to confirm you meet the specific expectations of the funders we'd introduce you to.",
  },
  {
    question: "What governance documentation matters most to funders?",
    answer:
      "A clear trust deed defining charitable purpose, an active and accountable trustee body, and audited financial statements are the baseline most CSR partners and institutional grant providers look for before engaging.",
  },
  {
    question: "Does ROPTS grant funds to trusts directly?",
    answer:
      "No. ROPTS is an advisory and connectivity firm. We review readiness and make introductions to CSR partners, grant providers, and philanthropic organizations — the funding decision and disbursement are theirs.",
  },
  {
    question: "What if our trust's compliance status has lapsed?",
    answer:
      "We'll identify the specific gap during the readiness review and be direct about it. Approaching funders with lapsed 12A, 80G, or FCRA status typically stalls a conversation before it starts, so resolving it comes first.",
  },
];

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

      <PageHero
        breadcrumb={[
          { label: "Home", href: "/" },
          { label: "Services", href: "/services" },
          { label: "Sector Funding", href: "/services/sector-funding" },
          { label: "Trust Funding" },
        ]}
        eyebrow="Sector Funding"
        title="Trust Funding"
        description="Governance and compliance readiness advisory, plus curated introductions, for public charitable trusts seeking CSR, grant, or philanthropic funding."
        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="The Situation" title="Trusts are evaluated on governance before program impact" />
          <p className="mt-6 text-body-md text-ink-soft">
            A charitable trust with a compelling program can still stall a funding conversation if its trust deed,
            trustee accountability, or compliance status raises questions. ROPTS reviews your governance structure and
            documentation, confirms your 12A, 80G, and FCRA standing where relevant, and only then introduces you to
            CSR partners, grant providers, or philanthropic organizations whose focus areas fit your charitable
            purpose.
          </p>
          <p className="mt-4 text-body-md text-ink-soft">
            Our role ends at introduction. ROPTS does not disburse funds itself and does not guarantee a funding
            outcome — that decision rests with the partner or provider you&apos;re introduced to.
          </p>
        </div>

        <div className="mt-16">
          <SectionHeading eyebrow="What's Included" title="Three parts of the engagement" />
          <div className="mt-8 grid gap-6 sm:grid-cols-3">
            {included.map((item) => (
              <Card key={item.title}>
                <CardHeader>
                  <CardTitle>{item.title}</CardTitle>
                  <CardDescription>{item.description}</CardDescription>
                </CardHeader>
              </Card>
            ))}
          </div>
        </div>

        <div className="mt-20 max-w-2xl">
          <h2 className="mb-6 font-display text-h1 font-normal text-ink">Frequently Asked</h2>
          <FaqAccordion items={faqs} />
        </div>
      </div>

      <CtaSection
        title="Ready to find out if your trust is funding-ready?"
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="See How It Works"
        secondaryHref="/how-it-works"
      />
    </>
  );
}
