import React from 'react';
import { motion } from 'motion/react';

export const BRAND = {
  name: 'PANIA Digital Academy',
  tagline: 'Practical learning. Purposeful progress.',
  taglineFull: 'Building skills. Advancing careers. Strengthening workplaces.',
  location: 'Nairobi · Fully online',
  email: 'contact@pania.com',
  phone: '+254 101 936 893',
  phoneHref: 'tel:+254101936893',
  whatsapp: 'https://wa.me/254101936893?text=Hello%20PANIA%2C%20I%20am%20interested%20in%20learning%20with%20you.',
  logo: '/assets/aistudio/Transparent_green_logo_with_citron_ribbon_a9ac7fbd.png',
  ceo: '/assets/aistudio/James_Omego-_CEO_071d2539.png',
};

export function Logo({ className = 'h-9 w-auto object-contain' }: { className?: string }) {
  return (
    <img
      src={BRAND.logo}
      alt={BRAND.name}
      className={`w-auto object-contain ${className}`}
    />
  );
}

export function Reveal({
  children,
  className = '',
  delay = 0,
}: {
  children: React.ReactNode;
  className?: string;
  delay?: number;
}) {
  return (
    <motion.div
      className={className}
      initial={{ opacity: 0, y: 24 }}
      whileInView={{ opacity: 1, y: 0 }}
      viewport={{ once: true, margin: '-60px' }}
      transition={{ duration: 0.6, delay, ease: [0.2, 0.8, 0.2, 1] }}
    >
      {children}
    </motion.div>
  );
}
