"use client"; import { useState } from "react"; import { motion } from "framer-motion"; import Image from "next/image"; const RoyalFeastsIcon = () => ( Royal Feasts ); const HeritageDinnersIcon = () => ( Heritage Dinners ); const PrivateGatheringsIcon = () => ( Private Gatherings ); const KudumbaDiningIcon = () => ( Kudumba Dining Experience ); export default function EventsAccordion() { const [activeIdx, setActiveIdx] = useState(3); // Set Kudumba Dining (index 3) active by default const events = [ { title: "Royal Feasts", tamilTitle: "கல்யாண விருந்து", subtitle: "WEDDING BANQUETS", desc: "Our South Indian catering service in Waterloo brings authentic flavours to weddings, family gatherings, and corporate events. Enjoy traditional multi-course menus for a true South Indian dining experience.", icon: RoyalFeastsIcon, bgImage: "/images/home/royal/cards/royal-feast.webp", }, { title: "Heritage Dinners", tamilTitle: "ஆயுள் விருந்து", subtitle: "ANNIVERSARIES & MILESTONES", desc: "Celebrate life's biggest moments with a truly memorable dinner venue in Waterloo. Our heritage dining experience honors milestones and family chapters in an intimate, warm-lit setting designed for meaningful gatherings.", icon: HeritageDinnersIcon, bgImage: "/images/home/royal/cards/heritage-dinner.webp", }, { title: "Private Gatherings", tamilTitle: "சபை கூட்டங்கள்", subtitle: "CORPORATE COLLABORATIONS", desc: "Looking for a corporate event venue in Waterloo? Host meetings, presentations, and executive dining in our private rosewood boardroom, complemented by gourmet South Indian catering for a refined and professional experience.", icon: PrivateGatheringsIcon, bgImage: "/images/home/royal/cards/private-gatherings.webp", }, { title: "Kudumba Dining", tamilTitle: "குடும்ப விருந்து", subtitle: "GRAND FAMILY REUNIONS", desc: "Bring the whole family together at Waterloo's most authentic family reunion venue. Our Kudumba Dining experience recreates a true South Indian heritage reunion, complete with traditional brass servers and live folklore music that brings generations closer.", icon: KudumbaDiningIcon, bgImage: "/images/home/royal/cards/kudumba-dining.webp", }, ]; return (
{/* Background Decorative Layer 1: Pillars setting in soft focus */}
{/* Background Decorative Layer 2: Parchment Overlay */}
{/* Traditional Temple Borders */}
{/* Ornate Hanging Brass Lamp - Left Side */}
{/* hanging chain line */} {/* hanging rings */} {/* Diya body structure */} {/* bottom bell */} {/* animated flames drop shadows */} {/* light glow screen blending */}
{/* Ornate Hanging Brass Lamp - Right Side */}
{/* hanging chain line */} {/* hanging rings */} {/* Diya body structure */} {/* bottom bell */} {/* animated flames drop shadows */} {/* light glow screen blending */}
{/* Shared SVG Radial Gradient for lamp glows */}
{/* Title Block Header */} {/* Gold Star/Diamond Emblem header */}
❖ CELEBRATIONS ❖
{/* Main Headline */}

Royal Assemblies & Events

{/* Traditional Gold leaf Divider */}
{/* Subheading / tagline */} Where Tradition Meets Grandeur {/* Bio tagline details */}

From intimate royal gatherings to grand celebrations, experience curated culinary journeys that leave lasting impressions.

{events.map((event, idx) => { const isActive = idx === activeIdx; const CategoryIcon = event.icon; // Compute dynamic width flex basis classes const flexClass = isActive ? "flex-[4] lg:flex-[3.5] bg-opacity-100" : "flex-[0.8] lg:flex-[0.8] opacity-80 lg:opacity-95 hover:opacity-100"; return (
setActiveIdx(idx)} className={`clickable flex-1 flex flex-col justify-between rounded-2xl border border-[#d8c396]/45 transition-all duration-700 ease-out relative overflow-hidden shadow-sm bg-[#fcfaf2]/90 ${flexClass}`} > {/* Background Image Overlay for Opened Active Card */} {isActive && event.bgImage && (
{event.title}
)} {/* Thin inner Gold border outline frame */}
{/* Accent strip (horizontal on mobile, vertical on desktop) */}
{/* ==================== CLOSED VIEW CARD ==================== */} {!isActive && (
{/* Circle icon container */}
{/* Title text */}

{event.title}

{/* Lotus watermark at bottom (Desktop only) */}
{/* Circle number badge */}
0{idx + 1}
)} {/* ==================== OPENED VIEW CARD ==================== */} {isActive && (
{/* Top Notch Shield Overlay */}
{/* Details content section */}
{/* Double gold-rim circle icon container */}
{/* Header subtitles */}
{event.subtitle}

{event.title}

— {event.tamilTitle} —

{/* Bio narrative */}

{event.desc}

{/* Notched Enquire CTA Button */}
{/* Bottom Right Card Number Indicator */}
0{idx + 1}
)}
); })}
); }