import type { Metadata } from "next";
import { PageHero } from "@/components/patterns/PageHero";
import { SectionHeading } from "@/components/patterns/SectionHeading";
import { Timeline } from "@/components/patterns/Timeline";
import { FaqAccordion } from "@/components/patterns/FaqAccordion";
import { CtaSection } from "@/components/patterns/CtaSection";

export const metadata: Metadata = {
  title: "Grant Discovery",
  description:
    "Identifying and qualifying for grant programs relevant to your organization's stage, sector, and compliance standing. ROPTS advises and introduces — it does not award or disburse grants.",
  alternates: { canonical: "/services/csr-and-grants/grant-discovery" },
  openGraph: {
    title: "Grant Discovery — ROPTS Venture Capital",
    description:
      "A structured process for identifying grant programs you're actually eligible for and preparing a qualifying application.",
    type: "website",
    url: "/services/csr-and-grants/grant-discovery",
  },
};

const jsonLd = {
  "@context": "https://schema.org",
  "@type": "Service",
  serviceType: "Grant Discovery Advisory",
  provider: { "@type": "Organization", name: "ROPTS Venture Capital" },
  description:
    "Advisory service that identifies grant programs matching an organization's sector, stage, and compliance standing, and helps prepare a qualifying application. Does not award or disburse grant funds.",
  areaServed: "IN",
};

const process = [
  {
    label: "Step 1",
    title: "Profile intake",
    description: "We review your sector, stage, geography, and compliance standing to establish what you actually qualify for.",
  },
  {
    label: "Step 2",
    title: "Program identification",
    description: "We identify grant programs — corporate, institutional, or foundation-run — whose eligibility criteria genuinely match your profile.",
  },
  {
    label: "Step 3",
    title: "Qualification review",
    description: "We flag any documentation or compliance gap that would disqualify an application before you invest time preparing one.",
  },
  {
    label: "Step 4",
    title: "Application preparation support",
    description: "We help structure your application narrative around what each program's evaluators are actually scoring for.",
  },
  {
    label: "Step 5",
    title: "Submission and introduction",
    description: "Where our network includes a direct relationship with the grant provider, we make the introduction. The award decision is theirs.",
  },
];

const faqs = [
  {
    question: "Does ROPTS guarantee we'll receive a grant?",
    answer:
      "No. Grant Discovery identifies programs you're genuinely eligible for and helps you prepare a qualifying application. The award decision is made entirely by the grant provider and depends on their own evaluation criteria and available budget.",
  },
  {
    question: "What kinds of grant programs does this cover?",
    answer:
      "Corporate CSR-linked grants, foundation and philanthropic grants, and institutional grant programs relevant to your sector. Government scheme-linked funding is covered separately under Government Funding Guidance, though we'll flag overlap where it exists.",
  },
  {
    question: "How do you determine which grants we qualify for?",
    answer:
      "We look at your registration type, compliance standing, sector focus, and stage of operation against each program's published eligibility criteria — the goal is to avoid you spending weeks on an application you were never eligible for.",
  },
  {
    question: "What if we don't currently qualify for any relevant grants?",
    answer:
      "We'll tell you plainly what's missing — typically a compliance gap or a documentation gap — so you know exactly what to fix before revisiting grant applications.",
  },
];

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

      <PageHero
        breadcrumb={[
          { label: "Home", href: "/" },
          { label: "Services", href: "/services" },
          { label: "CSR & Grants", href: "/services/csr-and-grants" },
          { label: "Grant Discovery" },
        ]}
        eyebrow="CSR & Grants"
        title="Grant Discovery"
        description="A structured process to identify grant programs you're genuinely eligible for, and prepare an application that qualifies — rather than applying broadly and hoping."
        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="Most grant applications fail on eligibility, not merit" />
          <p className="mt-6 text-body-md text-ink-soft">
            Organizations often spend weeks preparing a grant application only to be disqualified on a criterion they
            could have checked upfront — a registration type, a compliance gap, or a sector mismatch with the
            program&apos;s actual mandate. ROPTS reviews your profile against the published eligibility criteria of
            relevant corporate, institutional, and foundation grant programs before you invest time in an application,
            then helps structure the narrative around what each program&apos;s evaluators are scoring for.
          </p>
          <p className="mt-4 text-body-md text-ink-soft">
            ROPTS does not award or disburse grants itself, and does not guarantee an outcome. Our role is to make
            sure the applications you submit are ones you were genuinely eligible for.
          </p>
        </div>

        <div className="mt-16 max-w-2xl">
          <SectionHeading eyebrow="The Process" title="Five steps from profile to introduction" />
          <div className="mt-8">
            <Timeline steps={process} />
          </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 which grant programs you qualify for?"
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="See How It Works"
        secondaryHref="/how-it-works"
      />
    </>
  );
}
