// data.jsx — shared site data. Attached to `window` so every script can read them.

window.FIRM = {
  name: 'Alex Narayan',
  tagline: 'Attorney at Law',
  phone: '(805) 521-4085',
  phoneHref: 'tel:+18055214085',
  email: 'intake@alexnarayan.com',
  address: '14900 Ventura Blvd, Ste 220, Sherman Oaks, CA 91403',
};

window.IMG = {
  personalInjuryHero: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035308_de80329e-d335-4406-8524-3d2e37f553c3.png',
  personalInjuryDetail: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035448_55e2a636-c4b8-414b-92d5-de3e33a57c5e.png',
  autoHero: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035311_4338bc05-a6c3-48a2-9371-b27c8ae9133c.png',
  autoDetail: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035451_88898134-fdf2-4f39-816b-c595b5441a91.png',
  motoHero: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035314_34f4f63c-4d36-4219-a15b-caaa52ecf2a8.png',
  motoDetail: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035452_170afcab-32d4-4b25-9b9f-3677eabd9447.png',
  truckHero: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035315_398696e6-df36-4bb8-80eb-8557c26b9cc7.png',
  truckDetail: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035454_29740571-d735-4eb7-8d3b-75bc1b7caef1.png',
  premisesHero: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035317_efe50ba7-74c6-420c-8305-692793992ffa.png',
  premisesDetail: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035456_02ab133b-a2bd-4d08-b292-b6aa803e76a2.png',
  workersHero: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035318_59833375-4950-42e4-a838-dc0dcd1424ef.png',
  workersDetail: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035458_a3923ab5-5df3-40e1-b62e-4258935710c4.png',
  laborHero: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035320_a95b84ad-ad00-40f4-81a1-0c57fd9ea59a.png',
  laborDetail: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035459_a2e08a48-d2c1-40ab-80ca-edf6010463ab.png',
  aboutHero: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035323_4a56aca6-5fd0-44a6-8def-0fd11adfe496.png',
  resultsHero: 'https://d8j0ntlcm91z4.cloudfront.net/user_3EBK4iDbVoyiHWnGG9CmdMh5pLR/hf_20260603_035446_4aad3148-9214-4130-8e97-27f6bf3fb8e9.png',
};

window.PRACTICES = [
  { slug: 'personal-injury',       icon: 'shield-check',    name: 'Personal Injury',
    blurb: 'Full recovery for the harm done to you. No fee unless we win.',
    detail: 'When you are hurt by someone else’s negligence, the insurance company is not on your side. Alex handles the pressure and the paperwork so you can heal — and pursues every dollar you are owed.',
    hero: window.IMG.personalInjuryHero, photo: window.IMG.personalInjuryDetail },
  { slug: 'auto-accidents',        icon: 'car',             name: 'Auto Accidents',
    blurb: 'Maximum compensation after a car crash — medical bills, lost wages, and more.',
    detail: 'From rear-end collisions to multi-car pileups, Alex investigates the crash, deals with the adjusters, and fights for the full value of your injuries, vehicle damage, and time away from work.',
    hero: window.IMG.autoHero, photo: window.IMG.autoDetail },
  { slug: 'motorcycle-accidents',  icon: 'bike',            name: 'Motorcycle Accidents',
    blurb: 'Hard-hitting advocacy for riders the system too often blames.',
    detail: 'Riders face bias from insurers and juries alike. Alex tells your side of the story, documents the severity of your injuries, and holds negligent drivers fully accountable.',
    hero: window.IMG.motoHero, photo: window.IMG.motoDetail },
  { slug: 'truck-accidents',       icon: 'truck',           name: 'Truck Accidents',
    blurb: 'Taking on trucking companies and their insurers after catastrophic crashes.',
    detail: 'Commercial truck cases are complex — multiple defendants, federal rules, and aggressive defense teams. Alex moves fast to preserve evidence and build the case your serious injuries demand.',
    hero: window.IMG.truckHero, photo: window.IMG.truckDetail },
  { slug: 'premises-accidents',    icon: 'triangle-alert',  name: 'Premises Accidents',
    blurb: 'Slip-and-falls and unsafe properties — when owners fail to keep you safe.',
    detail: 'Property owners owe you a duty of reasonable care. When a hazard causes your injury, Alex proves the negligence and pursues the compensation you deserve.',
    hero: window.IMG.premisesHero, photo: window.IMG.premisesDetail },
  { slug: 'workers-compensation',  icon: 'hard-hat',        name: 'Workers’ Compensation',
    blurb: 'Protecting injured workers and the benefits they’ve earned.',
    detail: 'Hurt on the job? Alex guides you through the workers’ comp system, fights wrongful denials, and makes sure you receive the medical care and wage benefits you are entitled to.',
    hero: window.IMG.workersHero, photo: window.IMG.workersDetail },
  { slug: 'labor-law',             icon: 'scale',           name: 'Labor Law',
    blurb: 'Standing up for employees against unfair and unlawful treatment.',
    detail: 'From wage-and-hour violations to wrongful termination and retaliation, Alex holds employers accountable and protects the rights of California workers.',
    hero: window.IMG.laborHero, photo: window.IMG.laborDetail },
];

