<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo isset($title) ? $title : 'Home'; ?></title>
<meta content="<?php echo isset($description) ? $description : ''; ?>" name="description">
<meta name="robots" content="noindex, nofollow">
<link rel="canonical" href="<?php echo 'https://authorempireusa.com/' . (basename($_SERVER['PHP_SELF']) === 'index.php' ? '' : basename($_SERVER['PHP_SELF'], '.php')); ?>" />

<meta property="og:type" content="website">
<meta property="og:title" content="<?php echo isset($title) ? htmlspecialchars($title) : 'Author Empire USA'; ?>">
<meta property="og:description" content="<?php echo isset($description) ? htmlspecialchars($description) : ''; ?>">
<meta property="og:url" content="<?php echo 'https://authorempireusa.com/' . (basename($_SERVER['PHP_SELF']) === 'index.php' ? '' : basename($_SERVER['PHP_SELF'], '.php')); ?>">
<meta property="og:site_name" content="Author Empire USA">
<meta property="og:image" content="https://authorempireusa.com/assets/images/logo.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="<?php echo isset($title) ? htmlspecialchars($title) : 'Author Empire USA'; ?>">
<meta name="twitter:description" content="<?php echo isset($description) ? htmlspecialchars($description) : ''; ?>">

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Author Empire USA",
  "url": "https://authorempireusa.com",
  "logo": "https://authorempireusa.com/assets/images/logo.webp",
  "description": "Professional Book Publishing, editing, publishing, cover design, and marketing services in the USA. Helping authors create and publish bestselling books.",
  "email": "info@authorempireusa.com",
  "telephone": "+1-213-928-3233",
  "address": {
    "@type": "PostalAddress",
    "addressLocality": "Pittsburgh",
    "addressRegion": "PA",
    "addressCountry": "US"
  },
  "sameAs": [],
  "foundingDate": "2020",
  "numberOfEmployees": {
    "@type": "QuantitativeValue",
    "minValue": 10,
    "maxValue": 50
  },
  "areaServed": {
    "@type": "Country",
    "name": "United States"
  },
  "hasOfferCatalog": {
    "@type": "OfferCatalog",
    "name": "Book Services",
    "itemListElement": [
      {
        "@type": "Offer",
        "itemOffered": {
          "@type": "Service",
          "name": "Book Publishing Services",
          "description": "Professional ghostwriting and Book Publishing services for authors across all genres.",
          "url": "https://authorempireusa.com/book-writing"
        }
      },
      {
        "@type": "Offer",
        "itemOffered": {
          "@type": "Service",
          "name": "Book Editing Services",
          "description": "Comprehensive manuscript editing and proofreading services for polished, error-free books.",
          "url": "https://authorempireusa.com/book-editing"
        }
      },
      {
        "@type": "Offer",
        "itemOffered": {
          "@type": "Service",
          "name": "Book Publishing Services",
          "description": "Complete Book publishing on Apple Books, Kobo, and all major platforms.",
          "url": "https://authorempireusa.com/book-publishing"
        }
      },
      {
        "@type": "Offer",
        "itemOffered": {
          "@type": "Service",
          "name": "Book Cover Design Services",
          "description": "Custom, professional book cover design that captures readers' attention.",
          "url": "https://authorempireusa.com/book-cover-design"
        }
      },
      {
        "@type": "Offer",
        "itemOffered": {
          "@type": "Service",
          "name": "Book Marketing Services",
          "description": "Strategic book marketing, promotion, and SEO services to maximize sales.",
          "url": "https://authorempireusa.com/book-marketing"
        }
      },
      {
        "@type": "Offer",
        "itemOffered": {
          "@type": "Service",
          "name": "Children's Book Writing Services",
          "description": "Professional children's book writing and illustration services for young readers.",
          "url": "https://authorempireusa.com/children-book"
        }
      }
    ]
  }
}
</script>

<?php
$currentPageUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$siteName = 'Author Empire USA';
?>
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "name": "<?php echo isset($title) ? htmlspecialchars($title) : 'Author Empire USA'; ?>",
  "description": "<?php echo isset($description) ? htmlspecialchars($description) : ''; ?>",
  "url": "<?php echo htmlspecialchars($currentPageUrl); ?>",
  "publisher": {
    "@type": "Organization",
    "name": "Author Empire USA",
    "logo": {
      "@type": "ImageObject",
      "url": "https://authorempireusa.com/assets/images/logo.webp"
    }
  },
  "inLanguage": "en-US"
}
</script>

