import type { Metadata } from "next";
import { AboutHero } from "@/components/about/AboutHero";
import { JourneyTimeline } from "@/components/about/JourneyTimeline";
import { Manifesto } from "@/components/about/Manifesto";
import { VisionSection } from "@/components/about/VisionSection";
import { BarHeader } from "@/components/layout/BarHeader";
import { PageContainer } from "@/components/layout/PageContainer";
import { SiteFooter } from "@/components/layout/SiteFooter";
import { WolfBadge } from "@/components/layout/WolfBadge";
import { ROUTES } from "@/lib/routes";
import { env } from "@/config/env";
import { siteConfig } from "@/config/site";

export const metadata: Metadata = {
  title: "About Us | Sterling Protection Partners LTD",
  description:
    "The Sterling Manifesto - A Message from Cedric Tortevoix, Founder & Director of Sterling Protection Partners Ltd.",
  alternates: {
    canonical: "/about-us",
  },
  openGraph: {
    title: "About Us | Sterling Protection Partners LTD",
    description:
      "The Sterling Manifesto - A Message from Cedric Tortevoix, Founder & Director of Sterling Protection Partners Ltd.",
    url: "/about-us",
    type: "website",
    images: [
      {
        url: `${env.siteUrl}/images/brand/logo.svg`,
        width: 300,
        height: 300,
        alt: "Sterling Protection Partners Logo",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "About Us | Sterling Protection Partners LTD",
    description:
      "The Sterling Manifesto - A Message from Cedric Tortevoix, Founder & Director of Sterling Protection Partners Ltd.",
  },
};

export default function AboutPage() {
  const aboutSchema = {
    "@context": "https://schema.org",
    "@type": "AboutPage",
    name: "About Sterling Protection Partners",
    headline: "Our Journey: 1996 to Today – The Sterling Manifesto",
    description:
      "Discover the journey, vision, and manifesto of Sterling Protection Partners Ltd. Founded by Cedric Tortevoix, delivering discreet, intelligence-led executive protection and travel risk management worldwide.",
    url: `${env.siteUrl}/about-us`,
    mainEntity: {
      "@type": "Organization",
      name: siteConfig.name,
      alternateName: siteConfig.shortName,
      url: env.siteUrl,
      logo: {
        "@type": "ImageObject",
        url: `${env.siteUrl}/images/brand/logo.svg`,
        width: 300,
        height: 300,
      },
      foundingDate: "1996",
      founder: {
        "@type": "Person",
        name: "Cedric Tortevoix",
        jobTitle: "Founder & Director",
      },
      address: {
        "@type": "PostalAddress",
        streetAddress: "2nd Floor College House, 17 King Edwards Road",
        addressLocality: "Ruislip, London",
        postalCode: "HA4 7AE",
        addressCountry: "GB",
      },
      contactPoint: [
        {
          "@type": "ContactPoint",
          telephone: "+33 7 56 97 66 87",
          contactType: "customer service",
          areaServed: ["FR", "EU"],
          availableLanguage: ["English", "French"],
        },
        {
          "@type": "ContactPoint",
          telephone: "+212 601 999 345",
          contactType: "customer service",
          areaServed: "MA",
          availableLanguage: ["English", "French", "Arabic"],
        },
      ],
      description: siteConfig.description,
      knowsAbout: [
        "Executive Protection",
        "Travel Risk Management",
        "Close Protection Training",
        "Luxury Concierge & Chauffeur Services",
        "ISO 31030:2021 Standards",
      ],
    },
    publisher: {
      "@type": "Organization",
      name: siteConfig.name,
      url: env.siteUrl,
      logo: {
        "@type": "ImageObject",
        url: `${env.siteUrl}/images/brand/logo.svg`,
        width: 300,
        height: 300,
      },
      foundingDate: "1996",
      founder: {
        "@type": "Person",
        name: "Cedric Tortevoix",
      },
      address: {
        "@type": "PostalAddress",
        streetAddress: "2nd Floor College House, 17 King Edwards Road",
        addressLocality: "Ruislip, London",
        postalCode: "HA4 7AE",
        addressCountry: "GB",
      },
      contactPoint: {
        "@type": "ContactPoint",
        telephone: "+33 7 56 97 66 87",
        contactType: "customer service",
        availableLanguage: ["English", "French"],
      },
      description: siteConfig.description,
    },
  };

  return (
    <PageContainer>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(aboutSchema) }}
      />
      <WolfBadge />
      <BarHeader activeHref={ROUTES.about} showApply />
      <AboutHero />

      <div className="relative z-[3] my-px w-full bg-white">
        <div className="mx-auto w-full max-w-[1440px]">
          <JourneyTimeline />
          <VisionSection />
        </div>
      </div>

      <Manifesto />
      <SiteFooter />
    </PageContainer>
  );
}
