import { Hero } from "@/components/sections/Hero";
import { Team } from "@/components/sections/Team";
import { About } from "@/components/sections/About";
import { Classes } from "@/components/sections/Classes";
import { MasterClasses } from "@/components/sections/MasterClasses";
import { Schedule } from "@/components/sections/Schedule";
import { Pricing } from "@/components/sections/Pricing";
import { News } from "@/components/sections/News";
import { FAQ } from "@/components/sections/FAQ";
import { Contact } from "@/components/sections/Contact";
import { BackToTop } from "@/components/ui/BackToTop";
import { FloatingContact } from "@/components/ui/FloatingContact";
import { Header } from "@/components/layout/Header";
import { Footer } from "@/components/layout/Footer";
import { getContent } from "@/lib/content";
import { OpenDay } from "@/components/sections/OpenDay";
import { getActiveOpenDay } from "@/lib/openDay";

export default function HomePage() {
  const content = getContent();
  const openDayData = getActiveOpenDay();

  return (
    <>
      <Header />
      <main>
        <Hero data={content.hero} />
        {openDayData && <OpenDay data={openDayData} />}
        <About
          data={content.about}
          stats={{
            trainers: content.team.members.length,
            classes: content.classes.items.length,
            locations: content.schedule.locations.length,
          }}
        />
        <Team data={content.team} schedule={content.schedule.locations} />
        <Classes data={content.classes} />
        <MasterClasses data={content.masterClasses} />
        <Schedule data={content.schedule} classItems={content.classes.items} />
        <Pricing data={content.pricing} />
        <News data={content.news} />
        <FAQ data={content.faq} />
        <Contact data={content.contact} />
        <BackToTop />
        <FloatingContact />
      </main>
      <Footer />
    </>
  );
}
