<!doctype html>
<html lang="en">
<?php include 'includes/head.php'; ?>
<body>

<?php include 'includes/header.php'; ?>

<!-- ============================================================
     HERO SECTION
     ============================================================ -->
<section class="hero" id="heroSection">

  <!-- Background Pattern & Glow -->
  <div class="hero-bg-pattern" aria-hidden="true"></div>
  <div class="hero-glow"       aria-hidden="true"></div>

  <!-- Floating Particles -->
  <div class="particles" aria-hidden="true" id="particlesContainer"></div>

  <div class="container">
    <div class="hero-inner">

      <!-- Left: Copy -->
      <div class="hero-copy">
        <div class="hero-badge">Professional Publishing Services</div>

        <h1>
          Shaping Ideas into<br>
          <em>Published Books</em>
        </h1>

        <p class="hero-desc">
          Conxeptrix assists authors in moving from concept to publication.
          We help organize, prepare, and publish your manuscript so it is ready
          to be shared with a wider audience. Our approach keeps the process
          clear and structured, making each stage easier to manage.
        </p>

        <div class="hero-actions">
          <a href="tel:+(412) 744-2615" class="btn-primary">
            <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 13a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 9.91a16 16 0 0 0 6.18 6.18l1.27-.94a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"></path></svg> &nbsp;(412) 744-2615
          </a>
          <a href="javascript:void(Tawk_API.toggle())" class="btn-outline chat-trigger">
            <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg> &nbsp;Chat Live
          </a>
        </div>
      </div>

      <!-- Right: Form Card -->
      <div class="hero-form-card reveal-right">
        <h4 class="form-card-title">Tell Us About Your Project</h4>
        <p class="form-card-sub">We'll get back to you within 24 hours.</p>

        <form action="contact-handler.php" method="POST" id="heroForm">
          <!-- Honeypot -->
          <div style="display:none!important;">
            <input type="text" name="full_name_honeypot" tabindex="-1" autocomplete="off">
          </div>

          <div class="form-group">
            <input name="name"  type="text"  maxlength="25" placeholder="Your Full Name"  class="form-control" required>
          </div>
          <div class="form-group">
            <input name="email" type="email" maxlength="50" placeholder="Email Address"   class="form-control" required>
          </div>
          <div class="form-group">
            <input name="phone" type="text"  maxlength="15" placeholder="Phone Number"
                   class="form-control phone-number" required>
            <input type="hidden" name="country_name" class="hdnCountryName">
            <input type="hidden" name="country_code" class="hdnCountryCode">
          </div>
          <div class="form-group">
            <textarea name="message" placeholder="Tell us about your book project…" class="form-control" required></textarea>
          </div>

          <p class="form-consent">
            By submitting this form, I agree to the processing of my personal data in accordance with Conxeptrix <a href="PrivacyLP.php">Privacy Policy</a> and <a href="TermsLP.php">Terms of Service</a> , solely for the purpose of handling and responding to my request.
          </p>

          <button type="submit" name="submit_contact" class="form-submit-btn">
            Submit Request &rarr;
          </button>
        </form>
      </div>

    </div><!-- /.hero-inner -->
  </div><!-- /.container -->
</section>


<!-- ============================================================
     ABOUT / SERVICES SECTION
     ============================================================ -->
