import os
import re

def fix_stuff(file_path):
    with open(file_path, 'r', encoding='utf-8') as f:
        content = f.read()

    # 1. Fix broken footer text
    content = content.replace(
        "(Exact Reference Screenshot Inset Rounded Card with Dark Texture, Links, Socials & Map) -->", 
        "<!-- 6. Footer (Exact Reference Screenshot Inset Rounded Card with Dark Texture, Links, Socials & Map) -->"
    )

    # 2. Change #FAFAFA to #FFFFFF globally just in case
    content = re.sub(r'#FAFAFA', '#FFFFFF', content, flags=re.IGNORECASE)

    with open(file_path, 'w', encoding='utf-8') as f:
        f.write(content)

fix_stuff('d:\\iss\\Franciscan Society\\index.html')
fix_stuff('d:\\iss\\Franciscan Society\\about.html')
print("Fixes applied.")