<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com">
<link rel="dns-prefetch" href="https://code.jquery.com">

<?php
  $srcurl = "https://localhost.com:9999";
  $srcassets = "assets/";
?>
  
  <?php
  $phoneNumber = ' (323) 287-2480';
  $telto = '+3232872480';
  ?>
  <?php
  $dollar = '$';
  ?>
  <?php
  $email = 'info@authorempireusa.com';
  $mailto = 'mailto:info@authorempireusa.com';
  ?>

  <?php
  $address = '';
  ?>

  <?php
    $brandname = 'Brand Name';
  ?>

  <?php
    $currentPage = basename($_SERVER['PHP_SELF'], '.php');
    if ($currentPage == 'index') $currentPage = '/';
    $servicePages = ['book-writing', 'book-editing', 'book-publishing', 'book-cover-design', 'book-marketing', 'children-book'];
    $genrePages = ['fiction', 'non-fiction', 'autobiography', 'business', 'novel-writing', 'mystery-book', 'self-help'];
  ?>

  <?php include "includes/css.php" ?>




<header class="header">
    <nav class="navbar navbar-expand-xl navbar-dark stroke bg-transparent p-0">
        <div class="container">
            <a class="navbar-brand" href="/">
                <img src="assets/images/logo.png" alt="Author Empire USA Logo" />
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasNavbar"
                aria-controls="offcanvasNavbar" aria-label="Open navigation menu">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse justify-content-end" id="navbarNav">
                <ul class="navbar-nav">
                    <li class="nav-item">
                        <a class="nav-link <?= $currentPage == '/' ? 'active' : '' ?>" href="/">Home</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link <?= $currentPage == 'about-us' ? 'active' : '' ?>" href="about-us">About Us</a>
                    </li>
                    <li class="nav-item dropdown navdesktop">
                        <a class="nav-link <?= in_array($currentPage, $servicePages) ? 'active' : '' ?>" href="#">
                            Services <i class="fa fa-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-navdesktop" aria-labelledby="navbarDropdown">
                            <li class=""><a class="dropdown-item <?= $currentPage == 'book-writing' ? 'active' : '' ?>" href="book-writing">Book Publishing</a></li>
                            <li class=""><a class="dropdown-item <?= $currentPage == 'book-editing' ? 'active' : '' ?>" href="book-editing">Book Editing</a></li>
                            <li class=""><a class="dropdown-item <?= $currentPage == 'book-publishing' ? 'active' : '' ?>" href="book-publishing">Book Publishing</a></li>
                            <li class=""><a class="dropdown-item <?= $currentPage == 'book-cover-design' ? 'active' : '' ?>" href="book-cover-design">Book Cover Design</a></li>
                            <li class=""><a class="dropdown-item <?= $currentPage == 'book-marketing' ? 'active' : '' ?>" href="book-marketing">Book Marketing</a></li>
                            <li class=""><a class="dropdown-item <?= $currentPage == 'children-book' ? 'active' : '' ?>" href="children-book">Children's Book</a></li>
                        </ul>
                    </li>
                    <li class="nav-item dropdown navdesktop">
                        <a class="nav-link <?= in_array($currentPage, $genrePages) ? 'active' : '' ?>" href="#">
                            Genre <i class="fa fa-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-navdesktop" aria-labelledby="navbarDropdown">
                            <li class=""><a class="dropdown-item <?= $currentPage == 'fiction' ? 'active' : '' ?>" href="fiction">Fiction</a></li>
                            <li class=""><a class="dropdown-item <?= $currentPage == 'non-fiction' ? 'active' : '' ?>" href="non-fiction">Non-Fiction</a></li>
                            <li class=""><a class="dropdown-item <?= $currentPage == 'autobiography' ? 'active' : '' ?>" href="autobiography">Autobiography</a></li>
                            <li class=""><a class="dropdown-item <?= $currentPage == 'business' ? 'active' : '' ?>" href="business">Business</a></li>
                            <li class=""><a class="dropdown-item <?= $currentPage == 'novel-writing' ? 'active' : '' ?>" href="novel-writing">Novel Writing</a></li>
                            <li class=""><a class="dropdown-item <?= $currentPage == 'mystery-book' ? 'active' : '' ?>" href="mystery-book">Mystery Book</a></li>
                            <li class=""><a class="dropdown-item <?= $currentPage == 'self-help' ? 'active' : '' ?>" href="self-help">Self Help</a></li>
                        </ul>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link <?= $currentPage == 'contact-us' ? 'active' : '' ?>" href="contact-us">
                            Contact Us
                        </a>
                    </li>
                </ul>
                <div class="ms-4 d-xl-block d-none">
                    <a href="#" data-bs-target="#exampleModalToggle" data-bs-toggle="modal" data-bs-dismiss="modal"
                        class="btn btn-theme">Get a Quote</a>
                </div>
            </div>
        </div>
    </nav>