<section class="section-about" id="servicesSection">
  <div class="container">
    <div class="about-grid">

      <!-- Text -->
      <div class="about-text-wrap reveal-left">
        <span class="section-label">Our Services</span>
        <h2 class="about-heading">Professional Book<br>Publishing Services</h2>
        <p class="about-desc">
          Publishing a book involves more than just writing — it's about
          presenting your story in the best possible way. Our book publishing
          services cover every step of the process, including editing,
          proofreading, formatting, and cover design. We also guide authors
          through the publishing journey, helping them prepare their work for
          print or digital release. The goal is to turn a manuscript into a
          polished, professional book that is ready to reach readers everywhere.
        </p>

        <div class="feature-list">
          <div class="feature-item">Manuscript Editing</div>
          <div class="feature-item">Custom Cover Design</div>
          <div class="feature-item">Book Formatting</div>
          <div class="feature-item">Global Distribution</div>
          <div class="feature-item">Author Bio &amp; Profile</div>
          <div class="feature-item">Unlimited Revisions</div>
        </div>

        <a href="javascript:;" class="btn-primary various"
           name="125" title="Book a Consultation with Conxeptrix"
           style="color:#0d0d0d;">
          Start Your Project &rarr;
        </a>
      </div>

      <!-- Image -->
      <div class="about-img-wrap reveal-right">
        <div class="about-img-frame">
          <img src="assets/images/book-set.webp"
               alt="Professional Book Publishing Services by Conxeptrix"
               width="560" height="380"
               loading="lazy">
        </div>
        <div class="about-img-accent"  aria-hidden="true"></div>
        <div class="about-img-accent-2" aria-hidden="true"></div>
      </div>

    </div>
  </div>
</section>


<!-- ============================================================
     PRICING SECTION
     ============================================================ -->
