const { useState, useEffect } = React;

// Smoke Effect Component
const SmokeEffect = () => {
    const [particles, setParticles] = useState([]);
    
    useEffect(() => {
        // Create initial particles
        const initialParticles = Array.from({ length: 15 }, (_, i) => ({
            id: i,
            x: Math.random() * window.innerWidth,
            y: window.innerHeight + 50,
            size: Math.random() * 30 + 20,
            opacity: Math.random() * 0.3 + 0.1,
            speed: Math.random() * 2 + 1,
            drift: (Math.random() - 0.5) * 2
        }));
        setParticles(initialParticles);

        // Animation loop
        const animateParticles = () => {
            setParticles(prevParticles => 
                prevParticles.map(particle => {
                    let newY = particle.y - particle.speed;
                    let newX = particle.x + particle.drift;
                    let newOpacity = particle.opacity;

                    // Reset particle when it goes off screen
                    if (newY < -100) {
                        newY = window.innerHeight + 50;
                        newX = Math.random() * window.innerWidth;
                        newOpacity = Math.random() * 0.3 + 0.1;
                    }

                    // Fade out as it rises
                    if (newY < window.innerHeight * 0.7) {
                        newOpacity = newOpacity * 0.995;
                    }

                    return {
                        ...particle,
                        x: newX,
                        y: newY,
                        opacity: Math.max(0, newOpacity)
                    };
                })
            );
        };

        const interval = setInterval(animateParticles, 50);
        return () => clearInterval(interval);
    }, []);

    return (
        <div style={{
            position: 'fixed',
            top: 0,
            left: 0,
            width: '100%',
            height: '100%',
            pointerEvents: 'none',
            zIndex: 1,
            overflow: 'hidden'
        }}>
            {particles.map(particle => (
                <div
                    key={particle.id}
                    style={{
                        position: 'absolute',
                        left: `${particle.x}px`,
                        top: `${particle.y}px`,
                        width: `${particle.size}px`,
                        height: `${particle.size}px`,
                        background: `radial-gradient(circle, rgba(200,200,200,${particle.opacity}) 0%, rgba(150,150,150,${particle.opacity * 0.5}) 50%, transparent 100%)`,
                        borderRadius: '50%',
                        filter: 'blur(8px)',
                        transform: 'scale(1)',
                        transition: 'opacity 0.1s ease-out'
                    }}
                />
            ))}
        </div>
    );
};

