// Facette data — treatments, memberships, branches, reviews

const BRANCHES = {
  jumeirah: {
    id: 'jumeirah',
    name: 'Jumeirah',
    short: 'Jumeirah',
    address: 'Al Wasl Road, Jumeirah 3',
    addressLine2: 'Al Shaari 777 Center · Entrance 2',
    addressLine3: '1st Floor · Shop 14',
    pluscode: '56FH+3R',
    phone: '+971 4 575 4203',
    phoneHref: 'tel:+97145754203',
    hours: 'Daily · 10:00–20:00',
    fresha: 'https://www.fresha.com/a/facette-facial-bar-jumeirah-dubai-56fh-3r-km0cqt6i',
    flagship: false,
    pin: { left: '42%', top: '38%' },
  },
  business_bay: {
    id: 'business_bay',
    name: 'Business Bay',
    short: 'Business Bay',
    address: 'Millennium Atria, Al Abraj St',
    addressLine2: 'Marasi Drive · Mezzanine',
    addressLine3: 'Shop 10 & 11',
    pluscode: '7G2X+M2',
    phone: '+971 4 422 8735',
    phoneHref: 'tel:+97144228735',
    altPhone: '+971 50 718 1965',
    hours: 'Daily · 10:00–20:00',
    fresha: 'https://www.fresha.com/a/facette-facial-bar-dubai-millennium-atria-business-bay-shop-10-11-olhosigl',
    flagship: true,
    pin: { left: '58%', top: '52%' },
  },
};

const WHATSAPP = 'https://wa.me/message/HXZGIM6CT6RFN1';

const SIGNATURES = [
  {
    slug: 'the-supernova',
    name: 'The SuperNova',
    duration: '75 min',
    price: 899,
    cadence: 'Every 10 days',
    blurb: 'Layered LED, microcurrent and a peptide infusion engineered for instant lift and a long-game collagen response.',
    img: 'media/treatment-supernova-sff2.webp',
    tone: 'flagship',
    category: 'High-tech facials',
  },
  {
    slug: 'the-glam-facial',
    name: 'The Glam Facial',
    duration: '60 min',
    price: 1350,
    cadence: 'Every 2–3 weeks',
    blurb: '24k gold flakes, an iS Clinical brightening protocol and a luminous finish — built for the night before.',
    img: 'media/treatment-glam-facial-gf.webp',
    tone: 'gold',
    category: 'Signature',
  },
  {
    slug: 'deep-sea-rejuvenation',
    name: 'Deep Sea Rejuvenation',
    duration: '75 min',
    price: 980,
    cadence: 'Every 3–4 weeks',
    blurb: 'Marine-mineral lift and a deep-hydration sleeve — re-plumps after travel, sun, or stress.',
    img: 'media/treatment-deepsea-rejuvenation.webp',
    tone: 'cool',
    category: 'Signature',
  },
  {
    slug: 'glide-and-glow',
    name: 'Glide & Glow',
    duration: '45 min',
    priceFrom: 499,
    cadence: 'Every 2 weeks',
    blurb: 'Geneo glacial exfoliation: oxygenates, smooths and reveals a quiet, lit-from-within finish.',
    img: 'media/treatment-glacial-glide-glow.webp',
    tone: 'neutral',
    category: 'Glacial Skin',
  },
];

