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 { Archivo } from "next/font/google";



export const metadata: Metadata = {
  title: 'ObjectionIQ | AI-Powered Sales Objection Handling SaaS',
  description: 'Boost your sales team\'s performance with ObjectionIQ\'s AI-powered real-time guidance and post-call analytics for mastering sales objections.',
  keywords: ["sales SaaS, objection handling, AI sales, sales enablement, real-time coaching, sales analytics"],
  openGraph: {
    "title": "ObjectionIQ | AI-Powered Sales Objection Handling SaaS",
    "description": "Boost your sales team's performance with ObjectionIQ's AI-powered real-time guidance and post-call analytics for mastering sales objections.",
    "url": "https://www.objectioniq.com",
    "siteName": "ObjectionIQ",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/businessman-studying-infographics-performance-metrics_482257-122632.jpg",
        "alt": "AI-powered sales dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "ObjectionIQ | AI-Powered Sales Objection Handling SaaS",
    "description": "Boost your sales team's performance with ObjectionIQ's AI-powered real-time guidance and post-call analytics for mastering sales objections.",
    "images": [
      "http://img.b2bpic.net/free-photo/businessman-studying-infographics-performance-metrics_482257-122632.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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