/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    max-width: var(--container-max);
    width: calc(100% - 6rem);
    background-color: var(--white);
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: none;
    border-radius: var(--base-border-radius);
    transition: all 0.15s ease;
}

.navbar.scrolled {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: none;
    width: 100%;
    padding: 1.2rem 0;
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
    border-radius: 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 2rem;
}

.nav-container a {
    line-height: 1;
}

.nav-left {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    justify-content: flex-start;
}

.nav-logo {
    height: 87px;
    width: auto;
    justify-self: center;
    transition: height 0.3s ease, margin-bottom 0.3s ease;
}

.navbar.scrolled .nav-logo {
    height: 50px;
    margin-bottom: 0;
}

.nav-right {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 5px;
}

.navbar.scrolled .nav-right {
    align-self: center;
    margin-top: 5px;
    margin-bottom: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.3rem;
    transition: var(--transition);
    line-height: 1;
}

.nav-link:hover {
    color: var(--dark-green);
}

.nav-btn-login {
    font-size: 1.3rem;
    background-color: var(--sand);
    color: var(--dark-green);
    padding: 0.75rem 4rem;
    border-radius: var(--base-border-radius) 0 var(--base-border-radius) 0;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-btn-login:hover {
    border-color: var(--dark-green);
    transform: translateY(-2px);
}

.nav-btn-demo {
    font-size: 1.3rem;
    background-color: var(--primary-teal);
    color: var(--text-dark);
    padding: 0.75rem 2rem;
    border-radius: var(--base-border-radius) 0 var(--base-border-radius) 0;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-btn-demo:hover {
    color: var(--white);
    background-color: var(--dark-teal);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Responsive Styles ===== */
/* On smaller screens, navbar should start in "scrolled" state */
@media (max-width: 992px) {
    .navbar {
        top: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
    }

    .nav-logo {
        height: 50px;
    }

    .nav-right {
        margin-top: 5px;
        margin-bottom: 0;
    }
}