</header>

<!-- Mobile Offcanvas Menu -->
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasNavbar" aria-labelledby="offcanvasNavbarLabel">
    <div class="offcanvas-header">
        <a class="navbar-brand" href="/">
            <img src="assets/images/logo.webp" alt="Author Empire USA Logo" />
        </a>
        <button type="button" class="btn-close btn-close-white" data-bs-dismiss="offcanvas" aria-label="Close"></button>
    </div>
    <div class="offcanvas-body">
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link <?= $currentPage == '/' ? 'active' : '' ?>" href="/">Home</a>
            </li>
            <li class="nav-item">
                <a class="nav-link <?= $currentPage == 'about-us' ? 'active' : '' ?>" href="about-us">About Us</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" data-bs-toggle="collapse" href="#mobileServices" role="button" aria-expanded="false">
                    Services <i class="fa fa-angle-down"></i>
                </a>
                <div class="collapse" id="mobileServices">
                    <ul class="list-unstyled ps-3">
                        <li><a class="nav-link <?= $currentPage == 'book-writing' ? 'active' : '' ?>" href="book-writing">Book Publishing</a></li>
                        <li><a class="nav-link <?= $currentPage == 'book-editing' ? 'active' : '' ?>" href="book-editing">Book Editing</a></li>
                        <li><a class="nav-link <?= $currentPage == 'book-publishing' ? 'active' : '' ?>" href="book-publishing">Book Publishing</a></li>
                        <li><a class="nav-link <?= $currentPage == 'book-cover-design' ? 'active' : '' ?>" href="book-cover-design">Book Cover Design</a></li>
                        <li><a class="nav-link <?= $currentPage == 'book-marketing' ? 'active' : '' ?>" href="book-marketing">Book Marketing</a></li>
                        <li><a class="nav-link <?= $currentPage == 'children-book' ? 'active' : '' ?>" href="children-book">Children's Book</a></li>
                    </ul>
                </div>
            </li>
            <li class="nav-item">
                <a class="nav-link" data-bs-toggle="collapse" href="#mobileGenre" role="button" aria-expanded="false">
                    Genre <i class="fa fa-angle-down"></i>
                </a>
                <div class="collapse" id="mobileGenre">
                    <ul class="list-unstyled ps-3">
                        <li><a class="nav-link <?= $currentPage == 'fiction' ? 'active' : '' ?>" href="fiction">Fiction</a></li>
                        <li><a class="nav-link <?= $currentPage == 'non-fiction' ? 'active' : '' ?>" href="non-fiction">Non-Fiction</a></li>
                        <li><a class="nav-link <?= $currentPage == 'autobiography' ? 'active' : '' ?>" href="autobiography">Autobiography</a></li>
                        <li><a class="nav-link <?= $currentPage == 'business' ? 'active' : '' ?>" href="business">Business</a></li>
                        <li><a class="nav-link <?= $currentPage == 'novel-writing' ? 'active' : '' ?>" href="novel-writing">Novel Writing</a></li>
                        <li><a class="nav-link <?= $currentPage == 'mystery-book' ? 'active' : '' ?>" href="mystery-book">Mystery Book</a></li>
                        <li><a class="nav-link <?= $currentPage == 'self-help' ? 'active' : '' ?>" href="self-help">Self Help</a></li>
                    </ul>
                </div>
            </li>
            <li class="nav-item">
                <a class="nav-link <?= $currentPage == 'contact-us' ? 'active' : '' ?>" href="contact-us">Contact Us</a>
            </li>
        </ul>
        <div class="mt-3">
            <a href="#" data-bs-target="#exampleModalToggle" data-bs-toggle="modal" data-bs-dismiss="offcanvas" class="btn btn-theme w-100">Get a Quote</a>
        </div>
        <div class="mt-3">
            <a href="tel:<?=$telto?>" class="d-block text-white"><i class="fa fa-phone"></i> <?=$phoneNumber?></a>
            <a href="<?=$mailto?>" class="d-block text-white mt-2"><i class="fa fa-envelope"></i> <?=$email?></a>
        </div>
    </div>
