Innovio FlexKapG — PHP Website Deployment Package
=================================================

Built as a multi-page PHP site for Namecheap (or any Apache + PHP shared host).
No JavaScript framework, no Composer, no database — just upload and configure.


REQUIREMENTS
------------
- PHP 7.4 or newer (PHP 8.x recommended). Any modern Namecheap plan ships with
  this by default. No extra extensions are required beyond the standard
  openssl + mbstring that come pre-installed.
- A working email mailbox (cPanel -> Email Accounts) so the site can send mail
  via SMTP.


===============================================================================
A) BACK UP YOUR EXISTING WORDPRESS BEFORE UPLOADING
===============================================================================
1. cPanel -> File Manager -> public_html.
2. Either DOWNLOAD a full backup (cPanel -> Backup) and DELETE the contents of
   public_html, OR move the WordPress files into a folder like
   "public_html_wp_old" so you can restore them later.
3. Confirm public_html is empty before continuing.


===============================================================================
B) UPLOAD THE NEW SITE
===============================================================================
1. Unzip "innovio-website-php.zip" on your computer.
   Inside you will see: index.php, workflow.php, service.php, imprint.php,
   privacy.php, terms.php, contact.php, config.php, .htaccess, and the
   /assets, /includes, /lib folders.
2. Upload ALL of those files INTO public_html (directly, not into a sub-folder).
3. Make sure the hidden ".htaccess" file is uploaded too. In cPanel File
   Manager, enable Settings -> Show Hidden Files.
4. File permissions: leave defaults (644 for files, 755 for folders). Don't
   make config.php world-writable.


===============================================================================
C) CONFIGURE THE CONTACT FORM (only file you need to edit)
===============================================================================
Open public_html/config.php in cPanel File Manager (right-click -> Edit) and
update these values:

    'mail_to'        => 'office@innovio.at',     // who receives inquiries
    'smtp_host'      => 'mail.innovio.at',       // your SMTP server
    'smtp_port'      => 465,                     // 465 (SSL) or 587 (TLS)
    'smtp_encryption'=> 'ssl',                   // 'ssl' or 'tls'
    'smtp_username'  => 'office@innovio.at',     // full email address
    'smtp_password'  => 'CHANGE_ME',             // the mailbox password
    'mail_from'      => 'office@innovio.at',     // must match smtp_username

Typical Namecheap cPanel mailbox values:
    Host: mail.<yourdomain>
    Port: 465  Encryption: SSL
    Username: full email address (e.g. office@innovio.at)
    Password: the password you set for the mailbox in cPanel -> Email Accounts

Save the file.

Optional — change the thank-you text:
    'thankyou_title'   => 'Thank you — your message is on its way.',
    'thankyou_message' => 'We have received your inquiry...'

Optional — turn debugging on while testing (set back to false afterwards):
    'debug' => true,


===============================================================================
D) TEST
===============================================================================
1. Visit https://yourdomain.com — the home page should load with the larger
   logo in the header and footer.
2. Scroll to the contact form. You should see a security question like
   "What is 7 × 8?". Fill in the form (with a valid answer) and submit.
3. On success the form is replaced by the configured thank-you message.
4. Check your inbox at the address set in 'mail_to'. The email should arrive
   with the form contents.
5. If sending fails, set 'debug' => true in config.php temporarily, submit
   again, and the on-screen error will tell you exactly what's wrong (usually
   wrong host, wrong port, or wrong password). Set 'debug' back to false once
   it works.


===============================================================================
E) WHAT'S INCLUDED
===============================================================================
- Pages: home (/), how we work (/workflow), 9 service detail pages
  (/services/<slug>), legal pages (/imprint, /privacy, /terms).
- Working contact form (/contact) with PHPMailer + SMTP.
- Random math captcha (sum or multiplication of two numbers, server-validated).
- Honeypot field to silently drop most spam bots.
- Thank-you message after a successful submission.
- Header & footer logos enlarged ~3x compared to the previous design.
- All images, fonts and CSS bundled — no external CDN dependency for icons.
- Standard SEO meta tags + OpenGraph image.


===============================================================================
F) SUB-DIRECTORY DEPLOYMENT (optional)
===============================================================================
If you want the site at https://yourdomain.com/innovio/ instead of the root:

1. Upload the files into public_html/innovio/ (not public_html/).
2. Edit public_html/innovio/.htaccess and uncomment:
       RewriteBase /innovio/
3. Edit public_html/innovio/includes/bootstrap.php — change the BASE_URL line:
       $base = '/innovio';   // (no trailing slash)


===============================================================================
G) SSL / HTTPS
===============================================================================
Namecheap shared hosting includes a free AutoSSL certificate. Once it is
active for your domain, open .htaccess and uncomment the "Force HTTPS" block.


===============================================================================
H) FILE LAYOUT
===============================================================================
    public_html/
    ├── config.php              <-- EDIT ME (SMTP credentials etc.)
    ├── .htaccess               (Apache routing & security headers)
    ├── index.php               (home)
    ├── workflow.php            (/workflow)
    ├── service.php             (/services/<slug>)
    ├── imprint.php  privacy.php  terms.php
    ├── contact.php             (form POST handler — sends email)
    ├── assets/
    │   ├── css/style.css       (bundled Tailwind output)
    │   └── img/                (logos, hero, photos)
    ├── includes/
    │   ├── bootstrap.php       (session + helpers + config loader)
    │   ├── header.php          (site header HTML)
    │   ├── footer.php          (site footer HTML + small JS)
    │   ├── data.php            (services catalogue)
    │   ├── icons.php           (inline Lucide SVG icons)
    │   ├── captcha.php         (math captcha)
    │   └── legal-template.php  (shared shell for /privacy and /terms)
    └── lib/
        └── PHPMailer/          (bundled PHPMailer 6.9.3, MIT licence)


Questions or future updates? Keep this README with the project.