<section class="section-pricing" id="pricingSection">
  <div class="container">

    <div class="pricing-head reveal">
      <span class="section-label" style="justify-content:center;">Pricing Plans</span>
      <h2>Plans that <em>Work for You!</em></h2>
      <p>Transparent pricing for every stage of your publishing journey</p>
    </div>

    <div class="pricing-slider-wrap" id="pricingSliderWrap">
      <div class="pricing-track" id="pricingTrack">

      <!-- Package 1: Starter -->
      <div class="pricing-card reveal">
        <div class="card-top-line"></div>
        <h3 class="pricing-plan-name">Starter Author Package</h3>
        <div class="pricing-amount">
          <span class="pricing-currency">$</span><span class="pricing-value">299</span>
          <span class="pricing-period">one-time fee</span>
          <span class="pricing-addon">Add-on: <span>$50</span> expedited</span>
        </div>
        <div class="pricing-features">
          <li>Proofreading of the entire content</li>
          <li>Basic Editing</li>
          <li>Custom-designed book cover</li>
          <li>Unlimited Revisions</li>
          <li>Book Formatting</li>
          <li>Text Formatting</li>
          <li>Table of Content</li>
          <li>Author Central account setup</li>
          <li>Creation of Author Bio and Profile</li>
          <li>Publishing on Major Platforms</li>
        </div>
        <a href="javascript:;" class="pricing-cta various pkg-view-detail"
           name="299" title="Starter Author Package $299">
          Start Project
        </a>
        <a href="#" class="pricing-detail-link">View Package Details</a>
      </div>

      <!-- Package 2: Signature -->
      <div class="pricing-card reveal">
        <div class="card-top-line"></div>
        <h3 class="pricing-plan-name">Signature Book Package</h3>
        <div class="pricing-amount">
          <span class="pricing-currency">$</span><span class="pricing-value">699</span>
          <span class="pricing-period">one-time fee</span>
          <span class="pricing-addon">Add-on: <span>$50</span> expedited</span>
        </div>
        <div class="pricing-features">
          <li>Proofreading of the entire content</li>
          <li>Editing — story development, plot &amp; character enhancement</li>
          <li>Custom-designed book cover</li>
          <li>Unlimited Revisions</li>
          <li>Book Formatting</li>
          <li>Text Formatting</li>
          <li>Table of Content</li>
          <li>Author Central account setup</li>
          <li>Creation of Author Bio and Profile</li>
          <li>Publishing on 10 Global Platforms</li>
        </div>
        <a href="javascript:;" class="pricing-cta various pkg-view-detail"
           name="699" title="Signature Book Package $699">
          Start Project
        </a>
        <a href="#" class="pricing-detail-link">View Package Details</a>
      </div>

      <!-- Package 3: Premium (FEATURED) -->
      <div class="pricing-card featured reveal">
        <div class="card-top-line"></div>
        <span class="best-tag">★ Best Seller</span>
        <h3 class="pricing-plan-name">Premium Author Plan</h3>
        <div class="pricing-amount">
          <span class="pricing-currency">$</span><span class="pricing-value">1,199</span>
          <span class="pricing-period">one-time fee</span>
          <span class="pricing-addon">Add-on: <span>$50</span> expedited</span>
        </div>
        <div class="pricing-features">
          <li>Proofreading of the entire content</li>
          <li>Advanced developmental editing — plot, character, pacing, structure</li>
          <li>Custom-designed book cover</li>
          <li>Unlimited Revisions</li>
          <li>Book Formatting &amp; Text Formatting</li>
          <li>Table of Content</li>
          <li>Book Synopsis</li>
          <li>Author Central account setup</li>
          <li>Creation of Author Bio and Profile</li>
          <li>Author profile optimization</li>
          <li>Publishing on 40 Global Platforms</li>
        </div>
        <a href="javascript:;" class="pricing-cta various pkg-view-detail"
           name="1199" title="Premium Author Plan $1,199">
          Start Project
        </a>
        <a href="#" class="pricing-detail-link">View Package Details</a>
      </div>

      <!-- Package 4: Professional -->
      <div class="pricing-card reveal">
        <div class="card-top-line"></div>
        <h3 class="pricing-plan-name">Professional Publishing Plan</h3>
        <div class="pricing-amount">
          <span class="pricing-currency">$</span><span class="pricing-value">1,999</span>
          <span class="pricing-period">one-time fee</span>
          <span class="pricing-addon">Add-on: <span>$50</span> expedited</span>
        </div>
        <div class="pricing-features">
          <li>Proofreading of the entire content</li>
          <li>Advanced developmental editing — plot, character, pacing, structure</li>
          <li>Custom-designed book cover</li>
          <li>Unlimited Revisions</li>
          <li>Book Formatting &amp; Text Formatting</li>
          <li>Table of Content</li>
          <li>Book Synopsis</li>
          <li>Author Central account setup</li>
          <li>Author Bio, Profile &amp; Optimization</li>
          <li>Publishing on 50 Global Platforms</li>
          <li>Creation of Author's Website</li>
          <li>Social Media Pages Creation</li>
          <li>12 Weeks social media management</li>
          <li>3 blogs and 3 articles</li>
          <li>Platform Optimization</li>
        </div>
        <a href="javascript:;" class="pricing-cta various pkg-view-detail"
           name="1999" title="Professional Publishing Plan $1,999">
          Start Project
        </a>
        <a href="#" class="pricing-detail-link">View Package Details</a>
      </div><!-- /.pricing-card last -->

      </div><!-- /.pricing-track -->

      <!-- Slider Nav -->
      <div class="slider-nav">
        <button class="slider-arrow" id="sliderPrev" aria-label="Previous">&#8592;</button>
        <div class="slider-dots" id="sliderDots"></div>
        <button class="slider-arrow" id="sliderNext" aria-label="Next">&#8594;</button>
      </div>

    </div><!-- /.pricing-slider-wrap -->

    <!-- Context Strip -->
    <div class="pricing-ctx-strip reveal">
      <p>
        <strong>Not sure which plan fits your book?</strong><br>
        Our publishing experts are happy to walk you through the options.
      </p>
      <div class="pricing-ctx-btns">
        <a href="javascript:void(Tawk_API.toggle())" class="btn-outline chat-trigger"
           style="border-color:rgba(201,150,58,.4);color:var(--gold);">
          Let's Talk
        </a>
        <a href="tel:+(412) 744-2615" class="btn-primary" style="color:#0d0d0d;">
          <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 13a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 9.91a16 16 0 0 0 6.18 6.18l1.27-.94a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"></path></svg> &nbsp;(412) 744-2615
        </a>
      </div>
    </div>

  </div>
</section>


<!-- ============================================================
     READY TO GET STARTED (CTA)
     ============================================================ -->