const TREATMENT_CATEGORIES = [
  {
    id: 'signature',
    label: 'Signature',
    name: 'Signature & High-tech',
    desc: 'Our most-booked facials — built for results-led visitors. Layered modalities, premium-brand actives, named protocols.',
    items: [
      { name: 'The SuperNova', desc: 'LED + microcurrent + peptide infusion. Instant lift, long-game collagen.', duration: '75 min', price: 899, slug: 'the-supernova', thumb: 'media/treatment-supernova-sff2.webp' },
      { name: 'The Glam Facial', desc: '24k gold flakes, iS Clinical brightening, mirror-finish glow.', duration: '60 min', price: 1350, slug: 'the-glam-facial', thumb: 'media/treatment-glam-facial-gf.webp' },
      { name: 'Deep Sea Rejuvenation', desc: 'Marine-mineral lift + deep hydration sleeve. After travel or sun.', duration: '75 min', price: 980, slug: 'deep-sea-rejuvenation', thumb: 'media/treatment-deepsea-rejuvenation.webp' },
      { name: 'HydraBoost', desc: 'Multi-step hydration: cleanse, infuse, seal. Quick lunchbreak refresh.', duration: '45 min', price: 577.5, slug: 'hydraboost', thumb: 'media/section-add2.webp' },
      { name: 'Foaming Enzyme', desc: 'Cosmedix enzyme exfoliation + lymphatic drainage massage.', duration: '60 min', price: 899, slug: 'foaming-enzyme', thumb: 'media/section-c.webp' },
      { name: 'Exfoliating Clear Skin', desc: 'Targeted clarifying protocol for congestion + breakouts.', duration: '60 min', priceFrom: 675, slug: 'exfoliating-clear-skin', thumb: 'media/treatment-exfoliating-clear-skin.webp' },
      { name: 'Teen Glow', desc: 'Entry-tier care for ages 13–19. Gentle, results-led.', duration: '45 min', price: 420, slug: 'teen-glow', thumb: 'media/gallery-1c.webp' },
      { name: 'Eye Contour', desc: 'De-puff, brighten, micro-lift around the orbital bone.', duration: '30 min', price: 400, slug: 'eye-contour', thumb: 'media/gallery-8.webp' },
      { name: 'Customized Facial', desc: 'Built skin-by-skin with your therapist. Bring a concern, leave with a plan.', duration: '60 min', price: 787.5, slug: 'customized-facial', thumb: 'media/section-d.webp' },
      { name: 'Brilliant', desc: 'Noble Panacea chronobiology infusion — restorative & repairing.', duration: '90 min', tbc: true, slug: 'brilliant', thumb: 'media/section-3aa.webp' },
      { name: 'Absolute', desc: 'Intensive renewal serum protocol for advanced aging concerns.', duration: '90 min', tbc: true, slug: 'absolute', thumb: 'media/section-untitled-design-5.webp' },
      { name: 'Lifting & Sculpting', desc: 'Buccal massage + gua sha + microcurrent. Visible jawline lift.', duration: '75 min', tbc: true, slug: 'lifting-sculpting', thumb: 'media/gallery-12.webp' },
    ],
  },
  {
    id: 'glacial',
    label: 'Glacial Skin',
    name: 'Glacial Skin',
    desc: 'Powered by Geneo. Glacial pods exfoliate and oxygenate — the calmest path to a real, lit-from-within glow.',
    items: [
      { name: 'Gloss & Glow', desc: 'Layered Geneo system: smooths, brightens, and a final glassy finish.', duration: '75 min', priceFrom: 905, slug: 'gloss-glow', thumb: 'media/gallery-1a.webp' },
      { name: 'Glide & Glow', desc: 'The express version. 45 minutes to a quiet, even glow.', duration: '45 min', priceFrom: 499, slug: 'glide-glow', thumb: 'media/treatment-glacial-glide-glow.webp' },
    ],
  },
  {
    id: 'body',
    label: 'Body & Back',
    name: 'Body & Back',
    desc: 'The same Facette protocols, brought to the body. Backs, shoulders and lymph — the parts your skincare misses.',
    items: [
      { name: 'The Bacial', desc: 'A facial for your back. Deep cleanse, exfoliate, hydrate.', duration: '60 min', price: 425, slug: 'bacial', thumb: 'media/gallery-10.webp' },
      { name: 'SuperNova Back', desc: 'LED + microcurrent across the shoulders and upper back.', duration: '75 min', price: 899, slug: 'supernova-back', thumb: 'media/gallery-1b.webp' },
      { name: 'Lymphatic Drainage', desc: 'Manual drainage to de-puff, de-bloat and reset.', duration: '60 min', price: 415, slug: 'lymphatic-drainage', thumb: 'media/gallery-1d.webp' },
    ],
  },
  {
    id: 'wellness',
    label: 'Face Yoga & Wellness',
    name: 'Face Yoga & Wellness',
    desc: 'Non-invasive, ritual-style sessions. Train the face like you train the body.',
    items: [
      { name: 'Face Yoga', desc: '45-minute guided session: release, sculpt, lift. Cumulative results.', duration: '45 min', priceFrom: 385, slug: 'face-yoga', thumb: 'media/section-b-portrait.webp' },
      { name: 'Facette Facelift', desc: 'Signature lifting massage — buccal, lymphatic and gua sha.', duration: '60 min', price: 899, slug: 'facette-facelift', thumb: 'media/gallery-12.webp' },
    ],
  },
  {
    id: 'aesthetics',
    label: 'Aesthetics & Medical',
    name: 'Aesthetics & Medical',
    desc: 'Doctor-led care: consultation, advice, and laser appointments by referral.',
    items: [
      { name: 'Doctor Consultation', desc: 'One-to-one with Dr. Lana. Assessment, plan, and next steps.', duration: '30 min', price: 350, slug: 'doctor-consultation', thumb: 'media/section-take-the-quiz.webp' },
      { name: 'Laser Appointment', desc: 'By referral, after consultation. Pricing varies by area.', duration: '30–60 min', tbc: true, slug: 'laser', thumb: 'media/section-untitled-design-5.webp' },
    ],
  },
];

