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

export const metadata: Metadata = {
  title: "Capital Raising",
  description:
    "Investor discovery, strategic introductions, capital raising advisory, and due diligence support — the services that carry a prepared organization through to introduction.",
  alternates: { canonical: "/services/capital-raising" },
  openGraph: {
    title: "Capital Raising — ROPTS Venture Capital",
    description:
      "Once an organization is prepared, Capital Raising is where ROPTS identifies the right investors, makes the introduction, and supports the process through to the investor's own diligence.",
    type: "website",
    url: "/services/capital-raising",
  },
};

const subServices = [
  {
    title: "Investor Discovery",
    href: "/services/capital-raising/investor-discovery",
    description: "Identifying investors and partners whose stage, sector, and mandate genuinely match your raise.",
  },
  {
    title: "Strategic Introductions",
    href: "/services/capital-raising/strategic-introductions",
    description: "Curated, warm introductions to matched investors — where ROPTS's direct involvement ends.",
  },
  {
    title: "Capital Raising Advisory",
    href: "/services/capital-raising/capital-raising-advisory",
    description: "Guidance through the mechanics of an active raise, from outreach sequencing to term conversations.",
  },
  {
    title: "Due Diligence Support",
    href: "/services/capital-raising/due-diligence-support",
    description: "Document readiness and data room preparation ahead of an investor's own diligence process.",
  },
];

const serviceJsonLd = {
  "@context": "https://schema.org",
  "@type": "Service",
  name: "Capital Raising",
  description:
    "Capital raising services covering investor discovery, strategic introductions, capital raising advisory, and due diligence support.",
  provider: { "@type": "Organization", name: "ROPTS Venture Capital" },
};

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

      <PageHero
        breadcrumb={[
          { label: "Home", href: "/" },
          { label: "Services", href: "/services" },
          { label: "Capital Raising" },
        ]}
        eyebrow="Services"
        title="Capital Raising"
        description="Once an organization is prepared, Capital Raising is where ROPTS identifies the right investors, makes the introduction, and supports readiness through the investor's own diligence. The investment decision and terms remain between you and them."
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="How It Works"
        secondaryHref="/how-it-works"
      />

      <section className="container py-16 md:py-20">
        <h2 className="sr-only">Capital Raising Services</h2>
        <div className="grid gap-6 sm:grid-cols-2">
          {subServices.map((service) => (
            <Link key={service.href} href={service.href} className="block focus:outline-none">
              <Card className="h-full">
                <CardHeader>
                  <CardTitle>{service.title}</CardTitle>
                </CardHeader>
                <div className="p-6 pt-3">
                  <CardDescription>{service.description}</CardDescription>
                </div>
              </Card>
            </Link>
          ))}
        </div>
      </section>

      <CtaSection
        title="Ready to be matched with the right investors?"
        description="Apply in minutes. There is no cost, and no obligation until an introduction is made."
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="How It Works"
        secondaryHref="/how-it-works"
      />
    </>
  );
}
