import type { Metadata } from "next";
import "./globals.css";
import Header from "@/components/layout/Header";
import Footer from "@/components/layout/Footer";

// Fonts are declared in globals.css via --font-display / --font-body rather
// than next/font/google. This keeps `next build` fully offline — important
// for CI/CD runners and CentOS/WHM boxes with restricted egress. To use real
// webfonts, self-host the .woff2 files under public/fonts and load them with
// next/font/local (see docs/04-FRONTEND-SPEC.md).

export const metadata: Metadata = {
  title: "LarCare Services | Personal Home Care for Every Unique Situation",
  description:
    "LarCare Services provides personal home care, Alzheimer's & dementia care, end-of-life care, transitional care, and veteran care in Chester, SC.",
  metadataBase: new URL("https://larcareservices.com")
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <Header />
        <main>{children}</main>
        <Footer />
      </body>
    </html>
  );
}