const MEMBERSHIPS = [
  { id: 'bacial', name: 'Bacial', cadence: '1× per month', price: 999, facials: 1, products: '10% off', portal: true, featured: false },
  { id: 'elite', name: 'Elite', cadence: '1× per month', price: 1105, facials: 1, products: '10% off', portal: true, featured: false },
  { id: 'vip', name: 'VIP', cadence: 'Every 3 weeks', price: 1200, facials: 1, products: '10% off', portal: true, featured: false },
  { id: 'glow', name: 'Glow Factor', cadence: 'Every 2 weeks', price: 1920, facials: 2, products: '10% off', portal: true, featured: false },
  { id: 'custom', name: 'Custom', cadence: 'Every 2 weeks', price: 1920, facials: 2, products: '10% off', portal: true, featured: false },
  { id: 'face-yoga', name: 'Face Yoga', cadence: 'Weekly', price: 2065, facials: 4, products: '10% off', portal: true, featured: false },
  { id: 'signature', name: 'Signature', cadence: 'Every 10 days', price: 2400, facials: 3, products: '10% off', portal: true, featured: true },
];

const REVIEWS = [
  {
    quote: 'Booked the SuperNova as a one-off before a wedding — left with the best skin I have had in years. Carolina is the real deal.',
    name: 'Jasmine E.',
    date: 'May 5, 2026',
    source: 'Fresha · Jumeirah',
    stars: 5,
  },
  {
    quote: 'I have been a Glow Factor member for eight months. My skin barrier rebuilt itself. They actually plan, not just upsell.',
    name: 'Noura A.',
    date: 'Apr 14, 2026',
    source: 'Fresha · Business Bay',
    stars: 5,
  },
  {
    quote: 'The first place in Dubai that did not push fillers. Dr. Lana laid out a real plan. Trust this team.',
    name: 'Ayesha R.',
    date: 'Mar 28, 2026',
    source: 'Google · Jumeirah',
    stars: 5,
  },
];

const THERAPISTS = [
  { name: 'Carolina', role: 'Senior Therapist', initial: 'C', branches: ['jumeirah', 'business_bay'] },
  { name: 'Alena', role: 'Therapist', initial: 'A', branches: ['jumeirah'] },
  { name: 'Daria', role: 'Therapist', initial: 'D', branches: ['business_bay'] },
  { name: 'Zahra', role: 'Therapist', initial: 'Z', branches: ['jumeirah'] },
  { name: 'Anna', role: 'Senior Therapist', initial: 'A', branches: ['business_bay'] },
  { name: 'Dr. Lana', role: 'GP & Aesthetics', initial: 'L', branches: ['jumeirah', 'business_bay'] },
];