window.REVIEWS = [
  { quote: 'After my accident the insurance company offered next to nothing. Alex took over and recovered far more than their first offer. He treated me like family.', name: 'David R.', case: 'Auto Accident' },
  { quote: 'Alex was the only attorney who actually returned my calls. He explained every option in plain English and made sure my medical bills were handled. I cannot recommend him enough.', name: 'María G.', case: 'Personal Injury' },
  { quote: 'Calm, prepared, and relentless. After my workplace injury he made sure I got the care and the benefits I had earned. Worth every bit of his reputation.', name: 'Jennifer T.', case: 'Workers’ Compensation' },
  { quote: 'My employer thought they could push me around. Alex showed them otherwise. He fought for every cent I was owed.', name: 'Carlos M.', case: 'Labor Law' },
  { quote: 'A motorcycle crash left me unable to work. Alex took the case the other lawyers wouldn’t touch and got the result that changed my family’s life.', name: 'Bryan K.', case: 'Motorcycle Accident' },
  { quote: 'I slipped at a shopping center and the landlord blamed me. Alex proved the hazard had been there for hours. The result spoke for itself.', name: 'Linda S.', case: 'Premises Accident' },
];

// LUCIDE_PATHS — inline SVG path data for every icon used on the site.
// Sourced from lucide.dev (ISC licensed). Hardcoded so the site doesn't depend on
// the Lucide UMD bundle (which mutates DOM in a way that conflicts with React).
window.LUCIDE_PATHS = {
  "shield-check":   '<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/>',
  "car":            '<path d="M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"/><circle cx="7" cy="17" r="2"/><path d="M9 17h6"/><circle cx="17" cy="17" r="2"/>',
  "bike":           '<circle cx="18.5" cy="17.5" r="3.5"/><circle cx="5.5" cy="17.5" r="3.5"/><circle cx="15" cy="5" r="1"/><path d="M12 17.5V14l-3-3 4-3 2 3h2"/>',
  "truck":          '<path d="M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"/><path d="M15 18H9"/><path d="M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"/><circle cx="17" cy="18" r="2"/><circle cx="7" cy="18" r="2"/>',
  "triangle-alert": '<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/>',
  "hard-hat":       '<path d="M2 18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-2a4 4 0 0 0-4-4h-1.34a2 2 0 0 1-2-1.78L14 6h-4l-.66 4.22a2 2 0 0 1-2 1.78H6a4 4 0 0 0-4 4z"/><path d="M4 15v-3a6 6 0 0 1 6-6"/><path d="M14 6a6 6 0 0 1 6 6v3"/>',
  "scale":          '<path d="m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z"/><path d="m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z"/><path d="M7 21h10"/><path d="M12 3v18"/><path d="M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2"/>',
  "check":          '<path d="M20 6 9 17l-5-5"/>',
  "phone":          '<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/>',
  "mail":           '<rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/>',
  "map-pin":        '<path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"/><circle cx="12" cy="10" r="3"/>',
  "message-circle": '<path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z"/>',
  "heart-handshake":'<path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.29 1.51 4.04 3 5.5l7 7Z"/><path d="M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.85a2.82 2.82 0 0 1 3.79 0l2.96 2.66"/><path d="m18 15-2-2"/><path d="m15 18-2-2"/>',
};

// Icon — pure stateless SVG wrapper. dangerouslySetInnerHTML keeps React from
// trying to reconcile the SVG children, so it cannot crash on re-render.
window.Icon = function Icon({ name, size = 18, color, strokeWidth = 1.75, style = {} }) {
  const paths = window.LUCIDE_PATHS[name] || '';
  const stroke = color || 'currentColor';
  return (
    <span style={{ display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: size, height: size, lineHeight: 0, ...style }}>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        width={size}
        height={size}
        viewBox="0 0 24 24"
        fill="none"
        stroke={stroke}
        strokeWidth={strokeWidth}
        strokeLinecap="round"
        strokeLinejoin="round"
        dangerouslySetInnerHTML={{ __html: paths }}
      />
    </span>
  );
};

// Supabase intake config — used by ConsultationForm.jsx to submit leads.
window.SUPABASE = {
  url: 'https://dvmfmqzciatjoqimityp.supabase.co',
  publishableKey: 'sb_publishable_8MhjrcgNhlXlbiHMge8QmQ_rbMCPLkY',
  submitLeadFn: 'submit_alex_narayan_lead',
};