<section class="section-cta" id="contactSection">
  <div class="container">
    <div class="cta-grid">

      <!-- Text -->
      <div class="cta-text-wrap reveal-left">
        <span class="section-label">Get In Touch</span>
        <h2>Read<em>Y</em> <small style="font-family:var(--font-body);font-size:0.5em;color:var(--text-lt);display:block;letter-spacing:2px;text-transform:uppercase;margin-top:4px;">TO GET STARTED?</small></h2>
        <p>Reach out to share your ideas and questions with us. Our team of publishing professionals is ready to guide your manuscript from draft to shelf.</p>

        <div class="contact-items">
          <a href="tel:+(412) 744-2615" class="contact-item-card">
            <div class="contact-icon-wrap"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 13a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 9.91a16 16 0 0 0 6.18 6.18l1.27-.94a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"></path></svg></div>
            <div class="contact-item-text">
              <strong>Call Us Anytime</strong>
              <span>(412) 744-2615</span>
            </div>
          </a>
          <a href="javascript:void(Tawk_API.toggle())" class="contact-item-card chat-trigger">
            <div class="contact-icon-wrap"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg></div>
            <div class="contact-item-text">
              <strong>Chat Live</strong>
              <span>Discuss your project in real time</span>
            </div>
          </a>
        </div>

        <a href="javascript:;" class="btn-primary various"
           name="125" title="Start a Project with Conxeptrix"
           style="color:#0d0d0d;">
          Start Your Project &rarr;
        </a>
      </div>

      <!-- Image -->
      <div class="cta-image-wrap reveal-right">
        <div class="cta-image-frame">
          <img src="assets/images/contact2.webp"
               alt="Get in touch with Conxeptrix publishing team"
               width="560" height="400"
               loading="lazy">
        </div>
        <div class="cta-badge-float">
          <strong>24hrs</strong>
          <span>Response Time</span>
        </div>
      </div>

    </div>
  </div>
</section>


<?php include 'includes/footer.php'; ?>
<?php include 'includes/popup-form.php'; ?>
<?php include 'includes/scripts.php'; ?>

<!-- Site-wide JS for new design -->
<script>
(function () {
  'use strict';

  /* ── Header scroll effect ── */
  var header = document.getElementById('siteHeader');
  if (header) {
    window.addEventListener('scroll', function () {
      header.classList.toggle('scrolled', window.scrollY > 60);
    }, { passive: true });
  }

  /* ── Hamburger / Mobile nav ── */
  var ham     = document.getElementById('hamburger');
  var mobNav  = document.getElementById('mobileNav');
  var closeBtn = document.getElementById('mobileCloseBtn');

  function toggleMenu(forceOpen) {
    var isOpen = (forceOpen !== undefined) ? forceOpen : !ham.classList.contains('active');
    ham.classList.toggle('active', isOpen);
    mobNav.classList.toggle('open', isOpen);
    ham.setAttribute('aria-expanded', isOpen);
    mobNav.setAttribute('aria-hidden', !isOpen);
  }

  if (ham && mobNav) {
    ham.addEventListener('click', function () { toggleMenu(); });
  }
  if (closeBtn) {
    closeBtn.addEventListener('click', function () { toggleMenu(false); });
  }
  /* ── Floating particles ── */
  var pc = document.getElementById('particlesContainer');
  if (pc) {
    for (var i = 0; i < 18; i++) {
      (function (idx) {
        var p = document.createElement('div');
        p.className = 'particle';
        p.style.cssText = [
          'left:' + (Math.random() * 100) + '%',
          'width:' + (1 + Math.random() * 3) + 'px',
          'height:' + (1 + Math.random() * 3) + 'px',
          'animation-duration:' + (8 + Math.random() * 12) + 's',
          'animation-delay:' + (Math.random() * 10) + 's'
        ].join(';');
        pc.appendChild(p);
      })(i);
    }
  }

  /* ── Scroll reveal ── */
  var revealEls = document.querySelectorAll('.reveal, .reveal-left, .reveal-right');
  if ('IntersectionObserver' in window) {
    var io = new IntersectionObserver(function (entries) {
      entries.forEach(function (entry) {
        if (entry.isIntersecting) {
          entry.target.classList.add('visible');
          io.unobserve(entry.target);
        }
      });
    }, { threshold: 0.15 });
    revealEls.forEach(function (el) { io.observe(el); });
  } else {
    revealEls.forEach(function (el) { el.classList.add('visible'); });
  }

  /* ── Modal: .various triggers ── */
  document.addEventListener('click', function (e) {
    var trigger = e.target.closest('.various');
    if (!trigger) return;
    e.preventDefault();

    var name  = trigger.getAttribute('name')  || '';
    var title = trigger.getAttribute('title') || 'Inquire Now';

    // Update hidden fields in popup
    document.querySelectorAll('.popupform .leadprice, #popupForm .leadprice').forEach(function (el) { el.value = name; });
    document.querySelectorAll('.popupform .serviii, #popupForm .serviii').forEach(function (el)   { el.value = title; });

    // Update modal badge & title
    var badge = document.getElementById('modalPlanBadge');
    var mtitle = document.getElementById('modalTitle');
    if (badge)  badge.textContent  = '📖 ' + title;
    if (mtitle) mtitle.textContent = title;

    // Open modal
    var overlay = document.getElementById('customModalOverlay');
    if (overlay) {
      overlay.style.display = 'flex';
      document.body.style.overflow = 'hidden';
    }
  });

})();

