import type { Metadata } from "next";
import "./globals.css";
import Header from "@/components/layout/Header";
import Footer from "@/components/layout/Footer";

export const metadata: Metadata = {
  title: {
    default: "Crown Rock Minerals | Mining Group | Gold & Mineral Development in Africa",
    template: "%s | Crown Rock Minerals",
  },
  description:
    "Crown Rock Minerals is a mining-focused group advancing gold, mineral exploration, greenfield development, and sustainable operations across Sudan and high-potential African regions.",
  keywords: [
    "Crown Rock Minerals",
    "mining group",
    "gold mining",
    "mineral exploration",
    "greenfield development",
    "Sudan mining",
    "Africa mining",
    "sustainable mining",
    "mining investment",
  ],
  openGraph: {
    title: "Crown Rock Minerals | Mining Group",
    description:
      "Advancing gold, mineral exploration, and sustainable mining operations across Africa.",
    url: "https://www.crownrockmin.com",
    siteName: "Crown Rock Minerals",
    type: "website",
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" className="h-full" suppressHydrationWarning>
      <head>
        <link rel="preconnect" href="https://fonts.googleapis.com" />
        <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
        <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Barlow:wght@300;400;500&display=swap" rel="stylesheet" />
      </head>
      <body className="min-h-full flex flex-col antialiased">
        <Header />
        <main className="flex-1">{children}</main>
        <Footer />
      </body>
    </html>
  );
}
