/**
 * SecureHealth Template - Healthcare/Compliance
 * 
 * Compliance-first template for healthcare, legal, and finance.
 * Features a prominent Private AI assistant with HIPAA-compliant messaging.
 */
import type { StarterTemplate } from './types';
import { securehealthBlogPosts } from '../template-blog-posts';
import { securehealthKbCategories } from '../template-kb-articles';

const securehealthPages: StarterTemplate['pages'] = [
  {
    title: 'Home',
    slug: 'home',
    isHomePage: true,
    menu_order: 1,
    showInMenu: true,
    meta: { seoTitle: 'SecureHealth — Trusted Healthcare with Complete Data Privacy', description: 'Your health, your privacy — trusted care with complete data security', showTitle: false, titleAlignment: 'center' },
    blocks: [
      { id: 'hero-1', type: 'hero', data: { title: 'Your Health, Your Privacy', subtitle: 'Trusted care with complete data security. Your information never leaves our servers.', backgroundType: 'video', videoUrl: 'https://videos.pexels.com/video-files/3195394/3195394-uhd_2560_1440_25fps.mp4', videoType: 'direct', videoPosterUrl: '/templates/misc/medical-facility.jpg', videoLoop: true, videoMuted: true, heightMode: '80vh', contentAlignment: 'center', overlayOpacity: 60, titleAnimation: 'slide-up', showScrollIndicator: true, primaryButton: { text: 'Book Appointment', url: '/book' }, secondaryButton: { text: 'Ask Our Private AI', url: '#chat-launcher-home' } } },
      { id: 'divider-hero-badges', type: 'section-divider', data: { shape: 'curved', height: 'sm' } },
      { id: 'badge-compliance', type: 'badge', data: { title: 'Trusted & Certified', badges: [{ id: 'b1', title: 'HIPAA Compliant', icon: 'shield' }, { id: 'b2', title: 'SOC 2 Type II', icon: 'check' }, { id: 'b3', title: 'JCI Accredited', icon: 'award' }, { id: 'b4', title: 'ISO 27001', icon: 'medal' }], variant: 'minimal', columns: 4, size: 'md', showTitles: true, grayscale: false } },
      { id: 'info-box-1', type: 'info-box', data: { title: 'Now Accepting New Patients', content: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Same-day appointments available. Call us or use our AI assistant to find the next available slot.' }] }] }, variant: 'highlight' } },
      { id: 'link-grid-1', type: 'link-grid', data: { columns: 3, links: [{ icon: 'Calendar', title: 'Book Appointment', description: 'Schedule your visit online', url: '/book' }, { icon: 'MapPin', title: 'Find Us', description: 'Locations & directions', url: '/about' }, { icon: 'Phone', title: 'Urgent Care', description: '24/7 medical helpline', url: '/contact' }] } },
      { id: 'stats-1', type: 'stats', data: { title: 'Why Patients Trust Us', stats: [{ value: '98%', label: 'Patient Satisfaction', icon: 'Heart' }, { value: '<15min', label: 'Average Wait Time', icon: 'Clock' }, { value: '25+', label: 'Specialists On Staff', icon: 'UserCheck' }, { value: '10K+', label: 'Patients Annually', icon: 'Users' }] } },
      { id: 'chat-launcher-home', type: 'chat-launcher', data: { title: 'Questions? Ask Our Private AI', subtitle: 'HIPAA-compliant – your data never leaves our servers', placeholder: 'Ask about services, booking, or patient resources...', showQuickActions: true, quickActionCount: 4, variant: 'card' } },
      {
        id: 'accordion-home-faq',
        type: 'accordion',
        data: {
          title: 'Patient FAQ',
          items: [
            { question: 'Is the AI assistant private?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes! Unlike cloud-based AI services, our Private AI runs entirely on our own HIPAA-compliant servers. Your conversations and health questions never leave our secure infrastructure.' }] }] } },
            { question: 'How do I book an appointment?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'You can book appointments online 24/7 using our booking system. Simply select your service, choose an available time, and confirm. You\'ll receive an email confirmation immediately.' }] }] } },
            { question: 'What insurance do you accept?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We accept most major insurance plans including Medicare, Blue Cross Blue Shield, Aetna, Cigna, and United Healthcare. Contact us to verify your specific coverage before your visit.' }] }] } },
            { question: 'What are your office hours?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Our primary care is available Monday-Friday 8am-6pm, with Saturday morning hours available. Our 24/7 emergency care line is always available for urgent medical questions.' }] }] } },
            { question: 'How do I access my medical records?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'You can access your medical records through our secure patient portal. We use two-factor authentication and encrypted connections to protect your privacy.' }] }] } },
          ],
        },
      },
      {
        id: 'testimonials-1',
        type: 'testimonials',
        data: {
          title: 'What Our Patients Say',
          testimonials: [
            { id: 't1', content: 'The care I received was exceptional. The staff was attentive and the AI assistant helped me find the right specialist quickly.', author: 'Maria S.', role: 'Patient', rating: 5 },
            { id: 't2', content: 'I was hesitant about using an AI for health questions, but knowing that my data stays private made all the difference.', author: 'Rebecca M.', role: 'Patient', rating: 5 },
            { id: 't3', content: 'Booking appointments is so easy now. The whole experience feels modern while still being personal and caring.', author: 'David L.', role: 'Patient', rating: 5 },
          ],
          layout: 'carousel',
          columns: 3,
          showRating: true,
          showAvatar: false,
          buttonUrl: '/book',
          gradient: false,
        },
      },
      {
        id: 'parallax-care',
        type: 'parallax-section',
        data: {
          backgroundImage: '/templates/misc/hospital.jpg',
          title: 'Compassionate Care, Modern Technology',
          subtitle: 'Where patient privacy meets medical excellence.',
          height: 'sm',
          textColor: 'light',
          overlayOpacity: 65,
          contentAlignment: 'center',
        },
      },
      {
        id: 'tabs-services',
        type: 'tabs',
        data: {
          title: 'Our Medical Services',
          subtitle: 'Comprehensive care across all specialties',
          tabs: [
            { id: 'tab-primary', label: 'Primary Care', content: { type: 'doc', content: [{ type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: 'General Medicine' }] }, { type: 'paragraph', content: [{ type: 'text', text: 'Routine checkups, preventive care, and treatment for common illnesses. Our primary care physicians are your first point of contact for all health concerns.' }] }, { type: 'bulletList', content: [{ type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Annual health screenings' }] }] }, { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Chronic disease management' }] }] }, { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Vaccinations and immunizations' }] }] }] }] } },
            { id: 'tab-specialists', label: 'Specialists', content: { type: 'doc', content: [{ type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: 'Expert Specialty Care' }] }, { type: 'paragraph', content: [{ type: 'text', text: 'Access to board-certified specialists across cardiology, orthopedics, neurology, and more. Coordinated care with your primary physician.' }] }, { type: 'bulletList', content: [{ type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Cardiology and heart health' }] }] }, { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Orthopedics and sports medicine' }] }] }, { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Neurology and mental health' }] }] }] }] } },
            { id: 'tab-emergency', label: 'Emergency Care', content: { type: 'doc', content: [{ type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: '24/7 Emergency Services' }] }, { type: 'paragraph', content: [{ type: 'text', text: 'State-of-the-art emergency department with experienced trauma teams. Open 24 hours a day, 365 days a year.' }] }, { type: 'bulletList', content: [{ type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Immediate triage and assessment' }] }] }, { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Advanced diagnostic imaging' }] }] }, { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Trauma and critical care' }] }] }] }] } },
          ],
          orientation: 'horizontal',
          variant: 'pills',
        },
      },
    ],
  },
  {
    title: 'Services',
    slug: 'services',
    menu_order: 2,
    showInMenu: true,
    meta: { seoTitle: 'Healthcare Services — Comprehensive Care | SecureHealth', description: 'Comprehensive healthcare services for you and your family', showTitle: false, titleAlignment: 'center' },
    blocks: [
      { id: 'hero-1', type: 'hero', data: { title: 'Our Medical Services', subtitle: 'Comprehensive care for every stage of life', backgroundType: 'color', heightMode: 'auto', contentAlignment: 'center', overlayOpacity: 0 } },
      { id: 'link-grid-1', type: 'link-grid', data: { columns: 3, links: [{ icon: 'HeartPulse', title: 'Primary Care', description: 'General health checkups and preventive care', url: '/services' }, { icon: 'Stethoscope', title: 'Specialists', description: 'Expert care across all medical fields', url: '/services' }, { icon: 'Baby', title: 'Pediatrics', description: 'Caring for children of all ages', url: '/services' }, { icon: 'Brain', title: 'Mental Health', description: 'Private counseling and therapy', url: '/services' }, { icon: 'Activity', title: 'Diagnostics', description: 'Advanced testing and imaging', url: '/services' }, { icon: 'Pill', title: 'Pharmacy', description: 'On-site prescription services', url: '/contact' }] } },
      { id: 'two-col-1', type: 'two-column', data: { eyebrow: 'SERVICES', title: 'Primary Care', titleSize: 'large', content: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Our primary care physicians provide comprehensive health management for patients of all ages. From annual wellness visits to managing chronic conditions, we\'re your first point of contact for all health concerns.' }] }, { type: 'bulletList', content: [{ type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Annual wellness exams' }] }] }, { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Chronic disease management' }] }] }, { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Preventive screenings' }] }] }] }] }, imageSrc: '/templates/team/nurse.jpg', imageAlt: 'Doctor with patient', imagePosition: 'right' } },
      { id: 'info-box-1', type: 'info-box', data: { title: 'HIPAA Compliant • Your Data Stays Here', content: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Our Private AI runs entirely on our secure, HIPAA-compliant infrastructure. Your health information is never sent to external cloud services.' }] }] }, variant: 'success' } },
      { id: 'cta-1', type: 'cta', data: { title: 'Ready to Schedule?', subtitle: 'Book your appointment today.', buttonText: 'Book Now', buttonUrl: '/book', gradient: false } },
    ],
  },
  {
    title: 'About Us',
    slug: 'about',
    menu_order: 3,
    showInMenu: true,
    meta: { seoTitle: 'About SecureHealth — Our Commitment to Privacy & Care', description: 'Learn about our practice and our commitment to privacy', showTitle: false, titleAlignment: 'center' },
    blocks: [
      { id: 'hero-1', type: 'hero', data: { title: 'About Our Practice', subtitle: '20+ years of compassionate, patient-centered care', backgroundType: 'image', backgroundImage: '/templates/misc/hospital.jpg', heightMode: '60vh', contentAlignment: 'center', overlayOpacity: 60 } },
      { id: 'two-col-1', type: 'two-column', data: { eyebrow: 'OUR PRACTICE', title: 'Our Story', titleSize: 'large', content: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'For over 20 years, we\'ve been providing compassionate, patient-centered care to our community. Our team of board-certified specialists is committed to your health and well-being.' }] }, { type: 'paragraph', content: [{ type: 'text', text: 'We believe that quality healthcare should come with complete privacy. That\'s why we\'ve invested in state-of-the-art, on-premise technology that keeps your data exactly where it belongs.' }] }] }, imageSrc: '/templates/team/nurse.jpg', imageAlt: 'Medical team', imagePosition: 'right' } },
      { id: 'stats-1', type: 'stats', data: { title: 'Our Credentials', stats: [{ value: '20+', label: 'Years of Experience', icon: 'Award' }, { value: 'Board', label: 'Certified Physicians', icon: 'ShieldCheck' }, { value: 'HIPAA', label: 'Full Compliance', icon: 'Lock' }, { value: '5-Star', label: 'Patient Rating', icon: 'Star' }] } },
      { id: 'team-1', type: 'team', data: { title: 'Meet Our Doctors', subtitle: 'Board-certified specialists dedicated to your care.', members: [{ id: 'm1', name: 'Dr. Sofia Berg', role: 'Medical Director', bio: 'Board-certified in Internal Medicine with 20+ years of experience.', photo: '/templates/team/doctor-woman.jpg' }, { id: 'm2', name: 'Dr. James Wilson', role: 'Cardiologist', bio: 'Specialist in cardiovascular health and preventive care.', photo: '/templates/team/doctor-man.jpg' }, { id: 'm3', name: 'Dr. Emily Chen', role: 'Pediatrician', bio: 'Caring for children of all ages with a gentle approach.', photo: '/templates/team/doctor-woman-2.jpg' }, { id: 'm4', name: 'Dr. Michael Torres', role: 'Mental Health', bio: 'Psychiatrist specializing in anxiety and depression.', photo: '/templates/team/doctor-man-2.jpg' }], columns: 4, layout: 'grid', variant: 'cards', showBio: true, showSocial: false } },
    ],
  },
  {
    title: 'Patient Resources',
    slug: 'resources',
    menu_order: 4,
    showInMenu: true,
    meta: { seoTitle: 'Patient Resources & Health Guides | SecureHealth', description: 'Access patient guides, health resources, and FAQs. Everything you need to manage your care with confidence.', showTitle: false, titleAlignment: 'center' },
    blocks: [
      { id: 'hero-1', type: 'hero', data: { title: 'Patient Resources', subtitle: 'Everything you need to know about your care', backgroundType: 'color', heightMode: 'auto', contentAlignment: 'center', overlayOpacity: 0 } },
      { id: 'chat-1', type: 'chat-launcher', data: { title: 'Private AI Health Assistant', subtitle: 'HIPAA-compliant — all conversations stay private', placeholder: 'Ask about appointments, services, or health information...', showQuickActions: true, quickActionCount: 4, variant: 'card' } },
      {
        id: 'accordion-1',
        type: 'accordion',
        data: {
          title: 'Common Questions',
          items: [
            { question: 'Is the AI assistant really private?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes. Unlike cloud-based AI services, our Private AI runs entirely on our own HIPAA-compliant servers. Your conversations never leave our secure infrastructure.' }] }] } },
            { question: 'What insurance do you accept?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We accept most major insurance plans including Medicare, Blue Cross Blue Shield, Aetna, Cigna, and United Healthcare. Contact us to verify your coverage.' }] }] } },
            { question: 'How do I access my medical records?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'You can access your medical records through our secure patient portal. We use two-factor authentication and encrypted connections for privacy.' }] }] } },
            { question: 'Can I book appointments online?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes! Use our AI assistant or the booking button to schedule appointments 24/7.' }] }] } },
            { question: 'Where are you located?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We have multiple locations throughout the region. Each facility features free parking and full accessibility.' }] }] }, image: '/templates/misc/hospital.jpg', imageAlt: 'Modern medical facility' },
          ],
        },
      },
      { id: 'info-box-1', type: 'info-box', data: { title: 'Patient Portal', content: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Access your medical records, test results, and appointment history securely online. All data is encrypted and stored on our HIPAA-compliant servers.' }] }] }, variant: 'default' } },
    ],
  },
  {
    title: 'Book Appointment',
    slug: 'book',
    menu_order: 5,
    showInMenu: true,
    meta: { description: 'Schedule your appointment online with our easy booking system', showTitle: false, titleAlignment: 'center' },
    blocks: [
      { id: 'hero-1', type: 'hero', data: { title: 'Book Your Appointment', subtitle: 'Choose your service, pick a time that works for you, and we\'ll take care of the rest.', backgroundType: 'image', backgroundImage: '/templates/misc/medical-tech.jpg', heightMode: '60vh', contentAlignment: 'center', overlayOpacity: 55, titleAnimation: 'fade-in' } },
      { id: 'features-1', type: 'features', data: { title: 'How It Works', features: [{ id: 'f1', icon: 'ClipboardList', title: '1. Choose Service', description: 'Select the type of appointment you need.' }, { id: 'f2', icon: 'Calendar', title: '2. Pick a Time', description: 'Let us know your preferred date and time.' }, { id: 'f3', icon: 'CheckCircle', title: '3. Confirmation', description: 'We\'ll call to confirm your appointment.' }], columns: 3, layout: 'grid', variant: 'centered', iconStyle: 'circle' } },
      { id: 'booking-1', type: 'booking', data: { title: 'Book Your Appointment', description: 'Select a service and choose an available time slot.', mode: 'smart', submitButtonText: 'Confirm Appointment', successMessage: 'Your appointment is booked! Check your email for confirmation.', showPhoneField: true, triggerWebhook: true, variant: 'card' } },
      { id: 'info-box-1', type: 'info-box', data: { title: 'What to Bring', content: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Please bring your insurance card, a valid ID, and a list of current medications. New patients should arrive 15 minutes early to complete paperwork.' }] }] }, variant: 'info' } },
      {
        id: 'accordion-1',
        type: 'accordion',
        data: {
          title: 'Appointment FAQ',
          items: [
            { question: 'How far in advance can I book?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'You can book appointments up to 3 months in advance. Same-day appointments may be available for urgent care needs.' }] }] } },
            { question: 'What if I need to cancel?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Please cancel at least 24 hours before your appointment. You can call us or use the patient portal to reschedule.' }] }] } },
            { question: 'Do you accept my insurance?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We accept most major insurance plans. Contact us to verify your specific coverage before your visit.' }] }] } },
            { question: 'Can I request a specific doctor?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes! Include your preferred physician in the message field and we\'ll do our best to accommodate your request.' }] }] } },
          ],
        },
      },
      { id: 'contact-1', type: 'contact', data: { title: 'Prefer to Call?', phone: '+1 (555) 234-5678', email: 'appointments@securehealth.com', hours: [{ day: 'Booking Line', time: 'Mon-Fri 7AM-7PM' }, { day: 'Urgent Care', time: '24/7 Available' }] } },
    ],
  },
  {
    title: 'Contact',
    slug: 'contact',
    menu_order: 6,
    showInMenu: true,
    meta: { seoTitle: 'Contact — Reach Our Care Team | SecureHealth', description: 'Book an appointment, ask a question, or reach our care team. Same-day responses and 24/7 emergency line available.', showTitle: false, titleAlignment: 'center' },
    blocks: [
      { id: 'hero-1', type: 'hero', data: { title: 'Contact Us', subtitle: 'We\'re here to help with your healthcare needs', backgroundType: 'color', heightMode: 'auto', contentAlignment: 'center', overlayOpacity: 0 } },
      { id: 'chat-1', type: 'chat-launcher', data: { title: 'Book with AI Assistant', subtitle: 'Private and HIPAA-compliant', placeholder: 'Ask about booking, services, or availability...', showQuickActions: true, quickActionCount: 4, variant: 'card' } },
      { id: 'booking-1', type: 'booking', data: { title: 'Book an Appointment', description: 'Select a service and choose your preferred time.', mode: 'smart', submitButtonText: 'Confirm Appointment', successMessage: 'Your appointment is confirmed! Check your email for details.', showPhoneField: true, variant: 'card' } },
      { id: 'contact-1', type: 'contact', data: { title: 'Contact Information', phone: '+1 (555) 234-5678', email: 'care@securehealth.com', address: '200 Medical Center Drive, Suite 100, Boston, MA 02115', hours: [{ day: 'Monday - Friday', time: '7:00 AM - 7:00 PM' }, { day: 'Saturday', time: '8:00 AM - 4:00 PM' }, { day: 'Sunday', time: 'Closed (Urgent Care: 24/7)' }, { day: 'Emergency', time: 'Call 911 or (555) 234-5679' }] } },
      { id: 'info-box-1', type: 'info-box', data: { title: 'Emergency Care', content: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'For medical emergencies, please call 911 immediately. For urgent but non-emergency concerns outside of office hours, call our 24/7 nurse line.' }] }] }, variant: 'warning' } },
    ],
  },
  {
    title: 'Patient FAQ',
    slug: 'faq',
    menu_order: 7,
    showInMenu: true,
    meta: { seoTitle: 'Frequently Asked Questions — Patient Care | SecureHealth', description: 'Frequently asked questions about our healthcare services, appointments, and patient care', showTitle: false, titleAlignment: 'center' },
    blocks: [
      { id: 'hero-faq', type: 'hero', data: { title: 'Patient FAQ', subtitle: 'Find answers to common questions about our services, appointments, and patient care', backgroundType: 'color', heightMode: 'auto', contentAlignment: 'center', overlayOpacity: 0 } },
      { id: 'accordion-appointments', type: 'accordion', data: { title: 'Appointments & Scheduling', items: [
        { question: 'How do I schedule an appointment?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'You can schedule an appointment online through our patient portal, by calling our office at +1 (555) 234-5678, or by using our AI assistant. Same-day appointments may be available for urgent needs.' }] }] } },
        { question: 'What should I bring to my first appointment?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Please bring your insurance card, a valid photo ID, a list of current medications, and any relevant medical records. New patients should arrive 15 minutes early to complete paperwork.' }] }] } },
        { question: 'How do I cancel or reschedule?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Please cancel or reschedule at least 24 hours before your appointment. You can do this through the patient portal, by calling our office, or using our AI assistant.' }] }] } },
        { question: 'Do you offer telehealth appointments?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes! We offer secure video consultations for many types of appointments. Ask about telehealth options when scheduling, or select "Video Visit" in our online booking system.' }] }] } },
      ] } },
      { id: 'accordion-insurance', type: 'accordion', data: { title: 'Insurance & Billing', items: [
        { question: 'What insurance plans do you accept?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We accept most major insurance plans including Medicare, Blue Cross Blue Shield, Aetna, Cigna, United Healthcare, and many others. Contact us to verify your specific coverage before your visit.' }] }] } },
        { question: 'What if I don\'t have insurance?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We offer self-pay options and payment plans for uninsured patients. Please speak with our billing department to discuss options that work for your situation.' }] }] } },
        { question: 'How do I access my billing statements?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'You can view and pay bills through our secure patient portal. Paper statements are also mailed monthly. For billing questions, contact our billing department directly.' }] }] } },
      ] } },
      { id: 'accordion-privacy', type: 'accordion', data: { title: 'Privacy & Records', items: [
        { question: 'Is my health information secure?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes. We are fully HIPAA compliant and use state-of-the-art encryption to protect your health information. All data is stored on our own secure servers and never shared with third parties without your consent.' }] }] } },
        { question: 'How do I access my medical records?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'You can access your medical records, test results, and appointment history through our secure patient portal. We use two-factor authentication for your protection.' }] }] } },
        { question: 'Is the AI assistant really private?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes. Unlike cloud-based AI services, our Private AI runs entirely on our own HIPAA-compliant servers. Your conversations never leave our secure infrastructure.' }] }] } },
      ] } },
      { id: 'accordion-services', type: 'accordion', data: { title: 'Services & Care', items: [
        { question: 'What services do you offer?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We offer comprehensive primary care, specialist consultations (cardiology, dermatology, etc.), pediatric care, mental health services, diagnostic testing, preventive care, and 24/7 urgent care.' }] }] } },
        { question: 'Do you provide prescription refills?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes. Request prescription refills through the patient portal or by calling our office. Please allow 48-72 hours for processing. Some medications may require an appointment.' }] }] } },
        { question: 'Where are you located?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We have multiple locations throughout the region, each featuring free parking and full accessibility. Visit our Contact page for addresses and directions to each facility.' }] }] } },
      ] } },
      { id: 'cta-faq', type: 'cta', data: { title: 'Still Have Questions?', subtitle: 'Our care team is here to help. Contact us or use our AI assistant.', buttonText: 'Contact Us', buttonUrl: '/contact', gradient: false } },
    ],
  },
  {
    title: 'Privacy Policy',
    slug: 'privacy-policy',
    menu_order: 99,
    showInMenu: false,
    meta: { seoTitle: 'Privacy Policy — GDPR & HIPAA Compliance | SecureHealth', description: 'How we collect, use and protect your personal and health data under GDPR and HIPAA', showTitle: true, titleAlignment: 'left' },
    blocks: [
      { id: 'text-1', type: 'text', data: { content: { type: 'doc', content: [
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Introduction' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'SecureHealth is committed to protecting your privacy and handling your personal and health data with the highest level of security. This policy describes how we collect, use, and protect your information in accordance with the General Data Protection Regulation (GDPR) and HIPAA regulations.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Data Controller' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'SecureHealth Inc. is the data controller for the processing of your personal data. You can reach our Data Protection Officer at privacy@securehealth.com.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'What Data We Collect' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'We collect necessary information to provide you with high-quality care:' }] },
        { type: 'bulletList', content: [
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Identity information (name, social security number, contact details)' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Health and medical records (diagnoses, treatments, lab results)' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Appointment and communication history' }] }] },
        ]},
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Legal Basis for Processing' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'We process your personal data based on our legal obligation to maintain medical records and to perform tasks in the public interest within the healthcare sector.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Data Protection and AI Assistant' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Our AI assistant runs locally on our own servers. Your data never leaves our infrastructure and is not shared with external parties. This ensures full HIPAA/GDPR compliance for all conversations.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Your Rights' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'You have the right to access your medical records, request correction of inaccurate information, and in certain cases request deletion or restriction of processing. Please note that medical records must be retained for a minimum of 10 years by law.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Contact' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Questions about how we handle your personal data? Contact our Data Protection Officer at privacy@securehealth.com or call our clinic.' }] },
      ]} } },
    ],
  },
  {
    title: 'Terms of Service',
    slug: 'terms-of-service',
    menu_order: 100,
    showInMenu: false,
    meta: { seoTitle: 'Terms of Service — Healthcare Agreement | SecureHealth', description: 'Terms and conditions for using our healthcare services', showTitle: true, titleAlignment: 'left' },
    blocks: [
      { id: 'text-1', type: 'text', data: { content: { type: 'doc', content: [
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Agreement to Terms' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'By using SecureHealth services, including our patient portal and AI health assistant, you agree to these Terms of Service. These terms are in addition to any consent forms signed during your care.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Healthcare Services' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'SecureHealth provides medical services through licensed healthcare professionals. Our AI assistant provides general health information only and does not replace professional medical advice, diagnosis, or treatment.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Patient Responsibilities' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Patients are responsible for providing accurate health information, following prescribed treatment plans, and keeping scheduled appointments. Missed appointments may be subject to cancellation fees.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Privacy and Confidentiality' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Your health information is protected under HIPAA and applicable privacy laws. Our AI assistant processes all data locally on HIPAA-compliant servers. See our Privacy Policy for full details.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Emergency Services' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Our services are not intended for medical emergencies. If you experience a medical emergency, call 911 immediately or go to the nearest emergency room.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Insurance and Payment' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'We accept most major insurance plans. Patients are responsible for co-pays, deductibles, and any services not covered by insurance. Payment is due at time of service unless other arrangements are made.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Medical Records' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Patients have the right to access their medical records through our secure patient portal. Records are retained in accordance with applicable laws and regulations.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Contact' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Questions about these Terms? Contact our patient services team at care@securehealth.com or call our main office.' }] },
      ]} } },
    ],
  },
  {
    title: 'Cookie Policy',
    slug: 'cookie-policy',
    menu_order: 101,
    showInMenu: false,
    meta: { seoTitle: 'Cookie Policy — Healthcare Website | SecureHealth', description: 'Information about how we use cookies on our healthcare website', showTitle: true, titleAlignment: 'left' },
    blocks: [
      { id: 'text-1', type: 'text', data: { content: { type: 'doc', content: [
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'What Are Cookies?' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Cookies are small text files stored on your device when you visit our website. We use cookies to provide secure, HIPAA-compliant services while respecting your privacy.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Types of Cookies We Use' }] },
        { type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: 'Essential Cookies' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Required for secure access to our patient portal and healthcare services. These cookies enable authentication, session management, and security features required for HIPAA compliance.' }] },
        { type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: 'Analytics Cookies' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Help us understand how patients use our website to improve the experience. Analytics data is anonymized and never includes protected health information (PHI).' }] },
        { type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: 'Functional Cookies' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Remember your preferences such as language settings and accessibility options. These enhance your experience but do not store health information.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'HIPAA Compliance' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Our cookie usage is designed to comply with HIPAA regulations. Cookies never contain protected health information. All patient data is processed separately through our secure, HIPAA-compliant infrastructure.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Patient Portal Cookies' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'When you access our patient portal, session cookies are used to maintain your secure login. These cookies are encrypted and expire when you log out or after a period of inactivity.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Managing Cookie Preferences' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'You can manage non-essential cookie preferences through our cookie banner. Note that disabling essential cookies may prevent access to certain healthcare services.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Contact' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Questions about cookies or data privacy? Contact our privacy team at privacy@securehealth.com.' }] },
      ]} } },
    ],
  },
  {
    title: 'Accessibility',
    slug: 'accessibility',
    menu_order: 99,
    showInMenu: false,
    meta: { seoTitle: 'Accessibility — Making Healthcare Available to All | SecureHealth', description: 'Our commitment to making healthcare accessible to everyone', showTitle: true, titleAlignment: 'left' },
    blocks: [
      { id: 'text-accessibility', type: 'text', data: { content: { type: 'doc', content: [
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Our Commitment to Accessibility' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'SecureHealth is committed to ensuring that our website and healthcare services are accessible to everyone, including individuals with disabilities. We strive to meet or exceed the requirements of the Americans with Disabilities Act (ADA) and Web Content Accessibility Guidelines (WCAG) 2.1 Level AA.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Accessibility Features' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'Our website includes the following accessibility features:' }] },
        { type: 'bulletList', content: [
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Keyboard navigation support for all interactive elements' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Screen reader compatibility with proper ARIA labels and semantic HTML' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'High contrast text and adjustable font sizes' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Alternative text for all images and media' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Clear and consistent navigation structure' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Captions and transcripts for video and audio content' }] }] },
        ]},
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Physical Accessibility' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'All SecureHealth facilities are fully accessible and compliant with ADA requirements, including:' }] },
        { type: 'bulletList', content: [
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Wheelchair accessible entrances and examination rooms' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Accessible parking spaces close to building entrances' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Elevators in multi-story facilities' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Accessible restrooms on all floors' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Sign language interpretation available upon request' }] }] },
        ]},
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Assistive Technologies' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'We provide accommodations for patients who use assistive technologies including screen readers, magnification software, and voice recognition software. Please let us know your needs when scheduling your appointment.' }] },
        { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Feedback and Assistance' }] },
        { type: 'paragraph', content: [{ type: 'text', text: 'We are continually working to improve accessibility. If you encounter any barriers or have suggestions for improvement, please contact us:' }] },
        { type: 'bulletList', content: [
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Email: accessibility@securehealth.com' }] }] },
          { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Phone: +1 (555) 234-5680 (TTY available)' }] }] },
        ]},
        { type: 'paragraph', content: [{ type: 'text', text: 'We aim to respond to all accessibility inquiries within 2 business days and will work with you to provide the information or service you need in an accessible format.' }] },
      ]} } },
    ],
  },
];

export const securehealthTemplate: StarterTemplate = {
  id: 'securehealth',
  name: 'SecureHealth',
  description: 'Compliance-first template for healthcare, legal, and finance. Features a prominent Private AI assistant with HIPAA-compliant messaging.',
  category: 'compliance',
  icon: 'ShieldCheck',
  tagline: 'For organizations where cloud AI is not an option',
  aiChatPosition: 'Full-height featured AI with explicit privacy messaging',
  pages: securehealthPages,
  blogPosts: securehealthBlogPosts,
  kbCategories: securehealthKbCategories,
  requiredModules: ['blog', 'knowledgeBase', 'chat', 'forms', 'bookings'],
  branding: {
    logo: '',
    organizationName: 'SecureHealth',
    brandTagline: 'Your Health, Your Privacy',
    primaryColor: '199 89% 35%',
    headingFont: 'Merriweather',
    bodyFont: 'Open Sans',
    borderRadius: 'md',
    shadowIntensity: 'subtle',
  },
  chatSettings: {
    enabled: true,
    aiProvider: 'local',
    localEndpoint: 'https://your-local-llm.internal/v1',
    n8nWebhookUrl: '',
    landingPageEnabled: true,
    widgetEnabled: true,
    widgetPosition: 'bottom-right',
    welcomeMessage: 'Hello! I\'m your private health assistant. How can I help?',
    systemPrompt: 'You are a HIPAA-compliant healthcare assistant. Be compassionate, informative, and always emphasize patient privacy. Never provide medical diagnoses.',
    suggestedPrompts: [
      'Book me an appointment this week',
      'Is my data kept private?',
      'What specialists are available?',
      'How does your private AI work?',
    ],
    humanHandoffEnabled: true,
    sentimentDetectionEnabled: true,
    sentimentThreshold: 5,
    showLiveAgentBanner: true,
    liveAgentIconStyle: 'avatar',
    includeContentAsContext: true,
    includedPageSlugs: ['*'],
    includeKbArticles: true,
    contentContextMaxTokens: 50000,
    showContextIndicator: true,
    toolCallingEnabled: true,
    allowGeneralKnowledge: true,
  },
  headerSettings: {
    variant: 'mega-menu',
    stickyHeader: true,
    backgroundStyle: 'solid',
    headerShadow: 'md',
    showBorder: true,
    megaMenuEnabled: true,
    megaMenuColumns: 3,
    customNavItems: [
      {
        id: 'services', label: 'Services', url: '#', enabled: true,
        description: 'Comprehensive healthcare services',
        children: [
          { id: 'primary-care', label: 'Primary Care', url: '/services', description: 'General health checkups and preventive care', icon: '🩺' },
          { id: 'mental-health', label: 'Mental Health', url: '/services', description: 'Counseling and therapy services', icon: '🧠' },
          { id: 'telehealth', label: 'Telehealth', url: '/services', description: 'Virtual consultations from home', icon: '💻' },
          { id: 'lab-services', label: 'Lab Services', url: '/services', description: 'Diagnostic testing and results', icon: '🧪' },
          { id: 'pharmacy', label: 'Pharmacy', url: '/services', description: 'Prescription management', icon: '💊' },
          { id: 'specialists', label: 'Specialists', url: '/services', description: 'Access to medical specialists', icon: '👨‍⚕️' },
        ],
      },
      {
        id: 'patients', label: 'For Patients', url: '#', enabled: true,
        description: 'Patient resources and tools',
        children: [
          { id: 'portal', label: 'Patient Portal', url: '/contact', description: 'Access your health records', icon: '📋' },
          { id: 'appointments', label: 'Book Appointment', url: '/book', description: 'Schedule your next visit', icon: '📅' },
          { id: 'records', label: 'Medical Records', url: '/contact', description: 'View and download your records', icon: '📁' },
          { id: 'billing', label: 'Billing', url: '/contact', description: 'View and pay bills online', icon: '💳' },
          { id: 'insurance', label: 'Insurance', url: '/contact', description: 'Insurance information', icon: '🏥' },
        ],
      },
      {
        id: 'about-us', label: 'About', url: '/about', enabled: true,
        description: 'Learn about SecureHealth',
        children: [
          { id: 'our-team', label: 'Our Team', url: '/about', description: 'Meet our healthcare professionals', icon: '👥' },
          { id: 'locations', label: 'Locations', url: '/about', description: 'Find a clinic near you', icon: '📍' },
          { id: 'privacy-security', label: 'Privacy & Security', url: '/privacy-policy', description: 'How we protect your data', icon: '🔐' },
          { id: 'careers', label: 'Careers', url: '/contact', description: 'Join our team', icon: '💼' },
        ],
      },
    ],
  },
  footerSettings: {
    variant: 'enterprise',
    email: 'info@securehealth.se',
    phone: '+46 8 700 00 00',
    address: 'Storgatan 1',
    postalCode: '111 22 Stockholm',
    weekdayHours: 'Mon-Fri 8-17',
    weekendHours: 'Emergency line 24/7',
    showComplianceBadges: true,
    complianceBadges: ['HIPAA', 'SOC2', 'GDPR'],
    legalLinks: [
      { id: 'faq', label: 'Patient FAQ', url: '/faq', enabled: true },
      { id: 'privacy', label: 'Privacy Policy', url: '/privacy-policy', enabled: true },
      { id: 'terms', label: 'Terms of Service', url: '/terms-of-service', enabled: true },
      { id: 'cookies', label: 'Cookie Policy', url: '/cookie-policy', enabled: true },
      { id: 'accessibility', label: 'Accessibility', url: '/accessibility', enabled: true },
    ],
  },
  seoSettings: {
    siteTitle: 'SecureHealth',
    titleTemplate: '%s | SecureHealth',
    defaultDescription: 'HIPAA-compliant healthcare services with complete privacy. Your data stays on our servers.',
    robotsIndex: true,
    robotsFollow: true,
    developmentMode: false,
  },
  aeoSettings: {
    enabled: true,
    organizationName: 'SecureHealth',
    shortDescription: 'HIPAA-compliant healthcare services with complete privacy. Your data stays on our servers.',
    schemaOrgEnabled: true,
    schemaOrgType: 'MedicalOrganization',
    faqSchemaEnabled: true,
    articleSchemaEnabled: true,
    sitemapEnabled: true,
    llmsTxtEnabled: true,
    llmsFullTxtEnabled: true,
  },
  cookieBannerSettings: { enabled: true },
  siteSettings: { homepageSlug: 'home' },
};