/* ── Pricing Slider ── */
(function () {
  var track   = document.getElementById('pricingTrack');
  var wrap    = document.getElementById('pricingSliderWrap');
  var btnPrev = document.getElementById('sliderPrev');
  var btnNext = document.getElementById('sliderNext');
  var dotsEl  = document.getElementById('sliderDots');
  if (!track || !wrap) return;

  var cards     = track.querySelectorAll('.pricing-card');
  var current   = 0;
  var visCount  = 3;

  function getVisCount() {
    var w = window.innerWidth;
    if (w <= 768)  return 1;
    if (w <= 1100) return 2;
    return 3;
  }

  function totalSlides() { return Math.max(0, cards.length - visCount + 1); }

  function buildDots() {
    dotsEl.innerHTML = '';
    var n = totalSlides();
    for (var i = 0; i < n; i++) {
      var d = document.createElement('button');
      d.className = 'slider-dot' + (i === current ? ' active' : '');
      d.setAttribute('aria-label', 'Go to slide ' + (i + 1));
      d.dataset.idx = i;
      d.addEventListener('click', function () { goTo(+this.dataset.idx); });
      dotsEl.appendChild(d);
    }
  }

  function updateDots() {
    dotsEl.querySelectorAll('.slider-dot').forEach(function (d, i) {
      d.classList.toggle('active', i === current);
    });
  }

  function goTo(idx) {
    var max = totalSlides() - 1;
    current = Math.max(0, Math.min(idx, max));
    var cardW   = cards[0].offsetWidth + 20; /* 20 = gap */
    track.style.transform = 'translateX(-' + (current * cardW) + 'px)';
    btnPrev.disabled = current === 0;
    btnNext.disabled = current >= max;
    updateDots();
  }

  function init() {
    visCount = getVisCount();
    current  = Math.min(current, Math.max(0, totalSlides() - 1));
    buildDots();
    goTo(current);
  }

  btnPrev.addEventListener('click', function () { goTo(current - 1); });
  btnNext.addEventListener('click', function () { goTo(current + 1); });

  /* Touch / drag */
  var startX = 0, isDragging = false;
  track.addEventListener('touchstart', function (e) { startX = e.touches[0].clientX; isDragging = true; }, { passive: true });
  track.addEventListener('touchend', function (e) {
    if (!isDragging) return;
    var diff = startX - e.changedTouches[0].clientX;
    if (Math.abs(diff) > 40) { diff > 0 ? goTo(current + 1) : goTo(current - 1); }
    isDragging = false;
  });

  window.addEventListener('resize', function () { init(); }, { passive: true });
  init();
})();
</script>

</body>
</html>