import type { Metadata } from "next";
import { Geist_Mono, Inter, Noto_Serif_Display } from "next/font/google";
import { getLocale } from "next-intl/server";
import "./globals.css";

const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin", "greek"],
});

const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

const notoSerifDisplay = Noto_Serif_Display({
  variable: "--font-display",
  subsets: ["latin", "greek"],
});

export const metadata: Metadata = {
  metadataBase: new URL("https://alya.gr"),
  title: {
    default: "Alya Paros",
    template: "%s | Alya Paros",
  },
  description:
    "A calm Cycladic home in Paros with direct booking, bilingual information, and secure guest communication.",
};

export default async function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  const locale = await getLocale();

  return (
    <html
      lang={locale}
      className={`${inter.variable} ${geistMono.variable} ${notoSerifDisplay.variable} h-full scroll-smooth antialiased`}
    >
      <body className="min-h-full bg-background text-foreground">
        {children}
      </body>
    </html>
  );
}
