/* global React */
// Trinity Comprehensive Healthcare — bilingual content data layer
// All strings in ES/EN, picked up via LangContext

const t = (es, en) => ({ es, en });

window.TRINITY = {
  business: {
    name: "Trinity Comprehensive Health Care",
    short: "Trinity Health",
    tagline: t(
      "Cuidado integral, regenerativo y estético — bajo un mismo techo.",
      "Integrative, regenerative, and aesthetic care — under one roof."
    ),
  },

  contact: {
    address: "7000 SW 97th Avenue, Suite 110, Miami, FL 33173",
    addressLines: ["7000 SW 97th Avenue, Suite 110", "Miami, FL 33173"],
    phone: "(786) 431-2208",
    phoneHref: "tel:+17864312208",
    email: "Erika.trinitycomprehensive@gmail.com",
    hours: t(
      "Lun–Jue 9:00–18:00 · Vie 9:00–17:00 · Sáb con cita",
      "Mon–Thu 9:00–6:00 · Fri 9:00–5:00 · Sat by appointment"
    ),
    hoursLines: t(
      ["Lunes – Jueves", "9:00 – 18:00", "Viernes  9:00 – 17:00", "Sábado  Solo con cita"],
      ["Monday – Thursday", "9:00 – 18:00", "Friday  9:00 – 17:00", "Saturday  By appointment"]
    ),
  },

  ui: {
    book: t("Reservar consulta", "Book a consultation"),
    call: t("Llamar ahora", "Call now"),
    learn: t("Conocer más", "Learn more"),
    services: t("Servicios", "Services"),
    about: t("Acerca", "About"),
    contact: t("Contacto", "Contact"),
    home: t("Inicio", "Home"),
    pricing: t("Precios", "Pricing"),
    faq: t("Preguntas", "FAQ"),
    blog: t("Blog", "Blog"),
    gallery: t("Galería", "Gallery"),
    testimonials: t("Testimonios", "Testimonials"),
    viewAll: t("Ver todos", "View all"),
    skipMain: t("Saltar al contenido principal", "Skip to main content"),
    menu: t("Menú", "Menu"),
    closeMenu: t("Cerrar menú", "Close menu"),
  },

  hero: {
    eyebrow: t("Miami · Estética · Bienestar · Atención primaria", "Miami · Aesthetics · Wellness · Primary Care"),
    title: t(
      ["Salud integral", "que se siente", "personal"],
      ["Whole-person care", "that feels", "personal"]
    ),
    // Word to italicize (last word)
    titleEm: t("personal", "personal"),
    sub: t(
      "Combinamos medicina basada en evidencia con terapias regenerativas, estética médica y manejo del dolor — un solo equipo, un solo plan, hecho para usted.",
      "We combine evidence-based medicine with regenerative therapy, medical aesthetics, and pain relief — one team, one plan, built for you."
    ),
    meta: [
      t("Equipo bilingüe", "Bilingual team"),
      t("Consulta inicial 45–60 min", "Initial visit 45–60 min"),
      t("Planes personalizados", "Personalized plans"),
    ],
  },

  trust: [
    { num: "12+", lbl: t("Años combinados", "Combined years") },
    { num: "2,400+", lbl: t("Pacientes atendidos", "Patients served") },
    { num: "ES / EN", lbl: t("Atención bilingüe", "Bilingual care") },
    { num: "4.9", lbl: t("Calificación promedio", "Average rating") },
  ],

  pillars: {
    eyebrow: t("Pilares de atención", "Pillars of care"),
    title: t(
      ["Cuatro disciplinas,", "un solo plan", "integrado."],
      ["Four disciplines,", "one integrated", "plan."]
    ),
    sub: t(
      "Nuestro modelo trata el cuerpo como un todo. Cada visita conecta diagnóstico, regeneración, función y apariencia.",
      "Our model treats the body as a whole. Every visit connects diagnosis, regeneration, function, and appearance."
    ),
    items: [
      {
        num: "01",
        title: t("Estética médica", "Medical aesthetics"),
        body: t(
          "Tratamientos naturales, no quirúrgicos, para piel, contorno y cabello.",
          "Natural, non-surgical treatments for skin, contour, and hair."
        ),
        tags: ["PRP", "Microneedling", "PDO", "VI Peels", "Exosomes"],
      },
      {
        num: "02",
        title: t("Bienestar y regenerativa", "Wellness & regenerative"),
        body: t(
          "Optimización hormonal, IV, péptidos y planes de peso con GLP-1.",
          "Hormone optimization, IV therapy, peptides, and GLP-1 weight programs."
        ),
        tags: ["IV", t("Péptidos", "Peptides"), "GLP-1", t("Hormonal", "Hormonal")],
      },
      {
        num: "03",
        title: t("Alivio del dolor", "Pain relief"),
        body: t(
          "Masaje de fascia y terapia manual para dolor crónico y movilidad.",
          "Fascia massage and manual therapy for chronic pain and mobility."
        ),
        tags: [t("Fascia", "Fascia"), t("Manual", "Manual"), t("Movilidad", "Mobility")],
      },
      {
        num: "04",
        title: t("Atención primaria", "Primary care"),
        body: t(
          "Manejo de enfermedades crónicas y medicina preventiva personalizada.",
          "Chronic disease management and personalized preventive medicine."
        ),
        tags: [t("Preventiva", "Preventive"), t("Crónicas", "Chronic"), t("Tamizaje", "Screening")],
      },
    ],
  },

  featured: {
    eyebrow: t("Tratamientos destacados", "Featured treatments"),
    title: t(
      ["Lo que la mayoría", "de pacientes", "elige primero."],
      ["What most patients", "choose", "first."]
    ),
    sub: t(
      "Una selección curada de tratamientos basados en evidencia, frecuentemente combinados en planes integrados.",
      "A curated selection of evidence-based treatments, often combined into integrated plans."
    ),
    items: [
      {
        n: "01",
        cat: t("Regenerativa", "Regenerative"),
        name: t("Terapia PRP", "PRP Therapy"),
        desc: t(
          "Plasma rico en plaquetas para rejuvenecimiento facial y crecimiento capilar — usando su propia biología.",
          "Platelet-rich plasma for facial rejuvenation and hair growth — using your own biology."
        ),
        time: "60–90 min",
      },
      {
        n: "02",
        cat: t("Estética", "Aesthetic"),
        name: t("Microneedling", "Microneedling"),
        desc: t(
          "Estimulación de colágeno para textura, cicatrices y poros visibles.",
          "Collagen induction for texture, scars, and visible pores."
        ),
        time: "45 min",
      },
      {
        n: "03",
        cat: t("Bienestar", "Wellness"),
        name: t("Terapia IV personalizada", "Custom IV Therapy"),
        desc: t(
          "Hidratación, vitaminas y antioxidantes directamente al torrente sanguíneo.",
          "Hydration, vitamins, and antioxidants delivered directly to the bloodstream."
        ),
        time: "30–45 min",
      },
      {
        n: "04",
        cat: t("Regenerativa", "Regenerative"),
        name: t("Terapia de péptidos", "Peptide Therapy"),
        desc: t(
          "Optimización hormonal, recuperación muscular y mejora del sueño.",
          "Hormone optimization, muscle recovery, and improved sleep."
        ),
        time: t("Programa", "Program"),
      },
      {
        n: "05",
        cat: t("Pérdida de peso", "Weight loss"),
        name: t("Programa GLP-1", "GLP-1 Program"),
        desc: t(
          "Retatrutide y semaglutide combinados con plan nutricional supervisado.",
          "Retatrutide and semaglutide combined with supervised nutritional planning."
        ),
        time: t("Programa", "Program"),
      },
      {
        n: "06",
        cat: t("Dolor", "Pain"),
        name: t("Masaje de fascia", "Fascia Massage"),
        desc: t(
          "Terapia manual profunda para dolor crónico y restauración de movilidad.",
          "Deep manual therapy for chronic pain and mobility restoration."
        ),
        time: "60 min",
      },
    ],
  },

  about: {
    eyebrow: t("Nuestra filosofía", "Our philosophy"),
    quote: t(
      "“Tratamos personas, no diagnósticos. Cada plan empieza por escuchar.”",
      "“We treat people, not diagnoses. Every plan begins with listening.”"
    ),
    desc: t(
      "En Trinity, la medicina funcional, la regenerativa y la estética conversan entre sí. Nuestro equipo bilingüe diseña un plan que respeta su historia, sus metas y su cultura.",
      "At Trinity, functional, regenerative, and aesthetic medicine speak to each other. Our bilingual team designs a plan that honors your history, your goals, and your culture."
    ),
    team: [
      {
        name: "Erika Gonzalez, ARNP",
        role: t("Propietaria y Practicante · Trinity Comprehensive", "Owner & Practitioner · Trinity Comprehensive"),
        avatar: "E",
      },
      {
        name: "Manuel Gonzalez, MD",
        role: t("Director Médico · Trinity Comprehensive", "Medical Director · Trinity Comprehensive"),
        avatar: "M",
      },
    ],
    portraitLabel: t("Foto del proveedor", "Provider photo"),
  },

  why: {
    eyebrow: t("Por qué Trinity", "Why Trinity"),
    title: t(
      ["Atención que se", "construye", "a su alrededor."],
      ["Care that's built", "around", "you."]
    ),
    items: [
      {
        title: t("Enfoque integrado", "Integrated approach"),
        body: t(
          "Un solo equipo coordina su atención estética, regenerativa y primaria.",
          "One team coordinates your aesthetic, regenerative, and primary care."
        ),
        icon: "integrated",
      },
      {
        title: t("Basado en evidencia", "Evidence-based"),
        body: t(
          "Protocolos respaldados por literatura clínica revisada por pares.",
          "Protocols backed by peer-reviewed clinical literature."
        ),
        icon: "evidence",
      },
      {
        title: t("Tecnología avanzada", "Advanced technology"),
        body: t(
          "Exosomas, péptidos y dispositivos de última generación en cada cita.",
          "Exosomes, peptides, and the latest devices at every visit."
        ),
        icon: "tech",
      },
      {
        title: t("Cuidado compasivo", "Compassionate care"),
        body: t(
          "Tiempo, escucha y comunicación clara en cada interacción.",
          "Time, listening, and clear communication at every touchpoint."
        ),
        icon: "heart",
      },
    ],
  },

  testimonials: {
    eyebrow: t("Historias", "Stories"),
    title: t(
      ["Lo que nuestros", "pacientes", "comparten."],
      ["What our", "patients", "share."]
    ),
    items: [
      {
        treatment: t("Terapia PRP", "PRP Therapy"),
        quote: t(
          "“Mi piel se ve más joven y radiante. El equipo realmente se preocupa por los resultados — y por mí.”",
          "“My skin looks younger and more radiant. The team genuinely cares about results — and about me.”"
        ),
        name: t("María González", "Maria Gonzalez"),
        loc: t("Miami, FL", "Miami, FL"),
        rating: 5,
      },
      {
        treatment: t("Optimización hormonal", "Hormone Optimization"),
        quote: t(
          "“Recuperé mi energía y mi vitalidad. Me siento como hace veinte años — pero con la sabiduría de ahora.”",
          "“I got my energy and vitality back. I feel twenty years younger — but with the wisdom of now.”"
        ),
        name: t("Carlos Mendoza", "Carlos Mendoza"),
        loc: t("Coral Gables, FL", "Coral Gables, FL"),
        rating: 5,
      },
      {
        treatment: t("Terapia IV", "IV Therapy"),
        quote: t(
          "“Increíble boost de energía después de cada sesión. El ambiente es calmado y todo el equipo es excepcional.”",
          "“An incredible energy boost after every session. The space is calm and the whole team is exceptional.”"
        ),
        name: t("Ana Rodríguez", "Ana Rodriguez"),
        loc: t("Kendall, FL", "Kendall, FL"),
        rating: 5,
      },
      {
        treatment: t("Programa GLP-1", "GLP-1 Program"),
        quote: t(
          "“Más que un programa de peso: aprendí a comer, a moverme y a entender mi cuerpo de nuevo.”",
          "“More than a weight program: I learned to eat, to move, and to understand my body again.”"
        ),
        name: t("Luis Pérez", "Luis Perez"),
        loc: t("Doral, FL", "Doral, FL"),
        rating: 5,
      },
    ],
  },

  faq: {
    eyebrow: t("Preguntas frecuentes", "Frequently asked"),
    title: t(
      ["Lo que vale la pena", "saber antes de", "su visita."],
      ["What's worth knowing", "before your", "visit."]
    ),
    cats: [
      { id: "general", label: t("General", "General") },
      { id: "services", label: t("Servicios", "Services") },
      { id: "appointments", label: t("Citas", "Appointments") },
      { id: "insurance", label: t("Seguro", "Insurance") },
      { id: "aesthetic", label: t("Estética", "Aesthetic") },
    ],
    items: [
      {
        cat: "general",
        q: t("¿Qué hace Trinity diferente?", "What makes Trinity different?"),
        a: t(
          "Combinamos atención primaria, regenerativa y estética en un solo equipo. Su plan no salta entre clínicas — todo conversa.",
          "We combine primary, regenerative, and aesthetic care in one team. Your plan doesn't bounce between clinics — everything talks to each other."
        ),
      },
      {
        cat: "general",
        q: t("¿Ofrecen servicios en español?", "Do you offer services in Spanish?"),
        a: t(
          "Sí — todo nuestro equipo es bilingüe español/inglés, incluyendo consulta, documentación y materiales educativos.",
          "Yes — our entire team is bilingual Spanish/English, including consultation, documentation, and educational materials."
        ),
      },
      {
        cat: "appointments",
        q: t("¿Cómo programo mi primera visita?", "How do I book my first visit?"),
        a: t(
          "Llame al (786) 431-2208 o escriba a Erika.trinitycomprehensive@gmail.com. Las consultas iniciales toman 45–60 minutos.",
          "Call (786) 431-2208 or email Erika.trinitycomprehensive@gmail.com. Initial consultations take 45–60 minutes."
        ),
      },
      {
        cat: "appointments",
        q: t("¿Qué debo esperar en mi primera consulta?", "What can I expect on my first visit?"),
        a: t(
          "Una conversación completa: historia médica, metas, evaluación física y un plan personalizado por escrito. Sin prisas.",
          "A complete conversation: medical history, goals, physical assessment, and a written personalized plan. No rushing."
        ),
      },
      {
        cat: "insurance",
        q: t("¿Aceptan seguro médico?", "Do you accept insurance?"),
        a: t(
          "Aceptamos varios planes para atención primaria. Servicios estéticos y regenerativos suelen ser pago directo — ofrecemos planes flexibles.",
          "We accept several plans for primary care. Aesthetic and regenerative services are typically direct pay — we offer flexible plans."
        ),
      },
      {
        cat: "services",
        q: t("¿Pueden combinar varios tratamientos?", "Can you combine multiple treatments?"),
        a: t(
          "Sí — frecuentemente. Por ejemplo, optimización hormonal + IV + PRP forman un plan común. Su proveedora diseña la secuencia segura.",
          "Yes — often. For instance, hormone optimization + IV + PRP form a common plan. Your provider designs the safe sequence."
        ),
      },
      {
        cat: "aesthetic",
        q: t("¿Qué es la terapia PRP?", "What is PRP therapy?"),
        a: t(
          "PRP usa sus propias plaquetas para estimular regeneración celular — mejora textura, reduce líneas finas y promueve crecimiento capilar.",
          "PRP uses your own platelets to stimulate cellular regeneration — improving texture, reducing fine lines, and promoting hair growth."
        ),
      },
      {
        cat: "aesthetic",
        q: t("¿Cuánto duran los resultados?", "How long do results last?"),
        a: t(
          "Depende del tratamiento. PRP y microneedling: 9–12 meses con mantenimiento. Hilos PDO: 12–18 meses. Su proveedora le dará una expectativa realista.",
          "Depends on the treatment. PRP and microneedling: 9–12 months with maintenance. PDO threads: 12–18 months. Your provider will set realistic expectations."
        ),
      },
    ],
  },

  cta: {
    title: t(
      ["Comencemos", "su plan de", "bienestar."],
      ["Let's start", "your wellness", "plan."]
    ),
    sub: t(
      "Consulta inicial gratuita para nuevos pacientes. Reserve por teléfono o en línea.",
      "Free initial consultation for new patients. Book by phone or online."
    ),
  },

  contactSection: {
    eyebrow: t("Contacto y visita", "Contact & visit"),
    title: t(
      ["Visítenos en", "Miami."],
      ["Visit us in", "Miami."]
    ),
    sub: t(
      "Estacionamiento disponible. A pasos del Dadeland Mall. Atención bilingüe en cada cita.",
      "Parking available. Steps from Dadeland Mall. Bilingual care at every visit."
    ),
    formTitle: t("Solicite una llamada", "Request a callback"),
    formSub: t(
      "Le contactamos en menos de 24 horas hábiles.",
      "We'll reach out within 24 business hours."
    ),
    interests: [
      { v: "aesthetic", l: t("Estética médica", "Medical aesthetics") },
      { v: "regenerative", l: t("Bienestar / regenerativa", "Wellness / regenerative") },
      { v: "weightloss", l: t("Pérdida de peso GLP-1", "GLP-1 weight loss") },
      { v: "pain", l: t("Alivio del dolor", "Pain relief") },
      { v: "primary", l: t("Atención primaria", "Primary care") },
      { v: "unsure", l: t("No estoy seguro", "Not sure yet") },
    ],
    submit: t("Enviar solicitud", "Send request"),
    success: t(
      "¡Gracias! Le contactaremos pronto.",
      "Thank you! We'll be in touch shortly."
    ),
    errors: {
      name: t("Por favor ingrese su nombre", "Please enter your name"),
      email: t("Email inválido", "Invalid email"),
      phone: t("Por favor ingrese su teléfono", "Please enter your phone"),
      interest: t("Seleccione un servicio", "Select a service"),
    },
    labels: {
      name: t("Nombre completo", "Full name"),
      email: t("Email", "Email"),
      phone: t("Teléfono", "Phone"),
      interest: t("Me interesa", "I'm interested in"),
      message: t("Mensaje (opcional)", "Message (optional)"),
      placeholderInterest: t("Seleccione…", "Select…"),
    },
  },
};

// Helper for use inside components
window.useText = function () {
  const ctx = React.useContext(window.LangCtx);
  return (m) => (m && typeof m === "object" && "es" in m) ? (m[ctx.lang] || m.en) : m;
};
