<?php
$pageTitle = $pageTitle ?? 'Miller Freeman | Publishing & Content Partner';
$currentService = $currentService ?? '';
$currentPage = $currentPage ?? '';
$bodyClass = $bodyClass ?? '';
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><?= htmlspecialchars($pageTitle) ?> | Miller Freeman</title>

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">

  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.css">

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">

  <link rel="stylesheet" href="assets/css/style.css">
  <link rel="stylesheet" href="assets/css/responsive.css">
</head>
<body<?= $bodyClass !== '' ? ' class="' . htmlspecialchars($bodyClass) . '"' : '' ?><?= $currentService !== '' ? ' data-current-service="' . htmlspecialchars($currentService) . '"' : '' ?>>

  <header>
    <nav class="navbar navbar-expand-lg">
      <div class="container">
        <a class="navbar-brand" href="index.php">
          <span class="brand-miller">Miller</span> <span class="brand-freeman">Freeman</span>
        </a>

        <button class="navbar-toggler d-lg-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#mainNavOffcanvas" aria-controls="mainNavOffcanvas" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>

        <div class="navbar-desktop d-none d-lg-flex align-items-center flex-grow-1">
          <ul class="navbar-nav mx-auto">
            <li class="nav-item">
              <a class="nav-link" href="content-creation.php">Ghostwriting</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="book-publishing.php">Non Fiction</a>
            </li>
    
            <li class="nav-item">
              <a class="nav-link" href="manuscript-editing.php">Book Editing</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="book-publishing.php">Publishing</a>
            </li>

            <li class="nav-item dropdown">
              <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">Other Services</a>
              <ul class="dropdown-menu services-dropdown">
                <li><a class="dropdown-item" href="book-publishing.php">Book Publishing</a></li>
                <li><a class="dropdown-item" href="manuscript-editing.php">Manuscript Editing</a></li>
                <li><a class="dropdown-item" href="cover-design.php">Cover Design</a></li>
                <li><a class="dropdown-item" href="interior-layout.php">Interior Layout</a></li>
                <li><a class="dropdown-item" href="printing-binding.php">Printing &amp; Binding</a></li>
                <li><a class="dropdown-item" href="distribution.php">Distribution</a></li>
                <li><a class="dropdown-item" href="content-creation.php">Content Creation</a></li>
                <li><a class="dropdown-item" href="brand-identity.php">Brand Identity</a></li>
                <li><a class="dropdown-item" href="marketing-pr.php">Marketing &amp; PR</a></li>
                <li><a class="dropdown-item" href="publishing-packages.php">Publishing Packages</a></li>
              </ul>
            </li>
          </ul>

          <a href="#" class="btn btn-primary btn-nav quote-modal-trigger">Get In Touch</a>
        </div>
      </div>
    </nav>

    <div class="offcanvas offcanvas-end" tabindex="-1" id="mainNavOffcanvas" aria-labelledby="mainNavOffcanvasLabel">
      <div class="offcanvas-header">
        <a class="navbar-brand offcanvas-brand" href="index.php" data-bs-dismiss="offcanvas">
          <span class="brand-miller">Miller</span> <span class="brand-freeman">Freeman</span>
        </a>
        <button type="button" class="btn-close" 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" href="content-creation.php">Ghostwriting</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="book-publishing.php">Non Fiction</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="book-publishing.php">Fiction</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="manuscript-editing.php">Book Editing</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="book-publishing.php">Publishing</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="cover-design.php">Design</a>
          </li>
          <li class="nav-item">
            <button
              class="nav-link mobile-services-toggle"
              type="button"
              data-bs-toggle="collapse"
              data-bs-target="#mobileOtherServicesMenu"
              aria-expanded="false"
              aria-controls="mobileOtherServicesMenu"
            >Other Services</button>
            <div class="collapse" id="mobileOtherServicesMenu">
              <ul class="mobile-services-list">
                <li><a class="mobile-services-link" href="book-publishing.php">Book Publishing</a></li>
                <li><a class="mobile-services-link" href="manuscript-editing.php">Manuscript Editing</a></li>
                <li><a class="mobile-services-link" href="cover-design.php">Cover Design</a></li>
                <li><a class="mobile-services-link" href="interior-layout.php">Interior Layout</a></li>
                <li><a class="mobile-services-link" href="printing-binding.php">Printing &amp; Binding</a></li>
                <li><a class="mobile-services-link" href="distribution.php">Distribution</a></li>
                <li><a class="mobile-services-link" href="content-creation.php">Content Creation</a></li>
                <li><a class="mobile-services-link" href="brand-identity.php">Brand Identity</a></li>
                <li><a class="mobile-services-link" href="marketing-pr.php">Marketing &amp; PR</a></li>
                <li><a class="mobile-services-link" href="publishing-packages.php">Publishing Packages</a></li>
              </ul>
            </div>
          </li>
        </ul>
        <a href="#" class="btn btn-primary btn-nav w-100 quote-modal-trigger">Get In Touch</a>
      </div>
    </div>
  </header>
  <main>
