/* Base nav layout */

.site-nav {
    position: relative;
    z-index: 50;
}

.site-nav .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.logo-text {
    color: #fff;
}

/* Desktop menu */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile toggle button */

.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 28px;
    height: 22px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    bottom: 10px;
    transform: rotate(-45deg);
}

/* Mobile layout */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    /* The nav-menu becomes a dropdown overlay */
    .nav-menu {
        position: absolute;
        top: 64px;               /* match header height */
        left: 0;
        right: 0;
        background: #050816;     /* your site background or brand color */
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.is-open {
        max-height: 320px;       /* increase if you have more links */
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem 0.5rem;
        gap: 0.75rem;
    }

    .nav-links a {
        width: 100%;
        padding: 0.25rem 0;
    }

    .nav-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1.5rem 1rem;
        gap: 0.5rem;
    }

    .nav-cta .btn {
        text-align: center;
        width: 100%;
    }
}
