import type { Metadata } from 'next';
import { Plus_Jakarta_Sans, Fraunces } from 'next/font/google';
import './globals.css';
import { cn } from '@/lib/utils';
import ScrollToTop from '@/components/custom/scrollToTop';

const jakarta = Plus_Jakarta_Sans({
  subsets: ['latin'],
  variable: '--font-sans',
  display: 'swap',
});

const fraunces = Fraunces({
  subsets: ['latin'],
  variable: '--font-display',
  display: 'swap',
});

export const metadata: Metadata = {
  title: 'Ignite-100 | TechTan',
  description:
    'Apply for the TechTan Ignite-100 program — 3 months of intensive tech training across Web Development, Data Analytics, Product Design, Digital Marketing, and AI & Automation.',
  openGraph: {
    title: 'Apply for Ignite-100 | TechTan',
    description: 'Join the next generation of tech professionals. Apply now.',
    type: 'website',
  },
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en" className={cn(jakarta.variable, fraunces.variable)}>
      <body className="min-h-screen antialiased font-sans bg-gray-50 text-gray-900">
        <ScrollToTop />
        {children}
      </body>
    </html>
  );
}