# BeSquared Property - WordPress Theme

A 100% same-to-same WordPress conversion of the BeSquared Property Next.js application.

## 📦 What is Included

1. **Complete WordPress Theme:**
   - `style.css` (Standard WordPress theme metadata)
   - `functions.php` (Theme setup, script enqueuing, AJAX endpoint, Custom Post Type for leads)
   - `header.php` (Sticky header, emergency contact strip, brand SVG logo, desktop & mobile drawer navigation)
   - `footer.php` (5-column footer, legal links, copyright, NAPBA badge)
   - `front-page.php` (Complete Home page with 3D Hero, interactive form, trust badges, comparison table, situations, case studies, FAQs, and CTA)
   - `page-how-it-works.php` (How It Works page template)
   - `page-why-choose-us.php` (Why Choose Us page template)
   - `page-faqs.php` (FAQs page template with accordion)
   - `page-contact.php` (Contact page template with phone/email desks and operating hours)
   - `page.php`, `single.php`, `index.php` (Fallback templates)
   - `screenshot.png` (Theme preview image for WordPress admin)

2. **Modular Template Parts (`template-parts/`):**
   - `hero.php` (3D scene backdrop, minimal metrics pills, trust indicators)
   - `cash-offer-form.php` (Full 5-step interactive cash offer form)
   - `trust-bar.php` (NAPBA, Property Ombudsman, Zero Fees, ICO, Direct Buyer credentials)
   - `how-it-works.php` (3-step visual cards)
   - `comparison-table.php` (BeSquared vs Estate Agents vs Auction table)
   - `situations.php` (6 circumstance solutions)
   - `case-studies.php` (Birmingham, Manchester, Leeds recent purchases)
   - `faq-section.php` (Interactive FAQ accordion)
   - `bottom-cta.php` (High-conversion bottom banner)

3. **Scripts & Assets (`assets/`):**
   - `css/main.css` (Compiled, production-minified Tailwind CSS + animations)
   - `js/three-scene.js` (Three.js 3D house, rotating frames, orbiting cubes, floating gold particles, mouse interaction)
   - `js/card-tilt.js` (3D card tilt & dynamic lighting sheen hover effect)
   - `js/cash-offer-form.js` (Complete 5-step form logic: UK postcode lookup simulation, dropdown selector, manual address fallback, property specs, condition, photo upload & previews, contact info, validation, and WordPress AJAX submission)
   - `js/main.js` (Mobile drawer navigation, FAQ accordion, smooth scrolling)

4. **Installable Archive:**
   - `besquared-theme.zip` (Ready to upload directly into WordPress Admin)

---

## 🚀 How to Install in WordPress

### Option 1: Upload via WordPress Admin (Recommended)
1. Log in to your WordPress Dashboard (`/wp-admin`).
2. Go to **Appearance** > **Themes**.
3. Click **Add New Theme**, then click **Upload Theme**.
4. Choose the file `besquared-theme.zip` from your computer and click **Install Now**.
5. Click **Activate**.

### Option 2: Direct Folder Copy (Local or FTP)
1. Copy the folder `besquared-theme` into your WordPress installation:
   `wp-content/themes/besquared-theme/`
2. Go to **Appearance** > **Themes** in WordPress Admin and activate **BeSquared Property**.

---

## 📄 Creating the Pages

1. **Home Page:**
   - Go to **Settings** > **Reading**.
   - Under *Your homepage displays*, select *A static page*.
   - Set **Homepage** to your Home page (or leave as default front page).

2. **Inner Pages:**
   - Go to **Pages** > **Add New**:
     - Title: `How It Works` -> Slug: `how-it-works` (Template: *How It Works Page*)
     - Title: `Why Choose Us` -> Slug: `why-choose-us` (Template: *Why Choose Us Page*)
     - Title: `FAQs` -> Slug: `faqs` (Template: *FAQs Page*)
     - Title: `Contact` -> Slug: `contact` (Template: *Contact Page*)
   - Publish the pages.

---

## 📥 Managing Seller Leads in WordPress

When a seller submits the 5-step form on your website:
1. It automatically saves as a new lead in **Cash Offers** (`property_offer` Custom Post Type) in your WordPress Dashboard with:
   - Full property address & postcode
   - Property specifications (type, bedrooms, tenure)
   - Condition, occupancy, reason for selling
   - Uploaded property photos
   - Seller name, email, UK phone number, timeframe, and notes
2. An instant email notification is sent to the WordPress site administrator (`admin_email`).
