"""Verify default image files are included before cPanel deployment (no database needed)."""
from pathlib import Path
base = Path(__file__).resolve().parent / "website/static/website/img/services"
for filename in ("home_nursing_photo.jpg", "elderly_care_photo.jpg", "post_hospital_photo.jpg"):
    p = base / filename
    if not p.is_file() or p.stat().st_size < 10000 or p.read_bytes()[:3] != b"\xff\xd8\xff":
        raise SystemExit(f"Missing or invalid image: {p}")
    print(f"OK: {filename} ({p.stat().st_size:,} bytes)")
print("Bundled homepage images verified. Run collectstatic on the server.")