</div>

<!-- popup -->
<div class="modal fade" id="exampleModalToggle" aria-hidden="true" aria-labelledby="exampleModalToggleLabel"
    tabindex="-1">
    <div class="modal-dialog modal-dialog-centered modal-md model-sec">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row align-items-center">
                    <div class="col-xl-12 col-lg-12 col-md-12">
                        <div class="model-discount">
                            <div class="d-block text-center align-items-center">
                                <div class="animate-div"><span>Get a Customised Quote – Save 50% Today!</span></div>
                                <button type="button" class="btn-close" data-bs-dismiss="modal"
                                    aria-label="Close"></button>
                            </div>
                            <hr>
                            <form method="POST" action="signup" class="needs-validation" novalidate>
                                <input type="hidden" name="page_type" value="home">

                                <div class="row">
                                    <div class="col-xl-12 col-lg-12 col-md-12">
                                        <div class="mb-3">
                                            <label for="popupName" class="form-label">Name*</label>
                                            <input type="text" class="form-control model-input" id="popupName" placeholder="Enter Name"
                                                pattern="[A-Za-z ]+" name="name" required>
                                        </div>
                                    </div>
                                    <div class="col-xl-12 col-lg-12 col-md-12">
                                        <div class="mb-3">
                                            <label for="popupEmail" class="form-label">Email*</label>
                                            <input type="email" class="form-control model-input" id="popupEmail"
                                                placeholder="Enter Email" name="email"
                                                pattern="[^\s@]+@[a-zA-Z]+[^0-9@]+\.[cC][oO][mM]$" required>
                                        </div>
                                    </div>
                                    <div class="col-xl-12 col-lg-12 col-md-12">
                                        <div class="mb-3">
                                            <label for="popupPhone" class="form-label">Contact No.*</label>
                                            <input type="number" class="form-control model-input" id="popupPhone"
                                                placeholder="Enter Contact No." name="phone"
                                                onkeypress="if(this.value.length==12) return false;" required>
                                        </div>
                                    </div>
                                                                                                            <!--home page-->
                                                                        <div class="col-xl-12 col-lg-12 col-md-12">
                                        <div class="mb-3">
                                            <label for="popupService" class="form-label">Services</label>
                                            <select class="form-control form-select model-input" id="popupService" name="service">
                                                <option selected="" disabled="" value="">Select a Service</option>
                                                <option value="Book Publishing">Book Publishing</option>
                                                <option value="Book Editing">Book Editing</option>
                                                <option value="Book Marketing">Book Marketing</option>
                                                <option value="Book Publishing">Book Publishing</option>
                                                <option value="Book Cover Design">Book Cover Design</option>
                                                <option value="Children's Book">Children's Book</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-xl-12 col-lg-12 col-md-12">
                                        <div class="mb-3">
                                            <label for="popupGenre" class="form-label">Genre</label>
                                            <select class="form-control form-select model-input" id="popupGenre" name="genre">
                                                <option selected="" disabled="" value="">Select a Genre</option>
                                                <option value="Autobiography">Autobiography</option>
                                                <option value="Business">Business</option>
                                                <option value="Fiction">Fiction</option>
                                                <option value="Mystery Book">Mystery Book</option>
                                                <option value="Non-Fiction">Non-Fiction</option>
                                                <option value="Novel Writing">Novel Writing</option>
                                                <option value="Self Help">Self Help</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-xl-12 col-lg-12 col-md-12">
                                        <div class="mb-3">
                                            <label for="popupMessage" class="form-label">Requirements*</label>
                                            <textarea class="form-control model-input" id="popupMessage"
                                                onkeypress="if(this.value.length==250) return false;" name="message"
                                                rows="3" cols="50" placeholder="Provide Your Requirements" required></textarea>
                                        </div>
                                    </div>
                                                                        <!--end-->
                                    <div class="col-xl-12 col-lg-12 col-md-12">
                                        <button type="submit" class="btn btn btn-theme mt-1 w-100">Submit</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- end --> 