const BRAND_PARTNERS = [
  { name: 'iS Clinical', sub: 'Cosmeceuticals' },
  { name: 'Cosmedix', sub: 'Clean clinical' },
  { name: 'Environ', sub: 'Vitamin A' },
  { name: 'PCA Skin', sub: 'Peels & corrective' },
  { name: 'NuFACE', sub: 'Microcurrent' },
];

const QUIZ_STEPS = [
  {
    q: 'What is your skin telling you right now?',
    sub: 'Pick the concern that bothers you most.',
    options: [
      { val: 'dull', label: 'Dull, tired, lacks glow' },
      { val: 'aging', label: 'Fine lines, loss of firmness' },
      { val: 'breakout', label: 'Congestion, breakouts, texture' },
      { val: 'pigment', label: 'Pigmentation, uneven tone' },
      { val: 'dehydrated', label: 'Dehydrated, sensitised, post-travel' },
    ],
  },
  {
    q: 'How often do you want to come in?',
    sub: 'Cadence matters more than which facial you book.',
    options: [
      { val: 'occasional', label: 'A few times a year, before events' },
      { val: 'monthly', label: 'Roughly monthly' },
      { val: 'biweekly', label: 'Every 2–3 weeks' },
      { val: 'weekly', label: 'Weekly — I want this to be a ritual' },
    ],
  },
  {
    q: 'Downtime tolerance?',
    sub: 'Some of our work goes deeper. Tell us what fits your life.',
    options: [
      { val: 'none', label: 'Zero downtime — back to work after' },
      { val: 'a-day', label: 'A day of redness is fine' },
      { val: 'long', label: 'I can plan around a 3-day reset' },
    ],
  },
  {
    q: 'Anything we should know?',
    sub: 'Active conditions, sensitivities, big events on the horizon.',
    options: [
      { val: 'event', label: 'Big event coming up' },
      { val: 'sensitive', label: 'Reactive / sensitive skin' },
      { val: 'pregnant', label: 'Pregnant or breastfeeding' },
      { val: 'nothing', label: 'Nothing in particular' },
    ],
  },
];

// Naive recommendation
function recommend(answers) {
  if (answers[0] === 'aging') {
    return { slug: 'the-supernova', reason: 'You want lift + collagen response. SuperNova layers LED, microcurrent and peptides — the most-booked option for firmness.' };
  }
  if (answers[0] === 'dull' && (answers[1] === 'occasional' || answers[3] === 'event')) {
    return { slug: 'the-glam-facial', reason: 'You are after a one-night-only mirror finish. Glam Facial + 24k gold is engineered for the night before.' };
  }
  if (answers[0] === 'breakout') {
    return { slug: 'exfoliating-clear-skin', reason: 'Targeted clarifying protocol — clears congestion without stripping the barrier.' };
  }
  if (answers[0] === 'dehydrated') {
    return { slug: 'deep-sea-rejuvenation', reason: 'Marine-mineral re-plumping. Built for post-travel or sun-stressed skin.' };
  }
  if (answers[1] === 'biweekly' || answers[1] === 'weekly') {
    return { slug: 'gloss-glow', reason: 'You want a ritual. Geneo Gloss & Glow is the calmest path to a continuous, lit-from-within finish.' };
  }
  return { slug: 'customized-facial', reason: 'Your answers do not fit a single signature — book a Customized Facial and let your therapist build it skin-by-skin.' };
}

window.FacetteData = {
  BRANCHES, WHATSAPP, SIGNATURES, TREATMENT_CATEGORIES, MEMBERSHIPS,
  REVIEWS, THERAPISTS, BRAND_PARTNERS, QUIZ_STEPS, recommend,
};
