<style>
/* ===== Base header styles ===== */
.header--clean .header__content {
    background-color: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.header {
    position: relative;
    z-index: 9999; /* keep header on top of overlays */
}

.header__content {
    width: 100%;
}

.header__main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header__logo img {
    height: 40px;
    display: block;
}

/* ===== Desktop nav ===== */
.header__nav {
    flex: 1;
}

.nav__list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__item a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav__item a:hover {
    color: #10b981;
}

/* ===== Right CTAs: Log in / Order now ===== */
.header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease, transform 0.15s ease;
}

/* Log in button (white pill) */
.btn-pill--ghost {
    background-color: #ffffff;
    color: #111827;
    border-color: rgba(15, 23, 42, 0.12);
}

.btn-pill--ghost:hover {
    color: #10b981;
    border-color: #10b981;
}

/* Order now button (green pill with glow) */
.btn-pill--primary {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
}

.btn-pill--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.6);
}

/* ===== Hamburger icon base ===== */
.mobile-nav {
    display: none;
}

.hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    border: none;
    background: transparent;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: #111827;
    border-radius: 999px;
    position: absolute;
    left: 0;
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
}

.hamburger-inner::before {
    top: -7px;
}

.hamburger-inner::after {
    top: 7px;
}

/* Active state (X icon) */
.hamburger.is-active .hamburger-inner {
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.hamburger.is-active .hamburger-inner::after {
    top: 0;
    transform: rotate(-90deg);
}

/* ====== Responsive: tablets / small laptops ====== */
@media (max-width: 1100px) {
    .nav__list {
        gap: 1.25rem;
    }
}

/* ====== Responsive: mobile ====== */
@media (max-width: 900px) {
    .header__main {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .header__logo img {
        height: 34px;
    }

    /* Hide inline desktop nav by default on mobile */
    .header__nav {
        display: none;
    }

    /* FULL-SCREEN WHITE MOBILE PANEL */
    .header.header--mobile-open .header__nav {
        display: block;
        position: fixed;
        inset: 0;                      /* full screen */
        background-color: #ffffff;     /* white panel */
        z-index: 9998;                 /* just under header */
        overflow-y: auto;
    }

    .header.header--mobile-open .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 4.5rem 1.5rem 1.5rem; /* top ~ header height */
    }

    .header.header--mobile-open .nav__item a {
        display: block;
        width: 100%;
        padding: 0.7rem 0;
        color: #ffff !important;     /* force visible text */
    }

    .header__actions {
        gap: 0.5rem;
    }

    .header__actions .btn-pill {
        padding: 0.35rem 1rem;
        font-size: 0.85rem;
    }

    .mobile-nav {
        display: block;
    }

    /* Prevent body from scrolling behind menu (optional but nice) */
    body.is-mobile-nav-open {
        overflow: hidden;
    }
}

/* Extra small phones: tighten spacing a bit */
@media (max-width: 480px) {
    .header__main {
        gap: 0.5rem;
    }

    .btn-pill--ghost {
        display: none; /* keep just primary CTA on tiny screens */
    }
}
</style>

<header class="header header--clean">
    <div class="header__content">
        <div class="header__main">
            <!-- Logo (links to Home) -->
            <div class="header__logo logo">
                <a class="logo__link" href="/">
                    <img src="/static/images/logo.svg" alt="SPSS Dissertation Help">
                </a>
            </div>

            <!-- Desktop / mobile navigation -->
            <nav class="nav header__nav">
                <ul class="nav__list">
                    <li class="menu-item nav__item">
                        <a href="/">Home</a>
                    </li>
                   
                    <li class="menu-item nav__item">
                        <a href="/how-it-works/">How it works</a>
                    </li>
                    <li class="menu-item nav__item">
                        <a href="/our-writers/">Our writers</a>
                    </li>
                    <li class="menu-item nav__item">
                        <a href="/reviews/">Reviews</a>
                    </li>
                    <li class="menu-item nav__item">
                        <a href="/faqs/">FAQ</a>
                    </li>
                </ul>
            </nav>

            <!-- Right side buttons -->
            <div class="header__actions">
                <a href="/dashboard/authorization/" class="btn-pill btn-pill--ghost">
                    Log in
                </a>
                <a href="/inquiry/" class="btn-pill btn-pill--primary">
                    Order now
                </a>

                <!-- Mobile hamburger -->
                <div class="mobile-nav">
                    <button
                        class="hamburger hamburger--spin js-hamburger"
                        type="button"
                        aria-label="Toggle navigation"
                        aria-expanded="false"
                    >
                        <span class="hamburger-box">
                            <span class="hamburger-inner"></span>
                        </span>
                    </button>
                </div>
            </div>
        </div>
    </div>
</header>

<script>
document.addEventListener('DOMContentLoaded', function () {
    var header = document.querySelector('.header');
    var hamburger = document.querySelector('.js-hamburger');

    if (!header || !hamburger) return;

    function closeMenu() {
        header.classList.remove('header--mobile-open');
        hamburger.classList.remove('is-active');
        hamburger.setAttribute('aria-expanded', 'false');
        document.body.classList.remove('is-mobile-nav-open');
    }

    hamburger.addEventListener('click', function () {
        var isOpen = header.classList.toggle('header--mobile-open');
        hamburger.classList.toggle('is-active');
        hamburger.setAttribute('aria-expanded', isOpen ? 'true' : 'false');

        if (isOpen) {
            document.body.classList.add('is-mobile-nav-open');
        } else {
            document.body.classList.remove('is-mobile-nav-open');
        }
    });

    // Close mobile menu when a nav link is clicked
    var navLinks = header.querySelectorAll('.nav__item a');
    navLinks.forEach(function (link) {
        link.addEventListener('click', closeMenu);
    });
});
</script>
