import type { Metadata } from "next";
import { Oswald, Playfair_Display } from "next/font/google";
import "./globals.css";
import Navbar from "./components/Navbar";

import Footer from "./components/Footer";
import SmoothScroll from "./components/SmoothScroll";

const oswald = Oswald({
  variable: "--font-oswald",
  subsets: ["latin", "latin-ext"],
  weight: ["200", "300", "400", "500", "600", "700"],
});

const playfair = Playfair_Display({
  variable: "--font-playfair",
  subsets: ["latin", "latin-ext"],
});

export const metadata: Metadata = {
  title: "Salmakis Resort & Spa | Official Website",
  description: "Experience the magic of the Aegean at Salmakis Resort & Spa Bodrum. Luxury accommodation, spa, and beach experience.",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="tr" className={`${oswald.variable} ${playfair.variable}`}>
      <body className="antialiased min-h-screen flex flex-col font-sans selection:bg-gold/30">
        <Navbar />
        <SmoothScroll>
          <main className="flex-grow">
            {children}
          </main>
          <Footer />

        </SmoothScroll>
      </body>
    </html>
  );
}
