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



export const metadata: Metadata = {
  title: 'Elegance & Flow | Premium Interior Design & Digital Products',
  description: 'Transform your space and business with premium interior design consultations, Notion templates, and digital products on making your home cozy and earning online. Elevate your lifestyle.',
  keywords: ["interior design, home decor, notion templates, digital products, Pinterest marketing, make money online, cozy home, design consultations, online business, aesthetic living"],
  openGraph: {
    "title": "Elegance & Flow | Premium Interior Design & Digital Products",
    "description": "Transform your space and business with premium interior design consultations, Notion templates, and digital products on making your home cozy and earning online. Elevate your lifestyle.",
    "url": "https://www.eleganceandflow.com",
    "siteName": "Elegance & Flow",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/sofa_1203-3069.jpg",
        "alt": "Luxurious and cozy modern living room interior design"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Elegance & Flow | Premium Interior Design & Digital Products",
    "description": "Transform your space and business with premium interior design consultations, Notion templates, and digital products on making your home cozy and earning online. Elevate your lifestyle.",
    "images": [
      "http://img.b2bpic.net/free-photo/sofa_1203-3069.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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