// Shared Navigation Component
const Navigation = () => {
    const [scrolled, setScrolled] = useState(false);
    const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
    const [isMobile, setIsMobile] = useState(false);

    useEffect(() => {
        const handleScroll = () => setScrolled(window.scrollY > 50);
        const handleResize = () => {
            setIsMobile(window.innerWidth <= 768);
            if (window.innerWidth > 768) setMobileMenuOpen(false);
        };

        handleResize();
        window.addEventListener('scroll', handleScroll);
        window.addEventListener('resize', handleResize);
        return () => {
            window.removeEventListener('scroll', handleScroll);
            window.removeEventListener('resize', handleResize);
        };
    }, []);

    const navLinkStyle = {
        color: 'var(--charcoal)',
        textDecoration: 'none',
        fontSize: '1rem',
        fontWeight: '500',
        transition: 'color 0.2s',
        cursor: 'pointer'
    };

    const buttonStyle = {
        display: 'inline-block',
        padding: '0.875rem 2rem',
        borderRadius: '8px',
        textDecoration: 'none',
        fontWeight: '600',
        fontSize: '1rem',
        transition: 'all 0.3s ease',
        cursor: 'pointer',
        border: 'none',
        letterSpacing: '0.02em'
    };

    return (
        <nav style={{
            position: 'fixed',
            top: 0,
            left: 0,
            right: 0,
            zIndex: 1000,
            padding: isMobile ? '1rem 1.5rem' : '1.5rem 4rem',
            background: scrolled ? 'rgba(245, 241, 232, 0.95)' : 'rgba(26, 26, 26, 0.8)',
            backdropFilter: 'blur(10px)',
            borderBottom: scrolled ? '1px solid rgba(212, 82, 42, 0.1)' : '1px solid rgba(245, 241, 232, 0.1)',
            transition: 'all 0.3s ease'
        }}>
            <div style={{
                maxWidth: '1600px',
                margin: '0 auto',
                display: 'flex',
                justifyContent: 'space-between',
                alignItems: 'center',
                flexDirection: isMobile ? 'column' : 'row'
            }}>
                <div style={{ width: '100%', display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
                    <a href="index.html" style={{
                        fontSize: '1.5rem',
                        fontWeight: '700',
                        color: scrolled ? 'var(--charcoal)' : 'var(--cream)',
                        letterSpacing: '-0.02em',
                        transition: 'color 0.3s ease',
                        textDecoration: 'none'
                    }}>SAUCY'S</a>
                    {isMobile && (
                        <button onClick={() => setMobileMenuOpen(!mobileMenuOpen)} style={{
                            background: 'none',
                            border: 'none',
                            color: scrolled ? 'var(--charcoal)' : 'var(--cream)',
                            fontSize: '1.5rem',
                            cursor: 'pointer',
                            padding: '0.5rem'
                        }}>
                            {mobileMenuOpen ? '✕' : '☰'}
                        </button>
                    )}
                </div>
                <div style={{
                    display: isMobile ? (mobileMenuOpen ? 'flex' : 'none') : 'flex',
                    gap: isMobile ? '1rem' : '3rem',
                    alignItems: 'center',
                    flexDirection: isMobile ? 'column' : 'row',
                    width: isMobile ? '100%' : 'auto',
                    marginTop: isMobile ? '1rem' : '0'
                }}>
                    <a href="menu.html" style={{ ...navLinkStyle, color: scrolled ? 'var(--charcoal)' : 'var(--cream)', width: isMobile ? '100%' : 'auto', textAlign: isMobile ? 'center' : 'left' }}>Menu</a>
                    <a href="catering.html" style={{ ...navLinkStyle, color: scrolled ? 'var(--charcoal)' : 'var(--cream)', width: isMobile ? '100%' : 'auto', textAlign: isMobile ? 'center' : 'left' }}>Catering</a>
                    <a href="location.html" style={{ ...navLinkStyle, color: scrolled ? 'var(--charcoal)' : 'var(--cream)', width: isMobile ? '100%' : 'auto', textAlign: isMobile ? 'center' : 'left' }}>Visit</a>
                    <a href="jobs.html" style={{ ...navLinkStyle, color: scrolled ? 'var(--charcoal)' : 'var(--cream)', width: isMobile ? '100%' : 'auto', textAlign: isMobile ? 'center' : 'left' }}>Jobs</a>
                    <a href="contact-us.html" style={{ ...navLinkStyle, color: scrolled ? 'var(--charcoal)' : 'var(--cream)', width: isMobile ? '100%' : 'auto', textAlign: isMobile ? 'center' : 'left' }}>Contact</a>
                    <a href="order.html" style={{ ...buttonStyle, padding: '0.75rem 2rem', textDecoration: 'none', width: isMobile ? '100%' : 'auto', textAlign: 'center', background: 'var(--terracotta)', color: 'white' }}>Order Now</a>
                </div>
            </div>
        </nav>
    );
};

// Footer Component
const Footer = () => {
    const footerLinkStyle = {
        color: 'rgba(245, 241, 232, 0.7)',
        textDecoration: 'none',
        transition: 'color 0.2s',
        cursor: 'pointer'
    };

    return (
        <footer style={{ background: 'var(--charcoal)', padding: '4rem 4rem 2rem', color: 'var(--cream)' }}>
            <div style={{ maxWidth: '1400px', margin: '0 auto' }}>
                <div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(250px, 1fr))', gap: '3rem', marginBottom: '3rem' }}>
                    <div>
                        <h3 style={{ fontSize: '2rem', fontFamily: "'DM Serif Display', serif", marginBottom: '1rem', color: 'var(--terracotta-light)' }}>Saucy's</h3>
                        <p style={{ fontSize: '0.95rem', lineHeight: '1.7', color: 'rgba(245, 241, 232, 0.7)', fontWeight: '300' }}>
                            Denver's favorite destination for authentic Southern BBQ, served with love since day one.
                        </p>
                    </div>
                    <div>
                        <h4 style={{ fontSize: '1.1rem', marginBottom: '1rem', fontWeight: '600', letterSpacing: '0.05em' }}>Quick Links</h4>
                        <div style={{ display: 'flex', flexDirection: 'column', gap: '0.75rem', fontSize: '0.95rem', fontWeight: '300' }}>
                            <a href="menu.html" style={footerLinkStyle}>Menu</a>
                            <a href="catering.html" style={footerLinkStyle}>Catering</a>
                            <a href="order.html" style={footerLinkStyle}>Order Online</a>
                            <a href="location.html" style={footerLinkStyle}>Location</a>
                            <a href="jobs.html" style={footerLinkStyle}>Jobs</a>
                            <a href="contact-us.html" style={footerLinkStyle}>Contact</a>
                        </div>
                    </div>
                    <div>
                        <h4 style={{ fontSize: '1.1rem', marginBottom: '1rem', fontWeight: '600', letterSpacing: '0.05em' }}>Connect</h4>
                        <div style={{ display: 'flex', flexDirection: 'column', gap: '0.75rem', fontSize: '0.95rem', fontWeight: '300' }}>
                            <a href="https://www.facebook.com/saucysouthern" target="_blank" rel="noopener noreferrer" style={footerLinkStyle}>Facebook</a>
                            <a href="https://www.instagram.com/saucysouthern" target="_blank" rel="noopener noreferrer" style={footerLinkStyle}>Instagram</a>
                            <a href="tel:7204846035" style={footerLinkStyle}>(720) 484-6035</a>
                        </div>
                    </div>
                </div>
                <div style={{ borderTop: '1px solid rgba(245, 241, 232, 0.1)', paddingTop: '2rem', textAlign: 'center', fontSize: '0.9rem', color: 'rgba(245, 241, 232, 0.5)', fontWeight: '300' }}>
                    © {new Date().getFullYear()} Saucy's Southern BBQ & Cuisine. All rights reserved.
                </div>
            </div>
        </footer>
    );
};

// Jobs Page
const JobsPage = () => {
    const [isMobile, setIsMobile] = React.useState(false);
    const [applicationData, setApplicationData] = React.useState({ 
        name: '', 
        email: '', 
        phone: '', 
        position: '', 
        experience: '', 
        availability: '', 
        message: '' 
    });
    const [submitted, setSubmitted] = React.useState(false);

    React.useEffect(() => {
        const handleResize = () => setIsMobile(window.innerWidth <= 768);
        handleResize();
        window.addEventListener('resize', handleResize);
        return () => window.removeEventListener('resize', handleResize);
    }, []);

    const handleSubmit = (e) => {
        e.preventDefault();
        setSubmitted(true);
        console.log('Job application submitted:', applicationData);
        setTimeout(() => {
            setSubmitted(false);
            setApplicationData({ name: '', email: '', phone: '', position: '', experience: '', availability: '', message: '' });
        }, 3000);
    };

    const buttonStyle = {
        display: 'inline-block',
        padding: '0.875rem 2rem',
        borderRadius: '8px',
        textDecoration: 'none',
        fontWeight: '600',
        fontSize: '1rem',
        transition: 'all 0.3s ease',
        cursor: 'pointer',
        border: 'none',
        letterSpacing: '0.02em'
    };

    const jobPositions = [
        {
            title: "Pit Master",
            type: "Full-time",
            description: "Lead our BBQ operations with expertise in smoking meats, maintaining consistent quality, and training team members.",
            requirements: [
                "3+ years BBQ/smoking experience",
                "Knowledge of meat temperatures and cooking times",
                "Leadership and training abilities",
                "Early morning availability (5 AM start)"
            ],
            benefits: ["Competitive salary", "Health insurance", "Paid time off", "Employee meals"]
        },
        {
            title: "Line Cook",
            type: "Full-time / Part-time",
            description: "Join our kitchen team preparing sides, sauces, and supporting BBQ operations in a fast-paced environment.",
            requirements: [
                "1+ years kitchen experience preferred",
                "Ability to work in fast-paced environment",
                "Food safety knowledge",
                "Flexible schedule including weekends"
            ],
            benefits: ["Hourly wage + tips", "Flexible scheduling", "Employee meals", "Growth opportunities"]
        },
        {
            title: "Server",
            type: "Full-time / Part-time",
            description: "Provide exceptional customer service, take orders, and ensure guests have an amazing BBQ experience.",
            requirements: [
                "Previous serving experience preferred",
                "Excellent communication skills",
                "Ability to work weekends and evenings",
                "Knowledge of BBQ and Southern cuisine a plus"
            ],
            benefits: ["Hourly wage + tips", "Flexible scheduling", "Employee meals", "Friendly team environment"]
        },
        {
            title: "Cashier/Host",
            type: "Part-time",
            description: "Welcome guests, manage takeout orders, and handle point-of-sale operations with a smile.",
            requirements: [
                "Customer service experience",
                "Cash handling experience",
                "Reliable and punctual",
                "Positive attitude and team player"
            ],
            benefits: ["Competitive hourly wage", "Flexible part-time hours", "Employee meals", "Great starter position"]
        }
    ];

    return (
        <div>
            <SmokeEffect />
            <Navigation />
            
            {/* Hero Section with Application Form */}
            <section style={{
                padding: isMobile ? '6rem 1.5rem 4rem' : '10rem 4rem 6rem',
                background: 'linear-gradient(180deg, var(--charcoal) 0%, #2a1f1a 100%)'
            }}>
                <div style={{ maxWidth: '1200px', margin: '0 auto' }}>
                    <div style={{ textAlign: 'center', marginBottom: '4rem' }}>
                        <div style={{
                            fontSize: '0.9rem',
                            letterSpacing: '0.3em',
                            color: 'var(--terracotta-light)',
                            marginBottom: '1rem',
                            fontWeight: '500',
                            textTransform: 'uppercase'
                        }}>
                            Join Our Team
                        </div>
                        <h1 style={{
                            fontSize: isMobile ? '2.5rem' : 'clamp(3rem, 6vw, 5rem)',
                            fontFamily: "'DM Serif Display', serif",
                            marginBottom: '1.5rem',
                            color: 'var(--cream)',
                            lineHeight: '1.1'
                        }}>
                            Apply <span style={{ fontStyle: 'italic', color: 'var(--terracotta-light)' }}>Today</span>
                        </h1>
                        <p style={{
                            fontSize: '1.2rem',
                            color: 'rgba(245, 241, 232, 0.8)',
                            maxWidth: '700px',
                            margin: '0 auto',
                            fontWeight: '300',
                            lineHeight: '1.7'
                        }}>
                            Ready to join Denver's favorite BBQ family? Fill out the application below and we'll get back to you soon.
                        </p>
                    </div>

                    {/* Quick Application Form */}
                    <div style={{
                        background: 'white',
                        padding: isMobile ? '2rem' : '3rem',
                        borderRadius: '16px',
                        boxShadow: '0 20px 60px rgba(0,0,0,0.1)',
                        border: '1px solid rgba(212, 82, 42, 0.1)',
                        maxWidth: '800px',
                        margin: '0 auto'
                    }}>
                        {submitted ? (
                            <div style={{ textAlign: 'center', padding: '3rem', color: 'var(--terracotta)' }}>
                                <div style={{ 
                                    width: '60px', 
                                    height: '60px', 
                                    background: 'linear-gradient(135deg, #22c55e, #16a34a)', 
                                    borderRadius: '50%', 
                                    display: 'flex', 
                                    alignItems: 'center', 
                                    justifyContent: 'center', 
                                    margin: '0 auto 1rem',
                                    boxShadow: '0 8px 25px rgba(34, 197, 94, 0.3)'
                                }}>
                                    <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="white" strokeWidth="3">
                                        <polyline points="20,6 9,17 4,12"/>
                                    </svg>
                                </div>
                                <h3 style={{ fontSize: '1.8rem', fontFamily: "'DM Serif Display', serif", marginBottom: '1rem', color: 'var(--charcoal)' }}>Application Submitted!</h3>
                                <p style={{ fontSize: '1.1rem', color: 'var(--smoke)', fontWeight: '300' }}>Thank you for your interest. We'll review your application and get back to you soon.</p>
                            </div>
                        ) : (
                            <form onSubmit={handleSubmit}>
                                <div style={{ display: 'grid', gridTemplateColumns: isMobile ? '1fr' : '1fr 1fr', gap: '1.5rem', marginBottom: '1.5rem' }}>
                                    <div>
                                        <label style={{ display: 'block', marginBottom: '0.5rem', fontSize: '0.95rem', fontWeight: '600', color: 'var(--charcoal)' }}>Full Name *</label>
                                        <input type="text" required value={applicationData.name} onChange={(e) => setApplicationData({...applicationData, name: e.target.value})} style={{ width: '100%', padding: '1rem', fontSize: '1rem', border: '2px solid rgba(212, 82, 42, 0.2)', borderRadius: '8px', fontFamily: "'Archivo', sans-serif", outline: 'none' }} />
                                    </div>
                                    <div>
                                        <label style={{ display: 'block', marginBottom: '0.5rem', fontSize: '0.95rem', fontWeight: '600', color: 'var(--charcoal)' }}>Email *</label>
                                        <input type="email" required value={applicationData.email} onChange={(e) => setApplicationData({...applicationData, email: e.target.value})} style={{ width: '100%', padding: '1rem', fontSize: '1rem', border: '2px solid rgba(212, 82, 42, 0.2)', borderRadius: '8px', fontFamily: "'Archivo', sans-serif", outline: 'none' }} />
                                    </div>
                                </div>
                                
                                <div style={{ display: 'grid', gridTemplateColumns: isMobile ? '1fr' : '1fr 1fr', gap: '1.5rem', marginBottom: '1.5rem' }}>
                                    <div>
                                        <label style={{ display: 'block', marginBottom: '0.5rem', fontSize: '0.95rem', fontWeight: '600', color: 'var(--charcoal)' }}>Phone *</label>
                                        <input type="tel" required value={applicationData.phone} onChange={(e) => setApplicationData({...applicationData, phone: e.target.value})} style={{ width: '100%', padding: '1rem', fontSize: '1rem', border: '2px solid rgba(212, 82, 42, 0.2)', borderRadius: '8px', fontFamily: "'Archivo', sans-serif", outline: 'none' }} />
                                    </div>
                                    <div>
                                        <label style={{ display: 'block', marginBottom: '0.5rem', fontSize: '0.95rem', fontWeight: '600', color: 'var(--charcoal)' }}>Position Interested In</label>
                                        <select value={applicationData.position} onChange={(e) => setApplicationData({...applicationData, position: e.target.value})} style={{ width: '100%', padding: '1rem', fontSize: '1rem', border: '2px solid rgba(212, 82, 42, 0.2)', borderRadius: '8px', fontFamily: "'Archivo', sans-serif", outline: 'none' }}>
                                            <option value="">Select position</option>
                                            <option value="Pit Master">Pit Master</option>
                                            <option value="Line Cook">Line Cook</option>
                                            <option value="Server">Server</option>
                                            <option value="Cashier/Host">Cashier/Host</option>
                                            <option value="Any Position">Any Position</option>
                                        </select>
                                    </div>
                                </div>

                                <div style={{ marginBottom: '1.5rem' }}>
                                    <label style={{ display: 'block', marginBottom: '0.5rem', fontSize: '0.95rem', fontWeight: '600', color: 'var(--charcoal)' }}>Previous Experience</label>
                                    <textarea rows="3" value={applicationData.experience} onChange={(e) => setApplicationData({...applicationData, experience: e.target.value})} placeholder="Tell us about your relevant work experience..." style={{ width: '100%', padding: '1rem', fontSize: '1rem', border: '2px solid rgba(212, 82, 42, 0.2)', borderRadius: '8px', fontFamily: "'Archivo', sans-serif", outline: 'none', resize: 'vertical' }} />
                                </div>

                                <div style={{ marginBottom: '1.5rem' }}>
                                    <label style={{ display: 'block', marginBottom: '0.5rem', fontSize: '0.95rem', fontWeight: '600', color: 'var(--charcoal)' }}>Availability</label>
                                    <textarea rows="2" value={applicationData.availability} onChange={(e) => setApplicationData({...applicationData, availability: e.target.value})} placeholder="What days and hours are you available to work?" style={{ width: '100%', padding: '1rem', fontSize: '1rem', border: '2px solid rgba(212, 82, 42, 0.2)', borderRadius: '8px', fontFamily: "'Archivo', sans-serif", outline: 'none', resize: 'vertical' }} />
                                </div>

                                <div style={{ marginBottom: '2rem' }}>
                                    <label style={{ display: 'block', marginBottom: '0.5rem', fontSize: '0.95rem', fontWeight: '600', color: 'var(--charcoal)' }}>Why do you want to work at Saucy's?</label>
                                    <textarea rows="3" value={applicationData.message} onChange={(e) => setApplicationData({...applicationData, message: e.target.value})} placeholder="Tell us why you'd be a great fit for our team..." style={{ width: '100%', padding: '1rem', fontSize: '1rem', border: '2px solid rgba(212, 82, 42, 0.2)', borderRadius: '8px', fontFamily: "'Archivo', sans-serif", outline: 'none', resize: 'vertical' }} />
                                </div>

                                <button type="submit" style={{ ...buttonStyle, background: 'var(--terracotta)', color: 'white', padding: '1.2rem 3rem', width: '100%', fontSize: '1.1rem', fontWeight: '600', cursor: 'pointer' }}>
                                    Submit Application
                                </button>
                            </form>
                        )}
                    </div>
                </div>
            </section>

            {/* Why Work Here Section */}
            <section style={{ padding: isMobile ? '4rem 1.5rem' : '6rem 4rem', background: 'var(--cream)' }}>
                <div style={{ maxWidth: '1400px', margin: '0 auto' }}>
                    <div style={{ textAlign: 'center', marginBottom: '4rem' }}>
                        <h2 style={{
                            fontSize: isMobile ? '2rem' : '2.5rem',
                            fontFamily: "'DM Serif Display', serif",
                            marginBottom: '1rem',
                            color: 'var(--charcoal)'
                        }}>
                            Why Work at Saucy's?
                        </h2>
                        <p style={{
                            fontSize: '1.1rem',
                            color: 'var(--smoke)',
                            fontWeight: '300',
                            maxWidth: '700px',
                            margin: '0 auto'
                        }}>
                            Join Denver's favorite BBQ family. We're looking for passionate people who love great food and exceptional service.
                        </p>
                    </div>

                    {/* Benefits Grid */}
                    <div style={{
                        display: 'grid',
                        gridTemplateColumns: isMobile ? '1fr' : 'repeat(3, 1fr)',
                        gap: '2rem',
                        marginBottom: '4rem'
                    }}>
                        <div style={{
                            background: 'white',
                            borderRadius: '20px',
                            padding: '2.5rem',
                            boxShadow: '0 10px 40px rgba(0,0,0,0.1)',
                            border: '1px solid rgba(212, 82, 42, 0.1)',
                            textAlign: 'center'
                        }}>
                            <div style={{ 
                                width: '80px', 
                                height: '80px', 
                                background: 'linear-gradient(135deg, var(--terracotta), var(--terracotta-light))', 
                                borderRadius: '20px', 
                                display: 'flex', 
                                alignItems: 'center', 
                                justifyContent: 'center', 
                                margin: '0 auto 1.5rem',
                                boxShadow: '0 10px 30px rgba(212, 82, 42, 0.3)'
                            }}>
                                <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="white" strokeWidth="2">
                                    <path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/>
                                    <circle cx="9" cy="7" r="4"/>
                                    <path d="M23 21v-2a4 4 0 0 0-3-3.87"/>
                                    <path d="M16 3.13a4 4 0 0 1 0 7.75"/>
                                </svg>
                            </div>
                            <h3 style={{
                                fontSize: '1.5rem',
                                fontFamily: "'DM Serif Display', serif",
                                color: 'var(--charcoal)',
                                marginBottom: '1rem'
                            }}>
                                Great Team
                            </h3>
                            <p style={{
                                color: 'var(--smoke)',
                                fontWeight: '300',
                                lineHeight: '1.6'
                            }}>
                                Work alongside passionate BBQ enthusiasts who support each other and have fun while delivering excellence.
                            </p>
                        </div>

                        <div style={{
                            background: 'white',
                            borderRadius: '20px',
                            padding: '2.5rem',
                            boxShadow: '0 10px 40px rgba(0,0,0,0.1)',
                            border: '1px solid rgba(212, 82, 42, 0.1)',
                            textAlign: 'center'
                        }}>
                            <div style={{ 
                                width: '80px', 
                                height: '80px', 
                                background: 'linear-gradient(135deg, var(--terracotta), var(--terracotta-light))', 
                                borderRadius: '20px', 
                                display: 'flex', 
                                alignItems: 'center', 
                                justifyContent: 'center', 
                                margin: '0 auto 1.5rem',
                                boxShadow: '0 10px 30px rgba(212, 82, 42, 0.3)'
                            }}>
                                <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="white" strokeWidth="2">
                                    <polyline points="23,6 13.5,15.5 8.5,10.5 1,18"/>
                                    <polyline points="17,6 23,6 23,12"/>
                                </svg>
                            </div>
                            <h3 style={{
                                fontSize: '1.5rem',
                                fontFamily: "'DM Serif Display', serif",
                                color: 'var(--charcoal)',
                                marginBottom: '1rem'
                            }}>
                                Growth Opportunities
                            </h3>
                            <p style={{
                                color: 'var(--smoke)',
                                fontWeight: '300',
                                lineHeight: '1.6'
                            }}>
                                Advance your career with training programs, leadership opportunities, and paths to management roles.
                            </p>
                        </div>

                        <div style={{
                            background: 'white',
                            borderRadius: '20px',
                            padding: '2.5rem',
                            boxShadow: '0 10px 40px rgba(0,0,0,0.1)',
                            border: '1px solid rgba(212, 82, 42, 0.1)',
                            textAlign: 'center'
                        }}>
                            <div style={{ 
                                width: '80px', 
                                height: '80px', 
                                background: 'linear-gradient(135deg, var(--terracotta), var(--terracotta-light))', 
                                borderRadius: '20px', 
                                display: 'flex', 
                                alignItems: 'center', 
                                justifyContent: 'center', 
                                margin: '0 auto 1.5rem',
                                boxShadow: '0 10px 30px rgba(212, 82, 42, 0.3)'
                            }}>
                                <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="white" strokeWidth="2">
                                    <circle cx="12" cy="12" r="3"/>
                                    <path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>
                                </svg>
                            </div>
                            <h3 style={{
                                fontSize: '1.5rem',
                                fontFamily: "'DM Serif Display', serif",
                                color: 'var(--charcoal)',
                                marginBottom: '1rem'
                            }}>
                                Competitive Benefits
                            </h3>
                            <p style={{
                                color: 'var(--smoke)',
                                fontWeight: '300',
                                lineHeight: '1.6'
                            }}>
                                Enjoy competitive wages, flexible scheduling, employee meals, and comprehensive benefits packages.
                            </p>
                        </div>
                    </div>
                </div>
            </section>

            {/* Job Positions Section */}
            <section style={{ padding: isMobile ? '4rem 1.5rem' : '6rem 4rem', background: 'var(--charcoal)' }}>
                <div style={{ maxWidth: '1200px', margin: '0 auto' }}>
                    <div style={{ textAlign: 'center', marginBottom: '4rem' }}>
                        <h2 style={{
                            fontSize: isMobile ? '2rem' : '2.5rem',
                            fontFamily: "'DM Serif Display', serif",
                            marginBottom: '1rem',
                            color: 'var(--cream)'
                        }}>
                            Open Positions
                        </h2>
                        <p style={{
                            fontSize: '1.1rem',
                            color: 'rgba(245, 241, 232, 0.8)',
                            fontWeight: '300'
                        }}>
                            Find the perfect role to start or advance your culinary career
                        </p>
                    </div>

                    <div style={{
                        display: 'grid',
                        gridTemplateColumns: isMobile ? '1fr' : 'repeat(2, 1fr)',
                        gap: '2rem'
                    }}>
                        {jobPositions.map((job, index) => (
                            <div key={index} style={{
                                background: 'rgba(245, 241, 232, 0.05)',
                                padding: '2.5rem',
                                borderRadius: '16px',
                                border: '1px solid rgba(245, 241, 232, 0.1)',
                                backdropFilter: 'blur(10px)'
                            }}>
                                <div style={{ marginBottom: '1.5rem' }}>
                                    <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'flex-start', marginBottom: '0.5rem' }}>
                                        <h3 style={{
                                            fontSize: '1.5rem',
                                            fontFamily: "'DM Serif Display', serif",
                                            color: 'var(--cream)',
                                            marginBottom: '0.5rem'
                                        }}>
                                            {job.title}
                                        </h3>
                                        <span style={{
                                            background: 'var(--terracotta)',
                                            color: 'white',
                                            padding: '0.25rem 0.75rem',
                                            borderRadius: '20px',
                                            fontSize: '0.8rem',
                                            fontWeight: '500'
                                        }}>
                                            {job.type}
                                        </span>
                                    </div>
                                    <p style={{
                                        color: 'rgba(245, 241, 232, 0.8)',
                                        fontWeight: '300',
                                        lineHeight: '1.6',
                                        marginBottom: '1.5rem'
                                    }}>
                                        {job.description}
                                    </p>
                                </div>

                                <div style={{ marginBottom: '1.5rem' }}>
                                    <h4 style={{ fontSize: '1rem', fontWeight: '600', color: 'var(--cream)', marginBottom: '0.75rem' }}>Requirements:</h4>
                                    <ul style={{ color: 'rgba(245, 241, 232, 0.8)', fontWeight: '300', lineHeight: '1.6', paddingLeft: '1rem' }}>
                                        {job.requirements.map((req, reqIndex) => (
                                            <li key={reqIndex} style={{ marginBottom: '0.25rem' }}>{req}</li>
                                        ))}
                                    </ul>
                                </div>

                                <div style={{ marginBottom: '1.5rem' }}>
                                    <h4 style={{ fontSize: '1rem', fontWeight: '600', color: 'var(--cream)', marginBottom: '0.75rem' }}>Benefits:</h4>
                                    <div style={{ display: 'flex', flexWrap: 'wrap', gap: '0.5rem' }}>
                                        {job.benefits.map((benefit, benefitIndex) => (
                                            <span key={benefitIndex} style={{
                                                background: 'rgba(212, 82, 42, 0.2)',
                                                color: 'var(--terracotta-light)',
                                                padding: '0.25rem 0.75rem',
                                                borderRadius: '20px',
                                                fontSize: '0.85rem',
                                                fontWeight: '500'
                                            }}>
                                                {benefit}
                                            </span>
                                        ))}
                                    </div>
                                </div>
                            </div>
                        ))}
                    </div>
                </div>
            </section>

            <Footer />
        </div>
    );
};

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<JobsPage />);