import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Poppins } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";

const halant = Halant({
  variable: "--font-halant",
  subsets: ["latin"],
  weight: ["300", "400", "500", "600", "700"],
});

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

const poppins = Poppins({
  variable: "--font-poppins",
  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});

export const metadata: Metadata = {
  title: "Marlils Studio – Contemporary Creative Design",
  description: "Marlils is a contemporary creative studio specializing in interior design, graphic design, branding, and custom objects. Founded by Laura and Maria.",
  keywords: "interior design, graphic design, branding, custom objects, creative studio, design services",
  openGraph: {
    title: "Marlils Studio – Contemporary Creative Design",
    description: "Contemporary creative studio creating spaces and identities meant to be lived in, not just admired.",
    siteName: "Marlils Studio",
    type: "website",
    images: [
      {
        url: "http://img.b2bpic.net/free-photo/minimalist-modern-vases-books-arrangement_23-2149681092.jpg",
        alt: "Marlils Studio",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Marlils Studio – Contemporary Creative Design",
    description: "Contemporary creative studio specializing in interior design, graphic design, and branding.",
    images: ["http://img.b2bpic.net/free-photo/minimalist-modern-vases-books-arrangement_23-2149681092.jpg"],
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body
          className={`${halant.variable} ${inter.variable} ${poppins.variable} antialiased`}
        >
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
          }}
        />
        </body>
      </ServiceWrapper>
    </html>
  );
}